[clang] [llvm] Support alternative sections for patchable function entries (PR #131230)

2025-04-05 Thread Sami Tolvanen via cfe-commits
https://github.com/samitolvanen closed https://github.com/llvm/llvm-project/pull/131230 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC][doc] improve "options" sections of `bugprone-` and `modernize-` checks (PR #133525)

2025-04-05 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp approved this pull request. LGTM, thanks for improving the docs! https://github.com/llvm/llvm-project/pull/133525 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [Clang][CodeGen] Do not set inbounds flag for struct GEP with null base pointers (PR #130734)

2025-04-05 Thread Nikita Popov via cfe-commits
@@ -64,21 +64,27 @@ class CGBuilderTy : public CGBuilderBaseTy { Address createConstGEP2_32(Address Addr, unsigned Idx0, unsigned Idx1, const llvm::Twine &Name) { const llvm::DataLayout &DL = BB->getDataLayout(); -llvm::GetElementPtrInst *

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

2025-04-05 Thread via cfe-commits
Author: Joseph Huber Date: 2025-03-24T10:02:39-05:00 New Revision: b1a8e6e3ae1d7d8c8dbb5e3b9c5df03283fca279 URL: https://github.com/llvm/llvm-project/commit/b1a8e6e3ae1d7d8c8dbb5e3b9c5df03283fca279 DIFF: https://github.com/llvm/llvm-project/commit/b1a8e6e3ae1d7d8c8dbb5e3b9c5df03283fca279.diff

[clang] [ByteCode] Avoid repeated hash lookups (NFC) (PR #132141)

2025-04-05 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/132141 ___ 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-04-05 Thread Karol Herbst via cfe-commits
karolherbst wrote: It does, thank you! 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

[clang] [llvm] [mlir] [MLIR][OpenMP] Add codegen for teams reductions (PR #133310)

2025-04-05 Thread Jan Leyonberg via cfe-commits
@@ -4161,6 +4247,37 @@ convertOmpDistribute(Operation &opInst, llvm::IRBuilderBase &builder, if (failed(checkImplementationStatus(opInst))) return failure(); + /// Process teams op reduction in distribute if the reduction is contained in + /// the distribute op. + om

[clang] [Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers (PR #130990)

2025-04-05 Thread Yingwei Zheng via cfe-commits
dtcxzyw wrote: > willreturn means we eliminate the call The ubsan handler cannot be eliminated because `inaccessiblemem: readwrite` indicates that it has externally observable side effects. BTW, I just worry that some risky instructions (e.g., divided by zero) may be moved before the handler

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

2025-04-05 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,68 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c2y -pedantic -Wall -Wno-comment -verify %s + +/* WG14 N3369: Clang 21 + * _Lengthof operator + * + * Adds an operator to get the length of an array. Note that WG14 N3469 renamed + * this operator to _Countof. + */ -

[clang] [analyzer] Unknown array lvalue element in Store (PR #133381)

2025-04-05 Thread via cfe-commits
https://github.com/T-Gruber updated https://github.com/llvm/llvm-project/pull/133381 >From 241c95a956a440b9a118654baad55fb253d2413c Mon Sep 17 00:00:00 2001 From: T-Gruber Date: Fri, 28 Mar 2025 07:37:59 +0100 Subject: [PATCH 1/7] Remove early return for UnknownVal --- clang/lib/StaticAnalyze

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

2025-04-05 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl edited 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] [llvm] [HLSL] Implement the `smoothstep` intrinsic (PR #132288)

2025-04-05 Thread Kaitlin Peng via cfe-commits
@@ -322,5 +322,53 @@ reflect(__detail::HLSL_FIXED_VECTOR I, __detail::HLSL_FIXED_VECTOR N) { return __detail::reflect_vec_impl(I, N); } + +//===--===// +// smoothstep builtin +//===---

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

2025-04-05 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes edited 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] [C23] Fix compound literals within function prototype (PR #132097)

2025-04-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime` running on `omp-vega20-0` while building `clang` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/30/builds/18034 Here is the releva

[clang-tools-extra] [clang-tidy][C++20] Add support for Initialization Forwarding in structs and Nested Objects within modernize-use-emplace (PR #131969)

2025-04-05 Thread David Rivera via cfe-commits
https://github.com/RiverDave updated https://github.com/llvm/llvm-project/pull/131969 >From 760916be170bc3a3e4188f9b399050cc92ab334f Mon Sep 17 00:00:00 2001 From: David Rivera Date: Sun, 16 Mar 2025 16:20:16 -0400 Subject: [PATCH] [clang-tidy] Add support for Initialization Forwarding in Nest

[clang] 4a73c99 - [clang][Modules] Fix the Size of `RecordDecl`'s `BitCodeAbbrevOp` (#133500)

2025-04-05 Thread via cfe-commits
Author: Qiongsi Wu Date: 2025-04-01T12:55:17-07:00 New Revision: 4a73c99329ed36712a6faa8e37aa895cfeac23ce URL: https://github.com/llvm/llvm-project/commit/4a73c99329ed36712a6faa8e37aa895cfeac23ce DIFF: https://github.com/llvm/llvm-project/commit/4a73c99329ed36712a6faa8e37aa895cfeac23ce.diff LO

[clang] [compiler-rt] [PGO][Offload] Hide GPU entrypoint on Darwin (PR #132966)

2025-04-05 Thread Ethan Luis McDonough via cfe-commits
EthanLuisMcDonough wrote: > It worked before your patch right? Is this what it exposed before then? In 83e180c, I marked `__llvm_write_custom_profile` as used, which fixed the Darwin code stripping bug but broke the library on embedded systems. In c50d39f, I removed the used attribute, which b

[clang] 574e43d - [C23] Allow casting from a null pointer constant to nullptr_t (#133742)

2025-04-05 Thread via cfe-commits
Author: Aaron Ballman Date: 2025-04-02T07:28:45-04:00 New Revision: 574e43dffd7a97d32f996df58b1787ad5158529c URL: https://github.com/llvm/llvm-project/commit/574e43dffd7a97d32f996df58b1787ad5158529c DIFF: https://github.com/llvm/llvm-project/commit/574e43dffd7a97d32f996df58b1787ad5158529c.diff

[clang] acc6bcd - Support alternative sections for patchable function entries (#131230)

2025-04-05 Thread via cfe-commits
Author: Sami Tolvanen Date: 2025-04-02T21:53:55Z New Revision: acc6bcdc504ad2e8c09a628dc18de0067f7344b8 URL: https://github.com/llvm/llvm-project/commit/acc6bcdc504ad2e8c09a628dc18de0067f7344b8 DIFF: https://github.com/llvm/llvm-project/commit/acc6bcdc504ad2e8c09a628dc18de0067f7344b8.diff LOG:

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

2025-04-05 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] [feat] add --repository-line-prefix argument (PR #131280)

2025-04-05 Thread Mohamed Emad via cfe-commits
https://github.com/hulxv updated https://github.com/llvm/llvm-project/pull/131280 >From bf9bd4156cb7f652c9cf0477f537e5c58b470448 Mon Sep 17 00:00:00 2001 From: hulxv Date: Fri, 14 Mar 2025 07:39:15 +0200 Subject: [PATCH 1/8] [clang-doc] [feat] add `--repository-line-prefix` argument (fix #5981

[clang] [llvm] [HLSL] Buffer handle globals should not be constants (PR #130231)

2025-04-05 Thread Justin Bogner via cfe-commits
https://github.com/bogner updated https://github.com/llvm/llvm-project/pull/130231 >From bf5e5b4b1060f51d37b05c905b4327a40316f158 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Thu, 6 Mar 2025 17:50:12 -0800 Subject: [PATCH 1/3] [HLSL] Buffer handle globals should not be constants If these

[clang] [clang-format] add option to control bin-packing keyworded parameters (PR #131605)

2025-04-05 Thread Eugene Shalygin via cfe-commits
https://github.com/zeule updated https://github.com/llvm/llvm-project/pull/131605 >From 7d79e05ec1a6086c85f73d087ac1667fc0246d22 Mon Sep 17 00:00:00 2001 From: Eugene Shalygin Date: Mon, 17 Mar 2025 11:23:35 +0100 Subject: [PATCH] [clang-format] option to control bin-packing keyworded paramete

[clang] Correctly diagnose incomplete arrays with static storage in C (PR #134374)

2025-04-05 Thread Mariya Podchishchaeva via cfe-commits
@@ -319,6 +319,9 @@ Improvements to Clang's diagnostics - ``-Wc++98-compat`` no longer diagnoses use of ``__auto_type`` or ``decltype(auto)`` as though it was the extension for ``auto``. (#GH47900) +- Now correctly diagnose use of a tentative definition of an array with stat

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-04-05 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/134016 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[Clang][Cmake] fix libtool duplicate member name warnings" (PR #133795)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-backend-amdgpu Author: Farzon Lotfi (farzonl) Changes Reverts llvm/llvm-project#133619 --- Full diff: https://github.com/llvm/llvm-project/pull/133795.diff 4 Files Affected: - (modified) clang/lib/CodeGen/CMakeLists

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

2025-04-05 Thread Aaron Ballman via cfe-commits
@@ -170,102 +132,112 @@ struct alignas(ConstraintAlignment) FoldExpandedConstraint { const Expr *Pattern) : Kind(K), Constraint(std::move(C)), Pattern(Pattern) {}; - template - bool subsumes(const FoldExpandedConstraint &Other, -

[clang] [Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers (PR #130990)

2025-04-05 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw updated https://github.com/llvm/llvm-project/pull/130990 >From 48f8e2591c317f90eff6f1d0a4ecdf27e19a1b01 Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Thu, 13 Mar 2025 00:39:09 +0800 Subject: [PATCH 1/5] [Clang][CodeGen][UBSan] Add pre-commit tests. NFC. --- cla

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcisync (Sync Delay) extension (PR #132184)

2025-04-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,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/14952 Here is the r

[clang-tools-extra] [clang-tidy][misc-const-correctness] fix fp when using const array type. (PR #133018)

2025-04-05 Thread Baranov Victor via cfe-commits
@@ -169,6 +172,7 @@ void ConstCorrectnessCheck::check(const MatchFinder::MatchResult &Result) { if (ArrayT->getElementType()->isPointerType()) VC = VariableCategory::Pointer; } + llvm::errs() << (int)VC << "\n"; vbvictor wrote: This also unintent

[clang] [llvm] [clang][IR] Overload @llvm.thread.pointer to support non-AS0 targets (PR #132489)

2025-04-05 Thread Jessica Clarke via cfe-commits
https://github.com/jrtc27 created https://github.com/llvm/llvm-project/pull/132489 Thraed-local globals live, by default, in the default globals address space, which may not be 0, so we need to overload @llvm.thread.pointer to support other address spaces, and use the default globals address spa

[clang] [clang-tools-extra] [lldb] Reland: [clang] preserve class type sugar when taking pointer to member (PR #132234)

2025-04-05 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: Yeah, clang side unchanged. The lldb changed stuff is trivial, I don't think it's worth waiting a long time for lldb input. https://github.com/llvm/llvm-project/pull/132234 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https

[clang] 4fb9650 - [clang][docs] Release Note for RISC-V qci-(no)nest

2025-04-05 Thread Sam Elliott via cfe-commits
Author: Sam Elliott Date: 2025-03-24T13:04:00-07:00 New Revision: 4fb9650b21fc038ca044ac1ca7fcd5be0b44194a URL: https://github.com/llvm/llvm-project/commit/4fb9650b21fc038ca044ac1ca7fcd5be0b44194a DIFF: https://github.com/llvm/llvm-project/commit/4fb9650b21fc038ca044ac1ca7fcd5be0b44194a.diff L

[clang] [sanitizer][CFI] Add support to build CFI with sanitize-coverage (PR #131296)

2025-04-05 Thread Dmitry Chestnykh via cfe-commits
https://github.com/chestnykh closed https://github.com/llvm/llvm-project/pull/131296 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CLANG-CL] ignores wpadded (PR #130182)

2025-04-05 Thread Alex Bradbury via cfe-commits
=?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes Message-ID: In-Reply-To: asb wrote: I'm

[clang] Reland [Clang][Cmake] fix libtool duplicate member name warnings (PR #133850)

2025-04-05 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl created https://github.com/llvm/llvm-project/pull/133850 fixes https://github.com/llvm/llvm-project/issues/133199 The fix to reland was moving `Targets/DirectX.cpp` from `clang/lib/CodeGen/Targets/CMakeLists.txt` back to `clang/lib/CodeGen/CMakeLists.txt`. That cha

[clang] [llvm] [mlir] [MLIR][OpenMP] Add codegen for teams reductions (PR #133310)

2025-04-05 Thread Sergio Afonso via cfe-commits
@@ -2378,7 +2464,7 @@ convertOmpParallel(omp::ParallelOp opInst, llvm::IRBuilderBase &builder, llvm::OpenMPIRBuilder::InsertPointOrErrorTy contInsertPoint = ompBuilder->createReductions(builder.saveIP(), allocaIP, - reduct

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

2025-04-05 Thread Justin Bogner via cfe-commits
@@ -21,20 +21,15 @@ class NamespaceDecl; class Sema; class HLSLExternalSemaSource : public ExternalSemaSource { +private: bogner wrote: The default visibility in `class` is private, so this doesn't do anything https://github.com/llvm/llvm-project/pull/131032

[clang] 59d0607 - [NFC][HLSL] Move emitter out of AMDGPU.cpp (#133251)

2025-04-05 Thread via cfe-commits
Author: Farzon Lotfi Date: 2025-03-27T11:47:14-04:00 New Revision: 59d06071e9b509e874f24c465b13eb77cffa1d42 URL: https://github.com/llvm/llvm-project/commit/59d06071e9b509e874f24c465b13eb77cffa1d42 DIFF: https://github.com/llvm/llvm-project/commit/59d06071e9b509e874f24c465b13eb77cffa1d42.diff

[clang] [llvm] [AArch64] Add FEAT_FPAC to Neoverse V2 (PR #133054)

2025-04-05 Thread Ricardo Jesus via cfe-commits
@@ -19,6 +19,7 @@ // CHECK-NEXT: FEAT_ETE Enable Embedded Trace Extension // CHECK-NEXT: FEAT_FCMA Enable Armv8.3-A Floating-point complex number support // CHECK-NEXT: FEAT

[clang] [Clang] Fix a lambda pattern comparison mismatch after ecc7e6ce4 (PR #133863)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes In ecc7e6ce4, we tried to inspect the `LambdaScopeInfo` on stack to recover the instantiating lambda captures. However, there was a mismatch in how we compared the pattern declarations of lambdas: the constr

[clang] [llvm] [HLSL] Add SPIR-V target type for StructuredBuffers (PR #132027)

2025-04-05 Thread Nathan Gauër via cfe-commits
@@ -386,13 +386,29 @@ llvm::Type *CommonSPIRTargetCodeGenInfo::getHLSLType( if (ContainedTy.isNull()) return nullptr; -assert(!ResAttrs.RawBuffer && - "Raw buffers handles are not implemented for SPIR-V yet"); assert(!ResAttrs.IsROV &&

[clang] [HLSL] Implement the `lit` intrinsic (PR #134171)

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

[clang] [NFC][analyzer] Multipart checker refactor 2: NullabilityChecker (PR #132250)

2025-04-05 Thread Balazs Benics via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: @@ -1403,6 +1403,16 @@ void NullabilityChecker::printState(raw_ostream &Out, ProgramStateRef State, } } +// The checker group "nullability" consists of the checkers that are

[clang-tools-extra] [clang-tidy] do not diagnose array types within implicit instantiations of a template (PR #132924)

2025-04-05 Thread St. Muench via cfe-commits
https://github.com/stmuench updated https://github.com/llvm/llvm-project/pull/132924 >From 823475c91f9cdf64c816e9498a42f5ee9b2080be Mon Sep 17 00:00:00 2001 From: stmuench Date: Tue, 25 Mar 2025 12:38:53 +0100 Subject: [PATCH] [clang-tidy] do not diagn. array types in implicit templ. instantia

[clang] [CLANG-CL] ignores wpadded (PR #130182)

2025-04-05 Thread Alex Bradbury via cfe-commits
=?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes Message-ID: In-Reply-To:

[clang] [analyzer] Remove deprecated option VirtualCall:PureOnly (PR #131823)

2025-04-05 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat created https://github.com/llvm/llvm-project/pull/131823 VirtualCallChecker.cpp implements two related checkers: - `optin.cplusplus.VirtualCall` which reports situations when constructors or destructors call virtual methods (which is bugprone because it does not tr

[clang] [llvm][doc]: Merge the contents of identical entries. (PR #134089)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (YLChenZ) Changes Closes #133706. before the patch: ![docb4](https://github.com/user-attachments/assets/6db1000f-d555-48b8-8a19-85c41b043fd8) after the patch: ![doc-after](https://github.com/user-attachments/assets/1cff64b6-db2e-4

[clang] [clang] Merge gtest binaries into AllClangUnitTests (PR #134196)

2025-04-05 Thread Reid Kleckner via cfe-commits
https://github.com/rnk updated https://github.com/llvm/llvm-project/pull/134196 >From 528be44ebae8ea5cd7f23c51ad11c314a73f152b Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Fri, 28 Mar 2025 22:11:05 -0700 Subject: [PATCH 1/2] [clang] Merge gtest binaries into AllClangUnitTests This reduces

[clang] 954a3de - Reland [Coverage] Fix region termination for GNU statement expressions (#132222)

2025-04-05 Thread via cfe-commits
Author: Justin Cady Date: 2025-03-21T11:59:01-04:00 New Revision: 954a3de7838a8c496ef1d1730127415b3e9786f9 URL: https://github.com/llvm/llvm-project/commit/954a3de7838a8c496ef1d1730127415b3e9786f9 DIFF: https://github.com/llvm/llvm-project/commit/954a3de7838a8c496ef1d1730127415b3e9786f9.diff L

[clang] [llvm] [RISCV] SiFive CLIC Support (PR #132481)

2025-04-05 Thread Craig Topper via cfe-commits
@@ -230,10 +230,16 @@ bool PEI::runOnMachineFunction(MachineFunction &MF) { // with stack arguments. TFI->spillFPBP(MF); + LLVM_DEBUG(llvm::dbgs() << "Before calculateCallFrameInfo \n"); topperc wrote: Leftover debug code? https://github.com/llvm/llvm-p

[clang] Bypass alignment option based on architecture features instead of command-line flags (PR #134099)

2025-04-05 Thread Victor Campos via cfe-commits
https://github.com/vhscampos commented: Review of the commit msg: - Add some categories to the title, like [Clang][ARM] - The new solution still uses the command-line options (inside the function `getARMTargetFeatures`). However it also takes into account the architecture in order to determine

[clang] [clang-format] add option to control bin-packing keyworded parameters (PR #131605)

2025-04-05 Thread Eugene Shalygin via cfe-commits
https://github.com/zeule edited https://github.com/llvm/llvm-project/pull/131605 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DirectX] Implement UseNativeLowPrecision shader flag analysis (PR #134288)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-directx @llvm/pr-subscribers-clang-codegen Author: Deric C. (Icohedron) Changes Fixes #112267 --- Full diff: https://github.com/llvm/llvm-project/pull/134288.diff 4 Files Affected: - (modified) clang/lib/CodeGen/CGHLSLRuntime.cpp (+3) - (a

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [lldb] [llvm] [compiler-rt] Disable LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON on AIX. (PR #131200)

2025-04-05 Thread Alexander Richardson via cfe-commits
@@ -223,6 +223,13 @@ endif() # This can be used to detect whether we're in the runtimes build. set(LLVM_RUNTIMES_BUILD ON) +if (LLVM_ENABLE_PER_TARGET_RUNTIME_DIR AND UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX") + # Set LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF as AIX doesn't s

[clang] [Clang][CodeGen] Do not set inbounds flag for struct GEP with null base pointers (PR #130734)

2025-04-05 Thread Yingwei Zheng via cfe-commits
@@ -64,21 +64,27 @@ class CGBuilderTy : public CGBuilderBaseTy { Address createConstGEP2_32(Address Addr, unsigned Idx0, unsigned Idx1, const llvm::Twine &Name) { const llvm::DataLayout &DL = BB->getDataLayout(); -llvm::GetElementPtrInst *

[clang] [alpha.webkit.UnretainedLambdaCapturesChecker] Add the support for protectedSelf (PR #132363)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ryosuke Niwa (rniwa) Changes This PR adds the support for treating capturing of "self" as safe if the lambda simultaneously captures "protectedSelf", which is a RetainPtr of "self". This PR also fixes a bug that the chec

[clang] [HLSL] Implement the `lit` intrinsic (PR #134171)

2025-04-05 Thread Deric C. via cfe-commits
@@ -101,6 +101,16 @@ constexpr vector smoothstep_vec_impl(vector Min, vector Max, #endif } +template constexpr vector lit_impl(T NDotL, T NDotH, T M) { + bool DiffuseCond = NDotL < 0; + T Diffuse = select(DiffuseCond, 0, NDotL); + vector Result = {1, Diffuse, 0, 1}; + bo

[clang] 7492666 - [clang][bytecode] Implement __builtin_wmemchr (#132254)

2025-04-05 Thread via cfe-commits
Author: Timm Baeder Date: 2025-03-20T21:01:14+01:00 New Revision: 7492666482aececf2a470a8b8a44580d7f8712c3 URL: https://github.com/llvm/llvm-project/commit/7492666482aececf2a470a8b8a44580d7f8712c3 DIFF: https://github.com/llvm/llvm-project/commit/7492666482aececf2a470a8b8a44580d7f8712c3.diff L

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

2025-04-05 Thread James Y Knight via cfe-commits
jyknight wrote: The intent of this standards change is that everyone should be able to depend on library functions from string.h, no matter how minimal or bare-metal their environment. The requirement is now: - , , , , , , , , , and . - , except strcoll, strdup, strerror, strndup, strtok, st

[clang] [flang] [flang][OpenMP] Upstream first part of `do concurrent` mapping (PR #126026)

2025-04-05 Thread Kareem Ergawy via cfe-commits
https://github.com/ergawy closed https://github.com/llvm/llvm-project/pull/126026 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExprConst] Check record base classes for valid structs (PR #132270)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes In error cases, the base might be None. Fixes https://github.com/llvm/llvm-project/issues/132257 --- Full diff: https://github.com/llvm/llvm-project/pull/132270.diff 2 Files Affected: - (modified) clang/l

[clang] [Clang][CodeGen] Do not set inbounds flag for struct GEP with null base pointers (PR #130734)

2025-04-05 Thread Yingwei Zheng via cfe-commits
@@ -42,6 +42,11 @@ Potentially Breaking Changes C/C++ Language Potentially Breaking Changes --- +- Some old-style offsetof idioms like ``((int)(&(((struct S *)0)->field)))`` are treated dtcxzyw wrote: I think it is jus

[clang] [llvm] [PGO][Offload] Disable PGO on NVPTX (PR #133522)

2025-04-05 Thread Ethan Luis McDonough via cfe-commits
https://github.com/EthanLuisMcDonough created https://github.com/llvm/llvm-project/pull/133522 None >From d21330ea2a3d2cd7ea035361e239bb3da16fbb9f Mon Sep 17 00:00:00 2001 From: Ethan Luis McDonough Date: Fri, 28 Mar 2025 16:17:44 -0500 Subject: [PATCH] [PGO][Offload] Disable PGO on NVPTX ---

[clang] [CIR] Upstream a basic version of class LexicalScope (PR #131945)

2025-04-05 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/131945 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e1a1603 - [X86][AVX10.2] Remove YMM rounding from VCVTTP.*QS (#132414)

2025-04-05 Thread via cfe-commits
Author: Phoebe Wang Date: 2025-03-22T01:10:39+08:00 New Revision: e1a16033dcb856669c97f35c09656db73bf36a73 URL: https://github.com/llvm/llvm-project/commit/e1a16033dcb856669c97f35c09656db73bf36a73 DIFF: https://github.com/llvm/llvm-project/commit/e1a16033dcb856669c97f35c09656db73bf36a73.diff L

[clang] [flang] [llvm] [clang][flang][Triple][llvm] Add isOffload function to LangOpts and isGPU function to Triple (PR #126956)

2025-04-05 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/126956 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-04-05 Thread via cfe-commits
https://github.com/offsetof created https://github.com/llvm/llvm-project/pull/132284 In `Sema::BuildStdInitializerList`, check that the synthesized template-id `std::initializer_list` is valid (which might not be the case if the template has associated constraints or subsequent parameters with

[clang] Fix complex long double division with -mno-x87. (PR #133152)

2025-04-05 Thread Zahira Ammarguellat via cfe-commits
@@ -0,0 +1,49 @@ +// RUN %clang_cc1 %s -O0 -emit-llvm -triple x86_64-unknown-unknown \ +// RUN -verify -complex-range=promoted -o - | FileCheck %s + +// RUN %clang_cc1 %s -O0 -emit-llvm -triple x86_64-unknown-unknown \ +// RUN -verify=nopromotion -complex-range=promoted -target-fe

[clang] 5ecbf46 - Hlsl asuint16 function (#132315)

2025-04-05 Thread via cfe-commits
Author: metkarpoonam Date: 2025-03-21T14:44:22-04:00 New Revision: 5ecbf46f8645e6294fab129c989fca67fd85d689 URL: https://github.com/llvm/llvm-project/commit/5ecbf46f8645e6294fab129c989fca67fd85d689 DIFF: https://github.com/llvm/llvm-project/commit/5ecbf46f8645e6294fab129c989fca67fd85d689.diff

[clang-tools-extra] [NFC] Fixes proposed by code sanitizer. (PR #134138)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Zahira Ammarguellat (zahiraam) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/134138.diff 3 Files Affected: - (modified) clang-tools-extra/clang-tidy/bugprone/NarrowingConversionsCheck.cpp (+1-1) - (modified) clang

[clang] fixed clang frontend crash with friend class declaration and overload == (PR #133878)

2025-04-05 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 commented: Thanks, this should come with a release entry. Please make sure you add a note to the `Bug Fixes to C++ Support` section in `clang/docs/ReleaseNotes.rst`. https://github.com/llvm/llvm-project/pull/133878 ___ cfe-c

[clang] [clang-tools-extra] Suppress pedantic diagnostic for a file not ending in EOL (PR #131794)

2025-04-05 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/131794 >From 22c4b9d7808df33d3e6a31b3456cd8b2e8a95bfa Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 18 Mar 2025 08:34:18 -0400 Subject: [PATCH 1/7] Suppress pedantic diagnostic for a file not ending in E

[clang] [flang] [flang][OpenMP] Bump default OpenMP version to 3.1 (PR #133745)

2025-04-05 Thread via cfe-commits
https://github.com/NimishMishra approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/133745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Hlsl asuint16 function (PR #132315)

2025-04-05 Thread via cfe-commits
https://github.com/metkarpoonam updated https://github.com/llvm/llvm-project/pull/132315 >From 6ce249d7e4bea669480c06a935f88a21894aba67 Mon Sep 17 00:00:00 2001 From: Poonam Vilas Metkar Date: Wed, 19 Mar 2025 09:16:30 -0700 Subject: [PATCH 1/7] Add asuint16 intrinsic and codegen test --- cla

[clang-tools-extra] [NFC] Fixes proposed by code sanitizer. (PR #134138)

2025-04-05 Thread Piotr Zegar via cfe-commits
@@ -305,7 +305,7 @@ IncludeInserter::calculateIncludePath(const HeaderFile &InsertedHeader, if (llvm::sys::path::is_absolute(Suggested)) return std::nullopt; bool IsAngled = false; - for (auto Filter : AngledHeaders) { + for (auto &Filter : AngledHeaders) { -

[clang] [HLSL][RootSignature] Define and integrate `HLSLRootSignatureAttr` (PR #134124)

2025-04-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` at step 5 "compile-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/20438 Here is the rel

[clang] 882082a - [HLSL] Buffer handle globals should not be constants (#130231)

2025-04-05 Thread via cfe-commits
Author: Justin Bogner Date: 2025-03-20T11:07:54-07:00 New Revision: 882082ae405d086b61588169fe31102c58b7d74e URL: https://github.com/llvm/llvm-project/commit/882082ae405d086b61588169fe31102c58b7d74e DIFF: https://github.com/llvm/llvm-project/commit/882082ae405d086b61588169fe31102c58b7d74e.diff

[libclc] [libclc] add --only-needed to llvm-link when INTERNALIZE flag is set (PR #130871)

2025-04-05 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck approved this pull request. https://github.com/llvm/llvm-project/pull/130871 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][bugprone-unintended-char-ostream-output] add `WarnOnExplicitCast` option (PR #133639)

2025-04-05 Thread Baranov Victor via cfe-commits
@@ -39,6 +39,17 @@ Or cast to char to explicitly indicate that output should be a character. std::cout << static_cast(v); +Options +--- + +.. option:: WarnOnExplicitCast + + When `WarnOnExplicitCast` is set to `false`, the check will not warn when + output of ostream

[clang] [clang] Auto-detect which newline style to use for `cxx_dr_status.html` (PR #132045)

2025-04-05 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll closed https://github.com/llvm/llvm-project/pull/132045 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Implement the `lit` intrinsic (PR #134171)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-hlsl Author: Kaitlin Peng (kmpeng) Changes Closes #99135. Tasks completed: - Wrote implementation in `hlsl_intrinsics.h`/`hlsl_intrinsic_helpers.h` that matches DXC - Created overloads in `hlsl_compat_overloads.h` that take

[clang] [X86][AMX] Add missing __inline__ for AMXCOMPLEX intrinsics, NFCI (PR #134484)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Phoebe Wang (phoebewang) Changes Found by #64779. --- Full diff: https://github.com/llvm/llvm-project/pull/134484.diff 1 Files Affected: - (modified) clang/lib/Headers/amxcomplexintrin.h (+4-6) ``diff diff --git a/clang/lib/H

[clang] [Clang] Fix various bugs in alias CTAD transform (PR #132061)

2025-04-05 Thread via cfe-commits
@@ -1077,7 +1077,11 @@ BuildDeductionGuideForTypeAlias(Sema &SemaRef, // !!NOTE: DeduceResults respects the sequence of template parameters of // the deduction guide f. for (unsigned Index = 0; Index < DeduceResults.size(); ++Index) { -if (const auto &D = DeduceResult

[clang] [llvm] [IRBuilder] Add new overload for CreateIntrinsic (PR #131942)

2025-04-05 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul updated https://github.com/llvm/llvm-project/pull/131942 >From 7f7f0ea87f460a951011ce75926f3e27900bb384 Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Tue, 18 Mar 2025 13:19:24 -0700 Subject: [PATCH] [IRBuilder] Add new overload for CreateIntrinsic Add a new `Creat

[clang] [C23] Fix compound literals within function prototype (PR #132097)

2025-04-05 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/132097 >From 7882bfbbe7ada59de91625c5f0365cec1fbe3c5b Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 19 Mar 2025 16:50:12 -0400 Subject: [PATCH 1/2] [C23] Fix compound literals within function prototype

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

2025-04-05 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/133125 >From 75ef42d644da9136fb07014ade18b6be137426a1 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 26 Mar 2025 12:54:29 -0400 Subject: [PATCH 1/9] [C2y] Implement WG14 N3369 and N3469 (_Countof) C2y ad

[clang] [MS][clang] Fix crash on deletion of array of pointers (PR #134088)

2025-04-05 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon created https://github.com/llvm/llvm-project/pull/134088 Sometimes a non-array delete is treated as delete[] when input pointer is pointer to array. With vector deleting destructors support we now generate a virtual destructor call instead of simple loop over the e

[clang] [HLSL] Add SPIR-V target type for RWStructuredBuffers (PR #133468)

2025-04-05 Thread Nathan Gauër via cfe-commits
@@ -386,13 +386,22 @@ llvm::Type *CommonSPIRTargetCodeGenInfo::getHLSLType( if (ContainedTy.isNull()) return nullptr; -assert(!ResAttrs.RawBuffer && - "Raw buffers handles are not implemented for SPIR-V yet"); assert(!ResAttrs.IsROV &&

[libclc] [libclc] Fix commands in compile_to_bc are executed sequentially (PR #130755)

2025-04-05 Thread Wenju He via cfe-commits
@@ -283,7 +294,7 @@ function(add_libclc_builtin_set) set( builtins_comp_lib_tgt builtins.comp.${ARG_ARCH_SUFFIX} ) add_custom_target( ${builtins_comp_lib_tgt} -DEPENDS ${bytecode_files} +DEPENDS ${compile_tgts} wenju-he wrote: thanks, I'll add ${b

[clang] 70a2075 - [clang] Update C++ DR status page

2025-04-05 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-05T10:45:51+03:00 New Revision: 70a20757e8fff0a56cd7f95c2854b0fa68e7089c URL: https://github.com/llvm/llvm-project/commit/70a20757e8fff0a56cd7f95c2854b0fa68e7089c DIFF: https://github.com/llvm/llvm-project/commit/70a20757e8fff0a56cd7f95c2854b0fa68e7089c.

[clang] [clang] Fix Mame Mangling Crashes (PR #134486)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vincent (Mr-Anyone) Changes It appears that Clang currently mangles names incorrectly when handling lambda expressions in constraint (`requires`) clauses. The issue likely stems from `mangleLocalName` being used, whereas `mangleNestedNa

[clang] [clang] Fix Mame Mangling Crashes (PR #134486)

2025-04-05 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

[libclc] [NFC][libclc] Merge atomic extension built-ins with identical name into a single file (PR #134489)

2025-04-05 Thread Wenju He via cfe-commits
https://github.com/wenju-he created https://github.com/llvm/llvm-project/pull/134489 Similar to how cl_khr_fp64 and cl_khr_fp16 implementations are put in a same file for math built-ins, this PR do the same to atom_* built-ins. The main motivation is to prevent that two files with same base na

[clang] [Driver] Search for compiler-rt libraries in sysroot/lib if not found in the resource directory (PR #132443)

2025-04-05 Thread Kostiantyn Lazukin via cfe-commits
https://github.com/Sunday111 updated https://github.com/llvm/llvm-project/pull/132443 >From da5c5c697f02b4028f2797827d57ae9a8bcc0896 Mon Sep 17 00:00:00 2001 From: Kostiantyn Lazukin Date: Thu, 20 Mar 2025 16:54:06 + Subject: [PATCH] [Driver] Search for compiler-rt libraries in sysroot/lib

[clang-tools-extra] [clang-tidy] add new check: modernize-use-scoped-lock (PR #126434)

2025-04-05 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/126434 >From bc1b4ada7615d407c2df009f414d62da3857ee86 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Mon, 3 Mar 2025 09:25:03 +0300 Subject: [PATCH 01/10] [clang-tidy] add scoped-lock-check --- .../clang-tidy/m

[clang] [CLANG] Enable alignas after GNU attributes (PR #133107)

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

[clang] [clang][CGObjC] Remove unused ExternalProtocolPtrTy (NFC) (PR #133870)

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

[clang] [clang][CGObjC] Remove unused ExternalProtocolPtrTy (NFC) (PR #133870)

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

[clang] [llvm] [WIP][RISC-V] prototyping intrinsic support for Zvbc32e and Zvkgs (PR #128243)

2025-04-05 Thread Nicolas Brunie via cfe-commits
https://github.com/nibrunieAtSi5 updated https://github.com/llvm/llvm-project/pull/128243 >From d2c64fd7605eb1e2e6756f3c01960bfa8ee55da9 Mon Sep 17 00:00:00 2001 From: Nicolas Brunie Date: Sat, 25 Jan 2025 09:39:47 -0800 Subject: [PATCH] [RISC-V] prototyping support for Zvbc32e and Zvkgs * Add

<    1   2   3   4   5   6   7   8   >