[clang] [clang][DependencyScanning] Reset options generated for named module compilations. (PR #161486)

2025-10-17 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth edited https://github.com/llvm/llvm-project/pull/161486 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix use of funified-lto and save-temps flags together (PR #162763)

2025-10-17 Thread Alexey Bader via cfe-commits
bader wrote: The fix is similar to 53adfa8750eaf4558c41a50f699616545eb0151b. https://github.com/llvm/llvm-project/pull/162763 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-10-17 Thread Daniil Kovalev via cfe-commits
kovdan01 wrote: @ojhunt I closed all the threads which are no longer relevant or are duplicates. Now we have only 5 non-trivial and 3 trivial issues which really **need** to be resolved before merging the PR. All other enhancements could be done as follow-up patches. I've created [pointer-au

[clang] fix: C++ empty record with align lead to va_list out of sync (PR #72197)

2025-10-17 Thread via cfe-commits
https://github.com/hstk30-hw updated https://github.com/llvm/llvm-project/pull/72197 >From f7104c0d2623f6c69ed2361b22739e629cfd9755 Mon Sep 17 00:00:00 2001 From: hstk30 Date: Fri, 10 Oct 2025 00:17:09 +0800 Subject: [PATCH] fix: C++ empty record with align break aarch64 AAPCS64 --- clang/lib

[clang] [clang][x86] tbm-builtins.c - add i386 test coverage (PR #161169)

2025-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Simon Pilgrim (RKSimon) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/161169.diff 1 Files Affected: - (modified) clang/test/CodeGen/X86/tbm-builtins.c (+40-38) ``diff diff --git a/clang/test/CodeGen/

[clang-tools-extra] [clang-tidy] Fix `modernize-use-nullptr` crash on 32-bit Windows (PR #160023)

2025-10-17 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. LGTM, wish we could automatically detect that because this is very easy to miss. Could we maybe remove `&` from tuple to always store values. https://github.com/llvm/llvm-project/pull/160023 ___

[clang-tools-extra] [clang-tidy] add misc-constexpr check (PR #162741)

2025-10-17 Thread Julian Schmidt via cfe-commits
5chmidti wrote: One issue that I have found when I ran this on VTK: When specializing a function template, the check will add `constexpr` to the non-specialized template for each specialization. I have left this in for now, but maybe the check should instead not add `constexpr` to the non-speci

[clang] Fix array bound checker false negative (PR #161723)

2025-10-17 Thread Rashmi Mudduluru via cfe-commits
https://github.com/t-rasmud updated https://github.com/llvm/llvm-project/pull/161723 >From dcae601f1c9f74dcef77ffbc5f07a6738e247276 Mon Sep 17 00:00:00 2001 From: Rashmi Mudduluru Date: Tue, 30 Sep 2025 15:46:19 -0700 Subject: [PATCH 1/6] Fix false negatives when OOB occurs inside a conditional

[clang] [llvm] [clang][DebugInfo] Emit DW_AT_language_name for DWARFv6 (PR #163208)

2025-10-17 Thread Michael Buch via cfe-commits
@@ -647,6 +649,97 @@ StringRef CGDebugInfo::getCurrentDirname() { return CGM.getCodeGenOpts().DebugCompilationDir; } +static llvm::dwarf::SourceLanguage GetSourceLanguage(const CodeGenModule &CGM) { + const CodeGenOptions &CGO = CGM.getCodeGenOpts(); + const LangOptions &

[clang] [llvm] [clang] Use the VFS in `ModuleDependencyCollector` (PR #160944)

2025-10-17 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 updated https://github.com/llvm/llvm-project/pull/160944 >From 9311be23d860f7bd7c0bb561c750ff709359d290 Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Fri, 26 Sep 2025 13:34:44 -0700 Subject: [PATCH 1/2] [clang] Use the VFS in `ModuleDependencyCollector` ---

[clang] 98766d2 - [clang] Cleanup docs and code for legacy no_sanitize attributes (NFC). (#161311)

2025-10-17 Thread via cfe-commits
Author: Alexey Samsonov Date: 2025-09-30T11:09:01-07:00 New Revision: 98766d288f0d7cadcf34f355d36e4deaf233d046 URL: https://github.com/llvm/llvm-project/commit/98766d288f0d7cadcf34f355d36e4deaf233d046 DIFF: https://github.com/llvm/llvm-project/commit/98766d288f0d7cadcf34f355d36e4deaf233d046.dif

[clang] [clang-tools-extra] [flang] [lldb] [llvm] [clang] Move options from clangDriver into new clangOptions library (NFC) (PR #163659)

2025-10-17 Thread Naveen Seth Hanig via cfe-commits
@@ -7,7 +7,7 @@ //===--===// def GlobalDocumentation { - code Intro =[{.. + code Intro = [{.. naveen-seth wrote: Added. https://github.com/llvm/llvm-project/pull/163659 __

[clang] [clang] Proofread InternalsManual.rst (PR #164057)

2025-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Patch is 26.67 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/164057.diff 1 Files Affected: - (modified) clang/docs/InternalsManual.rst (+55-55)

[clang] [clang] Proofread InternalsManual.rst (PR #164057)

2025-10-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/164057 None >From 72a21fad8801ca84df3399ec6cfaa1ebae300231 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 17 Oct 2025 09:13:58 -0700 Subject: [PATCH] [clang] Proofread InternalsManual.rst --- clang/doc

[clang] [Headers][X86] Allow MMX/SSE/AVX MOVMSK intrinsics to be used in constexpr (PR #161914)

2025-10-17 Thread Shawn K via cfe-commits
https://github.com/kimsh02 updated https://github.com/llvm/llvm-project/pull/161914 >From 79006fe91ed7d53329a956a65fb753dad2c8c6e2 Mon Sep 17 00:00:00 2001 From: kimsh02 Date: Fri, 3 Oct 2025 09:30:23 -0700 Subject: [PATCH 1/3] Stash --- clang/include/clang/Basic/BuiltinsX86.td | 16 ++---

[clang] [Clang][LTO] Fix use of funified-lto and save-temps flags together (PR #162763)

2025-10-17 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/162763 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFC] Improve the output for missing builtin calls (PR #163884)

2025-10-17 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. Nice! https://github.com/llvm/llvm-project/pull/163884 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Only build clang-tblgen if it is actually needed (PR #161952)

2025-10-17 Thread David Spickett via cfe-commits
DavidSpickett wrote: I should note that llvm also has this "problem", but llvm being the first step of the chain likely you want to build llvm-tblgen anyway. I did try applying the same kind of change there but due to the whole min-tblgen thing, it looked more complex. There's a reasonable ar

[clang] f122484 - [llvm][support] Move `make_absolute` from `sys::fs` to `sys::path` (#161459)

2025-10-17 Thread via cfe-commits
Author: Jan Svoboda Date: 2025-10-01T14:35:17-07:00 New Revision: f122484b998d8dbfdaf2e6b9c222438c71e90d86 URL: https://github.com/llvm/llvm-project/commit/f122484b998d8dbfdaf2e6b9c222438c71e90d86 DIFF: https://github.com/llvm/llvm-project/commit/f122484b998d8dbfdaf2e6b9c222438c71e90d86.diff L

[clang] [clang-format] Remove special handling of comments after brace/paren (PR #71672)

2025-10-17 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks updated https://github.com/llvm/llvm-project/pull/71672 From fccdc52e0111f827565c84a0386f01ef82fcfa3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Wed, 24 Sep 2025 23:02:39 +0200 Subject: [PATCH] [clang-format] Remove special

[clang] [clang][Driver] Add -gdwarf-6 option (PR #162454)

2025-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Michael Buch (Michael137) Changes Now that we slowly started adding support for upcoming DWARFv6 attributes add `-gdwarf-6` as a supported flag. --- Full diff: https://github.com/llvm/llvm-project/pull/16

[clang] [clang][X86] bmi-builtins.c - add -fexperimental-new-constant-interpreter bytecode test coverage (PR #161182)

2025-10-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-s390x-linux` running on `systemz-1` while building `clang` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/16579 Here is the relevant piece of the build log f

[clang] [CUDA] Remove sema check of function declaration with variadic argument (PR #161350)

2025-10-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/17063 Here is the relevant piece

[clang] [CIR] Add support for destructing class members (PR #162196)

2025-10-17 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/162196 >From b33c5bf263ff26c78c557d36daaafe49d4febce5 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Fri, 3 Oct 2025 16:26:31 -0700 Subject: [PATCH 1/2] [CIR] Add support for destructing class members This adds t

[clang] [CIR] Fix error in cir.label when using cir.br in entry block (PR #163280)

2025-10-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-ubuntu` running on `linaro-lldb-aarch64-ubuntu` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/25741 Here is the relevant piece of the

[clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-10-17 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt edited https://github.com/llvm/llvm-project/pull/148914 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] bf5f441 - [DirectX] Add 32- and 64-bit 3-element vectors to DataLayout (#160955)

2025-10-17 Thread via cfe-commits
Author: Justin Bogner Date: 2025-10-15T13:33:05-06:00 New Revision: bf5f4417316a287726c2d75d04cacb1e0a27d519 URL: https://github.com/llvm/llvm-project/commit/bf5f4417316a287726c2d75d04cacb1e0a27d519 DIFF: https://github.com/llvm/llvm-project/commit/bf5f4417316a287726c2d75d04cacb1e0a27d519.diff

[clang] [llvm] [LLVM] Add GNU make jobserver support (PR #145131)

2025-10-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-nvptx64-nvidia-ubuntu` running on `as-builder-7` while building `clang,llvm` at step 6 "test-build-unified-tree-check-llvm". Full details are available at: https://lab.llvm.org/buildbot/#/builders/160/builds/25998 Here

[clang] b6dfa3d - [HLSL][NFC] Add helper struct to simplify dealing with resource binding attributes (#161254)

2025-10-17 Thread via cfe-commits
Author: Helena Kotas Date: 2025-09-30T14:24:55-07:00 New Revision: b6dfa3d47db74e72a566e0605fb573a8fcea1234 URL: https://github.com/llvm/llvm-project/commit/b6dfa3d47db74e72a566e0605fb573a8fcea1234 DIFF: https://github.com/llvm/llvm-project/commit/b6dfa3d47db74e72a566e0605fb573a8fcea1234.diff

[clang] [clang-tools-extra] [flang] [lldb] [llvm] [clang] Move options from clangDriver into new clangOptions library (NFC) (PR #163659)

2025-10-17 Thread Naveen Seth Hanig via cfe-commits
naveen-seth wrote: `clang/include/clang/Driver/Options.td` is moved in this patch, but is updated very frequently on main, which is why there will almost continuously be a new merge conflict popping up. If possible, I’d like to resolve the conflict just before merging. https://github.com/llvm/

[clang] [CIR] Upstream Exception with empty try block (PR #162737)

2025-10-17 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/162737 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Replace float remquo with Intel IMF version (PR #162643)

2025-10-17 Thread Wenju He via cfe-commits
@@ -6,71 +6,257 @@ // //===--===// +#define _sHighMask 0xf000u +#define _iMaxQExp 0xbu +// To prevent YLow to be denormal it should be checked +// that Exp(Y) <= -127+23 (worst case when only last bit is

[clang] [llvm] [HLSL] Implement the `fwidth` intrinsic for DXIL and SPIR-V target (PR #161378)

2025-10-17 Thread Farzon Lotfi via cfe-commits
@@ -2615,6 +2618,15 @@ bool SPIRVInstructionSelector::selectDiscard(Register ResVReg, .constrainAllUses(TII, TRI, RBI); } +bool SPIRVInstructionSelector::selectFwidth(Register ResVReg, +const SPIRVType *ResType, +

[clang] [OpenACC][CIR] Handle firstprivate bounds recipe lowering (PR #161873)

2025-10-17 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/161873 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add SSE/AVX VPTEST/VTESTPD/VTESTPS intrinsics to be used in constexpr (PR #160428)

2025-10-17 Thread Shawn K via cfe-commits
https://github.com/kimsh02 updated https://github.com/llvm/llvm-project/pull/160428 >From 4da56170ff4b363c97aa98a4f06946173366823d Mon Sep 17 00:00:00 2001 From: kimsh02 Date: Thu, 2 Oct 2025 05:44:38 -0700 Subject: [PATCH 1/8] Squash --- clang/include/clang/Basic/BuiltinsX86.td | 27 +--

[clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-10-17 Thread Matheus Izvekov via cfe-commits
@@ -1146,23 +1161,16 @@ def Parentheses : DiagGroup<"parentheses", // - conversion warnings for literals are on by default // - bool-to-pointer conversion warnings are on by default // - __null-to-integer conversion warnings are on by default -def Conversion : DiagGroup<"

[clang] [CIR]lAdd name for function type in vtable (PR #163839)

2025-10-17 Thread via cfe-commits
@@ -946,8 +946,7 @@ const char *vTableClassNameForType(const CIRGenModule &cgm, const Type *ty) { case Type::FunctionNoProto: case Type::FunctionProto: -cgm.errorNYI("VTableClassNameForType: __function_type_info"); -break; +return "__ZTSN10__cxxabiv120__functi

[clang] [webkit.UncountedLambdaCapturesChecker] Add the support for WTF::ScopeExit and WTF::makeVisitor (PR #161926)

2025-10-17 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/161926 >From 6c6dd961b2428b6d9ac61b140a34448743a6fe2d Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Fri, 3 Oct 2025 17:02:08 -0700 Subject: [PATCH 1/2] [webkit.UncountedLambdaCapturesChecker] Add the support for WTF

[clang-tools-extra] e8e7db1 - [clangd][Tweaks] Improve test infra for testing tweaks with an index (#160391)

2025-10-17 Thread via cfe-commits
Author: Nathan Ridge Date: 2025-10-09T01:01:20-04:00 New Revision: e8e7db1aaadeaf6b6a8f0825e6f2be1d7ea72b09 URL: https://github.com/llvm/llvm-project/commit/e8e7db1aaadeaf6b6a8f0825e6f2be1d7ea72b09 DIFF: https://github.com/llvm/llvm-project/commit/e8e7db1aaadeaf6b6a8f0825e6f2be1d7ea72b09.diff

[clang] [clang][Dependency Scanning] Refactor Scanning Compiler Instance Initialization (PR #161300)

2025-10-17 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/161300 >From 554613b511baa2772e0f1871008fd124bdc48700 Mon Sep 17 00:00:00 2001 From: Qiongsi Wu Date: Mon, 29 Sep 2025 16:46:02 -0700 Subject: [PATCH] Extract dependency scanning compiler instance initialization ste

[clang] [CIR] Upstream CIR Dialect TryOp with Catch Attrs (PR #162897)

2025-10-17 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/162897 >From 3af059e4bbc1ccd09170264670a38d3c36a932cd Mon Sep 17 00:00:00 2001 From: Amr Hesham Date: Fri, 10 Oct 2025 19:09:16 +0200 Subject: [PATCH 1/2] [CIR] Upstream CIR Dialect TryOp with Catch Attrs --- ..

[clang] [clang-format] Add -r option for recursing into directories (PR #160299)

2025-10-17 Thread Björn Schäpers via cfe-commits
@@ -700,6 +705,31 @@ int main(int argc, const char **argv) { errs() << "Clang-formatting " << LineNo << " files\n"; } + if (Recursive) { +SmallVector ExpandedNames; +for (const std::string &Path : FileNames) { + if (sys::fs::is_directory(Path)) { +s

[clang] [flang] [llvm] [Offload] Rename and move 'clang-offload-packager' -> 'llvm-offload-binary' (PR #161438)

2025-10-17 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/161438 >From 5162fa41c7e8a93680e62b5b272eb5e8d0ec0568 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Tue, 30 Sep 2025 15:32:19 -0500 Subject: [PATCH] [Offload] Rename and move 'clang-offload-packager' -> 'llvm-offl

[clang] [llvm] [ARM][AArch64] BTI, GCS, PAC Module flag update. (PR #86212)

2025-10-17 Thread Daniel Kiss via cfe-commits
@@ -1770,6 +1775,11 @@ IRMover::IRMover(Module &M) : Composite(M) { for (const auto *MD : StructTypes.getVisitedMetadata()) { SharedMDs[MD].reset(const_cast(MD)); } + + // Convert module level attributes to function level attributes because + // after merging modules

[clang] [clang][modules-driver] Add dependency scan and dependency graph (PR #152770)

2025-10-17 Thread Chuanqi Xu via cfe-commits
@@ -0,0 +1,1579 @@ +//===--- Driver.cpp - Clang GCC Compatible Driver -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] 8ae0a20 - [RISCV][NFC] Update ratified extensions list in riscv-target-features.c

2025-10-17 Thread Liao Chunyu via cfe-commits
Author: Liao Chunyu Date: 2025-09-30T09:17:26-04:00 New Revision: 8ae0a20f533cc5fe8a48798159d0a38b722082b5 URL: https://github.com/llvm/llvm-project/commit/8ae0a20f533cc5fe8a48798159d0a38b722082b5 DIFF: https://github.com/llvm/llvm-project/commit/8ae0a20f533cc5fe8a48798159d0a38b722082b5.diff L

[clang] [llvm] [Offload][PGO] Fix PGO on NVPTX targets (PR #143568)

2025-10-17 Thread Joseph Huber via cfe-commits
@@ -947,11 +954,18 @@ bool InstrLowerer::lower() { if (!ContainsProfiling && !CoverageNamesVar) return MadeChange; + // Cached info for generating delayed offset calculations + // This is only relevant on NVPTX targets + SmallVector Kernels; + SmallVector ValueSites;

[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-10-17 Thread Julia Hansbrough via cfe-commits
https://github.com/flowerhack updated https://github.com/llvm/llvm-project/pull/157213 >From 7cffbcb46f4a737d57cdb8add8679d492a727831 Mon Sep 17 00:00:00 2001 From: Julia Hansbrough Date: Fri, 5 Sep 2025 21:27:14 + Subject: [PATCH] Add bugprone-loop-variable-copied-then-modified clang-tidy

[clang] [FlowSensitive] [Optional] Fix absl::in_place (PR #163897)

2025-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Florian Mayer (fmayer) Changes The mock was not accurate, absl defines in_place[_t] as an alias to std::in_place[_t]. --- Full diff: https://github.com/llvm/llvm-project/pull/163897.diff 2 Files Affected: - (modified) clang/lib/Analys

[clang] [clang-tools-extra] [ExprMutation] handle return non-const type (PR #161396)

2025-10-17 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/161396 None >From 9472a9cca3027b43a3b117176ddd3a5063c03f14 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 30 Sep 2025 23:35:57 +0800 Subject: [PATCH] [ExprMutation] handle return non-const type --- clang

[clang] [clang][x86][bytecode] Replace interp__builtin_rotate with static bool interp__builtin_elementwise_int_binop callback #160289 (PR #161924)

2025-10-17 Thread via cfe-commits
@@ -3162,7 +3162,10 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, case Builtin::BI_rotl: case Builtin::BI_lrotl: case Builtin::BI_rotl64: -return interp__builtin_rotate(S, OpPC, Frame, Call, /*Right=*/false); +return interp__builtin

[clang] [clang] Remove -g[no-]-* bool flags from g_Group (PR #162750)

2025-10-17 Thread Reid Kleckner via cfe-commits
https://github.com/rnk created https://github.com/llvm/llvm-project/pull/162750 There are four uses of BoolGOption, and all of them are essentially debug info feature flags, which I believe should not the enablement or disablement of all debug info emission. `OPT_g_group` is used to control the d

[clang] [Clang][FIX] Fix type qualifiers on vector builtins (PR #160185)

2025-10-17 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/160185 >From 7b4ba2fff8e810adddf1cbdb1d9945600b53b940 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Mon, 22 Sep 2025 14:26:40 -0500 Subject: [PATCH 1/2] [Clang][FIX] Fix type qualifiers on vector builtins Summary:

[clang] [HIP][SPIRV] Enable the SPIRV backend instead of the translator through an experimental flag. (PR #162282)

2025-10-17 Thread Manuel Carrasco via cfe-commits
@@ -1421,6 +1421,18 @@ def fhip_emit_relocatable : Flag<["-"], "fhip-emit-relocatable">, HelpText<"Compile HIP source to relocatable">; def fno_hip_emit_relocatable : Flag<["-"], "fno-hip-emit-relocatable">, HelpText<"Do not override toolchain to compile HIP source to relo

[clang] [clang-format][NFC] Annotate attribute squares more effectively (PR #164052)

2025-10-17 Thread via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/164052 Annotate left/right attribute squares distinctively and only annotate the outer pair of C++ attribute squares. >From ea15af3f787b3f7af725a5407e5324f64fdb7966 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 1

[clang] [Clang] disallow constexpr with auto and explicit type in C23 (PR #163469)

2025-10-17 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/163469 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow PALIGNR byte shift intrinsics to be used in constexpr (PR #162005)

2025-10-17 Thread Ye Tian via cfe-commits
@@ -2975,6 +2975,75 @@ static bool interp__builtin_vec_set(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_x86_psrldq_byteshift(InterpState &S, CodePtr OpPC, + const CallExpr *Call, +

[clang] Revert "[HLSL][NFC] Refactor structured buffer methods tests (#161908)" (PR #163472)

2025-10-17 Thread Helena Kotas via cfe-commits
https://github.com/hekota auto_merge_enabled https://github.com/llvm/llvm-project/pull/163472 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C2y] Implement WG14 N3622 static used in an inline (PR #162877)

2025-10-17 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman created https://github.com/llvm/llvm-project/pull/162877 This paper removes the constraint that a static variable or function cannot be used within an extern inline function. The diagnostic is still being produced in earlier language modes for conformance reason

[clang] fix clang_cmake_builddir (PR #161220)

2025-10-17 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: This is a following on #155844 cc @tstellar @Keenuts @peterwaller-arm https://github.com/llvm/llvm-project/pull/161220 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [clang][docs] Fix typos in option names (PR #163482)

2025-10-17 Thread KAWASHIMA Takahiro via cfe-commits
https://github.com/kawashima-fj created https://github.com/llvm/llvm-project/pull/163482 If you type option names in the currnet Clang Compiler User's Manual, you'll see: ```console $ clang -fnobasic-block-address-map -fnounique-internal-linkage-names -f-split-lto-unit test.c clang: error: u

[clang] add: NUMERIC_TYPE_SWITCH (PR #161755)

2025-10-17 Thread Aditya Chaudhari via cfe-commits
AdityaC4 wrote: @tbaederr Thanks for the context. Since `Floating` still needs an explicit `allocFloat` while `pushInteger` already handles the `IntAP`/`IntAPS` allocations, maybe we should drop the new `NUMERIC_TYPE_SWITCH`. If not we could add a helper that checks `needsAlloc()` and `singleW

[clang] [clang][CodeGen][MSVC] Match how MSVC returns vector types from member functions (PR #157365)

2025-10-17 Thread Henry Baba-Weiss via cfe-commits
henrybw wrote: ping https://github.com/llvm/llvm-project/pull/157365 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow AVX512 conflict intrinsics to be used in constexpr (PR #163293)

2025-10-17 Thread NagaChaitanya Vellanki via cfe-commits
https://github.com/chaitanyav updated https://github.com/llvm/llvm-project/pull/163293 >From 5e0a754f6999383dd4c91df85333a210feccc707 Mon Sep 17 00:00:00 2001 From: NagaChaitanya Vellanki Date: Sun, 12 Oct 2025 02:19:26 -0700 Subject: [PATCH] [Clang] VectorExprEvaluator::VisitCallExpr / Interpr

[clang] [Clang] Add support for fp when using min_fetch/max_fetch atomics (PR #160330)

2025-10-17 Thread via cfe-commits
@@ -507,20 +507,35 @@ static llvm::Value *EmitPostAtomicMinMax(CGBuilderTy &Builder, bool IsSigned, llvm::Value *OldVal, llvm::Value *RHS) { + llvm::Type

[clang] [llvm] Add support in LLVM BitstreamWriter to automatically choose abbrevs. (PR #147191)

2025-10-17 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 commented: This looks much better but we still have to record the layout twice. Once in Visit* methods and once in ASTWriterDecl. I fear the records in ASTWriterDecl get outdated quickly. https://github.com/llvm/llvm-project/pull/147191 ___

[clang] [CIR] Add virtual base support to getAddressOfBaseClass (PR #159162)

2025-10-17 Thread Erich Keane via cfe-commits
@@ -865,39 +865,55 @@ Address CIRGenFunction::getAddressOfBaseClass( bool nullCheckValue, SourceLocation loc) { assert(!path.empty() && "Base path should not be empty!"); + CastExpr::path_const_iterator start = path.begin(); erichkeane wrote: I was sug

[clang-tools-extra] [clang-tidy] New Option Invalid Enum Default Initialization (PR #159220)

2025-10-17 Thread Baranov Victor via cfe-commits
vbvictor wrote: > Thank you for the info. I don't know why this setting was changed. Could you > please confirm that everything looks good now or if my email still appears as > private ? Everything is fine, thanks. https://github.com/llvm/llvm-project/pull/159220 _

[clang] 2aeefcf - [clang][CodeGen] Remove "unsafe-fp-math" attribute support (#162779)

2025-10-17 Thread via cfe-commits
Author: paperchalice Date: 2025-10-10T15:56:29+08:00 New Revision: 2aeefcf40f513b56ccb74abe851415a81a02d1b8 URL: https://github.com/llvm/llvm-project/commit/2aeefcf40f513b56ccb74abe851415a81a02d1b8 DIFF: https://github.com/llvm/llvm-project/commit/2aeefcf40f513b56ccb74abe851415a81a02d1b8.diff

[clang] [clang][Interp] Bail out from type-punning casts (PR #163809)

2025-10-17 Thread via cfe-commits
https://github.com/term-est created https://github.com/llvm/llvm-project/pull/163809 Fixes #163778 (fix might be indirect?) Prevents emitting byte-code for UB casts >From 927eeb016dd198237006440b49f59685f1c41a34 Mon Sep 17 00:00:00 2001 From: term-est Date: Thu, 16 Oct 2025 18:45:41 +0300 Sub

[clang] [AArch64][llvm] Add support for new vcvt* intrinsics (PR #163572)

2025-10-17 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. https://github.com/llvm/llvm-project/pull/163572 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C23] Implement WG14 N3037 (PR #132939)

2025-10-17 Thread Cyndy Ishida via cfe-commits
@@ -450,6 +453,41 @@ class StmtComparer { }; } // namespace +static bool +CheckStructurallyEquivalentAttributes(StructuralEquivalenceContext &Context, + const Decl *D1, const Decl *D2, + const Decl *Prim

[clang] [Clang][HIP][CUDA] Add `__cluster_dims__` and `__no_cluster__` attribute (PR #156686)

2025-10-17 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/156686 >From a01f9f9f781a364a79ae581bcb4839861b6acd76 Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Wed, 3 Sep 2025 10:47:52 -0400 Subject: [PATCH 01/10] [Clang][HIP][CUDA] Add `__cluster_dims__` and `__no_cluster

[clang] [Clang][HIP][CUDA] Add `__cluster_dims__` and `__no_cluster__` attribute (PR #156686)

2025-10-17 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/156686 >From 30a5da595a1b9ca4ee8f965c8ef00214cef9869c Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Wed, 3 Sep 2025 10:47:52 -0400 Subject: [PATCH 1/8] [Clang][HIP][CUDA] Add `__cluster_dims__` and `__no_cluster__

[clang] [clang-tools-extra] [clang-tidy] Add readability-default-lambda-capture (PR #160150)

2025-10-17 Thread JJ Marr via cfe-commits
@@ -0,0 +1,110 @@ +// RUN: %check_clang_tidy %s readability-avoid-default-lambda-capture %t + +void test_default_captures() { + int value = 42; + int another = 10; + + auto lambda1 = [=](int x) { return value + x; }; + // CHECK-MESSAGES: :[[@LINE-1]]:19: warning: lambda defaul

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-17 Thread Nick Sarnie via cfe-commits
@@ -419,9 +419,11 @@ void AMDGPUTargetCodeGenInfo::setTargetAttributes( return; const FunctionDecl *FD = dyn_cast_or_null(D); - if (FD) + if (FD) { setFunctionDeclAttributes(FD, F, M); - +if (FD->hasAttr() && !M.getLangOpts().OpenCL) + F->setCallingConv(l

[clang] [Headers][X86] Allow MMX/SSE/AVX MOVMSK intrinsics to be used in constexpr (PR #161914)

2025-10-17 Thread Shawn K via cfe-commits
https://github.com/kimsh02 updated https://github.com/llvm/llvm-project/pull/161914 >From 79006fe91ed7d53329a956a65fb753dad2c8c6e2 Mon Sep 17 00:00:00 2001 From: kimsh02 Date: Fri, 3 Oct 2025 09:30:23 -0700 Subject: [PATCH 1/7] Stash --- clang/include/clang/Basic/BuiltinsX86.td | 16 ++---

[clang] [clang-format][NFC] Annotate attribute squares more effectively (PR #164052)

2025-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: owenca (owenca) Changes Annotate left/right attribute squares distinctively and only annotate the outer pair of C++ attribute squares. --- Full diff: https://github.com/llvm/llvm-project/pull/164052.diff 5 Files Affected: - (mod

[clang] [Clang][Sema] Switch diagnostics from toString to operator<< for APSInt/APInt (PR #161474)

2025-10-17 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 edited https://github.com/llvm/llvm-project/pull/161474 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Remove regex hacks to match full lines in tests (PR #162293)

2025-10-17 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank edited https://github.com/llvm/llvm-project/pull/162293 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [libcxxabi] [libunwind] [runtimes][NFC] Consistently declare main() functions in tests (PR #162548)

2025-10-17 Thread Louis Dionne via cfe-commits
https://github.com/ldionne updated https://github.com/llvm/llvm-project/pull/162548 >From d524821e5d258d523e0633082e743784035a4071 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Wed, 8 Oct 2025 16:46:39 -0400 Subject: [PATCH 1/2] [runtimes][NFC] Consistently declare main() functions in test

[clang] [HIP][SPIRV] Enable the SPIRV backend instead of the translator through an experimental flag. (PR #162282)

2025-10-17 Thread Manuel Carrasco via cfe-commits
Juan Manuel Martinez =?utf-8?q?Caamaño?= ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco ,Manuel Carrasco Message-ID: In-Reply-To: @@ -700,6 +700,6 @@ // SPIRV-ONLY-NEXT: 9: compiler, {8}, ir, (device-hip, amdgcnspirv) // SPIRV-ONLY-N

[clang] [X86][Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow AVX/AVX512 IFMA madd52 intrinsics to be used in constexpr (PR #161056)

2025-10-17 Thread Timm Baeder via cfe-commits
@@ -3564,6 +3564,28 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, return F; }); + case X86::BI__builtin_ia32_vpmadd52luq128: + case X86::BI__builtin_ia32_vpmadd52luq256: + case X86::BI__builtin_ia32_vpmadd52luq512: +retu

[clang] [clang] callee_type metadata for indirect calls (PR #163233)

2025-10-17 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/163233 >From dd765116839109d2a3e7b74f2528e7651514fdb4 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Mon, 13 Oct 2025 10:53:15 -0700 Subject: [PATCH 01/10] [clang] callee_type metadata for indirect calls Create and add

[clang] [llvm] workflows/release-binaries: Enable Windows x86 builds (PR #128274)

2025-10-17 Thread Tom Stellard via cfe-commits
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/128274 >From 2110f92892dd72dfbe1a7d87116faa3693c7c586 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 22 Feb 2025 03:08:24 + Subject: [PATCH 01/52] workflows/release-binaries: Enable Windows x86 builds ---

[clang] [CIR] Add array new cookie support (PR #163649)

2025-10-17 Thread via cfe-commits
https://github.com/jiang1997 updated https://github.com/llvm/llvm-project/pull/163649 >From b2a676782a8c6d1a44628bf4308526e12b2a573b Mon Sep 17 00:00:00 2001 From: jiang1997 Date: Mon, 13 Oct 2025 03:09:05 +0800 Subject: [PATCH] [CIR] Add array new cookie support --- clang/lib/CIR/CodeGen/CIR

[clang] [CIR][NFC] Update existing atomic ops to match assembly conventions (PR #161543)

2025-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sirui Mu (Lancern) Changes This patch updates the definitions of `cir.atomic.xchg` and `cir.atomic.cmpxchg` to make them follow the established CIR assembly conventions. Some other minor changes are also made along the way: - The verif

[clang] [clang][Dependency Scanning] Refactor Scanning Compiler Instance Initialization (PR #161300)

2025-10-17 Thread Jan Svoboda via cfe-commits
@@ -434,14 +535,39 @@ bool DependencyScanningAction::runInvocation( ScanInstance.createSourceManager(*FileMgr); + // Consider different header search and diagnostic options to create + // different modules. This avoids the unsound aliasing of module PCMs. + // + // TODO

[clang] Enable offloadlib option in SYCL and CL mode (PR #162980)

2025-10-17 Thread via cfe-commits
jinge90 wrote: > Please update the PR description to provide essential context and details > about the changes proposed in this PR. Thanks! Hi, @srividya-sundaram Description is added. Thanks very much. https://github.com/llvm/llvm-project/pull/162980 _

[clang] [llvm] workflows/release-binaries: Enable Windows x86 builds (PR #128274)

2025-10-17 Thread Tom Stellard via cfe-commits
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/128274 >From 2110f92892dd72dfbe1a7d87116faa3693c7c586 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 22 Feb 2025 03:08:24 + Subject: [PATCH 01/43] workflows/release-binaries: Enable Windows x86 builds ---

[clang] [compiler-rt] [ASan] Document define to disable container overflow checks at compile time. (PR #163468)

2025-10-17 Thread Florian Mayer via cfe-commits
@@ -514,11 +514,15 @@ ErrorGeneric::ErrorGeneric(u32 tid, uptr pc_, uptr bp_, uptr sp_, uptr addr, } static void PrintContainerOverflowHint() { - Printf("HINT: if you don't care about these errors you may set " - "ASAN_OPTIONS=detect_container_overflow=0.\n" -

[clang] [OpenACC][CIR] Finish 'private' recipe lowering by doing 'init' (PR #161540)

2025-10-17 Thread Erich Keane via cfe-commits
@@ -400,6 +400,33 @@ void OpenACCRecipeBuilderBase::createRecipeDestroySection( mlir::acc::YieldOp::create(builder, locEnd); } +void OpenACCRecipeBuilderBase::makeBoundsInit( +mlir::Value alloca, mlir::Location loc, mlir::Block *block, +const VarDecl *allocaDecl, Qua

[clang-tools-extra] [clang-tidy][mlir] Expand to cover pointer of builder (PR #159423)

2025-10-17 Thread Jacques Pienaar via cfe-commits
@@ -40,13 +48,24 @@ void g(mlir::OpBuilder &b) { b.create(b.getUnknownLoc(), "gaz"); } +class CustomBuilder : public mlir::ImplicitLocOpBuilder { +public: + mlir::NamedOp f(const char *name) { +// CHECK-MESSAGES: :[[@LINE+2]]:12: warning: use 'OpType::create(builder, .

[clang] [NFC][clang][AST] Add compile-time dispatch for random access iterators in append() (PR #162000)

2025-10-17 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 edited https://github.com/llvm/llvm-project/pull/162000 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Use the templated declaration for DiagnoseUseOfDecl (PR #161900)

2025-10-17 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM modulo one comment https://github.com/llvm/llvm-project/pull/161900 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenACC][CIR] Implement 'alloca copying' for private lowering (PR #161382)

2025-10-17 Thread Erich Keane via cfe-commits
erichkeane wrote: This crossed in the air with https://github.com/llvm/llvm-project/pull/161431, so you'll see failures. I'm working on a patch to fix something else that came out of this review, so i'll fix those tests too. https://github.com/llvm/llvm-project/pull/161382 __

[clang] [clang][x86][bytecode] Refactor BMI intrinsic wrappers to use interp__builtin_elementwise_int_binop (PR #160362)

2025-10-17 Thread via cfe-commits
https://github.com/jiang1997 updated https://github.com/llvm/llvm-project/pull/160362 >From 56d89a0b7fda8ed43b41a0674f742e5ee0e72cc6 Mon Sep 17 00:00:00 2001 From: jiang1997 Date: Wed, 24 Sep 2025 02:15:57 +0800 Subject: [PATCH 1/3] [clang][x86][bytecode] Refactor BMI intrinsic wrappers to use

[clang] [RISCV] Add missing CHECK lines for Zkt to sifive-p450/p470/p670 test. NFC (PR #161393)

2025-10-17 Thread Craig Topper via cfe-commits
https://github.com/topperc created https://github.com/llvm/llvm-project/pull/161393 None >From d498c8104b51b96115a190f955cbaa6adcd65210 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Tue, 30 Sep 2025 07:59:38 -0700 Subject: [PATCH] [RISCV] Add missing CHECK lines for Zkt to sifive-p450/p47

[clang] [llvm] [Clang][Driver][LLVM] Add -fno-inline-functions-called-once; expose p… (PR #160343)

2025-10-17 Thread via cfe-commits
Karthikdhondi wrote: > The LLVM changes and Clang flag changes should likely be separate Thanks! I’ve split the change as suggested. https://github.com/llvm/llvm-project/pull/160343 ___ cfe-commits mailing list [email protected] https://lists

[clang] [llvm] [AMDGPU] Make cluster a target feature (PR #162040)

2025-10-17 Thread Jay Foad via cfe-commits
@@ -1837,7 +1839,7 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo, } /// \returns true if the subtarget supports clusters of workgroups. - bool hasClusters() const { return GFX1250Insts; } + bool hasClusters() const { return HasCluster; } ja

  1   2   3   4   5   6   7   8   9   10   >