[clang] [AMDGPU] Remove outdated COV6 warning (PR #132814)

2025-03-24 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/132814 >From c1f916c5cb19c1a816737dbb5cf21e5ac1636de3 Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Mon, 24 Mar 2025 15:11:55 -0400 Subject: [PATCH 1/2] [AMDGPU] Remove outdated COV6 warning --- clang/include/cla

[clang-tools-extra] [clang-doc] Format test files (PR #132428)

2025-03-24 Thread via cfe-commits
https://github.com/PeterChou1 approved this pull request. https://github.com/llvm/llvm-project/pull/132428 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Limit modernize-use-nullptr to C++11/C23 and later (PR #132816)

2025-03-24 Thread via cfe-commits
https://github.com/higher-performance created https://github.com/llvm/llvm-project/pull/132816 `nullptr` is not supported on earlier versions of either standard, so the tidy should not diagnose earlier uses. >From d9e38b44a4fbcea9800b14ec3fb0aba814d05722 Mon Sep 17 00:00:00 2001 From: higher-p

[clang] [Driver] Teach Barmetal toolchain about GCC installation (PR #121829)

2025-03-24 Thread Garvit Gupta via cfe-commits
@@ -79,7 +87,6 @@ class LLVM_LIBRARY_VISIBILITY BareMetal : public ToolChain { OrderedMultilibs getOrderedMultilibs() const; std::string SysRoot; quic-garvgupt wrote: Removing this private variable was making the code messy because there have been update

[clang] [HLSL] Finish exposing half types and intrinsics always (PR #132804)

2025-03-24 Thread Sarah Spall via cfe-commits
https://github.com/spall edited https://github.com/llvm/llvm-project/pull/132804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][MC] Implement MC for Base P extension (PR #123271)

2025-03-24 Thread Craig Topper via cfe-commits
@@ -2153,6 +2156,7 @@ include "RISCVInstrInfoZc.td" include "RISCVInstrInfoZcmop.td" include "RISCVInstrInfoZclsd.td" + topperc wrote: Stray change https://github.com/llvm/llvm-project/pull/123271 ___ cfe-commits m

[clang] [llvm] [HLSL] Implement the `smoothstep` intrinsic (PR #132288)

2025-03-24 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl deleted https://github.com/llvm/llvm-project/pull/132288 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AMDGPU][clang] provide device implementation for __builtin_logb and … (PR #129347)

2025-03-24 Thread via cfe-commits
https://github.com/choikwa updated https://github.com/llvm/llvm-project/pull/129347 >From 0901af838bab072301f871351c5b976658445e5b Mon Sep 17 00:00:00 2001 From: Kevin Choi Date: Fri, 28 Feb 2025 16:52:03 -0600 Subject: [PATCH] [AMDGPU][clang] provide device implementation for __builtin_logb a

[clang] [llvm] [HLSL] Implement the `smoothstep` intrinsic (PR #132288)

2025-03-24 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl deleted https://github.com/llvm/llvm-project/pull/132288 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Docs] Document freestanding requirements (PR #132232)

2025-03-24 Thread Eli Friedman via cfe-commits
@@ -1073,6 +1073,28 @@ inputs. Here is some example of ``$``-prefixed options: Language and Target-Independent Features +Freestanding Builds +--- +Passing the ``-ffreestanding`` flag causes Clang to build for a freestand

[clang] [HLSL][NFC] Refactor HLSLExternalSemaSource (PR #131032)

2025-03-24 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/131032 >From 7ebfc826ca27c71ef80f4a1b38b2d3a2e155b777 Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Wed, 12 Mar 2025 14:09:24 -0700 Subject: [PATCH 1/6] [HLSL][NFC] Refactoring HLSLExternalSemaSource Moving builder

[clang-tools-extra] Limit modernize-use-nullptr to C++11/C23 and later (PR #132816)

2025-03-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: None (higher-performance) Changes `nullptr` is not supported on earlier versions of either standard, so the tidy should not diagnose earlier uses. --- Full diff: https://github.com/llvm/llvm-project/pull/132816.diff 1 Files Affecte

[clang] [clang] Allow parentheses around CTAD declarators (PR #132829)

2025-03-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (offsetof) Changes Fixes #39811 --- Full diff: https://github.com/llvm/llvm-project/pull/132829.diff 5 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+2) - (modified) clang/include/clang/Basic/DiagnosticSemaKinds.td (+3

[clang] [Clang] Improve subsumption. (PR #132849)

2025-03-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: cor3ntin (cor3ntin) Changes The main goal of this patch is to improve the performance of concept subsumption by - Making sure literal (atomic) clauses are de-duplicated (Whether 2 atomic constraint is established during the initial norma

[clang] [Clang] Improve subsumption. (PR #132849)

2025-03-24 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/132849 The main goal of this patch is to improve the performance of concept subsumption by - Making sure literal (atomic) clauses are de-duplicated (Whether 2 atomic constraint is established during the initial norm

[clang-tools-extra] [clang-doc] Format test files (PR #132428)

2025-03-24 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi ready_for_review https://github.com/llvm/llvm-project/pull/132428 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Upstream Mach-O ptrauth driver defaults (PR #132834)

2025-03-24 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 5a668bdb98d6507626585cedbff0f18628ed7e5c ec8faf518af6384203c776fdd9928ef06e9b5be7 --e

[clang] [llvm] [HLSL] Implement dot2add intrinsic (PR #131237)

2025-03-24 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl edited https://github.com/llvm/llvm-project/pull/131237 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Add regression test for test comments in macros (PR #132510)

2025-03-24 Thread via cfe-commits
https://github.com/ZhongUncle edited https://github.com/llvm/llvm-project/pull/132510 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP] use offload wrapper for non-device-only non-rdc (PR #132869)

2025-03-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Yaxun (Sam) Liu (yxsamliu) Changes Currently HIP still uses offload bundler for non-rdc mode for the new offload driver. This patch switches to use offload wrapper for non-device-only non-rdc mode when new offload driver is enabl

[clang-tools-extra] [clang-doc] Add regression test for test comments in macros (PR #132510)

2025-03-24 Thread via cfe-commits
@@ -0,0 +1,34 @@ +// Fixes #59819. The underlying problem was fixed in https://reviews.llvm.org/D142560, but this patch adds a proper regression test. +// RUN: rm -rf %t && mkdir -p %t +// RUN: clang-doc --format=md --doxygen --output=%t --executor=standalone %s +// RUN: FileChec

[clang-tools-extra] [clang-doc] Add regression test for test comments in macros (PR #132510)

2025-03-24 Thread via cfe-commits
https://github.com/ZhongUncle edited https://github.com/llvm/llvm-project/pull/132510 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [libc] [llvm] [Clang][AMDGPU] Remove special handling for COV4 libraries (PR #132870)

2025-03-24 Thread Shilei Tian via cfe-commits
@@ -62,62 +62,23 @@ Value *EmitAMDGPUImplicitArgPtr(CodeGenFunction &CGF) { /// Emit code based on Code Object ABI version. /// COV_4: Emit code to use dispatch ptr shiltian wrote: this as well https://github.com/llvm/llvm-project/pull/132870 _

[clang] [Flang] Link `-lflang_rt.runtime` if available on the device (PR #132737)

2025-03-24 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 closed https://github.com/llvm/llvm-project/pull/132737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] Revert "[clang-tidy] Avoid processing declarations in system headers … (PR #132743)

2025-03-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Carlos Galvez (carlosgalvezp) Changes …(#128150)" This was too aggressive, and leads to problems for downstream users: https://github.com/llvm/llvm-project/pull/128150#issuecomment-2739803409 Let's revert and reland it once we have

[clang] [llvm] [AArch64] Add initial support for -mcpu=olympus. (PR #132368)

2025-03-24 Thread Ricardo Jesus via cfe-commits
rj-jesus wrote: Thanks very much :) Do you want me to wait for a review from @jthackray too since you added him as a reviewer? https://github.com/llvm/llvm-project/pull/132368 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

[libclc] [libclc] Move fp32 sincos helpers to CLC library (PR #132753)

2025-03-24 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/132753 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WIP][AArch64][SVE] Big endian support SVE (PR #132772)

2025-03-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (hstk30-hw) Changes Want to support SVE in big endian. Not sure how many bugs it has. `CreateVectorReverse` may not a correct api for REV, sleep :) --- Full diff: https://github.com/llvm/llvm-project/pull/132772.diff 2 Files Aff

[clang] [WIP][AArch64][SVE] Big endian support SVE (PR #132772)

2025-03-24 Thread via cfe-commits
https://github.com/hstk30-hw created https://github.com/llvm/llvm-project/pull/132772 Want to support SVE in big endian. Not sure how many bugs it has. `CreateVectorReverse` may not a correct api for REV, sleep :) >From cbcd3d0cc0608ba0f1dc52e525bc8cf1c39aee9b Mon Sep 17 00:00:00 2001 From:

[clang] [clang] Do not infer lifetimebound for functions with void return type (PR #131997)

2025-03-24 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/131997 >From 9220b14a8147850a39e2c9bdf1188f2135b7a0ae Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Wed, 19 Mar 2025 10:25:07 + Subject: [PATCH 1/3] [clang] Do not infer lifetimebound for functions with void r

[clang] [clang][bytecode] Implement __builtin_{wcscmp, wcsncmp} (PR #132723)

2025-03-24 Thread Rainer Orth via cfe-commits
rorth wrote: I fear it won't, unfortunately: the Solaris builders (and no doubt others) are configured to support only the native target (`sparc*` in the current case), not necessarily x86. https://github.com/llvm/llvm-project/pull/132723 ___ cfe-com

[clang] [clang] Fix handling of certain new-expression corner cases (PR #131295)

2025-03-24 Thread via cfe-commits
https://github.com/offsetof updated https://github.com/llvm/llvm-project/pull/131295 >From 78b3095b0e3ca4af1cd015bacd6173d3f4ab1777 Mon Sep 17 00:00:00 2001 From: offsetof Date: Fri, 14 Mar 2025 08:38:58 + Subject: [PATCH 1/2] [clang] Fix handling of certain new-expression corner cases *

[clang] [clang] Fix crash on invalid `std::initializer_list` template-id (PR #132284)

2025-03-24 Thread via cfe-commits
https://github.com/offsetof updated https://github.com/llvm/llvm-project/pull/132284 >From 553ced1e367c0ec6399e71e7a3a3685a550f3431 Mon Sep 17 00:00:00 2001 From: offsetof Date: Thu, 20 Mar 2025 20:54:45 + Subject: [PATCH 1/2] [clang] Fix crash on invalid `std::initializer_list` template-i

[clang] [clang] Fix static_cast bypassing access control (PR #132285)

2025-03-24 Thread via cfe-commits
https://github.com/offsetof updated https://github.com/llvm/llvm-project/pull/132285 >From ac82e33db6879a8657706129fb28f3565e1899ba Mon Sep 17 00:00:00 2001 From: offsetof Date: Thu, 20 Mar 2025 20:54:58 + Subject: [PATCH 1/2] [clang] Fix static_cast bypassing access control Fix access and

[clang] [clang][bytecode] Support composite arrays memcpy op (PR #132775)

2025-03-24 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/132775 See the attached test case. >From f6be93ee0f3c9bfed4de7e1add7c2df9015ef12a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 24 Mar 2025 17:40:42 +0100 Subject: [PATCH] [clang][bytecode]

[clang] [clang][bytecode] Support composite arrays memcpy op (PR #132775)

2025-03-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes See the attached test case. --- Full diff: https://github.com/llvm/llvm-project/pull/132775.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/InterpBuiltin.cpp (+12) - (modified) clang/test/AST/B

[clang] 65ee281 - [clang] Do not infer lifetimebound for functions with void return type (#131997)

2025-03-24 Thread via cfe-commits
Author: Utkarsh Saxena Date: 2025-03-24T17:42:33+01:00 New Revision: 65ee2813f9f9a8cd11c5e9ea372da7d12867b52f URL: https://github.com/llvm/llvm-project/commit/65ee2813f9f9a8cd11c5e9ea372da7d12867b52f DIFF: https://github.com/llvm/llvm-project/commit/65ee2813f9f9a8cd11c5e9ea372da7d12867b52f.diff

[clang] [clang] Do not infer lifetimebound for functions with void return type (PR #131997)

2025-03-24 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 closed https://github.com/llvm/llvm-project/pull/131997 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Remove duplicate API (PR #132776)

2025-03-24 Thread via cfe-commits
https://github.com/Jugst3r created https://github.com/llvm/llvm-project/pull/132776 And adapt the existing code to account for the comments made when introducing the duplicate API. Note that this introduces a retro-incompatibility with LLVM 19. cc @sebastianpoeplau >From ad58171d90be5e93c33

[clang] Remove duplicate API (PR #132776)

2025-03-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Jugst3r) Changes And adapt the existing code to account for the comments made when introducing the duplicate API. Note that this introduces a retro-incompatibility with LLVM 19. cc @sebastianpoeplau --- Full diff: https://github.

[clang] 2b82555 - [RISCV] Remove experimental from Sdext and Sdtrig which are ratified. (#132529)

2025-03-24 Thread via cfe-commits
Author: Craig Topper Date: 2025-03-24T09:46:51-07:00 New Revision: 2b82555ef44c158c2bd1c26176ac2b5b953817a2 URL: https://github.com/llvm/llvm-project/commit/2b82555ef44c158c2bd1c26176ac2b5b953817a2 DIFF: https://github.com/llvm/llvm-project/commit/2b82555ef44c158c2bd1c26176ac2b5b953817a2.diff

[clang] [compiler-rt] [llvm] [FMV][AArch64] Add feature CSSC and detect on linux platform. (PR #132727)

2025-03-24 Thread Alexandros Lamprineas via cfe-commits
labrinea wrote: > The place to look for feature tests on Apple platforms is here: > https://github.com/apple-oss-distributions/xnu/blob/main/osfmk/arm/cpu_capabilities_public.h. I am not seeing a capability bit for this feature. Does this mean it cannot be supported yet? https://github.com/ll

[clang] ed022d9 - [clang][AMDGPU] Enable module splitting by default (#128509)

2025-03-24 Thread via cfe-commits
Author: Pierre van Houtryve Date: 2025-03-24T14:43:08+01:00 New Revision: ed022d93b2fbfe52b7bdee786aa5cc49fa2323c4 URL: https://github.com/llvm/llvm-project/commit/ed022d93b2fbfe52b7bdee786aa5cc49fa2323c4 DIFF: https://github.com/llvm/llvm-project/commit/ed022d93b2fbfe52b7bdee786aa5cc49fa2323c4

[clang] [clang][AMDGPU] Enable module splitting by default (PR #128509)

2025-03-24 Thread Pierre van Houtryve via cfe-commits
https://github.com/Pierre-vh closed https://github.com/llvm/llvm-project/pull/128509 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [FMV][AArch64] Add feature CSSC and detect on linux platform. (PR #132727)

2025-03-24 Thread Alexandros Lamprineas via cfe-commits
labrinea wrote: Hi @jroelofs @DanielKristofKiss. I am not sure how to detect on other platforms. Suggestions for apple and windows welcome. https://github.com/llvm/llvm-project/pull/132727 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:

[libclc] [libclc] Add missing license headers to source IR files (PR #132758)

2025-03-24 Thread Kristof Beyls via cfe-commits
https://github.com/kbeyls approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/132758 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Add initial support for -mcpu=olympus. (PR #132368)

2025-03-24 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray approved this pull request. LGTM. (apologies for delay; in hospital in Oxford visiting my Dad, but he's gone back to sleep now) https://github.com/llvm/llvm-project/pull/132368 ___ cfe-commits mailing list cfe-commits@list

[clang] [CIR] Upstream initial for-loop support (PR #132266)

2025-03-24 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/132266 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Redo RUN lines in the builtin-functions test (PR #132762)

2025-03-24 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/132762 Make sure we run each configuration once with the bytecode interpreter and once with the current one. Add a triple to the one that was previously without. >From 0c741db6a105d5ca85cb336d921e5b1c4fb277ec Mon Sep

[clang] [flang] [llvm] [Clang][AMDGPU] Expose buffer load lds as a clang builtin (PR #132048)

2025-03-24 Thread Matt Arsenault via cfe-commits
Juan Manuel Martinez =?utf-8?q?Caamaño?= , Juan Manuel Martinez =?utf-8?q?Caamaño?= , Juan Manuel Martinez =?utf-8?q?Caamaño?= Message-ID: In-Reply-To: @@ -43,7 +43,7 @@ int bar() { return no_attr() + attr_in_target() + attr_not_in_target() + attr_in // CHECK-LABEL: @attr_inc

[clang] [flang] [llvm] [Clang][AMDGPU] Expose buffer load lds as a clang builtin (PR #132048)

2025-03-24 Thread Matt Arsenault via cfe-commits
Juan Manuel Martinez =?utf-8?q?Caamaño?= , Juan Manuel Martinez =?utf-8?q?Caamaño?= , Juan Manuel Martinez =?utf-8?q?Caamaño?= Message-ID: In-Reply-To: @@ -162,6 +162,8 @@ BUILTIN(__builtin_amdgcn_raw_buffer_load_b64, "V2UiQbiiIi", "n") BUILTIN(__builtin_amdgcn_raw_buffer_loa

[libclc] libclc: erfc: fix fp32 implementation (PR #132390)

2025-03-24 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: > Though this does seem to be an improvement so it might be worth merging > anyway. As you say, it fixes things for you and for mesa. Are you both > testing on FTZ implementations, by any chance? Yes, default run of the CTS using clvk ends up running with FTZ. https://github.

[clang] [clang][bytecode] Redo RUN lines in the builtin-functions test (PR #132762)

2025-03-24 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/132762 >From a63d77380e9168a3637167aed365e4f8790aaa08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 24 Mar 2025 16:46:22 +0100 Subject: [PATCH] [clang][bytecode] Redo RUN lines in the builtin

[clang] [clang][bytecode] Redo RUN lines in the builtin-functions test (PR #132762)

2025-03-24 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/132762 >From 9aaf6643cb37ab1ebf0049b0ee4129b2c1daf6dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 24 Mar 2025 16:46:22 +0100 Subject: [PATCH] [clang][bytecode] Redo RUN lines in the builtin

[clang] [clang][bytecode] Implement __builtin_{wcscmp, wcsncmp} (PR #132723)

2025-03-24 Thread Rainer Orth via cfe-commits
rorth wrote: This patch broke the [Solaris/sparcv9 bot](https://lab.llvm.org/buildbot/#/builders/13/builds/6151). https://github.com/llvm/llvm-project/pull/132723 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[clang] [clang][bytecode] Implement __builtin_{wcscmp, wcsncmp} (PR #132723)

2025-03-24 Thread Timm Baeder via cfe-commits
tbaederr wrote: I saw, I hope https://github.com/llvm/llvm-project/pull/132762 fixes the builder https://github.com/llvm/llvm-project/pull/132723 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[libclc] libclc: erfc: fix fp32 implementation (PR #132390)

2025-03-24 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: > It might be worth re-titling the PR to mention FTZ mode? Sure, I'm not sure what you have in mind, but feel free to do it when submitting it upstream (I cannot do it myself) https://github.com/llvm/llvm-project/pull/132390 ___ cfe-

[clang-tools-extra] [clang-tidy] Improve `bugprone-capturing-this-in-member-variable` check: add support of `bind` functions. (PR #132635)

2025-03-24 Thread Denis Mikhailov via cfe-commits
@@ -64,16 +64,21 @@ AST_MATCHER(CXXRecordDecl, correctHandleCaptureThisLambda) { constexpr const char *DefaultFunctionWrapperTypes = "::std::function;::std::move_only_function;::boost::function"; +constexpr const char *DefaultBindFunctions = "::std::bind;::boost::bind"; --

[clang] [llvm] [clang][DebugInfo] Add symbol for debugger with VTable information. (PR #130255)

2025-03-24 Thread Tom Tromey via cfe-commits
tromey wrote: `DW_AT_specification` has a fairly specific meaning in DWARF. I don't really understand why you want to link from the class type to the vtable (the reverse seems more useful to me), but I would suggest a new attribute, considering it is a new capability. The link from the class

[clang] [llvm] [AArch64] Add initial support for -mcpu=olympus. (PR #132368)

2025-03-24 Thread Ricardo Jesus via cfe-commits
rj-jesus wrote: Thank you very much, and sorry, I didn't want to sound like I was rushing. I just wasn't sure if I should wait or not, so I thought I'd check. I hope everything goes well! https://github.com/llvm/llvm-project/pull/132368 ___ cfe-commi

[libclc] 70c325b - [libclc] Move fp32 sincos helpers to CLC library (#132753)

2025-03-24 Thread via cfe-commits
Author: Fraser Cormack Date: 2025-03-24T16:09:31Z New Revision: 70c325bf6a1d3d801957e8714178c833156a72e3 URL: https://github.com/llvm/llvm-project/commit/70c325bf6a1d3d801957e8714178c833156a72e3 DIFF: https://github.com/llvm/llvm-project/commit/70c325bf6a1d3d801957e8714178c833156a72e3.diff LOG

[libclc] [libclc] Move fp32 sincos helpers to CLC library (PR #132753)

2025-03-24 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck closed https://github.com/llvm/llvm-project/pull/132753 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Redo RUN lines in the builtin-functions test (PR #132762)

2025-03-24 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/132762 >From 6d483b380bb0c7ffad8afee172dc251372a679e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 24 Mar 2025 16:46:22 +0100 Subject: [PATCH] [clang][bytecode] Redo RUN lines in the builtin

[libclc] a6a56a3 - [libclc] erfc: fix fp32 implementation in FTZ mode (#132390)

2025-03-24 Thread via cfe-commits
Author: Romaric Jodin Date: 2025-03-24T16:08:54Z New Revision: a6a56a326a3c209e19927942595877aceea368b7 URL: https://github.com/llvm/llvm-project/commit/a6a56a326a3c209e19927942595877aceea368b7 DIFF: https://github.com/llvm/llvm-project/commit/a6a56a326a3c209e19927942595877aceea368b7.diff LOG:

[clang] [clang][bytecode] Implement __builtin_{wcscmp, wcsncmp} (PR #132723)

2025-03-24 Thread Timm Baeder via cfe-commits
tbaederr wrote: If the target is the problem it should still work though, right? If all RUN lines have a triple set, the native triple doesn't matter, e.g. https://github.com/llvm/llvm-project/blob/main/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp does the same thing https://github.

[clang] [NFC][clang] Split clang/lib/CodeGen/CGBuiltin.cpp into target-specific files (PR #132252)

2025-03-24 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray edited https://github.com/llvm/llvm-project/pull/132252 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [Clang][AMDGPU] Expose buffer load lds as a clang builtin (PR #132048)

2025-03-24 Thread Matt Arsenault via cfe-commits
Juan Manuel Martinez =?utf-8?q?Caamaño?= , Juan Manuel Martinez =?utf-8?q?Caamaño?= , Juan Manuel Martinez =?utf-8?q?Caamaño?= Message-ID: In-Reply-To: @@ -3368,7 +3368,7 @@ bool AMDGPUInstructionSelector::selectG_INSERT_VECTOR_ELT( } bool AMDGPUInstructionSelector::selectB

[clang] [flang] [llvm] [Clang][AMDGPU] Expose buffer load lds as a clang builtin (PR #132048)

2025-03-24 Thread Matt Arsenault via cfe-commits
Juan Manuel Martinez =?utf-8?q?Caamaño?= , Juan Manuel Martinez =?utf-8?q?Caamaño?= , Juan Manuel Martinez =?utf-8?q?Caamaño?= Message-ID: In-Reply-To: @@ -43,7 +43,7 @@ int bar() { return no_attr() + attr_in_target() + attr_not_in_target() + attr_in // CHECK-LABEL: @attr_inc

[clang] [NFC][analyzer] Add testcase to highlight GenericTaint bug (PR #132765)

2025-03-24 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat created https://github.com/llvm/llvm-project/pull/132765 Currently `optin.taint.GenericTaint` can produce false positives if a [format attribute](https://clang.llvm.org/docs/AttributeReference.html#format) is applied on a non-static method. This commit adds a test

[clang] [clang-tools-extra] [clang] Concepts: support pack expansions for type constraints (PR #132626)

2025-03-24 Thread Matheus Izvekov via cfe-commits
@@ -70,7 +70,14 @@ struct alignas(ConstraintAlignment) AtomicConstraint { // We do not actually substitute the parameter mappings into the // constraint expressions, therefore the constraint expressions are // the originals, and comparing them will suffice. -if

[clang] [clang-tools-extra] [clang] Concepts: support pack expansions for type constraints (PR #132626)

2025-03-24 Thread Matheus Izvekov via cfe-commits
@@ -70,7 +70,14 @@ struct alignas(ConstraintAlignment) AtomicConstraint { // We do not actually substitute the parameter mappings into the // constraint expressions, therefore the constraint expressions are // the originals, and comparing them will suffice. -if

[clang] [CIR] Add binary operators (PR #132420)

2025-03-24 Thread Morris Hafner via cfe-commits
@@ -143,6 +147,114 @@ class CIRBaseBuilderTy : public mlir::OpBuilder { return createCast(loc, cir::CastKind::bitcast, src, newTy); } + mlir::Value createBinop(mlir::Value lhs, cir::BinOpKind kind, + const llvm::APInt &rhs) { +return create(

[clang] [libclang/python] Add equality comparison operators for File (PR #130383)

2025-03-24 Thread Jannick Kremer via cfe-commits
@@ -16,3 +17,76 @@ def test_file(self): self.assertEqual(str(file), "t.c") self.assertEqual(file.name, "t.c") self.assertEqual(repr(file), "") + +def test_file_eq(self): +path = os.path.join(inputs_dir, "hello.cpp") +header_path = os.

[clang] [llvm] [HLSL] Add support to branch/flatten attributes to switch (PR #131739)

2025-03-24 Thread Chris B via cfe-commits
@@ -2276,6 +2276,29 @@ void CodeGenFunction::EmitSwitchStmt(const SwitchStmt &S) { // failure. llvm::BasicBlock *DefaultBlock = createBasicBlock("sw.default"); SwitchInsn = Builder.CreateSwitch(CondV, DefaultBlock); + switch (HLSLControlFlowAttr) { + case HLSLControlFl

[clang] [clang-tools-extra] [clang] Concepts: support pack expansions for type constraints (PR #132626)

2025-03-24 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 commented: Thanks for working on it. The patch looks good overall, but as you've suggested that this is incomplete, I think we want to go over it again after the cache part gets adapted. I left a question, for which we probably want an assertion there. https://githu

[clang] [clang][analyzer] Fix InvalidatedIterator crash caused by overload operator member function with explicit this (PR #132581)

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

[clang] [clang-tools-extra] [clang][AST][clang-tidy] Do not set a reduced traversal scope in ASTM… (PR #132725)

2025-03-24 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp created https://github.com/llvm/llvm-project/pull/132725 …atchFinder This was introduced here with the purpose of speed up clang-tidy, making it not process system headers: https://github.com/llvm/llvm-project/commit/e4a8969e56572371201863594b3a549de2e23f32 H

[clang] [CIR] Add binary operators (PR #132420)

2025-03-24 Thread Morris Hafner via cfe-commits
@@ -143,6 +147,114 @@ class CIRBaseBuilderTy : public mlir::OpBuilder { return createCast(loc, cir::CastKind::bitcast, src, newTy); } + mlir::Value createBinop(mlir::Value lhs, cir::BinOpKind kind, + const llvm::APInt &rhs) { +return create(

[clang] [clang-tools-extra] [clang][AST][clang-tidy] Do not set a reduced traversal scope in ASTM… (PR #132725)

2025-03-24 Thread Gábor Horváth via cfe-commits
Xazax-hun wrote: I think it might be cleaner if reverting the previous solution and introducing this new one would be two separate commits. https://github.com/llvm/llvm-project/pull/132725 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https

[clang] [clang] Decay types of function and constant template parameter packs (PR #132189)

2025-03-24 Thread Matheus Izvekov via cfe-commits
@@ -1277,19 +1278,27 @@ QualType Sema::CheckNonTypeTemplateParameterType(TypeSourceInfo *&TSI, TSI = SubstAutoTypeSourceInfoDependent(TSI); } - return CheckNonTypeTemplateParameterType(TSI->getType(), Loc); + return CheckNonTypeTemplateParameterType(TSI->getType(), Lo

[clang] [clang-tools-extra] [clang][AST][clang-tidy] Do not set a reduced traversal scope in ASTM… (PR #132725)

2025-03-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Carlos Galvez (carlosgalvezp) Changes …atchFinder This was introduced here with the purpose of speed up clang-tidy, making it not process system headers: https://github.com/llvm/llvm-project/commit/e4a8969e56572371201863594b3a549de2e23f3

[clang] [clang][bytecode] Implement __builtin_{wcscmp, wcsncmp} (PR #132723)

2025-03-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/132723.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/InterpBuiltin.cpp (+26-2) - (modified) clang/test/AST/ByteCode/builtin-functions

[clang] [clang-tools-extra] [clang][AST][clang-tidy] Do not set a reduced traversal scope in ASTM… (PR #132725)

2025-03-24 Thread kadir çetinkaya via cfe-commits
@@ -94,8 +94,6 @@ Improvements to clang-tidy - :program:`clang-tidy` no longer processes declarations from system headers by default, greatly improving performance. This behavior is disabled if the `SystemHeaders` option is enabled. - Note: this may lead to false negatives

[clang] [clang-tools-extra] [clang][AST][clang-tidy] Do not set a reduced traversal scope in ASTM… (PR #132725)

2025-03-24 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet edited https://github.com/llvm/llvm-project/pull/132725 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][AMDGPU] Enable module splitting by default (PR #128509)

2025-03-24 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-x86_64-debian` running on `lldb-x86_64-debian` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/162/builds/18769 Here is the relevant piece of the build lo

[clang] [Flang] Link `-lflang_rt.runtime` if available on the device (PR #132737)

2025-03-24 Thread Michael Kruse via cfe-commits
@@ -9337,6 +9337,11 @@ void LinkerWrapper::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs.push_back( Args.MakeArgString("--device-linker=" + TC.getTripleString() + "=" + "-lclang_rt.builtins")); + bool HasFlan

[clang] 061b1d1 - [clang][bytecode] Redo RUN lines in the builtin-functions test (#132762)

2025-03-24 Thread via cfe-commits
Author: Timm Baeder Date: 2025-03-24T18:33:36+01:00 New Revision: 061b1d1149660d9de69e35d1ab1759480aa6885a URL: https://github.com/llvm/llvm-project/commit/061b1d1149660d9de69e35d1ab1759480aa6885a DIFF: https://github.com/llvm/llvm-project/commit/061b1d1149660d9de69e35d1ab1759480aa6885a.diff L

[clang] [clang][bytecode] Redo RUN lines in the builtin-functions test (PR #132762)

2025-03-24 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/132762 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Format test files (PR #132428)

2025-03-24 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/132428 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add binary operators (PR #132420)

2025-03-24 Thread Morris Hafner via cfe-commits
mmha wrote: As @andykaylor suggested, I'm going to split off `BinOpOverflowOp` and the pointer arithmetic bits into a separate patch next. https://github.com/llvm/llvm-project/pull/132420 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang] default clause replaced by otherwise clause for metadirective in OpenMP 5.2 (PR #128640)

2025-03-24 Thread Urvi Rav via cfe-commits
https://github.com/ravurvi20 updated https://github.com/llvm/llvm-project/pull/128640 >From 6ebd5991788608fbd104ea9c23230912044462d3 Mon Sep 17 00:00:00 2001 From: Urvi Rav Date: Tue, 25 Feb 2025 00:49:07 -0600 Subject: [PATCH] default clause replaced by otherwise clause for metadirective ---

[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-03-24 Thread marius doerner via cfe-commits
https://github.com/mariusdr updated https://github.com/llvm/llvm-project/pull/132460 >From d4af25b14fb21f50c3771cce4595ca5c1bb920a7 Mon Sep 17 00:00:00 2001 From: marius doerner Date: Fri, 21 Mar 2025 20:19:57 +0100 Subject: [PATCH 1/3] [clang] Placement new error when modifying consts Raise a

[libclc] libclc: erfc: fix fp32 implementation (PR #132390)

2025-03-24 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck edited https://github.com/llvm/llvm-project/pull/132390 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] libclc: erfc: fix fp32 implementation (PR #132390)

2025-03-24 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck commented: Nice one! This appears only to fix the precision issues I see when in FTZ mode. Without FTZ mode, I still see, e.g., ``` 1:erfc fp32 ... ERROR: erfc: -24.674929 ulp error at 0x1.3b8p+3 (0x411dc000): *0x1.9p-145 vs. 0x0p+0 ERR

[libclc] libclc: erfc: fix fp32 implementation (PR #132390)

2025-03-24 Thread Fraser Cormack via cfe-commits
@@ -130,7 +130,8 @@ _CLC_OVERLOAD _CLC_DEF float erf(float x) { // |x| < 6 float z = as_float(ix & 0xf000); -float r = exp(mad(-z, z, -0.5625f)) * exp(mad(z-absx, z+absx, q)); +float r = exp(-z * z) * exp(mad(z - absx, z + absx, q)); +r *= 0x1.23ba94p-1

[libclc] [libclc] Move fp32 sincos helpers to CLC library (PR #132753)

2025-03-24 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck created https://github.com/llvm/llvm-project/pull/132753 This commit moves most of the sincos helper functions to the CLC library. It simultaneously vectorizes them with the aim to increase performance for vector types by avoiding scalarization. Some helpers for

[clang] [clang][analyzer] Move 'alpha.core.FixedAddressDereference' out of alpha (PR #132404)

2025-03-24 Thread Balázs Kéri via cfe-commits
https://github.com/balazske updated https://github.com/llvm/llvm-project/pull/132404 From ecbda095420a1ec300fd4793600c813acc310475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?= Date: Fri, 21 Mar 2025 15:02:38 +0100 Subject: [PATCH 1/2] [clang][analyzer] Move 'alpha.core.Fi

[libclc] libclc: erfc: fix fp32 implementation (PR #132390)

2025-03-24 Thread Romaric Jodin via cfe-commits
https://github.com/rjodinchr updated https://github.com/llvm/llvm-project/pull/132390 >From 95eeda421b4cdc468f828d36146d609e80d195d9 Mon Sep 17 00:00:00 2001 From: Romaric Jodin Date: Fri, 21 Mar 2025 13:51:41 +0100 Subject: [PATCH 1/2] libclc: erfc: fix fp32 implementation On some implementat

[clang] [clang-tools-extra] [clang][AST][clang-tidy] Do not set a reduced traversal scope in ASTM… (PR #132725)

2025-03-24 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > reverting the previous solution I thought about that, yes that might be cleaner. Will do! https://github.com/llvm/llvm-project/pull/132725 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[clang] [Clang] [NFC] Introduce a helper for emitting compatibility diagnostics (PR #132348)

2025-03-24 Thread via cfe-commits
@@ -178,6 +191,11 @@ multiclass CXXCompat< "CXX98Compat", "CXXPre"#std_ver#"Compat"))>, DefaultIgnore; + +def : CompatWarningId< Sirraide wrote: I’m still figuring out how to

<    1   2   3   4   5   >