[clang] [lld] [llvm] [mlir] [IR] Introduce `U` to `DataLayout` to represent undesirable address space if a target has it (PR #108786)

2024-10-26 Thread Shilei Tian via cfe-commits
https://github.com/shiltian closed https://github.com/llvm/llvm-project/pull/108786 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [mlir] [IR] Introduce `U` to `DataLayout` to represent undesirable address space if a target has it (PR #108786)

2024-10-26 Thread Shilei Tian via cfe-commits
shiltian wrote: It seems like we can’t reach consensus on how to move forward with this. I already worked my issue around so I guess we no longer need this PR. https://github.com/llvm/llvm-project/pull/108786 ___ cfe-commits mailing list cfe-commits@l

[clang] [llvm] [BPF] Add load-acquire and store-release instructions under -mcpu=v4 (PR #108636)

2024-10-26 Thread Peilin Ye via cfe-commits
https://github.com/peilin-ye updated https://github.com/llvm/llvm-project/pull/108636 >From 8ab5d1c2e36dfa44be637478deeabaa4f586dcee Mon Sep 17 00:00:00 2001 From: Peilin Ye Date: Sat, 5 Oct 2024 06:44:21 + Subject: [PATCH 1/3] [BPF] Rename isST*() and isLD*() functions in BPFMISimplifyPat

[clang] [clang][bytecode][NFC] Make CheckVolatile static (PR #113785)

2024-10-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-quick` running on `linaro-clang-aarch64-quick` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/65/builds/6735 Here is the relevant piec

[clang] [Clang] prevent assertion failure from an invalid template instantiation pattern when adding instantiated params to the scope in friend functions with defaulted params (PR #113777)

2024-10-26 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/113777 >From 78019b9d9dc138f38bb5b32576b621351ae6427c Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sun, 27 Oct 2024 01:07:57 +0300 Subject: [PATCH] [Clang] prevent assertion failure from an invalid template ins

[clang] Draft (PR #113796)

2024-10-26 Thread via cfe-commits
https://github.com/c8ef created https://github.com/llvm/llvm-project/pull/113796 None >From aa9e5c50287aa3d60fe1145ccda6b1e5f90c53a8 Mon Sep 17 00:00:00 2001 From: c8ef Date: Sun, 27 Oct 2024 14:15:23 +0800 Subject: [PATCH] add Binary search operations (on sorted ranges) --- clang/lib/Tooling

[clang] [Tooling/Inclusion] Add binary search related `std::range` symbols to the mapping. (PR #113796)

2024-10-26 Thread via cfe-commits
https://github.com/c8ef edited https://github.com/llvm/llvm-project/pull/113796 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Tooling/Inclusion] Add binary search related `std::range` symbols to the mapping. (PR #113796)

2024-10-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (c8ef) Changes Fixes #94459. --- Full diff: https://github.com/llvm/llvm-project/pull/113796.diff 1 Files Affected: - (modified) clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc (+4) ``diff diff --git a/clang/lib/Too

[clang] [Tooling/Inclusion] Add binary search related `std::range` symbols to the mapping. (PR #113796)

2024-10-26 Thread via cfe-commits
https://github.com/c8ef ready_for_review https://github.com/llvm/llvm-project/pull/113796 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Tooling/Inclusion] Add binary search related `std::range` symbols to the mapping. (PR #113796)

2024-10-26 Thread via cfe-commits
https://github.com/c8ef edited https://github.com/llvm/llvm-project/pull/113796 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV]Add svvptc extension (PR #113758)

2024-10-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v @llvm/pr-subscribers-clang-driver Author: None (dong-miao) Changes This commit adds the Obviating Memory-Management Instructions after Marking PTEs Valid (Svvptc) extension. Specification link:[https://github.com/riscv/riscv-isa-manual/b

[clang] [llvm] [RISCV]Add svvptc extension (PR #113758)

2024-10-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mc Author: None (dong-miao) Changes This commit adds the Obviating Memory-Management Instructions after Marking PTEs Valid (Svvptc) extension. Specification link:[https://github.com/riscv/riscv-isa-manual/blob/main/src/supervisor.adoc](https://github.c

[clang] [llvm] [RISCV]Add svvptc extension (PR #113758)

2024-10-26 Thread via cfe-commits
https://github.com/dong-miao created https://github.com/llvm/llvm-project/pull/113758 This commit adds the Obviating Memory-Management Instructions after Marking PTEs Valid (Svvptc) extension. Specification link:[https://github.com/riscv/riscv-isa-manual/blob/main/src/supervisor.adoc](https://

[clang] Update std symbols mapping (PR #113612)

2024-10-26 Thread Vadim D. via cfe-commits
@@ -143,32 +165,33 @@ def _GetSymbols(pool, root_dir, index_page_name, namespace, variants_to_accept): with open(index_page_path, "r") as f: # Read each symbol page in parallel. results = [] # (symbol_name, promise of [header...]) +symbols_by_page

[clang] Update std symbols mapping (PR #113612)

2024-10-26 Thread Vadim D. via cfe-commits
https://github.com/vvd170501 updated https://github.com/llvm/llvm-project/pull/113612 >From 96662cb7f681e7158c05a0190894de70eee03d67 Mon Sep 17 00:00:00 2001 From: Vadim Dudkin Date: Thu, 24 Oct 2024 23:18:52 +0300 Subject: [PATCH 01/13] Update std symbol mapping to v20230810; Move assertion t

[libunwind] [libunwind][AArch64] Protect PC within libunwind's context. (PR #113368)

2024-10-26 Thread Daniel Kiss via cfe-commits
https://github.com/DanielKristofKiss updated https://github.com/llvm/llvm-project/pull/113368 >From 3dd2f4da57eb164e67fd54b66c09cc8b771ee24f Mon Sep 17 00:00:00 2001 From: Daniel Kiss Date: Wed, 16 Oct 2024 14:48:25 -0700 Subject: [PATCH 1/6] [libunwind][AArch64] Protect PC within libunwind's

[clang] Update std symbols mapping (PR #113612)

2024-10-26 Thread Vadim D. via cfe-commits
@@ -232,6 +232,47 @@ SYMBOL(ssize, std::, ) SYMBOL(ssize, std::, ) SYMBOL(ssize, std::, ) SYMBOL(ssize, std::, ) +// C++ [range.access.general]: ... the customization point objects +// in [range.access] are available when the header is included. +SYMBOL(begin, std::ranges::, )

[clang] [clang-format] convert path to Windows path if user is using a MSYS2 shell (PR #111526)

2024-10-26 Thread via cfe-commits
MarcelHB wrote: I'd appreciate this fix, too. https://github.com/llvm/llvm-project/pull/111526 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Do not emit file path for anonymous enums in `readability-enum-initial-value` check (PR #112496)

2024-10-26 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti approved this pull request. https://github.com/llvm/llvm-project/pull/112496 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV]Add svvptc extension (PR #113758)

2024-10-26 Thread via cfe-commits
https://github.com/dong-miao updated https://github.com/llvm/llvm-project/pull/113758 >From 6424bebfcf16ef9694d7406b0298045da2d426bf Mon Sep 17 00:00:00 2001 From: dong-miao <601183...@qq.com> Date: Sat, 26 Oct 2024 06:49:04 + Subject: [PATCH 1/5] [RISCV]Add svvptc extensions --- clang/tes

[clang] [sema] enhance error handling for compound stmt body in `StmtExpr` (PR #113760)

2024-10-26 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/113760 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [sema] enhance error handling for compound stmt body in `StmtExpr` (PR #113760)

2024-10-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Congcong Cai (HerrCai0907) Changes Mark the whole StmtExpr invalid when the last statement in compound statement is invalid. Because the last statement need to do copy initialization, it causes subsequent errors to simply ignore last inva

[clang] [llvm] [BPF] Add load-acquire and store-release instructions under -mcpu=v4 (PR #108636)

2024-10-26 Thread Yingchi Long via cfe-commits
@@ -703,6 +715,39 @@ SDValue BPFTargetLowering::LowerSELECT_CC(SDValue Op, SelectionDAG &DAG) const { return DAG.getNode(BPFISD::SELECT_CC, DL, VTs, Ops); } +SDValue BPFTargetLowering::LowerATOMIC_LOAD(SDValue Op, +SelectionDAG &D

[clang] [libcxx] [clang] Warn about memset/memcpy to NonTriviallyCopyable types (PR #111434)

2024-10-26 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 approved this pull request. The libc++ LGTM. https://github.com/llvm/llvm-project/pull/111434 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [clang] Warn about memset/memcpy to NonTriviallyCopyable types (PR #111434)

2024-10-26 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 edited https://github.com/llvm/llvm-project/pull/111434 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Tooling/Inclusion] Update std symbols mapping (PR #113612)

2024-10-26 Thread Vadim D. via cfe-commits
https://github.com/vvd170501 edited https://github.com/llvm/llvm-project/pull/113612 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] fix extract-to-function for overloaded operators (PR #81640)

2024-10-26 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti updated https://github.com/llvm/llvm-project/pull/81640 >From 1796e5d2c44bae890c13b2af3fc7e4ec36e716dd Mon Sep 17 00:00:00 2001 From: Julian Schmidt Date: Tue, 13 Feb 2024 18:59:16 +0100 Subject: [PATCH 1/3] [clangd] fix extract-to-function for overloaded operators

[clang-tools-extra] [clangd] fix extract-to-function for overloaded operators (PR #81640)

2024-10-26 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti commented: CC @HighCommander4 @kadircet Technically, Sam told me last EuroLLVM that he had some refactor of the `SelectionTree` that would resolve issues like this in the general case, but as it is unclear that those changes will get in someday/in the 'near' future

[clang] [llvm] [RISCV]Add svvptc extension (PR #113758)

2024-10-26 Thread via cfe-commits
https://github.com/dong-miao updated https://github.com/llvm/llvm-project/pull/113758 >From 6424bebfcf16ef9694d7406b0298045da2d426bf Mon Sep 17 00:00:00 2001 From: dong-miao <601183...@qq.com> Date: Sat, 26 Oct 2024 06:49:04 + Subject: [PATCH 1/3] [RISCV]Add svvptc extensions --- clang/tes

[clang-tools-extra] [clangd] fix extract-to-function for overloaded operators (PR #81640)

2024-10-26 Thread Julian Schmidt via cfe-commits
@@ -104,9 +104,12 @@ bool isRootStmt(const Node *N) { // Root statement cannot be partially selected. if (N->Selected == SelectionTree::Partial) return false; - // Only DeclStmt can be an unselected RootStmt since VarDecls claim the entire - // selection range in sel

[clang-tools-extra] [clangd] fix extract-to-function for overloaded operators (PR #81640)

2024-10-26 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti edited https://github.com/llvm/llvm-project/pull/81640 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Update std symbols mapping (PR #113612)

2024-10-26 Thread Vadim D. via cfe-commits
https://github.com/vvd170501 updated https://github.com/llvm/llvm-project/pull/113612 >From 853881983faeeb5b7e0582d3e94037c12df12c7c Mon Sep 17 00:00:00 2001 From: vvd170501 <36827317+vvd170...@users.noreply.github.com> Date: Sat, 26 Oct 2024 00:17:26 +0300 Subject: [PATCH 1/4] Fix variant parsi

[clang] [llvm] [RISCV]Add svvptc extension (PR #113758)

2024-10-26 Thread via cfe-commits
https://github.com/dong-miao updated https://github.com/llvm/llvm-project/pull/113758 >From 6424bebfcf16ef9694d7406b0298045da2d426bf Mon Sep 17 00:00:00 2001 From: dong-miao <601183...@qq.com> Date: Sat, 26 Oct 2024 06:49:04 + Subject: [PATCH 1/2] [RISCV]Add svvptc extensions --- clang/tes

[clang] Update std symbols mapping (PR #113612)

2024-10-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vadim D. (vvd170501) Changes Fixes #113494 --- Patch is 35.77 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/113612.diff 4 Files Affected: - (modified) clang/lib/Tooling/Inclusions/Stdlib/St

[clang] Update std symbols mapping (PR #113612)

2024-10-26 Thread Vadim D. via cfe-commits
@@ -352,20 +383,23 @@ SYMBOL(get, std::, /*no headers*/) // providing the type. SYMBOL(make_error_code, std::, /*no headers*/) SYMBOL(make_error_condition, std::, /*no headers*/) +// Similar to std::get, has variants for multiple containers +// (vector, deque, list, etc.) +SYMB

[clang] Update std symbols mapping (PR #113612)

2024-10-26 Thread Vadim D. via cfe-commits
https://github.com/vvd170501 ready_for_review https://github.com/llvm/llvm-project/pull/113612 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Add a type for the named barrier (PR #113614)

2024-10-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-x86_64-debian-fast` running on `gribozavr4` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/10701 Here is the relevant piec

[libcxx] [libcxxabi] [libunwind] [llvm] [runtimes] Probe for -nostdlib++ and -nostdinc++ with the C compiler (PR #108357)

2024-10-26 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: > > Actually this PR is the case of > > https://lab.llvm.org/buildbot/#/builders/164/builds/3908, not #113491 > > Sorry about that. > > Are you able to dig up any of the cmake configure logs from these builds, so > that we can figure out how this ends up breaking things? Becau

[clang] [clang][NFC] Add test for CWG issues about linkage in cross-TU context (PR #113736)

2024-10-26 Thread via cfe-commits
@@ -0,0 +1,548 @@ +// RUN: rm -rf %t +// RUN: mkdir %t +// RUN: split-file --leading-lines %s %t +// RUN: %clang_cc1 -std=c++20 -pedantic-errors -fexceptions -fcxx-exceptions %t/cwg1884_A.cppm -triple x86_64-unknown-unknown -emit-module-interface -o %t/cwg1884_A.pcm +// RUN: %cl

[clang] [clang][NFC] Add test for CWG issues about linkage in cross-TU context (PR #113736)

2024-10-26 Thread via cfe-commits
@@ -0,0 +1,548 @@ +// RUN: rm -rf %t +// RUN: mkdir %t +// RUN: split-file --leading-lines %s %t +// RUN: %clang_cc1 -std=c++20 -pedantic-errors -fexceptions -fcxx-exceptions %t/cwg1884_A.cppm -triple x86_64-unknown-unknown -emit-module-interface -o %t/cwg1884_A.pcm +// RUN: %cl

[clang] [clang][NFC] Add test for CWG issues about linkage in cross-TU context (PR #113736)

2024-10-26 Thread via cfe-commits
@@ -0,0 +1,42 @@ +// RUN: rm -rf %t +// RUN: mkdir %t +// RUN: split-file --leading-lines %s %t +// RUN: %clang_cc1 -std=c++20 -pedantic-errors -fexceptions -fcxx-exceptions %t/cwg279_A.cppm -triple x86_64-unknown-unknown -emit-module-interface -o %t/cwg279_A.pcm +// RUN: %clang

[clang] [clang][NFC] Add test for CWG issues about linkage in cross-TU context (PR #113736)

2024-10-26 Thread via cfe-commits
@@ -0,0 +1,548 @@ +// RUN: rm -rf %t +// RUN: mkdir %t +// RUN: split-file --leading-lines %s %t +// RUN: %clang_cc1 -std=c++20 -pedantic-errors -fexceptions -fcxx-exceptions %t/cwg1884_A.cppm -triple x86_64-unknown-unknown -emit-module-interface -o %t/cwg1884_A.pcm +// RUN: %cl

[clang] [clang][NFC] Add test for CWG issues about linkage in cross-TU context (PR #113736)

2024-10-26 Thread via cfe-commits
@@ -0,0 +1,42 @@ +// RUN: rm -rf %t +// RUN: mkdir %t +// RUN: split-file --leading-lines %s %t +// RUN: %clang_cc1 -std=c++20 -pedantic-errors -fexceptions -fcxx-exceptions %t/cwg279_A.cppm -triple x86_64-unknown-unknown -emit-module-interface -o %t/cwg279_A.pcm +// RUN: %clang

[clang] [llvm] [BPF] Add load-acquire and store-release instructions under -mcpu=v4 (PR #108636)

2024-10-26 Thread Yingchi Long via cfe-commits
@@ -703,6 +715,39 @@ SDValue BPFTargetLowering::LowerSELECT_CC(SDValue Op, SelectionDAG &DAG) const { return DAG.getNode(BPFISD::SELECT_CC, DL, VTs, Ops); } +SDValue BPFTargetLowering::LowerATOMIC_LOAD(SDValue Op, +SelectionDAG &D

[clang] [llvm] [BPF] Add load-acquire and store-release instructions under -mcpu=v4 (PR #108636)

2024-10-26 Thread Yingchi Long via cfe-commits
@@ -0,0 +1,106 @@ +; RUN: llc < %s -march=bpfel -mcpu=v4 -verify-machineinstrs -show-mc-encoding \ +; RUN: | FileCheck -check-prefixes=CHECK-LE %s +; RUN: llc < %s -march=bpfeb -mcpu=v4 -verify-machineinstrs -show-mc-encoding \ +; RUN: | FileCheck -check-prefixes=CHECK-BE %s +

[clang] [llvm] [BPF] Add load-acquire and store-release instructions under -mcpu=v4 (PR #108636)

2024-10-26 Thread Matt Arsenault via cfe-commits
@@ -703,6 +715,39 @@ SDValue BPFTargetLowering::LowerSELECT_CC(SDValue Op, SelectionDAG &DAG) const { return DAG.getNode(BPFISD::SELECT_CC, DL, VTs, Ops); } +SDValue BPFTargetLowering::LowerATOMIC_LOAD(SDValue Op, +SelectionDAG &D

[clang] [llvm] [BPF] Add load-acquire and store-release instructions under -mcpu=v4 (PR #108636)

2024-10-26 Thread Yingchi Long via cfe-commits
@@ -0,0 +1,106 @@ +; RUN: llc < %s -march=bpfel -mcpu=v4 -verify-machineinstrs -show-mc-encoding \ +; RUN: | FileCheck -check-prefixes=CHECK-LE %s +; RUN: llc < %s -march=bpfeb -mcpu=v4 -verify-machineinstrs -show-mc-encoding \ +; RUN: | FileCheck -check-prefixes=CHECK-BE %s +

[clang] [llvm] Reland "[LLVM] Add IRNormalizer Pass" (PR #113780)

2024-10-26 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 74e1554d7b4013a975cf5fb8df64a6419bb14a45 9a8172cd4168e4b9b45a9f973ab34aa1266816f8 --e

[clang] [Clang] prevent assertion failure from an invalid template instantiation pattern when adding instantiated params to the scope in friend functions with defaulted params (PR #113777)

2024-10-26 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk created https://github.com/llvm/llvm-project/pull/113777 Fixes #113324 >From 78019b9d9dc138f38bb5b32576b621351ae6427c Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sun, 27 Oct 2024 01:07:57 +0300 Subject: [PATCH] [Clang] prevent assertion failure from an invali

[clang] [Clang] prevent assertion failure from an invalid template instantiation pattern when adding instantiated params to the scope in friend functions with defaulted params (PR #113777)

2024-10-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Oleksandr T. (a-tarasyuk) Changes Fixes #113324 --- Full diff: https://github.com/llvm/llvm-project/pull/113777.diff 3 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+2) - (modified) clang/lib/Sema/SemaTemplateInstantiate.cp

[clang] [llvm] [BPF] Add load-acquire and store-release instructions under -mcpu=v4 (PR #108636)

2024-10-26 Thread Peilin Ye via cfe-commits
@@ -0,0 +1,106 @@ +; RUN: llc < %s -march=bpfel -mcpu=v4 -verify-machineinstrs -show-mc-encoding \ +; RUN: | FileCheck -check-prefixes=CHECK-LE %s +; RUN: llc < %s -march=bpfeb -mcpu=v4 -verify-machineinstrs -show-mc-encoding \ +; RUN: | FileCheck -check-prefixes=CHECK-BE %s +

[clang] [Clang] prevent setting default lexical access specifier for missing primary declarations (PR #112424)

2024-10-26 Thread Oleksandr T. via cfe-commits
@@ -39,7 +39,8 @@ bool Sema::SetMemberAccessSpecifier(NamedDecl *MemberDecl, AccessSpecifier LexicalAS) { if (!PrevMemberDecl) { // Use the lexical access specifier. -MemberDecl->setAccess(LexicalAS); a-tarasyuk wro

[clang] [llvm] [BPF] Add load-acquire and store-release instructions under -mcpu=v4 (PR #108636)

2024-10-26 Thread Peilin Ye via cfe-commits
@@ -703,6 +715,39 @@ SDValue BPFTargetLowering::LowerSELECT_CC(SDValue Op, SelectionDAG &DAG) const { return DAG.getNode(BPFISD::SELECT_CC, DL, VTs, Ops); } +SDValue BPFTargetLowering::LowerATOMIC_LOAD(SDValue Op, +SelectionDAG &D

[clang] [llvm] [BPF] Add load-acquire and store-release instructions under -mcpu=v4 (PR #108636)

2024-10-26 Thread Peilin Ye via cfe-commits
@@ -703,6 +715,39 @@ SDValue BPFTargetLowering::LowerSELECT_CC(SDValue Op, SelectionDAG &DAG) const { return DAG.getNode(BPFISD::SELECT_CC, DL, VTs, Ops); } +SDValue BPFTargetLowering::LowerATOMIC_LOAD(SDValue Op, +SelectionDAG &D

[clang] [llvm] Adding splitdouble HLSL function (PR #109331)

2024-10-26 Thread Justin Bogner via cfe-commits
https://github.com/bogner edited https://github.com/llvm/llvm-project/pull/109331 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Adding splitdouble HLSL function (PR #109331)

2024-10-26 Thread Justin Bogner via cfe-commits
https://github.com/bogner approved this pull request. A few last minor nitpicks, but this LGTM! https://github.com/llvm/llvm-project/pull/109331 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[clang] [llvm] Adding splitdouble HLSL function (PR #109331)

2024-10-26 Thread Justin Bogner via cfe-commits
@@ -5897,7 +5897,7 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo, // Emit any call-associated writebacks immediately. Arguably this // should happen after any return-value munging. if (CallArgs.hasWritebacks()) -emitWritebacks(*this, CallArgs);

[clang] [llvm] Adding splitdouble HLSL function (PR #109331)

2024-10-26 Thread Justin Bogner via cfe-commits
@@ -5460,9 +5460,8 @@ LValue CodeGenFunction::EmitOpaqueValueLValue(const OpaqueValueExpr *e) { return getOrCreateOpaqueLValueMapping(e); } -void CodeGenFunction::EmitHLSLOutArgExpr(const HLSLOutArgExpr *E, - CallArgList &Args, QualTy

[clang] [llvm] Adding splitdouble HLSL function (PR #109331)

2024-10-26 Thread Justin Bogner via cfe-commits
@@ -0,0 +1,77 @@ +; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5 bogner wrote: Are these assertions actually autogenerated? They look like they've been written by hand to me (which is fine, but if that's the case

[clang] [clang][NFC] Add test for CWG issues about linkage in cross-TU context (PR #113736)

2024-10-26 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/113736 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix a crash from element region construction during `ArrayInitLoopExpr` analysis (PR #113570)

2024-10-26 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. https://github.com/llvm/llvm-project/pull/113570 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix a crash from element region construction during `ArrayInitLoopExpr` analysis (PR #113570)

2024-10-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang` at step 10 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/7599 Here is the r

[clang] [compiler-rt] [flang] [libc] [libcxx] [lld] [lldb] [llvm] [mlir] Optimize __insert_with_sentinel Function in std::vector (PR #113727)

2024-10-26 Thread Peng Liu via cfe-commits
Martin =?utf-8?q?Storsjö?= ,Thomas Fransham ,davidtrevelyan , Andrzej =?utf-8?q?Warzyński?= ,Louis Dionne ,Alex =?utf-8?q?Rønne?= Petersen ,lntue ,Shih-Po Hung ,Peng Liu ,Peng Liu Message-ID: In-Reply-To: https://github.com/winner245 closed https://github.com/llvm/llvm-project/pull/113727

[clang] [sema] enhance error handling for compound stmt body in `StmtExpr` (PR #113760)

2024-10-26 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/113760 Mark the whole StmtExpr invalid when the last statement in compound statement is invalid. Because the last statement need to do copy initialization, it causes subsequent errors to simply ignore last invalid

[clang] [analyzer] Fix a crash from element region construction during `ArrayInitLoopExpr` analysis (PR #113570)

2024-10-26 Thread via cfe-commits
isuckatcs wrote: @steakhal I wanted to wait for the pipeline to pass before merging. Shouldn't we only merge patches with a green pipeline? https://github.com/llvm/llvm-project/pull/113570 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:

[clang] [compiler-rt] [flang] [libc] [libcxx] [lld] [lldb] [llvm] [mlir] Optimize __insert_with_sentinel Function in std::vector (PR #113727)

2024-10-26 Thread via cfe-commits
Martin =?utf-8?q?Storsjö?= ,Thomas Fransham ,davidtrevelyan , Andrzej =?utf-8?q?Warzyński?= ,Louis Dionne ,Alex =?utf-8?q?Rønne?= Petersen ,lntue ,Shih-Po Hung ,Peng Liu ,Peng Liu Message-ID: In-Reply-To: github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found iss

[clang] a917ae0 - [analyzer] Fix a crash from element region construction during `ArrayInitLoopExpr` analysis (#113570)

2024-10-26 Thread via cfe-commits
Author: isuckatcs Date: 2024-10-26T17:41:55+02:00 New Revision: a917ae0b4fc0d792ee0e2c512c4ea539f98e1204 URL: https://github.com/llvm/llvm-project/commit/a917ae0b4fc0d792ee0e2c512c4ea539f98e1204 DIFF: https://github.com/llvm/llvm-project/commit/a917ae0b4fc0d792ee0e2c512c4ea539f98e1204.diff LOG

[clang] [analyzer] Fix a crash from element region construction during `ArrayInitLoopExpr` analysis (PR #113570)

2024-10-26 Thread Balazs Benics via cfe-commits
https://github.com/steakhal closed https://github.com/llvm/llvm-project/pull/113570 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix a crash from element region construction during `ArrayInitLoopExpr` analysis (PR #113570)

2024-10-26 Thread Balazs Benics via cfe-commits
steakhal wrote: > @steakhal I wanted to wait for the pipeline to pass before merging. Shouldn't > we only merge patches with a green pipeline? The full pipeline will never be green. Downstream I wouldn't do this, but here I think we did what is reasonable. Waited enough. We can always revert w

[clang] [compiler-rt] [llvm] [rtsan][llvm][NFC] Rename sanitize_realtime_unsafe attr to sanitize_realtime_blocking (PR #113155)

2024-10-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-hwasan` running on `sanitizer-buildbot12` while building `clang,compiler-rt,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/55/builds/3099

[clang] [Clang] Add __ugly__ spelling for the msvc attribute scope (PR #113765)

2024-10-26 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff d906ac52ab8ee46090a6696f4ffb34c40ee6abb7 68f3617027fa09b531b5e3eaea6a025c6783a258 --e

[clang] [llvm] [HLSL][SPIRV] Added clamp intrinsic (PR #113394)

2024-10-26 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/113394 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Enable sorting includes although formatting disabled (PR #113771)

2024-10-26 Thread Martin Lambertsen via cfe-commits
https://github.com/marlamb created https://github.com/llvm/llvm-project/pull/113771 Projects exist, which do not want to use an automated formatting, but could benefit from sorting the includes, especially to include the main headers first in order to improve the self-consistency of headers. Wh

[clang] [clang-format] Enable sorting includes although formatting disabled (PR #113771)

2024-10-26 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [llvm] [HLSL][SPIRV] Added clamp intrinsic (PR #113394)

2024-10-26 Thread Farzon Lotfi via cfe-commits
@@ -83,12 +83,210 @@ entry: ret i64 %0 } -declare half @llvm.dx.clamp.f16(half, half, half) -declare float @llvm.dx.clamp.f32(float, float, float) -declare double @llvm.dx.clamp.f64(double, double, double) -declare i16 @llvm.dx.clamp.i16(i16, i16, i16) -declare i32 @llvm.dx.

[clang] [clang-format] Enable sorting includes although formatting disabled (PR #113771)

2024-10-26 Thread Martin Lambertsen via cfe-commits
marlamb wrote: The PR as of now is far from being complete, but before putting the effort in adding tests/documentation etc. it would be great to have some feedback, if the feature is seen worth being offered and if the proposal looks roughly acceptable. I have to admit I am not really happy a

[clang] [clang][NFC] Add test for CWG issues about linkage in cross-TU context (PR #113736)

2024-10-26 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/113736 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Update std symbols mapping (PR #113612)

2024-10-26 Thread Vadim D. via cfe-commits
https://github.com/vvd170501 updated https://github.com/llvm/llvm-project/pull/113612 >From 489d258577552cde839f0949a1ce24d4b1f72103 Mon Sep 17 00:00:00 2001 From: vvd170501 <36827317+vvd170...@users.noreply.github.com> Date: Sat, 26 Oct 2024 00:17:26 +0300 Subject: [PATCH 1/4] Fix variant parsi

[clang] [Clang][RISCV] Support -fcf-protection=return for RISC-V (PR #112477)

2024-10-26 Thread Jesse Huang via cfe-commits
https://github.com/jaidTw updated https://github.com/llvm/llvm-project/pull/112477 >From fe4a28fb691b69d9af384f1dc2f0667761adef44 Mon Sep 17 00:00:00 2001 From: Jesse Huang Date: Sun, 13 Oct 2024 15:11:06 +0800 Subject: [PATCH 1/6] [Clang][RISCV] Support -fcf-protection=return for RISC-V ---

[clang] [llvm] [AMDGPU] Add a type for the named barrier (PR #113614)

2024-10-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/11107 Here is the relevant piec

[clang] Update std symbols mapping (PR #113612)

2024-10-26 Thread Vadim D. via cfe-commits
@@ -598,7 +598,6 @@ SYMBOL(aligned_union_t, std::, ) SYMBOL(alignment_of, std::, ) SYMBOL(alignment_of_v, std::, ) SYMBOL(all_of, std::, ) -SYMBOL(allocate_at_least, std::, ) vvd170501 wrote: Was replaced with `std::allocator_traits<>::allocate_at_least` in [

[clang] [llvm] [RISCV]Add svvptc extension (PR #113758)

2024-10-26 Thread via cfe-commits
https://github.com/dong-miao updated https://github.com/llvm/llvm-project/pull/113758 >From 6424bebfcf16ef9694d7406b0298045da2d426bf Mon Sep 17 00:00:00 2001 From: dong-miao <601183...@qq.com> Date: Sat, 26 Oct 2024 06:49:04 + Subject: [PATCH 1/4] [RISCV]Add svvptc extensions --- clang/tes

[clang] 4102625 - [rtsan][llvm][NFC] Rename sanitize_realtime_unsafe attr to sanitize_realtime_blocking (#113155)

2024-10-26 Thread via cfe-commits
Author: davidtrevelyan Date: 2024-10-26T13:06:11+01:00 New Revision: 4102625380823e58d7b13f01b5bd979a29bce19e URL: https://github.com/llvm/llvm-project/commit/4102625380823e58d7b13f01b5bd979a29bce19e DIFF: https://github.com/llvm/llvm-project/commit/4102625380823e58d7b13f01b5bd979a29bce19e.diff

[clang] [compiler-rt] [llvm] [rtsan][llvm][NFC] Rename sanitize_realtime_unsafe attr to sanitize_realtime_blocking (PR #113155)

2024-10-26 Thread via cfe-commits
https://github.com/davidtrevelyan closed https://github.com/llvm/llvm-project/pull/113155 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] add MaxSingleLinesInBracedList style option (PR #112482)

2024-10-26 Thread Gedare Bloom via cfe-commits
gedare wrote: > > There will be bugs if/when people use this option with small values for the > > limit, as it will interact weirdly with both the braced list initializer > > formatting rules, and also with the `AvoidBinPacking` logic of the > > continuation indenter. > > Can you give some ex

[clang] [clang-format] add MaxSingleLinesInBracedList style option (PR #112482)

2024-10-26 Thread Gedare Bloom via cfe-commits
gedare wrote: So it turns out that this buggy behavior I'm seeing is also present in unmodified clang-format when the first item in the list is longer than the rest of the items. For example: ``` echo "vector x{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,

[clang] [clang][NFC] Add test for CWG issues about linkage in cross-TU context (PR #113736)

2024-10-26 Thread Vlad Serebrennikov via cfe-commits
@@ -0,0 +1,548 @@ +// RUN: rm -rf %t +// RUN: mkdir %t +// RUN: split-file --leading-lines %s %t +// RUN: %clang_cc1 -std=c++20 -pedantic-errors -fexceptions -fcxx-exceptions %t/cwg1884_A.cppm -triple x86_64-unknown-unknown -emit-module-interface -o %t/cwg1884_A.pcm +// RUN: %cl

[clang] [Clang] Add __ugly__ spelling for the msvc attribute scope (PR #113765)

2024-10-26 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 created https://github.com/llvm/llvm-project/pull/113765 This is required to avoid macro clashing when using attributes like `[[msvc::no_unique_address]]`. This patch also refactor the logic for attribute scope __uglification__ into a single place to make it easi

[clang] [clang][NFC] Add test for CWG issues about linkage in cross-TU context (PR #113736)

2024-10-26 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/113736 >From b23ce76d3db79eab6433bef1bd3fc9d26bcb3309 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Fri, 25 Oct 2024 23:05:06 +0300 Subject: [PATCH 1/2] [clang][NFC] Add test for CWG issues about linkage in

[clang] [clang][NFC] Add test for CWG issues about linkage in cross-TU context (PR #113736)

2024-10-26 Thread Vlad Serebrennikov via cfe-commits
@@ -0,0 +1,42 @@ +// RUN: rm -rf %t +// RUN: mkdir %t +// RUN: split-file --leading-lines %s %t +// RUN: %clang_cc1 -std=c++20 -pedantic-errors -fexceptions -fcxx-exceptions %t/cwg279_A.cppm -triple x86_64-unknown-unknown -emit-module-interface -o %t/cwg279_A.pcm +// RUN: %clang

[clang] Add clang/docs/FunctionEffectAnalysis.rst. (PR #109855)

2024-10-26 Thread Doug Wyatt via cfe-commits
dougsonos wrote: Ping https://github.com/llvm/llvm-project/pull/109855 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Add test for CWG issues about linkage in cross-TU context (PR #113736)

2024-10-26 Thread Vlad Serebrennikov via cfe-commits
@@ -0,0 +1,42 @@ +// RUN: rm -rf %t +// RUN: mkdir %t +// RUN: split-file --leading-lines %s %t +// RUN: %clang_cc1 -std=c++20 -pedantic-errors -fexceptions -fcxx-exceptions %t/cwg279_A.cppm -triple x86_64-unknown-unknown -emit-module-interface -o %t/cwg279_A.pcm +// RUN: %clang

[clang-tools-extra] [clangd] fix extract-to-function for overloaded operators (PR #81640)

2024-10-26 Thread via cfe-commits
BenBlumer wrote: I'm a bit of a outsider to the LLVM project, but I'd say a fix to a broken, already shipped, feature now is better than a general fix down the line. On Sat, Oct 26, 2024, 3:23 AM Julian Schmidt ***@***.***> wrote: > ***@***. commented on this pull request. > > CC @HighComma

[clang-tools-extra] [clangd] fix extract-to-function for overloaded operators (PR #81640)

2024-10-26 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti updated https://github.com/llvm/llvm-project/pull/81640 >From 1796e5d2c44bae890c13b2af3fc7e4ec36e716dd Mon Sep 17 00:00:00 2001 From: Julian Schmidt Date: Tue, 13 Feb 2024 18:59:16 +0100 Subject: [PATCH 1/3] [clangd] fix extract-to-function for overloaded operators

[clang] [clang] Prefer StringRef::substr(0, N) to slice(0, N) (NFC) (PR #113784)

2024-10-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/113784 I'm planning to migrate StringRef to std::string_view eventually. Since std::string_view does not have slice, this patch migrates slice(0, N) to substr(0, N). >From aafa1a3f55712b6f278190bc87bef414a04d2b

[clang] [clang] Prefer StringRef::substr(0, N) to slice(0, N) (NFC) (PR #113784)

2024-10-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes I'm planning to migrate StringRef to std::string_view eventually. Since std::string_view does not have slice, this patch migrates slice(0, N) to substr(0, N). --- Ful

[clang] [clang][bytecode][NFC] Make CheckVolatile static (PR #113785)

2024-10-26 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/113785 None >From ff68ca5f76a9c005b6a3016c041ad8fb83f47602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 27 Oct 2024 04:09:49 +0100 Subject: [PATCH] [clang][bytecode][NFC] Make CheckVolatile

[clang] [clang][bytecode][NFC] Only do CheckConstant checks for global pointers (PR #113786)

2024-10-26 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/113786 We can check isStatic() early here and save ourselves some work. >From e759b44c22bcdd374550929c0c673d414f30e4ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 27 Oct 2024 04:08:52 +010

[clang] [clang][bytecode][NFC] Make CheckVolatile static (PR #113785)

2024-10-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/113785.diff 1 Files Affected: - (modified) clang/lib/AST/ByteCode/Interp.cpp (+2-2) ``diff diff --git a/clang/lib/AST/ByteCode/Interp.cp

[clang] [clang][bytecode][NFC] Only do CheckConstant checks for global pointers (PR #113786)

2024-10-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes We can check isStatic() early here and save ourselves some work. --- Full diff: https://github.com/llvm/llvm-project/pull/113786.diff 1 Files Affected: - (modified) clang/lib/AST/ByteCode/Interp.cpp (+1-1)

  1   2   >