[clang] ddb9c78 - [clang][Expr][NFC] Fix some doc comments (#159504)

2025-09-18 Thread via cfe-commits
Author: Timm Baeder Date: 2025-09-18T09:03:12+02:00 New Revision: ddb9c785cd64835de84ecf394401ad98a6f087cd URL: https://github.com/llvm/llvm-project/commit/ddb9c785cd64835de84ecf394401ad98a6f087cd DIFF: https://github.com/llvm/llvm-project/commit/ddb9c785cd64835de84ecf394401ad98a6f087cd.diff L

[clang] [C++20][Modules] Use `MultiOnDiskHashTable` to improve the performance of header search algorithm. (PR #155350)

2025-09-18 Thread Michael Park via cfe-commits
@@ -157,15 +163,34 @@ template class MultiOnDiskHashTable { // FIXME: Don't rely on the OnDiskHashTable format here. auto L = InfoObj.ReadKeyDataLength(LocalPtr); const internal_key_type &Key = InfoObj.ReadKey(LocalPtr, L.first); -data_type_build

[clang] cac3894 - [OpenMP 5.2] New syntax for 'uses_allocators' clause (#157025)

2025-09-18 Thread via cfe-commits
Author: Urvi Rav Date: 2025-09-18T13:42:06+05:30 New Revision: cac389405455659a150caf2402d1541d7009cab0 URL: https://github.com/llvm/llvm-project/commit/cac389405455659a150caf2402d1541d7009cab0 DIFF: https://github.com/llvm/llvm-project/commit/cac389405455659a150caf2402d1541d7009cab0.diff LOG:

[clang] [OpenMP 5.2] New syntax for 'uses_allocators' clause (PR #157025)

2025-09-18 Thread CHANDRA GHALE via cfe-commits
https://github.com/chandraghale closed https://github.com/llvm/llvm-project/pull/157025 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP 5.2] New syntax for 'uses_allocators' clause (PR #157025)

2025-09-18 Thread CHANDRA GHALE via cfe-commits
chandraghale wrote: @ravurvi20 merging this PR, since already approved !! https://github.com/llvm/llvm-project/pull/157025 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add MC layer support for Andes XAndesVSIntH extension. (PR #159514)

2025-09-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v @llvm/pr-subscribers-clang Author: Rux124 (Ruhung) Changes Add MC layer support for Andes XAndesVSIntH extension. The spec is available at: https://github.com/andestech/andes-v5-isa/releases/tag/ast-v5_4_0-release --- Full diff: https:/

[clang] [clang][Expr][NFC] Fix some doc comments (PR #159504)

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

[clang] [llvm] [RISCV] Add MC layer support for Andes XAndesVSIntH extension. (PR #159514)

2025-09-18 Thread via cfe-commits
https://github.com/Ruhung created https://github.com/llvm/llvm-project/pull/159514 Add MC layer support for Andes XAndesVSIntH extension. The spec is available at: https://github.com/andestech/andes-v5-isa/releases/tag/ast-v5_4_0-release >From 196db35807dbbc9fd692d3dd994c1a8e7bdcc190 Mon Sep

[clang] 3044549 - [clang-repl] Disable out of process JIT tests on non-unix platforms (#159404)

2025-09-18 Thread via cfe-commits
Author: Abhinav Kumar Date: 2025-09-18T10:16:39+03:00 New Revision: 304454980b9122e8037f857c577a7af981c5c884 URL: https://github.com/llvm/llvm-project/commit/304454980b9122e8037f857c577a7af981c5c884 DIFF: https://github.com/llvm/llvm-project/commit/304454980b9122e8037f857c577a7af981c5c884.diff

[clang] [Sema][AArch64] Emit error for mismatched VLs on streaming mode transitions (PR #159131)

2025-09-18 Thread Sander de Smalen via cfe-commits
@@ -3771,25 +3771,25 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, (CallerFnType == SemaARM::ArmStreamingCompatible || ((CallerFnType == SemaARM::ArmStreaming) ^ IsCalleeStreaming))) { const LangOptions &LO = getLangOpts

[clang] [clang][ExprConst] Try to minimize emitting unneeded diagnostics (PR #159528)

2025-09-18 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/159528 There are a few places in clang where we pass a list of diagnostic notes to the `evaluate*` functions, which so some extra work when that list is passed (e.g. attaching call stacks to the diagnostics). We then

[clang] [flang] [flang][driver] Support -gdwarf-N option. (PR #158314)

2025-09-18 Thread Abid Qadeer via cfe-commits
abidh wrote: > I see that one of the test added in this is failing on > https://lab.llvm.org/buildbot/#/builders/201/builds/6288. I will investigate > it. https://github.com/llvm/llvm-project/pull/159533 https://github.com/llvm/llvm-project/pull/158314 ___

[clang] [clang][bytecode] Pass `SourceInfo` object by value (PR #159532)

2025-09-18 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr ready_for_review https://github.com/llvm/llvm-project/pull/159532 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] af66368 - [clang] [OpenMP] New OpenMP 6.0 - Parsing and Sema support for groupprivate (#158134)

2025-09-18 Thread via cfe-commits
Author: Ritanya-B-Bharadwaj Date: 2025-09-18T15:31:56+05:30 New Revision: af66368ff641137bc4bc9818a170d43abfa6df44 URL: https://github.com/llvm/llvm-project/commit/af66368ff641137bc4bc9818a170d43abfa6df44 DIFF: https://github.com/llvm/llvm-project/commit/af66368ff641137bc4bc9818a170d43abfa6df44

[clang] [clang] Remove Diag parameter from Expr::EvaluateKnownConstInt (PR #159512)

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

[clang] [clang][bytecode] Pass `SourceInfo` object by value (PR #159532)

2025-09-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes They are only pointer-sized and copying them is cheaper than taking the const ref. --- Full diff: https://github.com/llvm/llvm-project/pull/159532.diff 5 Files Affected: - (modified) clang/lib/AST/ByteCod

[clang-tools-extra] [Clangd] Fix dereference of null value (PR #159566)

2025-09-18 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam created https://github.com/llvm/llvm-project/pull/159566 None >From 5b78181faf98d419ad96b95c089e6046e604a104 Mon Sep 17 00:00:00 2001 From: Zahira Ammarguellat Date: Thu, 18 Sep 2025 05:50:57 -0700 Subject: [PATCH] [Clangd] Fix dereference of null value --- clang-

[clang-tools-extra] [Clangd] [NFC] Fix dereference of null value (PR #159566)

2025-09-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Zahira Ammarguellat (zahiraam) Changes This is a find from static analysis tool complaining about potential dereference of `nullptr` for `RD`. --- Full diff: https://github.com/llvm/llvm-project/pull/159566.diff 1 Files Affected: - (m

[clang] [libcxx] [Clang] Allow __builtin_fma/fmaf/fmal to be used in a constant expression (PR #158048)

2025-09-18 Thread Chaitanya Koparkar via cfe-commits
ckoparkar wrote: > It seems the result got folded despite potential changes to the rounding mode > at run time? The constexpr evaluator uses [getActiveRoundingMode](https://github.com/llvm/llvm-project/blob/main/clang/lib/AST/ExprConstant.cpp#L2765) to get the current rounding mode; it is use

[clang] 81aaca3 - [CIR][NFC] Use TableGen to generate LLVM lowering patterns (#159390)

2025-09-18 Thread via cfe-commits
Author: Sirui Mu Date: 2025-09-18T21:43:08+08:00 New Revision: 81aaca359b2d5a6529d9620fa4181c4d89c83c7c URL: https://github.com/llvm/llvm-project/commit/81aaca359b2d5a6529d9620fa4181c4d89c83c7c DIFF: https://github.com/llvm/llvm-project/commit/81aaca359b2d5a6529d9620fa4181c4d89c83c7c.diff LOG:

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

2025-09-18 Thread Balázs Kéri via cfe-commits
balazske wrote: Would it be better to add the `std::errc` always to the ignore list? If the user specifies the ignore list and it does not contain `std::errc` it is missing from the list. I suspect that the warning for `std::errc` is never needed from this checker. https://github.com/llvm/llv

[clang] [clang][ptrauth] Warn about the use of a weak signing schema (PR #157779)

2025-09-18 Thread Anatoly Trosinenko via cfe-commits
atrosinenko wrote: A side thought: what is the expected effect of this warning (namely, treating implicit signing the same way as `__ptrauth` qualifiers) when building an existing code base for a new target that has function pointer signing enabled? My initial assumption is that in a ptrauth-u

[clang] [flang] [llvm] [clang] [OpenMP] New OpenMP 6.0 - Parsing and Sema support for groupprivate (PR #158134)

2025-09-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-android` running on `sanitizer-buildbot-android` while building `clang,flang,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/12498 Here i

[clang] [llvm] [DropUnnecessaryAssumes] Add pass for dropping assumes (PR #159403)

2025-09-18 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw approved this pull request. LG. Thanks. FYI I did a similar attempt last year to drop useless assumptions (inserted by rustc): https://github.com/llvm/llvm-project/compare/main...dtcxzyw:llvm-project:perf/remove-dead-assume. It removes assumptions in leaf nodes of th

[clang] [llvm] [DropUnnecessaryAssumes] Add pass for dropping assumes (PR #159403)

2025-09-18 Thread Yingwei Zheng via cfe-commits
@@ -1498,6 +1499,9 @@ PassBuilder::buildModuleOptimizationPipeline(OptimizationLevel Level, invokeOptimizerEarlyEPCallbacks(MPM, Level, LTOPhase); FunctionPassManager OptimizePM; + if (!isLTOPreLink(LTOPhase)) dtcxzyw wrote: It deserves a comment here t

[clang] 4dc0513 - [libclang/python] Sync python kinds with Index.h enums (#143264)

2025-09-18 Thread via cfe-commits
Author: Jannick Kremer Date: 2025-09-18T14:34:20+02:00 New Revision: 4dc0513f6196d0ead5cf3cdfa23752d88b783a9e URL: https://github.com/llvm/llvm-project/commit/4dc0513f6196d0ead5cf3cdfa23752d88b783a9e DIFF: https://github.com/llvm/llvm-project/commit/4dc0513f6196d0ead5cf3cdfa23752d88b783a9e.diff

[clang] [analyzer] Enhance array bound checking for `ConstantArrayType` (PR #159357)

2025-09-18 Thread Donát Nagy via cfe-commits
@@ -555,24 +588,305 @@ std::string StateUpdateReporter::getMessage(PathSensitiveBugReport &BR) const { return std::string(Out.str()); } -bool StateUpdateReporter::providesInformationAboutInteresting( -SymbolRef Sym, PathSensitiveBugReport &BR) { - if (!Sym) -return

[clang] [analyzer] Enhance array bound checking for `ConstantArrayType` (PR #159357)

2025-09-18 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/159357 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Enhance array bound checking for `ConstantArrayType` (PR #159357)

2025-09-18 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/159357 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [Clangd] Fix dereference of null value (PR #159566)

2025-09-18 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam edited https://github.com/llvm/llvm-project/pull/159566 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] reapply "[clang-tidy] support query based custom check" (PR #159547)

2025-09-18 Thread Ingo Müller via cfe-commits
https://github.com/ingomueller-net requested changes to this pull request. Sorry, spoke too soon. Building `clang-tidy` still has a lot of problems. The first one is the following but there are too many to copy them here. ``` ld.lld: error: undefined symbol: clang::ast_matchers::MatchFinder::a

[clang] [WebKit checkers] fix a typo in a message in one of the checkers (PR #159593)

2025-09-18 Thread Claudio Saavedra via cfe-commits
https://github.com/csaavedra created https://github.com/llvm/llvm-project/pull/159593 None >From db83606c11c14f10cab8b9de99e0b409379d717b Mon Sep 17 00:00:00 2001 From: Claudio Saavedra Date: Thu, 18 Sep 2025 18:19:21 +0300 Subject: [PATCH] [WebKit checkers] fix a typo in a message in one of t

[clang] [WebKit checkers] fix a typo in a message in one of the checkers (PR #159593)

2025-09-18 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [WebKit checkers] fix a typo in a message in one of the checkers (PR #159593)

2025-09-18 Thread Claudio Saavedra via cfe-commits
https://github.com/csaavedra updated https://github.com/llvm/llvm-project/pull/159593 >From db83606c11c14f10cab8b9de99e0b409379d717b Mon Sep 17 00:00:00 2001 From: Claudio Saavedra Date: Thu, 18 Sep 2025 18:19:21 +0300 Subject: [PATCH] [WebKit checkers] fix a typo in a message in one of the ch

[clang] [WebKit checkers] fix a typo in a message in one of the checkers (PR #159593)

2025-09-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Claudio Saavedra (csaavedra) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/159593.diff 1 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrRefCallArgsChecker.cpp (+1-1)

[clang] [analyzer][NFC] Change LiveVariablesImpl::inAssignment from DenseMap to DenseSet (PR #157685)

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

[clang-tools-extra] [clang-tidy] Add check 'bugprone-cast-to-struct' (PR #153428)

2025-09-18 Thread Donát Nagy via cfe-commits
@@ -0,0 +1,60 @@ +.. title:: clang-tidy - bugprone-cast-to-struct + +bugprone-cast-to-struct +=== + +Finds casts from pointers to struct or scalar type to pointers to struct type. + +Casts between pointers to different structs can be unsafe because it is possi

[clang] [llvm] [mlir] [AArch64][SME] Improve codegen for aarch64.sme.cnts* when not in streaming mode (PR #154761)

2025-09-18 Thread Kerry McLaughlin via cfe-commits
@@ -4304,9 +4304,10 @@ Value *CodeGenFunction::EmitSMELd1St1(const SVETypeFlags &TypeFlags, // size in bytes. if (Ops.size() == 5) { Function *StreamingVectorLength = -CGM.getIntrinsic(Intrinsic::aarch64_sme_cntsb); +CGM.getIntrinsic(Intrinsic::aarch64_

[clang] [HLSL] Remove resource constructors with binding (PR #157008)

2025-09-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-test-suite` running on `ppc64le-clang-test-suite` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/95/builds/182

[clang-tools-extra] a348588 - [clang-tools-extra] Remove 'REQUIRES: shell' from lit tests. (#156950)

2025-09-18 Thread via cfe-commits
Author: cmtice Date: 2025-09-08T11:40:17-07:00 New Revision: a348588a00d4f0bb3459b39bbfe9f33fac497cc0 URL: https://github.com/llvm/llvm-project/commit/a348588a00d4f0bb3459b39bbfe9f33fac497cc0 DIFF: https://github.com/llvm/llvm-project/commit/a348588a00d4f0bb3459b39bbfe9f33fac497cc0.diff LOG: [

[clang] [clang-repl] Add support for running custom code in Remote JIT executor (PR #157358)

2025-09-18 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/157358 >From 4410aeb08dc14a4f29c9ec0e8730a1bde3386665 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Mon, 8 Sep 2025 00:19:44 +0530 Subject: [PATCH 1/5] [clang-repl] Adding custom lambda in launchExecutor --- clang/inc

[clang] Fix crash in 'malloc' referring to function without a argument (PR #159371)

2025-09-18 Thread Erich Keane via cfe-commits
https://github.com/erichkeane updated https://github.com/llvm/llvm-project/pull/159371 >From 35b6efd0e5929aab3e6493fd83e7792159deda39 Mon Sep 17 00:00:00 2001 From: erichkeane Date: Wed, 17 Sep 2025 07:17:52 -0700 Subject: [PATCH 1/2] Fix crash in 'malloc' referring to function without a argum

[clang] [llvm] [lit] Make builtin cat work with stdin (PR #158447)

2025-09-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-testing-tools Author: Aiden Grossman (boomanaiden154) Changes cat with no files passed to it is supposed to read from STDIN according to POSIX. The builtin cat lacking this behavior led to the clang test in dev-fd-fs.c to fail because it expected this be

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-09-18 Thread via cfe-commits
@@ -0,0 +1,95 @@ +.. title:: clang-tidy - modernize-use-structured-binding + +modernize-use-structured-binding + + +Finds places where structured bindings could be used to decompose pairs and +suggests replacing them. + +This check finds three code

[clang] Disable -gsplit-dwarf as it is unsupported at the moment on AIX (PR #158199)

2025-09-18 Thread Aditya Chaudhary via cfe-commits
https://github.com/adityankit updated https://github.com/llvm/llvm-project/pull/158199 >From 0c187c98b9ff5fe39c7bcfa1e2317e3dd4116576 Mon Sep 17 00:00:00 2001 From: Aditya Chaudhary Date: Thu, 11 Sep 2025 12:16:31 -0400 Subject: [PATCH] Disable -gsplit-dwarf as it is unsupported at the moment o

[clang] [llvm] [DropUnnecessaryAssumes] Add pass for dropping assumes (PR #159403)

2025-09-18 Thread Nikita Popov via cfe-commits
https://github.com/nikic closed https://github.com/llvm/llvm-project/pull/159403 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] VectorExprEvaluator::VisitCallExpr - add constant folding for X86 pslldqi/psrldqi intrinsics (PR #157403)

2025-09-18 Thread Simon Pilgrim via cfe-commits
@@ -12127,6 +12127,49 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) { return Success(APValue(ResultElements.data(), ResultElements.size()), E); } + case X86::BI__builtin_ia32_pslldqi128_byteshift: + case X86::BI__builtin_ia32_psrldqi128_byteshift: + c

[clang] Make -funwind-tables the default for SystemZ. (PR #139764)

2025-09-18 Thread via cfe-commits
https://github.com/anoopkg6 updated https://github.com/llvm/llvm-project/pull/139764 >From e0b15d83e04aebc8f7198af085c6fbe35f5ca7d4 Mon Sep 17 00:00:00 2001 From: anoopkg6 Date: Tue, 13 May 2025 18:33:15 +0200 Subject: [PATCH] Make -funwind-tables the default for SystemZ. --- clang/lib/Driver

[clang] [clang] VectorExprEvaluator::VisitCallExpr - add constant folding for X86 pslldqi/psrldqi intrinsics (PR #157403)

2025-09-18 Thread Simon Pilgrim via cfe-commits
@@ -12127,6 +12127,49 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) { return Success(APValue(ResultElements.data(), ResultElements.size()), E); } + case X86::BI__builtin_ia32_pslldqi128_byteshift: + case X86::BI__builtin_ia32_psrldqi128_byteshift: + c

[clang] [WebKit checkers] fix a typo in a message in one of the checkers (PR #159593)

2025-09-18 Thread Claudio Saavedra via cfe-commits
csaavedra wrote: @cor3ntin thanks for the review, could you please merge this as I don't have rights, I think? Thanks! https://github.com/llvm/llvm-project/pull/159593 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow AVX/AVX512 subvector insertion intrinsics to be used in constexpr #157709 (PR #158778)

2025-09-18 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon auto_merge_enabled https://github.com/llvm/llvm-project/pull/158778 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b405e32 - [RISCV] Add MVendorID, MArchID, and MImpID for sifive-p550. (#159465)

2025-09-18 Thread via cfe-commits
Author: Craig Topper Date: 2025-09-18T07:16:51-07:00 New Revision: b405e3249bb64824587e2c5d98751f3d6ce636e0 URL: https://github.com/llvm/llvm-project/commit/b405e3249bb64824587e2c5d98751f3d6ce636e0 DIFF: https://github.com/llvm/llvm-project/commit/b405e3249bb64824587e2c5d98751f3d6ce636e0.diff

[clang] [clang] NFC: introduce UnsignedOrNone as a replacement for std::optional (PR #134142)

2025-09-18 Thread Shafik Yaghmour via cfe-commits
shafik wrote: This is linked to the following regression: https://github.com/llvm/llvm-project/issues/159563 https://github.com/llvm/llvm-project/pull/134142 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang] [Clang] Support includes translated to module imports in -header-include-filtering=direct-per-file (PR #156756)

2025-09-18 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 origin/main HEAD --extensions c,cpp -- clang/lib/Frontend/HeaderIncludeGen.cpp clang

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-09-18 Thread via cfe-commits
yronglin wrote: This can be fixed by remove error recovery in parser. ```cpp typedef int import; #define EMP EMP import m; ``` I update the forward look logic in HandleModuleContextualKeyword, and this patch will have the same behavior with trunk. ```cpp import <=>; ``` This is ill-formed becaus

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow AVX/AVX512 subvector insertion intrinsics to be used in constexpr #157709 (PR #158778)

2025-09-18 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/158778 >From 491504e0c58087ad44dbc7be039e95658c444a82 Mon Sep 17 00:00:00 2001 From: AdityaC4 Date: Mon, 15 Sep 2025 23:19:21 -0500 Subject: [PATCH 1/7] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin -

[clang-tools-extra] [Clangd] [NFC] Fix dereference of null value (PR #159566)

2025-09-18 Thread Matheus Izvekov via cfe-commits
@@ -145,8 +145,11 @@ std::string getQualification(ASTContext &Context, for (const auto *CurD : llvm::reverse(Parents)) { if (auto *TD = llvm::dyn_cast(CurD)) { QualType T; - if (const auto *RD = dyn_cast(TD); - ClassTemplateDecl *CTD = RD->getDescribed

[clang-tools-extra] [Clangd] [NFC] Fix dereference of null value (PR #159566)

2025-09-18 Thread Matheus Izvekov via cfe-commits
@@ -145,8 +145,11 @@ std::string getQualification(ASTContext &Context, for (const auto *CurD : llvm::reverse(Parents)) { if (auto *TD = llvm::dyn_cast(CurD)) { QualType T; - if (const auto *RD = dyn_cast(TD); mizvekov wrote: This should be pos

[clang] [clang][ExprConst] Allow mutation in `__builtin_constant_p`'s argument (PR #159599)

2025-09-18 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/159599 Allow side effects and mutation of local variables in the argument of a `__builtin_constant_p` call. This aligns clang's behavior with GCC's current behavior: https://godbolt.org/z/8xhMxY6rx >From 893e7137

[clang] [llvm] [DropUnnecessaryAssumes] Add pass for dropping assumes (PR #159403)

2025-09-18 Thread Nikita Popov via cfe-commits
https://github.com/nikic auto_merge_enabled https://github.com/llvm/llvm-project/pull/159403 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][CUDA] Avoid accounting for tail padding in LLVM offloading (PR #156229)

2025-09-18 Thread Kevin Sala Penades via cfe-commits
kevinsala wrote: @jhuber6 @Artem-B does the new approach look better? We now pass the same size for both nvidia and amdgpu kernels. https://github.com/llvm/llvm-project/pull/156229 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.

[clang] [llvm] [clang][CUDA] Avoid accounting for tail padding in LLVM offloading (PR #156229)

2025-09-18 Thread Kevin Sala Penades via cfe-commits
@@ -3655,11 +3655,6 @@ Error AMDGPUKernelTy::launchImpl(GenericDeviceTy &GenericDevice, KernelArgsTy &KernelArgs, KernelLaunchParamsTy LaunchParams, AsyncInfoWrapperTy &AsyncInfo

[clang] 5b2af16 - [flang][Driver] Enables lto-partitions and fat-lto-object. (#158125)

2025-09-18 Thread via cfe-commits
Author: Anchu Rajendran S Date: 2025-09-18T08:55:20-07:00 New Revision: 5b2af16be591172cde8203160d1e01f5815a16ac URL: https://github.com/llvm/llvm-project/commit/5b2af16be591172cde8203160d1e01f5815a16ac DIFF: https://github.com/llvm/llvm-project/commit/5b2af16be591172cde8203160d1e01f5815a16ac.d

[clang] [flang] [flang][Driver] Enables lto-partitions and fat-lto-object. (PR #158125)

2025-09-18 Thread Anchu Rajendran S via cfe-commits
https://github.com/anchuraj closed https://github.com/llvm/llvm-project/pull/158125 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] add array bounds constraints using undef for out-of-bounds access (PR #159046)

2025-09-18 Thread Sjoerd Meijer via cfe-commits
sjoerdmeijer wrote: Maybe with the accumulation version it reads uninitialised values, but it looks like the point that this might get in the way still stands (with the other example). https://github.com/llvm/llvm-project/pull/159046 ___ cfe-commits

[clang-tools-extra] [Clangd] [NFC] Fix dereference of null value (PR #159566)

2025-09-18 Thread Zahira Ammarguellat via cfe-commits
@@ -145,8 +145,11 @@ std::string getQualification(ASTContext &Context, for (const auto *CurD : llvm::reverse(Parents)) { if (auto *TD = llvm::dyn_cast(CurD)) { QualType T; - if (const auto *RD = dyn_cast(TD); - ClassTemplateDecl *CTD = RD->getDescribed

[clang-tools-extra] [Clangd] [NFC] Fix dereference of null value (PR #159566)

2025-09-18 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam updated https://github.com/llvm/llvm-project/pull/159566 >From 5b78181faf98d419ad96b95c089e6046e604a104 Mon Sep 17 00:00:00 2001 From: Zahira Ammarguellat Date: Thu, 18 Sep 2025 05:50:57 -0700 Subject: [PATCH 1/3] [Clangd] Fix dereference of null value --- clang-to

[clang] [compiler-rt] [llvm] [AIX] Implement the ifunc attribute. (PR #153049)

2025-09-18 Thread Wael Yehia via cfe-commits
https://github.com/w2yehia edited https://github.com/llvm/llvm-project/pull/153049 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [Clangd] [NFC] Fix dereference of null value (PR #159566)

2025-09-18 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam updated https://github.com/llvm/llvm-project/pull/159566 >From 5b78181faf98d419ad96b95c089e6046e604a104 Mon Sep 17 00:00:00 2001 From: Zahira Ammarguellat Date: Thu, 18 Sep 2025 05:50:57 -0700 Subject: [PATCH 1/2] [Clangd] Fix dereference of null value --- clang-to

[clang] [flang] [flang][Driver] Enables lto-partitions and fat-lto-object. (PR #158125)

2025-09-18 Thread Anchu Rajendran S via cfe-commits
@@ -182,6 +182,29 @@ void Flang::addCodegenOptions(const ArgList &Args, CmdArgs.push_back("-fcoarray"); } +void Flang::addLTOOptions(const ArgList &Args, ArgStringList &CmdArgs) const { + const ToolChain &TC = getToolChain(); + const Driver &D = TC.getDriver(); + Diagno

[clang] Do not print locations in anonymous tag names. (PR #159592)

2025-09-18 Thread Adrian Prantl via cfe-commits
@@ -397,6 +397,8 @@ PrintingPolicy CGDebugInfo::getPrintingPolicy() const { // Apply -fdebug-prefix-map. PP.Callbacks = &PrintCB; + // Disable printing of location of an anonymous tag name. adrian-prantl wrote: Can you put the explanation of why we do th

[clang] [llvm] [clang][CUDA] Avoid accounting for tail padding in LLVM offloading (PR #156229)

2025-09-18 Thread Joseph Huber via cfe-commits
@@ -3655,11 +3655,6 @@ Error AMDGPUKernelTy::launchImpl(GenericDeviceTy &GenericDevice, KernelArgsTy &KernelArgs, KernelLaunchParamsTy LaunchParams, AsyncInfoWrapperTy &AsyncInfo

[clang-tools-extra] [Clangd] [NFC] Fix dereference of null value (PR #159566)

2025-09-18 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov approved this pull request. https://github.com/llvm/llvm-project/pull/159566 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Avoid adding already present items in sets/maps (PR #159582)

2025-09-18 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 created https://github.com/llvm/llvm-project/pull/159582 None >From 45f4b75d022eebd92d3ae2514653dc7e4f81b555 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Thu, 18 Sep 2025 12:52:29 + Subject: [PATCH] [LifetimeSafety] Avoid adding already present items in set

[clang] b4d274f - [CIR] Implement OpaqueValueExpr for Complex in C (#158423)

2025-09-18 Thread via cfe-commits
Author: Amr Hesham Date: 2025-09-18T18:56:02+02:00 New Revision: b4d274f3d97c72364cc29f650423dca7b5b763ed URL: https://github.com/llvm/llvm-project/commit/b4d274f3d97c72364cc29f650423dca7b5b763ed DIFF: https://github.com/llvm/llvm-project/commit/b4d274f3d97c72364cc29f650423dca7b5b763ed.diff LO

[clang] [CIR] Implement OpaqueValueExpr for Complex in C (PR #158423)

2025-09-18 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/158423 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][SPARC] Pass 16-aligned structs with the correct alignment in CC (PR #155829)

2025-09-18 Thread via cfe-commits
@@ -222,73 +223,94 @@ class SparcV9ABIInfo : public ABIInfo { }; } // end anonymous namespace -ABIArgInfo -SparcV9ABIInfo::classifyType(QualType Ty, unsigned SizeLimit) const { +ABIArgInfo SparcV9ABIInfo::classifyType(QualType Ty, unsigned SizeLimit, +

[clang] [HLSL] Add support for the HLSL matrix type (PR #159446)

2025-09-18 Thread Florian Hahn via cfe-commits
https://github.com/fhahn commented: Looks good to me at a high level, great to see more users of the matrix intrinsics! https://github.com/llvm/llvm-project/pull/159446 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi

[clang] [llvm] [DropUnnecessaryAssumes] Add pass for dropping assumes (PR #159403)

2025-09-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-lld-multistage-test` running on `ppc64le-lld-multistage-test` while building `clang,llvm` at step 12 "build-stage2-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/168/builds/1621

[clang] [CIR] Implement Type promotion for VectorType (PR #158715)

2025-09-18 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/158715 >From 5dd5b6039533697dd547680d43c42427d5570f9e Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Mon, 15 Sep 2025 20:52:56 +0200 Subject: [PATCH] [CIR] Implement Type promotion for VectorType --- clang/li

[clang] [CIR] Implement Logical OR for VectorType (PR #158668)

2025-09-18 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/158668 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 36692aa - [CIR] Implement Logical OR for VectorType (#158668)

2025-09-18 Thread via cfe-commits
Author: Amr Hesham Date: 2025-09-18T20:26:10+02:00 New Revision: 36692aa7a40183c1b43358288c83f5cc08abf8f1 URL: https://github.com/llvm/llvm-project/commit/36692aa7a40183c1b43358288c83f5cc08abf8f1 DIFF: https://github.com/llvm/llvm-project/commit/36692aa7a40183c1b43358288c83f5cc08abf8f1.diff LO

[clang] [clang][Dependency Scanning] Canonicalize Defines of a Compiler Invocation As Early As Possible (PR #159620)

2025-09-18 Thread Jan Svoboda via cfe-commits
@@ -744,14 +746,17 @@ bool DependencyScanningWorker::scanDependencies( sanitizeDiagOpts(*DiagOpts); auto Diags = CompilerInstance::createDiagnostics(*FS, *DiagOpts, &DC, /*ShouldOwnClient=*/false); + bool canonicalizeDefs

[clang] [HLSL] Add support for the HLSL matrix type (PR #159446)

2025-09-18 Thread Finn Plummer via cfe-commits
https://github.com/inbelic approved this pull request. https://github.com/llvm/llvm-project/pull/159446 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SemaHLSL] Correct descriptor range overflow validation (PR #159475)

2025-09-18 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/159475 >From 86775ab587591375a00f47e825f58b3bfc02dd80 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Wed, 17 Sep 2025 16:03:57 -0700 Subject: [PATCH 1/8] correct validation --- clang/lib/Sema/SemaHLSL.cpp

[clang] [llvm] [SemaHLSL] Correct descriptor range overflow validation (PR #159475)

2025-09-18 Thread Finn Plummer via cfe-commits
https://github.com/inbelic edited https://github.com/llvm/llvm-project/pull/159475 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Dependency Scanning] Canonicalize Defines of a Compiler Invocation As Early As Possible (PR #159620)

2025-09-18 Thread Jan Svoboda via cfe-commits
@@ -744,14 +746,17 @@ bool DependencyScanningWorker::scanDependencies( sanitizeDiagOpts(*DiagOpts); auto Diags = CompilerInstance::createDiagnostics(*FS, *DiagOpts, &DC, /*ShouldOwnClient=*/false); + bool canonicalizeDefs

[clang] [clang][Dependency Scanning] Canonicalize Defines of a Compiler Invocation As Early As Possible (PR #159620)

2025-09-18 Thread Jan Svoboda via cfe-commits
@@ -393,8 +393,6 @@ class DependencyScanningAction { DiagnosticConsumer *DiagConsumer) { // Make a deep copy of the original Clang invocation. CompilerInvocation OriginalInvocation(*Invocation); -if (any(Service.getOptimizeArgs() & ScanningOptim

[clang] [clang][ExprConst] Try to minimize emitting unneeded diagnostics (PR #159528)

2025-09-18 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr edited https://github.com/llvm/llvm-project/pull/159528 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Reject negative tuple sizes (PR #159579)

2025-09-18 Thread Timm Baeder via cfe-commits
tbaederr wrote: `UnsignedOrNone` just means we assert there when passing `-1`. With a full `std::optional` the value would just underflow and the value we use later would've been wrong. The incorrect handling of negative values has nothing to do with `UnsignedOrNone`. https://github.com/llvm/

[clang] [CIR] Upstream TypeInfo attribute (PR #159426)

2025-09-18 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/159426 >From 120397488168606f961e05235c2c5fa8a85cd59a Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Wed, 17 Sep 2025 21:02:56 +0200 Subject: [PATCH 1/3] [CIR] Upstream TypeInfo attribute --- .../include/clan

[clang] [LifetimeSafety] Associate origins to all l-valued expressions (PR #156896)

2025-09-18 Thread Utkarsh Saxena via cfe-commits
usx95 wrote: ### Merge activity * **Sep 11, 1:50 PM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/156896). https://github.com/llvm/llvm-project/pull/156896 __

[clang] [llvm] [InstCombine] Strip leading zero indices from GEP (PR #155415)

2025-09-18 Thread Fabian Ritter via cfe-commits
ritter-x2a wrote: PR to fix the AMDGPUPromoteAlloca issue: #157682 I'm still observing crashes in different tests, `libc.test.src.math.smoke.ufromfpf_test` and similar variants, but I see those with and without my fix, and with and without the patch from this PR reverted, so they are probably

[clang] [Headers][X86] Add constexpr support for some AVX[512] intrinsics. (PR #158663)

2025-09-18 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: At the moment we need to keep _mm_mask_cvtepi16_epi8 etc as the selection mask only acts on part of the vector (we're truncating v8i16 to v8i8, using the mask8 on that and passing through all the upper half of the passthrough to create a v16i8) - the best we might be able to do

[clang] [llvm] [DropUnnecessaryAssumes] Add pass for dropping assumes (PR #159403)

2025-09-18 Thread Nikita Popov via cfe-commits
https://github.com/nikic updated https://github.com/llvm/llvm-project/pull/159403 >From 42ef8db1b8927f3f8c28cd001962139f19343d7d Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 17 Sep 2025 14:55:50 +0200 Subject: [PATCH 1/2] [DropUnnecessaryAssumes] Add pass for dropping assumes This ad

[clang] [clang][bytecode] Pass `SourceInfo` objects by value (PR #159532)

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

[clang] [llvm] [clang][CUDA] Avoid accounting for tail padding in LLVM offloading (PR #156229)

2025-09-18 Thread Kevin Sala Penades via cfe-commits
@@ -3655,11 +3655,6 @@ Error AMDGPUKernelTy::launchImpl(GenericDeviceTy &GenericDevice, KernelArgsTy &KernelArgs, KernelLaunchParamsTy LaunchParams, AsyncInfoWrapperTy &AsyncInfo

[clang] Fix build failure in CommonArgs.cpp on MSVC 2022: warning C4715: 'clang::driver::tools::complexRangeKindToStr': not all control paths return a value (PR #159408)

2025-09-18 Thread Daniel Paoliello via cfe-commits
https://github.com/dpaoliello closed https://github.com/llvm/llvm-project/pull/159408 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-09-18 Thread Justin Stitt via cfe-commits
@@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -foverflow-behavior-types -std=c++11 -ast-print %s -o - | FileCheck %s + +extern int __attribute__((overflow_behavior(no_wrap))) a; +extern int __attribute__((overflow_behavior(wrap))) b; + +// CHECK: extern __no_wrap int a; +// CHECK: extern _

[clang] [analyzer] Enhance array bound checking for `ConstantArrayType` (PR #159357)

2025-09-18 Thread Donát Nagy via cfe-commits
NagyDonat wrote: @alejandro-alvarez-sonarsource @steakhal What do you think about the code duplication situation? What are your reasons for proposing this implementation? If I understand correctly the "new" type-based bounds checking differs from the "old" region/extent-based logic in the foll

  1   2   3   4   5   >