[clang] [Clang][HIP] Reapply: Deprecate the AMDGCN_WAVEFRONT_SIZE macros (PR #115507)

2024-11-10 Thread Fabian Ritter via cfe-commits
https://github.com/ritter-x2a closed https://github.com/llvm/llvm-project/pull/115507 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d893c5a - [Clang][HIP] Reapply: Deprecate the AMDGCN_WAVEFRONT_SIZE macros (#115507)

2024-11-10 Thread via cfe-commits
Author: Fabian Ritter Date: 2024-11-11T08:55:46+01:00 New Revision: d893c5ad3560af5cd44d79f764ef879aefc671d7 URL: https://github.com/llvm/llvm-project/commit/d893c5ad3560af5cd44d79f764ef879aefc671d7 DIFF: https://github.com/llvm/llvm-project/commit/d893c5ad3560af5cd44d79f764ef879aefc671d7.diff

[clang] [flang] [Flang][LoongArch] Emit target features for Loongarch64. (PR #114735)

2024-11-10 Thread Zhaoxin Yang via cfe-commits
ylzsx wrote: Ping https://github.com/llvm/llvm-project/pull/114735 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix for codegen Crash in Clang when using locator omp_all_memory with depobj construct (PR #114221)

2024-11-10 Thread CHANDRA GHALE via cfe-commits
https://github.com/chandraghale updated https://github.com/llvm/llvm-project/pull/114221 >From 4e6d8c1edb73fe08659519d8798cab162875ebc0 Mon Sep 17 00:00:00 2001 From: Chandra Ghale Date: Wed, 30 Oct 2024 07:18:06 -0500 Subject: [PATCH 1/4] Fix for codegen Crash in Clang when using locator omp_

[clang] Fix for OpenMP offloading compilation error with GNU++20 option when using complex header (PR #115306)

2024-11-10 Thread CHANDRA GHALE via cfe-commits
https://github.com/chandraghale updated https://github.com/llvm/llvm-project/pull/115306 >From 792ccf7ef364f3119b920121dd68285eb4ca1e41 Mon Sep 17 00:00:00 2001 From: Chandra Ghale Date: Thu, 7 Nov 2024 05:54:48 -0600 Subject: [PATCH] Fix for OpenMP offloading compilation with GNU++20 option w

[clang] [llvm] [CVP] Add `samesign` flag to `icmp` (PR #115642)

2024-11-10 Thread Antonio Frighetto via cfe-commits
https://github.com/antoniofrighetto edited https://github.com/llvm/llvm-project/pull/115642 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [CVP] #114820 add 'samesign' for 'icmp' (PR #115642)

2024-11-10 Thread via cfe-commits
github-actions[bot] wrote: @rhanqtl Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build,

[clang] b7db403 - [CVP] Add `samesign` flag to `icmp` (#115642)

2024-11-10 Thread via cfe-commits
Author: Han Qi Date: 2024-11-11T08:35:14+01:00 New Revision: b7db403e701029c801fd990dceeb219de9fb800c URL: https://github.com/llvm/llvm-project/commit/b7db403e701029c801fd990dceeb219de9fb800c DIFF: https://github.com/llvm/llvm-project/commit/b7db403e701029c801fd990dceeb219de9fb800c.diff LOG: [

[clang] [llvm] [CVP] #114820 add 'samesign' for 'icmp' (PR #115642)

2024-11-10 Thread Antonio Frighetto via cfe-commits
https://github.com/antoniofrighetto closed https://github.com/llvm/llvm-project/pull/115642 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [CVP] #114820 add 'samesign' for 'icmp' (PR #115642)

2024-11-10 Thread Antonio Frighetto via cfe-commits
https://github.com/antoniofrighetto approved this pull request. https://github.com/llvm/llvm-project/pull/115642 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AMX] Support AMX-TF32 (PR #115625)

2024-11-10 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang closed https://github.com/llvm/llvm-project/pull/115625 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] eddb79d - [X86][AMX] Support AMX-TF32 (#115625)

2024-11-10 Thread via cfe-commits
Author: Feng Zou Date: 2024-11-11T15:24:18+08:00 New Revision: eddb79d56dd50bc6832c7d906ab4a0df2ae1d846 URL: https://github.com/llvm/llvm-project/commit/eddb79d56dd50bc6832c7d906ab4a0df2ae1d846 DIFF: https://github.com/llvm/llvm-project/commit/eddb79d56dd50bc6832c7d906ab4a0df2ae1d846.diff LOG:

[clang] [llvm] [X86][AMX] Support AMX-TF32 (PR #115625)

2024-11-10 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/115625 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [emacs][clang-format] Add elisp API for clang-format on git diffs (PR #112792)

2024-11-10 Thread via cfe-commits
@@ -146,18 +146,121 @@ is a zero-based file offset, assuming ‘utf-8-unix’ coding." (lambda (byte &optional _quality _coding-system) (byte-to-position (1+ byte) -;;;###autoload -(defun clang-format-region (start end &optional style assume-file-name) - "Use clang

[clang] [emacs][clang-format] Add elisp API for clang-format on git diffs (PR #112792)

2024-11-10 Thread via cfe-commits
@@ -146,18 +146,104 @@ is a zero-based file offset, assuming ‘utf-8-unix’ coding." (lambda (byte &optional _quality _coding-system) (byte-to-position (1+ byte) -;;;###autoload -(defun clang-format-region (start end &optional style assume-file-name) - "Use clang

[clang] [emacs][clang-format] Add elisp API for clang-format on git diffs (PR #112792)

2024-11-10 Thread via cfe-commits
https://github.com/goldsteinn updated https://github.com/llvm/llvm-project/pull/112792 >From 802764e879862541e205ba1a070824b71d2fef9a Mon Sep 17 00:00:00 2001 From: Noah Goldstein Date: Thu, 17 Oct 2024 17:31:24 -0500 Subject: [PATCH 01/14] [emacs][clang-format] Add elisp API for clang-format o

[clang] [llvm] [X86][AMX] Support AMX-TF32 (PR #115625)

2024-11-10 Thread Feng Zou via cfe-commits
@@ -6101,6 +6101,25 @@ let TargetPrefix = "x86" in { Intrinsic<[llvm_v16i32_ty], [llvm_i16_ty, llvm_i16_ty, llvm_x86amx_ty, llvm_i32_ty], []>; + + def int_x86_tmmultf32ps : ClangBuiltin<"__builtin_ia32_tmmultf32ps"

[clang] [llvm] [X86][AMX] Support AMX-TF32 (PR #115625)

2024-11-10 Thread Feng Zou via cfe-commits
@@ -660,6 +660,10 @@ _storebe_i64(void * __P, long long __D) { #include #endif +#if !defined(__SCE__) || __has_feature(modules) || defined(__AMX_TF32__) +#include +#endif + fzou1 wrote: Added. https://github.com/llvm/llvm-project/pull/115625 __

[clang] [llvm] [X86][AMX] Support AMX-TF32 (PR #115625)

2024-11-10 Thread Feng Zou via cfe-commits
@@ -151,6 +151,7 @@ set(x86_files amxfp16intrin.h amxfp8intrin.h amxintrin.h + amxtf32intrin.h fzou1 wrote: Sorry. Forgot to add it. Done. Thanks. https://github.com/llvm/llvm-project/pull/115625 ___ cfe-comm

[clang] [clang] Add steakhal to the Clang Static Analyzer maintainers (PR #114991)

2024-11-10 Thread Balazs Benics via cfe-commits
steakhal wrote: @haoNoQ What is your opinion? https://github.com/llvm/llvm-project/pull/114991 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [emacs][clang-format] Add elisp API for clang-format on git diffs (PR #112792)

2024-11-10 Thread via cfe-commits
@@ -146,18 +146,121 @@ is a zero-based file offset, assuming ‘utf-8-unix’ coding." (lambda (byte &optional _quality _coding-system) (byte-to-position (1+ byte) -;;;###autoload -(defun clang-format-region (start end &optional style assume-file-name) - "Use clang

[clang] [llvm] [X86][AMX] Support AMX-TF32 (PR #115625)

2024-11-10 Thread Feng Zou via cfe-commits
https://github.com/fzou1 updated https://github.com/llvm/llvm-project/pull/115625 >From b1d9799b99b45b5af2b63868c4c3b139dbf9378c Mon Sep 17 00:00:00 2001 From: Feng Zou Date: Sat, 26 Oct 2024 18:44:32 +0800 Subject: [PATCH 1/4] [X86][AMX] Support AMX-TF32 Ref.: https://cdrdv2.intel.com/v1/dl/g

[clang] [llvm] [RISCV] Add TT-Ascalon-d8 processor (PR #115100)

2024-11-10 Thread Pengcheng Wang via cfe-commits
@@ -104,6 +104,62 @@ // RUN: %clang --target=riscv32 -### -c %s 2>&1 -mtune=syntacore-scr1-max | FileCheck -check-prefix=MTUNE-SYNTACORE-SCR1-MAX %s // MTUNE-SYNTACORE-SCR1-MAX: "-tune-cpu" "syntacore-scr1-max" +// RUN: %clang --target=riscv64 -### -c %s 2>&1 -mtune=tt-ascalo

[clang] [llvm] [RISCV] Add TT-Ascalon-d8 processor (PR #115100)

2024-11-10 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/115100 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add TT-Ascalon-d8 processor (PR #115100)

2024-11-10 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp edited https://github.com/llvm/llvm-project/pull/115100 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] seq_cst is allowed in Flush since OpenMP 5.1. (PR #114072)

2024-11-10 Thread via cfe-commits
ShashwathiNavada wrote: > Thanks for this patch. Could you update the title/summary of the patch to say > that seq_cst is allowed in Flush since OpenMP 5.1. Also, might make sense to > say why no other changes in Lowering to IR is required. > > Could you add a test in flang/test/Lower/OpenMP/f

[clang-tools-extra] [clangd] Add padding to struct hover information (PR #115665)

2024-11-10 Thread Kevin Kremer via cfe-commits
https://github.com/Xoltus updated https://github.com/llvm/llvm-project/pull/115665 >From 3b64d9d82047159fbd7cb4662d1b666c4431be9c Mon Sep 17 00:00:00 2001 From: Kevin Kremer Date: Sun, 10 Nov 2024 16:00:00 + Subject: [PATCH 1/2] [clangd] Add padding to struct hover information HI.Padding i

[clang] [TableGen] Use heterogenous lookups with std::map (NFC) (PR #115682)

2024-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Heterogenous lookups allow us to call find with StringRef, avoiding a temporary heap allocation of std::string. --- Full diff: https://github.com/llvm/llvm-project/pull/115682.diff 1 Files Affected:

[clang] [TableGen] Use heterogenous lookups with std::map (NFC) (PR #115682)

2024-11-10 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/115682 Heterogenous lookups allow us to call find with StringRef, avoiding a temporary heap allocation of std::string. >From 2c8d9a85e3e959f544d3e1bf474376acf31648ca Mon Sep 17 00:00:00 2001 From: Kazu Hirata

[clang] [C++20] [Modules] Convert '-fexperimental-modules-reduced-bmi' to '-fmodules-reduced-bmi' (PR #114382)

2024-11-10 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > I think the overall plan is fine, thanks for working on it! > > I think the idea of issuing a warning in order to get users to opt-in to a > flag is somewhat novel. Have I missed discussion about this approach, versus > simply changing the default? I originally mentioned i

[clang] [C++20] [Modules] Convert '-fexperimental-modules-reduced-bmi' to '-fmodules-reduced-bmi' (PR #114382)

2024-11-10 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/114382 >From f33e3bcd7d31742a37059a9d75fa58aa4d9ff36d Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Thu, 31 Oct 2024 17:27:00 +0800 Subject: [PATCH 1/4] [C++20] [Modules] Convert '-fexperimental-modules-reduced-b

[clang-tools-extra] [clangd] Add padding to struct hover information (PR #115665)

2024-11-10 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 028ea71fdda0c02cd11421cd1d26bec6f378666e 3b64d9d82047159fbd7cb4662d1b666c4431be9c --e

[clang] e375c0f - [RISCV][Clang] Add RequiredFeatures to zvfh intrinsics (#115436)

2024-11-10 Thread via cfe-commits
Author: Jim Lin Date: 2024-11-11T09:50:38+08:00 New Revision: e375c0f7d0c8f4c49ff2a430da0c3a7d058e9cf3 URL: https://github.com/llvm/llvm-project/commit/e375c0f7d0c8f4c49ff2a430da0c3a7d058e9cf3 DIFF: https://github.com/llvm/llvm-project/commit/e375c0f7d0c8f4c49ff2a430da0c3a7d058e9cf3.diff LOG:

[clang] [RISCV][Clang] Add RequiredFeatures to zvfh intrinsics (PR #115436)

2024-11-10 Thread Jim Lin via cfe-commits
https://github.com/tclin914 closed https://github.com/llvm/llvm-project/pull/115436 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] SemaFunctionEffects: When verifying a function, ignore any conditional noexcept expression. (PR #115342)

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

[clang] 3e30b36 - [Clang] SemaFunctionEffects: When verifying a function, ignore any conditional noexcept expression. (#115342)

2024-11-10 Thread via cfe-commits
Author: Doug Wyatt Date: 2024-11-10T17:02:50-08:00 New Revision: 3e30b365c1ec95f0cfb62c3cfdf4f6f1c824c0bd URL: https://github.com/llvm/llvm-project/commit/3e30b365c1ec95f0cfb62c3cfdf4f6f1c824c0bd DIFF: https://github.com/llvm/llvm-project/commit/3e30b365c1ec95f0cfb62c3cfdf4f6f1c824c0bd.diff LO

[clang] [flang] [clang][flang] Support -time in both clang and flang (PR #109165)

2024-11-10 Thread Tarun Prabhu via cfe-commits
tarunprabhu wrote: Gentle ping, @MaskRay https://github.com/llvm/llvm-project/pull/109165 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [emacs][clang-format] Add elisp API for clang-format on git diffs (PR #112792)

2024-11-10 Thread Campbell Barton via cfe-commits
@@ -146,18 +146,104 @@ is a zero-based file offset, assuming ‘utf-8-unix’ coding." (lambda (byte &optional _quality _coding-system) (byte-to-position (1+ byte) -;;;###autoload -(defun clang-format-region (start end &optional style assume-file-name) - "Use clang

[clang] [Clang] Fix name lookup for dependent bases (PR #114978)

2024-11-10 Thread Vladislav Belov via cfe-commits
vbe-sc wrote: @sdkrystian, could you please take a look? https://github.com/llvm/llvm-project/pull/114978 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Introduce a new generic target `gfx9-4-generic` (PR #115190)

2024-11-10 Thread Shilei Tian via cfe-commits
shiltian wrote: > Test that the unsupported clang builtins are errors? Done. https://github.com/llvm/llvm-project/pull/115190 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Introduce a new generic target `gfx9-4-generic` (PR #115190)

2024-11-10 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/115190 >From ee359e381d66b21f0b60974ee87f1a3443cb2ab9 Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Wed, 6 Nov 2024 12:49:45 -0500 Subject: [PATCH] [AMDGPU] Introduce a new generic target `gfx9-4-generic` --- cla

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [libunwind][libcxx][libcxxabi][compiler-rt-builtins] Fix Exception Handling build for wasm (PR #79667)

2024-11-10 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/79667 >From 2b526821d4e70f3ea83f95d25f804d9fbcf82612 Mon Sep 17 00:00:00 2001 From: cqwrteur <100043421+trcrsi...@users.noreply.github.com> Date: Sat, 1 Jun 2024 02:55:50 -0400 Subject: [PATCH] [libunwind][libcxx][lib

[clang] [llvm] [AMDGPU] Introduce a new generic target `gfx9-4-generic` (PR #115190)

2024-11-10 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/115190 >From 629e974f35e5c7cd733458305c14b487deea67da Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Wed, 6 Nov 2024 12:49:45 -0500 Subject: [PATCH] [AMDGPU] Introduce a new generic target `gfx9-4-generic` --- cla

[clang] [llvm] [AMDGPU] Introduce a new generic target `gfx9-4-generic` (PR #115190)

2024-11-10 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/115190 >From e58b5c48036e9fd8bd1adcb1d3f73331e19dd53d Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Wed, 6 Nov 2024 12:49:45 -0500 Subject: [PATCH] [AMDGPU] Introduce a new generic target `gfx9-4-generic` --- cla

[clang] [webkit.UncountedLambdaCapturesChecker] Ignore trivial functions and [[clang::noescape]]. (PR #114897)

2024-11-10 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/114897 >From d08c1b364c392aa42b7ef71528a52ab6a7d9c548 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Mon, 4 Nov 2024 16:01:49 -0800 Subject: [PATCH 1/2] [webkit.UncountedLambdaCapturesChecker] Ignore trivial function

[clang] [lldb] [llvm] [AArch64] Reduce +sve2-aes to an alias of +sve-aes+sve2 (PR #114293)

2024-11-10 Thread via cfe-commits
@@ -6,10 +6,10 @@ tbx z0.b, z1.b, z2.b // CHECK: error: instruction requires: sve2 or sme // CHECK-NEXT: tbx z0.b, z1.b, z2.b -.arch_extension sve2-aes -.arch_extension nosve2-aes +.arch_extension sve-aes +.arch_extension nosve-aes SpencerAbson wrote: That's

[clang] [lldb] [llvm] [AArch64] Reduce +sve2-aes to an alias of +sve-aes+sve2 (PR #114293)

2024-11-10 Thread via cfe-commits
@@ -6,10 +6,10 @@ tbx z0.b, z1.b, z2.b // CHECK: error: instruction requires: sve2 or sme // CHECK-NEXT: tbx z0.b, z1.b, z2.b -.arch_extension sve2-aes -.arch_extension nosve2-aes +.arch_extension sve-aes +.arch_extension nosve-aes SpencerAbson wrote: That's

[clang] [lldb] [llvm] [AArch64] Reduce +sve2-aes to an alias of +sve-aes+sve2 (PR #114293)

2024-11-10 Thread via cfe-commits
https://github.com/SpencerAbson deleted https://github.com/llvm/llvm-project/pull/114293 ___ 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-11-10 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-11-10 Thread Julian Schmidt via cfe-commits
@@ -190,6 +190,14 @@ F (extracted();) }]] )cpp"; EXPECT_EQ(apply(CompoundFailInput), "unavailable"); + + ExtraArgs.push_back("-std=c++14"); + // FIXME: Expressions are currently not extracted + EXPECT_EQ(apply(R"cpp( +void sink(int); +

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

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

[clang-tools-extra] [clangd] Add padding to struct hover information (PR #115665)

2024-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Kevin Kremer (Xoltus) Changes Hi team, I've written a small patch as a small quality of life improvement for my development and figured it may be worth sharing. Please let me know what you think: HI.Padding is already availab

[clang] [llvm] [CVP] #114820 add 'samesign' for 'icmp' (PR #115642)

2024-11-10 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/115642 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add padding to struct hover information (PR #115665)

2024-11-10 Thread Kevin Kremer via cfe-commits
https://github.com/Xoltus created https://github.com/llvm/llvm-project/pull/115665 Hi team, I've written a small patch as a small quality of life improvement for my development and figured it may be worth sharing. Please let me know what you think: HI.Padding is already available for a struct

[clang-tools-extra] [clangd] Add padding to struct hover information (PR #115665)

2024-11-10 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-tools-extra] [clang-tidy] fix insertion location for function pointers in cppcoreguidelines-init-variables (PR #112091)

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

[clang-tools-extra] 028ea71 - [clang-tidy] fix insertion location for function pointers in cppcoreguidelines-init-variables (#112091)

2024-11-10 Thread via cfe-commits
Author: Julian Schmidt Date: 2024-11-10T18:26:42+01:00 New Revision: 028ea71fdda0c02cd11421cd1d26bec6f378666e URL: https://github.com/llvm/llvm-project/commit/028ea71fdda0c02cd11421cd1d26bec6f378666e DIFF: https://github.com/llvm/llvm-project/commit/028ea71fdda0c02cd11421cd1d26bec6f378666e.diff

[clang] clang/utils/TableGen/ClangAttrEmitter.cpp: 2 * pointless copy ? (#94372) (PR #94414)

2024-11-10 Thread Akshay Kumar via cfe-commits
https://github.com/akshaykumars614 closed https://github.com/llvm/llvm-project/pull/94414 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [TableGen] Use heterogenous lookups with std::map (NFC) (PR #115633)

2024-11-10 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/115633 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a44ee8e - [TableGen] Use heterogenous lookups with std::map (NFC) (#115633)

2024-11-10 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-11-10T07:24:27-08:00 New Revision: a44ee8ec1c87be76e147d97f3be90a7e8630421b URL: https://github.com/llvm/llvm-project/commit/a44ee8ec1c87be76e147d97f3be90a7e8630421b DIFF: https://github.com/llvm/llvm-project/commit/a44ee8ec1c87be76e147d97f3be90a7e8630421b.diff L

[clang] [llvm] [X86][AMX] Support AMX-TRANSPOSE, part 2 (PR #115660)

2024-11-10 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 99f1019f596f745c720e97137bcadb239c573e3e f2fc493149d75f0be13207bc1893a48c7fab84a3 --e

[clang] [llvm] [X86][AMX] Support AMX-TRANSPOSE, part 2 (PR #115660)

2024-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Phoebe Wang (phoebewang) Changes Ref.: https://cdrdv2.intel.com/v1/dl/getContent/671368 --- Patch is 68.49 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/115660.diff 22 Files Affected: - (

[clang] [llvm] [X86][AMX] Support AMX-TRANSPOSE, part 2 (PR #115660)

2024-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-x86 Author: Phoebe Wang (phoebewang) Changes Ref.: https://cdrdv2.intel.com/v1/dl/getContent/671368 --- Patch is 68.49 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/115660

[clang] [llvm] [X86][AMX] Support AMX-TRANSPOSE, part 2 (PR #115660)

2024-11-10 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang created https://github.com/llvm/llvm-project/pull/115660 Ref.: https://cdrdv2.intel.com/v1/dl/getContent/671368 >From f2fc493149d75f0be13207bc1893a48c7fab84a3 Mon Sep 17 00:00:00 2001 From: "Wang, Phoebe" Date: Sun, 10 Nov 2024 22:37:15 +0800 Subject: [PATCH] [X86

[clang] [clang] Introduce [[clang::lifetime_capture_by(X)]] (PR #111499)

2024-11-10 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/111499 >From 83f0c8ff48ca1750048688eacc02bfffc52166b7 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sun, 10 Nov 2024 07:42:49 + Subject: [PATCH] Introduce [[clang::lifetime_capture_by]] --- clang/docs/Release

[clang] 99f1019 - [NFC] Trivial doc fixup in SafeBuffers.rst

2024-11-10 Thread via cfe-commits
Author: MarcoFalke Date: 2024-11-10T15:30:23+01:00 New Revision: 99f1019f596f745c720e97137bcadb239c573e3e URL: https://github.com/llvm/llvm-project/commit/99f1019f596f745c720e97137bcadb239c573e3e DIFF: https://github.com/llvm/llvm-project/commit/99f1019f596f745c720e97137bcadb239c573e3e.diff LO

[clang] [llvm] [RISCV] Support `svukte` extension (PR #115657)

2024-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Brandon Wu (4vtomat) Changes This is the extension for "Address-Independent Latency of User-Mode Faults to Supervisor Addresses". Spec: https://github.com/riscv/riscv-isa-manual/pull/1564 The spec states that the `svukte` depends o

[clang] [llvm] [RISCV] Support `svukte` extension (PR #115657)

2024-11-10 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat edited https://github.com/llvm/llvm-project/pull/115657 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Support `svukte` extension (PR #115657)

2024-11-10 Thread Brandon Wu via cfe-commits
4vtomat wrote: The spec is frozen, but the PR is still version 0.3, I'll follow the spec to update the version. https://github.com/llvm/llvm-project/pull/115657 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[clang] [llvm] [RISCV] Support `svukte` extension (PR #115657)

2024-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mc Author: Brandon Wu (4vtomat) Changes This is the extension for "Address-Independent Latency of User-Mode Faults to Supervisor Addresses". Spec: https://github.com/riscv/riscv-isa-manual/pull/1564 The spec states that the `svukte` depends on `sv39`, bu

[clang] [llvm] [RISCV] Support `svukte` extension (PR #115657)

2024-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Brandon Wu (4vtomat) Changes This is the extension for "Address-Independent Latency of User-Mode Faults to Supervisor Addresses". Spec: https://github.com/riscv/riscv-isa-manual/pull/1564 The spec states that the `svukte` depends on `sv39`,

[clang] [llvm] [RISCV] Support `svukte` extension (PR #115657)

2024-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Brandon Wu (4vtomat) Changes This is the extension for "Address-Independent Latency of User-Mode Faults to Supervisor Addresses". Spec: https://github.com/riscv/riscv-isa-manual/pull/1564 The spec states that the `svukte` depends on

[clang] [llvm] [RISCV] Support `svukte` extension (PR #115657)

2024-11-10 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/115657 This is the extension for "Address-Independent Latency of User-Mode Faults to Supervisor Addresses". Spec: https://github.com/riscv/riscv-isa-manual/pull/1564 The spec states that the `svukte` depends on `sv39`,

[clang] [Clang] skip shadow warnings for enum constants in distinct class scopes (PR #115656)

2024-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Oleksandr T. (a-tarasyuk) Changes Fixes #62588 --- Full diff: https://github.com/llvm/llvm-project/pull/115656.diff 5 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+2) - (modified) clang/include/clang/Sema/Sema.h (+1-1) -

[clang] [Clang] skip shadow warnings for enum constants in distinct class scopes (PR #115656)

2024-11-10 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk created https://github.com/llvm/llvm-project/pull/115656 Fixes #62588 >From e13774913ecba7d66652f10f9a3468a55acb3b42 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sun, 10 Nov 2024 15:11:39 +0200 Subject: [PATCH] [Clang] skip shadow warnings for enum constants i

[clang] [clang][UBSan] Make sure that the implicit-conversion group is compatible with minimal runtime (PR #114865)

2024-11-10 Thread Axel Lundberg via cfe-commits
Zonotora wrote: Hi @zygoloid and @efriedma-quic, would you mind taking a look? Thanks! https://github.com/llvm/llvm-project/pull/114865 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PAC][clang][Driver] Add signed GOT flag (PR #96160)

2024-11-10 Thread Daniil Kovalev via cfe-commits
kovdan01 wrote: @MaskRay Would be glad to see your answer on the question above: > If we only add cc1 flag and postpone adding driver flag, would it be OK? https://github.com/llvm/llvm-project/pull/96160 ___ cfe-commits mailing list cfe-commits@lists.

[clang] [llvm] [Clang-Repl] Add support for out-of-process execution. (PR #110418)

2024-11-10 Thread Vassil Vassilev via cfe-commits
@@ -47,6 +78,58 @@ static llvm::cl::opt OptHostSupportsJit("host-supports-jit", static llvm::cl::list OptInputs(llvm::cl::Positional, llvm::cl::desc("[code to run]")); +static llvm::Error sanitizeOopArguments(const char *ArgV0) { +

[clang] [llvm] [Clang-Repl] Add support for out-of-process execution. (PR #110418)

2024-11-10 Thread Vassil Vassilev via cfe-commits
@@ -34,10 +41,34 @@ LLVM_ATTRIBUTE_USED int __lsan_is_turned_off() { return 1; } #endif +#define DEBUG_TYPE "clang-repl" + static llvm::cl::opt CudaEnabled("cuda", llvm::cl::Hidden); static llvm::cl::opt CudaPath("cuda-path", llvm::cl::Hidden); static llvm::cl::opt OffloadA

[clang] [clang] Introduce [[clang::lifetime_capture_by(X)]] (PR #111499)

2024-11-10 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/111499 >From adaab9e5f549ae1625e8539334dfbc73a0559d8c Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sun, 10 Nov 2024 07:42:49 + Subject: [PATCH] Introduce [[clang::lifetime_capture_by]] --- clang/docs/Release

[clang] [clang] Introduce [[clang::lifetime_capture_by(X)]] (PR #111499)

2024-11-10 Thread Utkarsh Saxena via cfe-commits
usx95 wrote: The PR now only includes syntax changes without lifetime analysis. I will address the unaddressed comments here related to analysis in subsequent PR. https://github.com/llvm/llvm-project/pull/111499 ___ cfe-commits mailing list cfe-commit

[clang] [clang] Introduce [[clang::lifetime_capture_by(X)]] (PR #111499)

2024-11-10 Thread Utkarsh Saxena via cfe-commits
@@ -1199,6 +1213,17 @@ static void checkExprLifetimeImpl(Sema &SemaRef, break; } +case LK_LifetimeCapture: { + if (!MTE) usx95 wrote: I don't think we can easily support this without intraprocedural data flow. For example, consider the fol

[clang] [clang] Introduce [[clang::lifetime_capture_by(X)]] (PR #111499)

2024-11-10 Thread Utkarsh Saxena via cfe-commits
@@ -12,6 +12,7 @@ #include "clang/AST/ASTContext.h" #include "clang/AST/Attr.h" +#include "clang/AST/Attrs.inc" usx95 wrote: Removed. https://github.com/llvm/llvm-project/pull/111499 ___ cfe-commits mailing list cf

[clang] [clang] Introduce [[clang::lifetime_capture_by(X)]] (PR #111499)

2024-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Utkarsh Saxena (usx95) Changes This implements the RFC https://discourse.llvm.org/t/rfc-introduce-clang-lifetime-capture-by-x/81371 In this PR, we introduce `[[clang::lifetime_capture_by(X)]]` attribute as discussed in the RFC. As an im

[clang] [clang] Introduce [[clang::lifetime_capture_by(X)]] (PR #111499)

2024-11-10 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 ready_for_review https://github.com/llvm/llvm-project/pull/111499 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang-Repl] Add support for out-of-process execution. (PR #110418)

2024-11-10 Thread via cfe-commits
https://github.com/SahilPatidar updated https://github.com/llvm/llvm-project/pull/110418 >From 519dd2c99bc2200d364a184e416ec03b609e1910 Mon Sep 17 00:00:00 2001 From: SahilPatidar Date: Fri, 7 Jun 2024 13:30:08 +0530 Subject: [PATCH 01/14] [Clang-Repl] Implement out-of-process execution interf

[clang] [clang] Introduce [[clang::lifetime_capture_by(X)]] (PR #111499)

2024-11-10 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/111499 >From b9379b1a8516fd8c2bb444aed09335eba37c8d53 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sun, 10 Nov 2024 07:42:49 + Subject: [PATCH] Introduce [[clang::lifetime_capture_by]] --- clang/docs/Release

[clang] [clang] Introduce [[clang::lifetime_capture_by(X)]] (PR #111499)

2024-11-10 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/111499 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Introduce [[clang::lifetime_capture_by(X)]] (PR #111499)

2024-11-10 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/111499 >From 1778769830af741684ae6ed0278f5ecc4626edae Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sun, 10 Nov 2024 07:42:49 + Subject: [PATCH] Introduce [[clang::lifetime_capture_by]] --- clang/include/clan

[clang] [llvm] [CVP] #114820 add 'samesign' for 'icmp' (PR #115642)

2024-11-10 Thread Han Qi via cfe-commits
https://github.com/rhanqtl updated https://github.com/llvm/llvm-project/pull/115642 >From 2676776634fda36082e54b2b153b47169987165d Mon Sep 17 00:00:00 2001 From: Han Qi Date: Sun, 10 Nov 2024 16:44:43 +0800 Subject: [PATCH 1/6] [CVP] add samesign in CVP for #114820 --- .../Scalar/CorrelatedVa

[clang] [clang][NFC] add release note for n3030 support (PR #115648)

2024-11-10 Thread via cfe-commits
https://github.com/h-vetinari created https://github.com/llvm/llvm-project/pull/115648 Follow-up to #107260 CC @Fznamznon @AaronBallman >From 8b19526f6d14247489250decebc2ee70ca9251a8 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Sun, 10 Nov 2024 21:41:05 +1100 Subject: [PATCH] [clang][N

[clang] [clang][NFC] add release note for n3030 support (PR #115648)

2024-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (h-vetinari) Changes Follow-up to #107260 CC @Fznamznon @AaronBallman --- Full diff: https://github.com/llvm/llvm-project/pull/115648.diff 1 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+2-1) ``diff diff -

[clang] [Clang] Fix dependent expression handling for assumptions (PR #115646)

2024-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes The function definition instantiation assumes any declarations used inside are already transformed before transforming the body, so we need to preserve the transformed expression of CXXAssumeAttr even if it

[clang] [Clang] Fix dependent expression handling for assumptions (PR #115646)

2024-11-10 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/115646 The function definition instantiation assumes any declarations used inside are already transformed before transforming the body, so we need to preserve the transformed expression of CXXAssumeAttr even if it is

[clang] [TableGen] Use heterogenous lookups with std::map (NFC) (PR #115633)

2024-11-10 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/115633 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Use the 'B' extension in RISC-V profile definitions (PR #113942)

2024-11-10 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-bootstrap-asan` running on `sanitizer-buildbot2` while building `clang,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/52/builds/3611 Here is the re

[clang] [clang-format][CMake] Generate formatting options docs during build (PR #113739)

2024-11-10 Thread Aiden Grossman via cfe-commits
boomanaiden154 wrote: > I'm not concerned about how much time it takes to run. I want to add it to > clangFormat's dependencies if it doesn't run every time I do ninja > FormatTests. I've updated the patch so that we only rerun the python script if the dependencies change. I've added a `.temp

[clang] [clang] Introduce [[clang::lifetime_capture_by(X)]] (PR #111499)

2024-11-10 Thread Utkarsh Saxena via cfe-commits
@@ -1882,6 +1882,46 @@ def LifetimeBound : DeclOrTypeAttr { let SimpleHandler = 1; } +def LifetimeCaptureBy : DeclOrTypeAttr { + let Spellings = [Clang<"lifetime_capture_by", 0>]; + let Subjects = SubjectList<[ParmVar, ImplicitObjectParameter], ErrorDiag>; + let Args = [V

[clang] [clang] Introduce [[clang::lifetime_capture_by(X)]] (PR #111499)

2024-11-10 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/111499 >From 5af16e4afc15956dea0c46ffc3abb20067c047f2 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sun, 10 Nov 2024 07:42:49 + Subject: [PATCH] Introduce [[clang::lifetime_capture_by]] --- clang/include/clan

[clang] [llvm] [HLSL] Add `Increment`/`DecrementCounter` methods to structured buffers (PR #114148)

2024-11-10 Thread Helena Kotas via cfe-commits
@@ -343,27 +336,224 @@ struct TemplateParameterListBuilder { Params.clear(); QualType T = Builder.Template->getInjectedClassNameSpecialization(); -T = S.Context.getInjectedClassNameType(Builder.Record, T); +T = AST.getInjectedClassNameType(Builder.Record, T);

  1   2   >