[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-sles-build-only` running on `rocm-worker-hw-04-sles` while building `clang,libc` at step 6 "Add check check-clang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/16361 Her

[clang] [llvm] [mlir] [NVPTX] Convert scalar function nvvm.annotations to attributes (PR #125908)

2025-02-05 Thread Alex MacLean via cfe-commits
https://github.com/AlexMaclean updated https://github.com/llvm/llvm-project/pull/125908 >From d66d8adac5cf32f7f9f5878799c0167d39f41df7 Mon Sep 17 00:00:00 2001 From: Alex Maclean Date: Wed, 5 Feb 2025 18:46:03 + Subject: [PATCH] [NVPTX] Convert scalar function nvvm.annotations to attribute

[clang] 718cdeb - [Clang] Fix test after new argument was added

2025-02-05 Thread Joseph Huber via cfe-commits
Author: Joseph Huber Date: 2025-02-05T12:55:28-06:00 New Revision: 718cdeb9c701725412a040b2b7148523a286a256 URL: https://github.com/llvm/llvm-project/commit/718cdeb9c701725412a040b2b7148523a286a256 DIFF: https://github.com/llvm/llvm-project/commit/718cdeb9c701725412a040b2b7148523a286a256.diff

[clang] [llvm] [llvm][fatlto] Add FatLTOCleanup pass (PR #125911)

2025-02-05 Thread Paul Kirth via cfe-commits
ilovepi wrote: * **#125911** https://app.graphite.dev/github/pr/llvm/llvm-project/125911?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/1259

[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 milestoned https://github.com/llvm/llvm-project/pull/125896 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][NFC] Rename functions that collect resource bindings (PR #125904)

2025-02-05 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 approved this pull request. https://github.com/llvm/llvm-project/pull/125904 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 Thread Joseph Huber via cfe-commits
jhuber6 wrote: /cherry-pick https://github.com/llvm/llvm-project/commit/2d8106cb5a505326d1da0f4461708ed44a0ac761 https://github.com/llvm/llvm-project/commit/718cdeb9c701725412a040b2b7148523a286a256 https://github.com/llvm/llvm-project/pull/125896 __

[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 Thread Artem Belevich via cfe-commits
@@ -149,22 +149,23 @@ _DEFAULT_FN_ATTRS static __inline__ void __gpu_sync_lane(uint64_t __lane_mask) { // Shuffles the the lanes inside the warp according to the given index. _DEFAULT_FN_ATTRS static __inline__ uint32_t -__gpu_shuffle_idx_u32(uint64_t __lane_mask, uint32_t __

[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 Thread Artem Belevich via cfe-commits
@@ -145,17 +145,21 @@ _DEFAULT_FN_ATTRS static __inline__ void __gpu_sync_lane(uint64_t __lane_mask) { // Shuffles the the lanes inside the wavefront according to the given index. _DEFAULT_FN_ATTRS static __inline__ uint32_t -__gpu_shuffle_idx_u32(uint64_t __lane_mask, uint32

[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 Thread Joseph Huber via cfe-commits
@@ -149,22 +149,23 @@ _DEFAULT_FN_ATTRS static __inline__ void __gpu_sync_lane(uint64_t __lane_mask) { // Shuffles the the lanes inside the warp according to the given index. _DEFAULT_FN_ATTRS static __inline__ uint32_t -__gpu_shuffle_idx_u32(uint64_t __lane_mask, uint32_t __

[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#125912 https://github.com/llvm/llvm-project/pull/125896 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 Thread Joseph Huber via cfe-commits
@@ -145,17 +145,21 @@ _DEFAULT_FN_ATTRS static __inline__ void __gpu_sync_lane(uint64_t __lane_mask) { // Shuffles the the lanes inside the wavefront according to the given index. _DEFAULT_FN_ATTRS static __inline__ uint32_t -__gpu_shuffle_idx_u32(uint64_t __lane_mask, uint32

[clang] [llvm] [mlir] [NVPTX] Convert scalar function nvvm.annotations to attributes (PR #125908)

2025-02-05 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B approved this pull request. https://github.com/llvm/llvm-project/pull/125908 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [NVPTX] Convert scalar function nvvm.annotations to attributes (PR #125908)

2025-02-05 Thread Artem Belevich via cfe-commits
@@ -179,6 +179,13 @@ static bool argHasNVVMAnnotation(const Value &Val, return false; } +static std::optional getFnAttrParsedIntOrNull(const Function &F, Artem-B wrote: Nit: `OrNull` is kind of implied by return type being optional. https://github.com/llvm

[clang] [llvm] [mlir] [NVPTX] Convert scalar function nvvm.annotations to attributes (PR #125908)

2025-02-05 Thread Artem Belevich via cfe-commits
@@ -179,6 +179,13 @@ static bool argHasNVVMAnnotation(const Value &Val, return false; } +static std::optional getFnAttrParsedIntOrNull(const Function &F, +StringRef Attr) { + if (F.hasFnAttribute(Attr)) +return F.g

[clang] [Clang][P1061] Add stuctured binding packs (PR #121417)

2025-02-05 Thread Erich Keane via cfe-commits
erichkeane wrote: > The code and test coverage looks good. There are a couple of comments that > have not been addressed. > > And there is @zygoloid suggestion to generalize > `SubstNonTypeTemplateParmPackExpr` - do we want to do that now or address it > after the fact? > > Maybe trying to l

[clang] c94d930 - [clang] NFC: rename MatchedPackOnParmToNonPackOnArg to StrictPackMatch (#125418)

2025-02-05 Thread via cfe-commits
Author: Matheus Izvekov Date: 2025-02-05T13:16:33-03:00 New Revision: c94d930a212248d7102822ca7d0e37e72fd38cb3 URL: https://github.com/llvm/llvm-project/commit/c94d930a212248d7102822ca7d0e37e72fd38cb3 DIFF: https://github.com/llvm/llvm-project/commit/c94d930a212248d7102822ca7d0e37e72fd38cb3.dif

[clang] [lldb] [clang] NFC: rename MatchedPackOnParmToNonPackOnArg to StrictPackMatch (PR #125418)

2025-02-05 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/125418 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c1d5be8 - [analyzer] Add time-trace scopes for high-level analyzer steps (#125508)

2025-02-05 Thread via cfe-commits
Author: Arseniy Zaostrovnykh Date: 2025-02-05T17:22:18+01:00 New Revision: c1d5be8f7fa24b95e652593f9a780005e6604920 URL: https://github.com/llvm/llvm-project/commit/c1d5be8f7fa24b95e652593f9a780005e6604920 DIFF: https://github.com/llvm/llvm-project/commit/c1d5be8f7fa24b95e652593f9a780005e660492

[clang] [clang] handle fp options in __builtin_convertvector (PR #125522)

2025-02-05 Thread Timm Baeder via cfe-commits
tbaederr wrote: Are fp options (already) handled in constant evaluation? https://github.com/llvm/llvm-project/pull/125522 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Add time-trace scopes for high-level analyzer steps (PR #125508)

2025-02-05 Thread Balazs Benics via cfe-commits
https://github.com/steakhal closed https://github.com/llvm/llvm-project/pull/125508 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reland: [clang] Track function template instantiation from definition (PR #125266)

2025-02-05 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/125266 >From 1282f6a3181fa37e8649e407fabd72893a01103a Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Sat, 28 Sep 2024 14:28:58 -0300 Subject: [PATCH] [clang] Track function template instantiation from definition

[clang] [Clang] Make `-Xarch_` handling generic for all toolchains (PR #125421)

2025-02-05 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > I've pushed a fix for one of the tests on 32 bit Arm, as it failed on our > bot: > https://lab.llvm.org/buildbot/#/builders/154/builds/11413/steps/5/logs/FAIL__Clang__offload-Xarch_c > > Maybe your intent was specifically to have a line that uses the host > architecture, if t

[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-armv8-quick` running on `linaro-clang-armv8-quick` while building `clang,libc` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/154/builds/11424 Here is the relevant p

[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building `clang,libc` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/11646 Here

[clang] [llvm] [HLSL] [DXIL] Implement the `AddUint64` HLSL function and the `UAddc` DXIL op (PR #125319)

2025-02-05 Thread Deric Cheung via cfe-commits
https://github.com/Icohedron updated https://github.com/llvm/llvm-project/pull/125319 >From 1e194fdf6dc731276cd867501708b348e3bbc97c Mon Sep 17 00:00:00 2001 From: Icohedron Date: Mon, 27 Jan 2025 11:18:09 -0800 Subject: [PATCH 1/6] Implement AddUint64 HLSL codegen and sema --- clang/include/

[clang] [llvm] [llvm][fatlto] Add FatLTOCleanup pass (PR #125911)

2025-02-05 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 d6315afff078cb4309b5614562b32520f6e3a2eb 955c40f3e8aab7bfb2c7c7ccc1225ed55b1bce6f --e

[clang] [llvm] [HLSL] [DXIL] Implement the `AddUint64` HLSL function and the `UAddc` DXIL op (PR #125319)

2025-02-05 Thread Deric Cheung via cfe-commits
https://github.com/Icohedron updated https://github.com/llvm/llvm-project/pull/125319 >From 1e194fdf6dc731276cd867501708b348e3bbc97c Mon Sep 17 00:00:00 2001 From: Icohedron Date: Mon, 27 Jan 2025 11:18:09 -0800 Subject: [PATCH 1/6] Implement AddUint64 HLSL codegen and sema --- clang/include/

[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `clang,libc` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/14150 Here

[libunwind] Silence -Wunused-parameter warnings in Unwind-wasm.c (PR #125412)

2025-02-05 Thread Louis Dionne via cfe-commits
@@ -102,8 +102,9 @@ _LIBUNWIND_EXPORT uintptr_t _Unwind_GetIP(struct _Unwind_Context *context) { } /// Not used in Wasm. -_LIBUNWIND_EXPORT void _Unwind_SetIP(struct _Unwind_Context *context, - uintptr_t value) {} +_LIBUNWIND_EXPORT void +_

[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang,libc` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/12599

[libunwind] Silence -Wunused-parameter warnings in Unwind-wasm.c (PR #125412)

2025-02-05 Thread Louis Dionne via cfe-commits
@@ -116,7 +117,7 @@ _Unwind_GetLanguageSpecificData(struct _Unwind_Context *context) { /// Not used in Wasm. _LIBUNWIND_EXPORT uintptr_t -_Unwind_GetRegionStart(struct _Unwind_Context *context) { +_Unwind_GetRegionStart([[maybe_unused]] struct _Unwind_Context *context) {

[libunwind] Silence -Wunused-parameter warnings in Unwind-wasm.c (PR #125412)

2025-02-05 Thread Louis Dionne via cfe-commits
https://github.com/ldionne edited https://github.com/llvm/llvm-project/pull/125412 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] Silence -Wunused-parameter warnings in Unwind-wasm.c (PR #125412)

2025-02-05 Thread Louis Dionne via cfe-commits
https://github.com/ldionne commented: IMO this is reasonable but it's simpler to drop the parameter names in this case, no need for `[[maybe_unused]]`. https://github.com/llvm/llvm-project/pull/125412 ___ cfe-commits mailing list cfe-commits@lists.llv

[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 Thread Artem Belevich via cfe-commits
@@ -149,22 +149,23 @@ _DEFAULT_FN_ATTRS static __inline__ void __gpu_sync_lane(uint64_t __lane_mask) { // Shuffles the the lanes inside the warp according to the given index. _DEFAULT_FN_ATTRS static __inline__ uint32_t -__gpu_shuffle_idx_u32(uint64_t __lane_mask, uint32_t __

[clang] [clang][X86] Support __attribute__((model("small"/"large"))) (PR #124834)

2025-02-05 Thread Arthur Eubanks via cfe-commits
@@ -2949,15 +2950,34 @@ static void handleSectionAttr(Sema &S, Decl *D, const ParsedAttr &AL) { } } +static bool isValidCodeModelAttr(Sema &S, StringRef Str) { + if (S.Context.getTargetInfo().getTriple().isLoongArch()) { +return Str == "normal" || Str == "medium" || St

[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-cmake-x86_64-avx512-linux` running on `avx512-intel64` while building `clang,libc` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/133/builds/10893 Here is the releva

[clang] a57bbff - [clang][test][OpenMP] Fix test assumptions of libomp and clang paths (#125891)

2025-02-05 Thread via cfe-commits
Author: Jordan Rupprecht Date: 2025-02-05T13:31:04-06:00 New Revision: a57bbff736ff4658940266a218491ea9d576b13b URL: https://github.com/llvm/llvm-project/commit/a57bbff736ff4658940266a218491ea9d576b13b DIFF: https://github.com/llvm/llvm-project/commit/a57bbff736ff4658940266a218491ea9d576b13b.di

[clang] [clang][X86] Support __attribute__((model("small"/"large"))) (PR #124834)

2025-02-05 Thread Arthur Eubanks via cfe-commits
https://github.com/aeubanks edited https://github.com/llvm/llvm-project/pull/124834 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][X86] Support __attribute__((model("small"/"large"))) (PR #124834)

2025-02-05 Thread Arthur Eubanks via cfe-commits
https://github.com/aeubanks updated https://github.com/llvm/llvm-project/pull/124834 >From 7c40169ec7430ec64aaeb053e423eca1ceff7f0d Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Tue, 28 Jan 2025 20:36:58 + Subject: [PATCH 1/7] [clang][X86] Support __attribute__((model("small"/"large"

[clang] [clang][X86] Support __attribute__((model("small"/"large"))) (PR #124834)

2025-02-05 Thread Arthur Eubanks via cfe-commits
@@ -3117,11 +3120,20 @@ def PragmaClangTextSection : InheritableAttr { let Documentation = [InternalOnly]; } -def CodeModel : InheritableAttr, TargetSpecificAttr { +// The code model attribute only applies to LoongArch and x86-64, but for NVPTX aeubanks wrot

[clang] [clang][X86] Support __attribute__((model("small"/"large"))) (PR #124834)

2025-02-05 Thread Erich Keane via cfe-commits
@@ -2949,15 +2950,34 @@ static void handleSectionAttr(Sema &S, Decl *D, const ParsedAttr &AL) { } } +static bool isValidCodeModelAttr(Sema &S, StringRef Str) { + if (S.Context.getTargetInfo().getTriple().isLoongArch()) { +return Str == "normal" || Str == "medium" || St

[clang] [clang][X86] Support __attribute__((model("small"/"large"))) (PR #124834)

2025-02-05 Thread Erich Keane via cfe-commits
@@ -62,6 +62,10 @@ def CodeModelDocs : Documentation { let Content = [{ The ``model`` attribute allows overriding the translation unit's code model (specified by ``-mcmodel``) for a specific global variable. + +On LoongArch, allowed values are "normal", "medium", "extreme". -

[clang] [clang][test][OpenMP] Fix test assumptions of libomp and clang paths (PR #125891)

2025-02-05 Thread Jordan Rupprecht via cfe-commits
https://github.com/rupprecht closed https://github.com/llvm/llvm-project/pull/125891 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 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,libc` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/65/builds/11820 Here is the relevan

[clang] [Clang] Forward arguments to the device compiler better (PR #125957)

2025-02-05 Thread Ye Luo via cfe-commits
ye-luo wrote: What is the rule of propagation? It is not immediately clear to me ``` clang -fopenmp --offload-arch=gfx1030,sm_89 -Xarch_nvptx64 -O3 -foffload-lto ``` `-foffload-lto` is an argument to `-Xarch_nvptx64` instead of `clang`. https://github.com/llvm/llvm-project/pull/125957 __

[clang] [clang][ExtractAPI] combine typedef records if the underlying type's name is underscored (PR #125964)

2025-02-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: QuietMisdreavus (QuietMisdreavus) Changes fixes rdar://137214218 When 'typedef struct' decls are encountered, the records are combined if the underlying type is either anonymous or has the same name as the typedef. Extend this behavior t

[clang] [Clang] Forward arguments to the device compiler better (PR #125957)

2025-02-05 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > What is the rule of propagation? It is not immediately clear to me > > ``` > clang -fopenmp --offload-arch=gfx1030,sm_89 -Xarch_nvptx64 -O3 -foffload-lto > ``` > > `-foffload-lto` is an argument to `-Xarch_nvptx64` instead of `clang`. That's just an example, `-Xarch_nvptx64` w

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-02-05 Thread Aidan Goldfarb via cfe-commits
https://github.com/AidanGoldfarb edited https://github.com/llvm/llvm-project/pull/122754 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Forward arguments to the device compiler better (PR #125957)

2025-02-05 Thread Ye Luo via cfe-commits
ye-luo wrote: I understood that `-Xarch_nvptx64` propagates `-O3` to the nvptx toolchain but it is not obvious to me that it should pick up all the argument after it. https://github.com/llvm/llvm-project/pull/125957 ___ cfe-commits mailing list cfe-co

[clang] [Clang] Forward arguments to the device compiler better (PR #125957)

2025-02-05 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > I understood that `-Xarch_nvptx64` propagates `-O3` to the nvptx toolchain > but it is not obvious to me that it should pick up all the argument after it. It doesn't https://github.com/llvm/llvm-project/pull/125957 ___ cfe-commits ma

[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-s390x-linux-lnt` running on `systemz-1` while building `clang,libc` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/136/builds/2668 Here is the relevant piece of the b

[clang] [clang] print correct context for diagnostics suppressed by deduction (PR #125453)

2025-02-05 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: https://llvm-compile-time-tracker.com/compare.php?from=4eab2194872d54e2d4496135a277b1610ff33ead&to=adde9f1f8eabe4d98ba09fd978f8d152a9865347&stat=instructions:u These performance results don't indicate an impact either. https://github.com/llvm/llvm-project/pull/125453 ___

[clang] [llvm] Add support for flag output operand "=@cc" for SystemZ. (PR #125970)

2025-02-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (anoopkg6) Changes Add support for flag output operand "=@cc" for SystemZ and optimizing conditional branch for 14 possible combinations of CC mask. --- Patch is 616.60 KiB, truncated to 20.00 KiB below, full version: https://githu

[clang] [llvm] Add support for flag output operand "=@cc" for SystemZ. (PR #125970)

2025-02-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-selectiondag Author: None (anoopkg6) Changes Add support for flag output operand "=@cc" for SystemZ and optimizing conditional branch for 14 possible combinations of CC mask. --- Patch is 616.60 KiB, truncated to 20.00 KiB below, full version: h

[clang-tools-extra] [pp-trace] bug fix for pp-trace (PR #124376)

2025-02-05 Thread via cfe-commits
https://github.com/seekamoon edited https://github.com/llvm/llvm-project/pull/124376 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [libclang/python] Enable packaging libclang bindings (PR #125806)

2025-02-05 Thread Ryan Mast via cfe-commits
@@ -0,0 +1,34 @@ +[build-system] +requires = ["setuptools>=42", "setuptools_scm"] +build-backend = "setuptools.build_meta" + +[project] +name = "clang" +description = "libclang python bindings" +readme = {file = "README.txt", content-type = "text/plain"} + +license = { text = "Apa

[clang] [Clang] Do not try to transform invalid bindings (PR #125658)

2025-02-05 Thread Jason Rice via cfe-commits
https://github.com/ricejasonf edited https://github.com/llvm/llvm-project/pull/125658 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Emit warnings about incorrect AVR interrupt/signal handlers (PR #125997)

2025-02-05 Thread Ben Shi via cfe-commits
https://github.com/benshi001 created https://github.com/llvm/llvm-project/pull/125997 1. interrupt/signal handlers can not have parameters 2. interrupt/signal handlers must be 'void' type >From 2c02723208bd48e82621e3bee5b778f6c8bcd2e5 Mon Sep 17 00:00:00 2001 From: Ben Shi Date: Mon, 27 Jan 20

[clang] [llvm] Add support for flag output operand "=@cc" for SystemZ. (PR #125970)

2025-02-05 Thread Ulrich Weigand via cfe-commits
@@ -2563,9 +2563,15 @@ EmitAsmStores(CodeGenFunction &CGF, const AsmStmt &S, if ((i < ResultRegIsFlagReg.size()) && ResultRegIsFlagReg[i]) { // Target must guarantee the Value `Tmp` here is lowered to a boolean // value. - llvm::Constant *Two = llvm::Consta

[clang] [clang][Sema] Emit warnings about incorrect AVR interrupt/signal handlers (PR #125997)

2025-02-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ben Shi (benshi001) Changes 1. interrupt/signal handlers can not have parameters 2. interrupt/signal handlers must be 'void' type --- Full diff: https://github.com/llvm/llvm-project/pull/125997.diff 8 Files Affected: - (modified) clang/

[clang] [clang][Sema] Emit warnings on incorrect AVR interrupt/signal handlers (PR #125328)

2025-02-05 Thread Ben Shi via cfe-commits
benshi001 wrote: Since the code is not updated automatically, I created a new PR for my code change. https://github.com/llvm/llvm-project/pull/125328 https://github.com/llvm/llvm-project/pull/125328 ___ cfe-commits mailing list cfe-commits@lists.llvm

[clang] [llvm] [Clang][OpenMP] Support for dispatch construct (Sema & Codegen) support (PR #117904)

2025-02-05 Thread via cfe-commits
https://github.com/SunilKuravinakop edited https://github.com/llvm/llvm-project/pull/117904 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][P1061] Consolidate ResolvedUnpexandedPackExpr into FunctionParmPackExpr (PR #125394)

2025-02-05 Thread Jason Rice via cfe-commits
@@ -124,6 +125,14 @@ void lambda_capture() { [&x...] { (void)sum(x...); }(); } +struct S2 { +int a, b, c; +}; + +auto X = [] () { ricejasonf wrote: Oh, sorry, I added your test with `clsss` not realizing you were talking about modifying an existing te

[clang] [HLSL][NFC] Fix typo in comment in SemaHLSL.cpp (PR #125992)

2025-02-05 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 approved this pull request. https://github.com/llvm/llvm-project/pull/125992 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][P1061] Consolidate ResolvedUnpexandedPackExpr into FunctionParmPackExpr (PR #125394)

2025-02-05 Thread Jason Rice via cfe-commits
https://github.com/ricejasonf edited https://github.com/llvm/llvm-project/pull/125394 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][Driver] When linking with the Fortran runtime also link with libexecinfo (PR #125998)

2025-02-05 Thread Brad Smith via cfe-commits
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/125998 Also link with libexecinfo on FreeBSD, NetBSD, OpenBSD and DragonFly for the backtrace functions. >From 3e25ca7b6cc62fe1cf9e6a1364f6bf6c0167f123 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 5 Feb 2025 22:

[clang] [flang] [flang][Driver] When linking with the Fortran runtime also link with libexecinfo (PR #125998)

2025-02-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: Brad Smith (brad0) Changes Also link with libexecinfo on FreeBSD, NetBSD, OpenBSD and DragonFly for the backtrace functions. --- Full diff: https://github.com/llvm/llvm-project/pull/125998.diff 2 Files Affected: - (modified) clan

[clang] [flang] [flang][Driver] When linking with the Fortran runtime also link with libexecinfo (PR #125998)

2025-02-05 Thread Brad Smith via cfe-commits
brad0 wrote: cc @Meinersbur @tblah @dty2 https://github.com/llvm/llvm-project/pull/125998 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve-vla` running on `linaro-g3-04` while building `clang,libc` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/17/builds/5607 Here is the relevant piece of the

[clang] Add clang atomic control options and attribute (PR #114841)

2025-02-05 Thread Yaxun Liu via cfe-commits
@@ -5404,6 +5404,151 @@ third argument, can only occur at file scope. a = b[i] * c[i] + e; } +Extensions for controlling atomic code generation += + +The ``[[clang::atomic]]`` statement attribute enables users to control ho

[clang] [HLSL] Appropriately set function attribute optnone (PR #125937)

2025-02-05 Thread S. Bharadwaj Yadavalli via cfe-commits
bharadwajy wrote: Need to verify a couple more function attribute combinations. Changed it to draft mode till that is done. Please hold off reviews. https://github.com/llvm/llvm-project/pull/125937 ___ cfe-commits mailing list cfe-commits@lists.llvm

[clang] [compiler-rt] [rtsan] Enable RealtimeSanitizer for FreeBSD (PR #125389)

2025-02-05 Thread Chris Apple via cfe-commits
@@ -43,6 +44,21 @@ static __rtsan::Context &GetContextForThisThreadImpl() { return *current_thread_context; } +#else + +// On FreeBSD, pthread api cannot be used as calloc is called under the hood +// at library initialization time. +static __thread Context *ctx = nullptr; +

[clang] [Clang][P1061] Consolidate ResolvedUnpexandedPackExpr into FunctionParmPackExpr (PR #125394)

2025-02-05 Thread Jason Rice via cfe-commits
@@ -3492,10 +3492,13 @@ VarDecl *BindingDecl::getHoldingVar() const { return VD; } -llvm::ArrayRef BindingDecl::getBindingPackExprs() const { +llvm::ArrayRef BindingDecl::getBindingPackDecls() const { assert(Binding && "expecting a pack expr"); - auto *RP = cast(Binding)

[clang] [clang][Sema] Emit warnings on incorrect AVR interrupt/signal handlers (PR #125328)

2025-02-05 Thread Ben Shi via cfe-commits
benshi001 wrote: this case is added. https://github.com/llvm/llvm-project/pull/125328 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64-aix` running on `aix-ppc64` while building `clang,libc` at step 3 "clean-build-dir". Full details are available at: https://lab.llvm.org/buildbot/#/builders/64/builds/2185 Here is the relevant piece of the build

[clang] [clang][Sema] Emit warnings on incorrect AVR interrupt/signal handlers (PR #125328)

2025-02-05 Thread Ben Shi via cfe-commits
benshi001 wrote: it is strange: I have added the case avkevl mentioned in my [repo](https://github.com/benshi001/llvm-project/commit/8ce75fc80b8bbfb79009e53c0d7ac8015983e4da), but this PR is not updated. https://github.com/llvm/llvm-project/pull/125328 _

[clang] [llvm] Add support for flag output operand "=@cc" for SystemZ. (PR #125970)

2025-02-05 Thread Matt Arsenault via cfe-commits
@@ -2563,9 +2563,15 @@ EmitAsmStores(CodeGenFunction &CGF, const AsmStmt &S, if ((i < ResultRegIsFlagReg.size()) && ResultRegIsFlagReg[i]) { // Target must guarantee the Value `Tmp` here is lowered to a boolean // value. - llvm::Constant *Two = llvm::Consta

[clang] [llvm] Add support for flag output operand "=@cc" for SystemZ. (PR #125970)

2025-02-05 Thread Matt Arsenault via cfe-commits
@@ -90,6 +90,14 @@ bool SystemZTargetInfo::validateAsmConstraint( case 'T': // Likewise, plus an index Info.setAllowsMemory(); return true; + case '@': +// CC condition changes. +if (strlen(Name) >= 3 && *(Name + 1) == 'c' && *(Name + 2) == 'c') { ---

[clang] e223485 - [X86] Extend kCFI with a 3-bit arity indicator (#121070)

2025-02-05 Thread via cfe-commits
Author: Scott Constable Date: 2025-02-06T10:54:22+08:00 New Revision: e223485c9b38a5579991b8cebb6a200153eee245 URL: https://github.com/llvm/llvm-project/commit/e223485c9b38a5579991b8cebb6a200153eee245 DIFF: https://github.com/llvm/llvm-project/commit/e223485c9b38a5579991b8cebb6a200153eee245.dif

[clang] [llvm] [X86] Extend kCFI with a 3-bit arity indicator (PR #121070)

2025-02-05 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang closed https://github.com/llvm/llvm-project/pull/121070 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Modules] Fix missing module dependency introduced by 7347870 (PR #126007)

2025-02-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Qiongsi Wu (qiongsiwu) Changes 73478708839fad8b02b3cfc84959d64a15ba93ca introduced a textual header but did not update clang's module map. This PR adds the header to the module map. --- Full diff: https://github.com/llvm/llvm-project/pul

[clang] [Modules] Fix missing module dependency introduced by 7347870 (PR #126007)

2025-02-05 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu created https://github.com/llvm/llvm-project/pull/126007 73478708839fad8b02b3cfc84959d64a15ba93ca introduced a textual header but did not update clang's module map. This PR adds the header to the module map. >From 103380989b2c01da215c8bc12a5b121678f9c916 Mon Sep 1

[clang] [flang] [flang][Driver] When linking with the Fortran runtime also link with libexecinfo (PR #125998)

2025-02-05 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/125998 >From f2c9214b65604a1c7bd708e5ee0a975e02f0da13 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 5 Feb 2025 22:52:59 -0500 Subject: [PATCH] [flang][Driver] When linking with the Fortran runtime also link with

[clang] [HLSL] Appropriately set function attribute optnone (PR #125937)

2025-02-05 Thread S. Bharadwaj Yadavalli via cfe-commits
https://github.com/bharadwajy converted_to_draft https://github.com/llvm/llvm-project/pull/125937 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Wunsafe-buffer-usage] Turn off unsafe-buffer warning for methods annotated with clang::unsafe_buffer_usage attribute (PR #125671)

2025-02-05 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: Should this have a release note? https://github.com/llvm/llvm-project/pull/125671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [libclang/python] Enable packaging libclang bindings (PR #125806)

2025-02-05 Thread Ryan Mast via cfe-commits
https://github.com/nightlark edited https://github.com/llvm/llvm-project/pull/125806 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [libclang/python] Enable packaging libclang bindings (PR #125806)

2025-02-05 Thread Ryan Mast via cfe-commits
https://github.com/nightlark edited https://github.com/llvm/llvm-project/pull/125806 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] [Clang] Add width handling for shuffle helper (PR #125896)

2025-02-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve2-vla` running on `linaro-g4-02` while building `clang,libc` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/198/builds/1795 Here is the relevant piece of t

[clang] [StrTable] Fix modules build and clean up stale files (PR #125979)

2025-02-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Chandler Carruth (chandlerc) Changes I missed a few places to tidy up from before using the tablengen files directly for the builtins. I didn't remove all of the modulemap entries and there were two small `.def` files left lingering. This

[clang] [StrTable] Fix modules build and clean up stale files (PR #125979)

2025-02-05 Thread Chandler Carruth via cfe-commits
https://github.com/chandlerc created https://github.com/llvm/llvm-project/pull/125979 I missed a few places to tidy up from before using the tablengen files directly for the builtins. I didn't remove all of the modulemap entries and there were two small `.def` files left lingering. This should

[clang] [clang] [dataflow] use unqualified type for smart pointer matching (PR #125958)

2025-02-05 Thread Jan Voung via cfe-commits
https://github.com/jvoung approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/125958 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][docs] Clarify the tail padding considered by `__datasizeof` (PR #125981)

2025-02-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: A. Jiang (frederick-vs-ja) Changes Some tail padding are not reusable due to the ABI specification, and `__datasizeof` intentionally doesn't consider them. Closes #125863. --- Full diff: https://github.com/llvm/llvm-project/pull/125981.d

[clang] f154048 - [clang] [dataflow] use unqualified type for smart pointer matching (#125958)

2025-02-05 Thread via cfe-commits
Author: Florian Mayer Date: 2025-02-05T18:22:59-08:00 New Revision: f1540484ead766b18aeeb2be8b5fc9057ffa8a40 URL: https://github.com/llvm/llvm-project/commit/f1540484ead766b18aeeb2be8b5fc9057ffa8a40 DIFF: https://github.com/llvm/llvm-project/commit/f1540484ead766b18aeeb2be8b5fc9057ffa8a40.diff

[clang] [clang] [dataflow] use unqualified type for smart pointer matching (PR #125958)

2025-02-05 Thread Florian Mayer via cfe-commits
https://github.com/fmayer closed https://github.com/llvm/llvm-project/pull/125958 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][docs] Clarify the tail padding considered by `__datasizeof` (PR #125981)

2025-02-05 Thread A. Jiang via cfe-commits
https://github.com/frederick-vs-ja created https://github.com/llvm/llvm-project/pull/125981 Some tail padding are not reusable due to the ABI specification, and `__datasizeof` intentionally doesn't consider them. Closes #125863. >From 0577594d4ecbbae6e61e087ce16609469d5f459c Mon Sep 17 00:00:

[clang] [llvm] [libclang/python] Enable packaging libclang bindings (PR #125806)

2025-02-05 Thread Ryan Mast via cfe-commits
@@ -0,0 +1,3 @@ +node: $Format:%H$ +node-date: $Format:%cI$ +describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ nightlark wrote: The more open ended match is the standard one that setuptools_scm documents, but we can make it more flexible. I tried the

[clang] [llvm] [libclang/python] Enable packaging libclang bindings (PR #125806)

2025-02-05 Thread Ryan Mast via cfe-commits
https://github.com/nightlark updated https://github.com/llvm/llvm-project/pull/125806 >From 4dd3356f37229c415c6b6e3dfec8c8020122124d Mon Sep 17 00:00:00 2001 From: Ryan Mast Date: Tue, 4 Feb 2025 21:59:28 -0800 Subject: [PATCH] [libclang/python] Enable packaging libclang bindings --- .gitattr

[clang] [llvm] [libclang/python] Enable packaging libclang bindings (PR #125806)

2025-02-05 Thread Ryan Mast via cfe-commits
@@ -0,0 +1,34 @@ +[build-system] +requires = ["setuptools>=42", "setuptools_scm"] +build-backend = "setuptools.build_meta" + +[project] +name = "clang" +description = "libclang python bindings" +readme = {file = "README.txt", content-type = "text/plain"} + +license = { text = "Apa

[clang] [clang][Sema] Emit warnings on incorrect AVR interrupt/signal handlers (PR #125328)

2025-02-05 Thread Ben Shi via cfe-commits
https://github.com/benshi001 closed https://github.com/llvm/llvm-project/pull/125328 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   5   >