[clang] [clang-repl] Sink RemoteJITUtils into Interpreter class (NFC) (PR #155140)

2025-09-17 Thread Lang Hames via cfe-commits
@@ -115,15 +120,38 @@ class Interpreter { /// An optional compiler instance for CUDA offloading std::unique_ptr DeviceCI; +public: + struct JITConfig { +/// Indicates whether out-of-process JIT execution is enabled. +bool IsOutOfProcess = false; +/// Path to t

[clang] [llvm] [mlir] [x86][AVX-VNNI] Fix VPDPBXXD Argument Type (PR #159222)

2025-09-17 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/159222 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] VectorExprEvaluator::VisitCallExpr - allow SSE/AVX2/AVX512 pack intrinsics to be used in constexpr (PR #156003)

2025-09-17 Thread via cfe-commits
https://github.com/woruyu updated https://github.com/llvm/llvm-project/pull/156003 >From c43b49ef16a5283623aa3404b4fd1cba794a325c Mon Sep 17 00:00:00 2001 From: woruyu <1214539...@qq.com> Date: Tue, 16 Sep 2025 23:16:52 -0900 Subject: [PATCH] [Headers][X86] VectorExprEvaluator::VisitCallExpr - a

[clang] [Clang][OpenMP] Add an additional class to hold data that will be shared between all loop transformations (PR #155849)

2025-09-17 Thread Roger Ferrer Ibáñez via cfe-commits
rofirrim wrote: ping https://github.com/llvm/llvm-project/pull/155849 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow AVX vector concatenation intrinsics to be used in constexpr (PR #158020)

2025-09-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Shawn (kimsh02) Changes Fix #157705 Vector concatentation intrinsics made constexpr and test coverage added to avx-builtins.c for the following: ``` _mm256_set_m128 _mm256_setr_m128 _mm256_set_m128d _mm256_setr_m128d _mm256_set_m128i _

[clang] [PAC][clang] Add new features to pauthtest ABI (PR #113150)

2025-09-17 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 updated https://github.com/llvm/llvm-project/pull/113150 >From 63eb66f8f7feb97932f22a1e3ac93a1aca4f913e Mon Sep 17 00:00:00 2001 From: Daniil Kovalev Date: Mon, 21 Oct 2024 10:58:04 +0300 Subject: [PATCH] [PAC][clang] Add new features to pauthtest ABI Enable init/fi

[clang] [lldb] [lldb][Expression] Add structor variant to LLDB's function call labels (PR #149827)

2025-09-17 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/149827 >From f979958249187a1b89b4b87c46e90d63b6dc4042 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Mon, 18 Aug 2025 15:14:40 +0100 Subject: [PATCH 1/2] [clang][DebugInfo] Emit unified (Itanium) mangled name to

[clang] [clang][sema] Add nonnull attribute to builtin format functions (PR #158626)

2025-09-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Radovan Božić (bozicrHT) Changes Annotate printf/scanf and related builtins with the nonnull attribute on their format string parameters. This enables diagnostics when NULL is passed, matching GCC behavior. Updated existing Sema tests and

[clang] [clang][sema] Add nonnull attribute to builtin format functions (PR #158626)

2025-09-17 Thread Radovan Božić via cfe-commits
@@ -392,6 +392,10 @@ class Context { bool performsCallback(unsigned ID, llvm::SmallVectorImpl &Encoding) const; + /// Return true if this builtin has parameters at fixed positions + /// that must be non-null. + bool IsNonNull(unsigned ID, llvm::Sma

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

2025-09-17 Thread Daniil Kovalev via cfe-commits
kovdan01 wrote: > > * Fix personality pointer authentication on non-Apple targets: > > [[runtimes][PAC] Harden unwinding when possible #143230 > > (comment)](https://github.com/llvm/llvm-project/pull/143230#discussion_r2318636296) > > I'm not sure what's going on in this diff as it does not ap

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-09-17 Thread via cfe-commits
@@ -107,3 +110,293 @@ void Cygwin::AddClangSystemIncludeArgs(const ArgList &DriverArgs, addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include"); addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include/w32api"); } + +void cygwin::Linker::Constru

[clang] [clang-format] Add an option to format numeric literal case (PR #151590)

2025-09-17 Thread via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/151590 >From ad46ad82b5564d5aa7236d9a0bf1f66fdf476a72 Mon Sep 17 00:00:00 2001 From: Andy MacGregor Date: Wed, 10 Sep 2025 09:50:18 -0400 Subject: [PATCH 1/2] [clang-format] Add an option to format numeric literal case

[clang] [libcxx] [Clang][WIP] Normalize constraints before checking for satisfaction (PR #141776)

2025-09-17 Thread Corentin Jabot via cfe-commits
@@ -27,13 +27,23 @@ namespace clang { class ConceptDecl; +class ConceptReference; class Expr; class NamedDecl; struct PrintingPolicy; +/// Pairs of unsatisfied atomic constraint expressions along with the +/// substituted constraint expr, if the template arguments could b

[clang] [WebKit checkers] Treat asm brk as trivial (PR #155046)

2025-09-17 Thread Rashmi Mudduluru via cfe-commits
https://github.com/t-rasmud approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/155046 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Fix false positive -Wshadow with structured binding captures (PR #157667)

2025-09-17 Thread Ivan Murashko via cfe-commits
@@ -8508,10 +8525,17 @@ void Sema::CheckShadow(NamedDecl *D, NamedDecl *ShadowedDecl, return; } } - if (const auto *VD = dyn_cast(ShadowedDecl); - VD && VD->hasLocalStorage()) { -// A variable can't shadow a local variable in an en

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

2025-09-17 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. 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] [analyzer][NFC] Remove dead LiveVariables::Observer::observerKill (PR #157661)

2025-09-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Balazs Benics (steakhal) Changes This API was never used in the clang code base. There might be downstream users, but I highly doubt that. I think the best is to get rid of this unused API. --- Full diff: https://github.

[clang] [X86] Allow remaining AVX512 per-element shift intrinsics to be used in constexpr (PR #157696)

2025-09-17 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon created https://github.com/llvm/llvm-project/pull/157696 Handle missing AVX512F epi64 and AVX512BW epi16 cases with existing code paths Fixes #154287 >From f1e59ef0d2f1cf8ef454df64f98a10658edf48b2 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 9 Sep 2025 16

[clang-tools-extra] [clang-tidy][NFC] Construct map at compile time (PR #158166)

2025-09-17 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook closed https://github.com/llvm/llvm-project/pull/158166 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 5e1b416 - [clang-tidy][NFC] Construct map at compile time (#158166)

2025-09-17 Thread via cfe-commits
Author: Victor Chernyakin Date: 2025-09-18T00:31:28-06:00 New Revision: 5e1b416472cdf38af49e895079fb0ab282e861c4 URL: https://github.com/llvm/llvm-project/commit/5e1b416472cdf38af49e895079fb0ab282e861c4 DIFF: https://github.com/llvm/llvm-project/commit/5e1b416472cdf38af49e895079fb0ab282e861c4.d

[clang] Clang AST updates for more details (PR #152372)

2025-09-17 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: This seems large enough that it might warrant an RFC with a more detailed motivation https://clang.llvm.org/get_involved.html#:~:text=The%20Clang%20community%20uses,will%20proceed%20or%20not. @erichkeane @rnk https://github.com/llvm/llvm-project/pull/152372 _

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add AVX512 VPTERNLOGD/VPTERNLOGQ intrinsics to be used in constexpr (PR #158703)

2025-09-17 Thread via cfe-commits
https://github.com/kimsh02 updated https://github.com/llvm/llvm-project/pull/158703 >From e49dc71e548a561db03368317373c6b3f23ec47e Mon Sep 17 00:00:00 2001 From: kimsh02 Date: Mon, 15 Sep 2025 10:58:34 -0700 Subject: [PATCH 1/8] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - a

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

2025-09-17 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. 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] [clang] Remove Diag parameter from Expr::EvaluateKnownConstInt (PR #159512)

2025-09-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes If it's truly a known const int, it won't emit any diagnostics anyway. And if it did, we wouldn't notice because no call site passed something non-null. --- Full diff: https://github.com/llvm/llvm-project/pu

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

2025-09-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/159512 If it's truly a known const int, it won't emit any diagnostics anyway. And if it did, we wouldn't notice because no call site passed something non-null. >From a4225f17a52c50239cf6ca82214adf546325708d Mon Sep 1

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

2025-09-17 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast commented: There is a separate regression in this PR. Consider: ```cpp import <=>; ``` With this PR, we get: ``` $ clang++ importHeaderToken.cc -std=c++26 -fsyntax-only importHeaderToken.cc:1:1: error: the import directive is ill-formed, import keyword

[clang] [llvm] RISCV: the builtins support for MIPS RV64 P8700 execution control . (PR #159246)

2025-09-17 Thread via cfe-commits
https://github.com/ukalappa-mips updated https://github.com/llvm/llvm-project/pull/159246 >From 6e82f232ece789939c4886754345a9eb3469cac6 Mon Sep 17 00:00:00 2001 From: Umesh Kalappa Date: Wed, 17 Sep 2025 05:48:57 + Subject: [PATCH 1/3] RISCV: the builtins support for MIPS RV64 P8700 execut

[clang] [llvm] [mlir] [Flang][OpenMP] Enable no-loop kernels (PR #155818)

2025-09-17 Thread Michael Kruse via cfe-commits
@@ -2106,6 +2106,29 @@ Operation *TargetOp::getInnermostCapturedOmpOp() { }); } +/// Check if we can promote SPMD kernel to No-Loop kernel. +static bool canPromoteToNoLoop(Operation *capturedOp, TeamsOp teamsOp, + WsloopOp *wsLoopOp) { + //

[clang] [Clang][OpenMP] Handle check for pointer-based array sections (PR #157443)

2025-09-17 Thread Amit Tiwari via cfe-commits
amitamd7 wrote: Yes indeed the `if (!OASE)` check is `FALSE` only once (when it is an single dimension array-section expression) and we would ideally want to get the `ElementType` to be deduced in that traversal itself for `OASE` case. I checked few cases where it hits off CAT, VAT while the o

[clang] [analyzer] Show element count in ArrayBound underflow reports (PR #158639)

2025-09-17 Thread via cfe-commits
=?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: 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 cpp,c

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

2025-09-17 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-tools-extra] [clang-tidy] Enable `modernize-return-braced-init-list`'s tests in C++11 (PR #158196)

2025-09-17 Thread Baranov Victor via cfe-commits
vbvictor wrote: > There are checks that don't require any specific standard, there it would > make sense to keep whatever the default is. But this could also backfire for users that use "old" c++11. Imagine if the default standard is increased in `check_clang_tidy.py`, then the people who dev

[clang-tools-extra] [clang-tidy] Add check performance-lost-std-move (PR #139525)

2025-09-17 Thread via cfe-commits
@@ -0,0 +1,47 @@ +.. title:: clang-tidy - performance-lost-std-move + +performance-lost-std-move += + +Warns if copy constructor is used instead of ``std::move()`` and suggests a fix. +It honours cycles, lambdas, and unspecified call order in compound expr

[clang] [docs][OpenMP] Update the status of GROUPPRIVATE in flang (PR #157470)

2025-09-17 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/157470 >From 3696002c3ad21de3312dec9f0fe730010519ee9d Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Mon, 8 Sep 2025 09:17:33 -0500 Subject: [PATCH 1/2] [docs][OpenMP] Update the status of GROUPPRIVATE in fl

[clang] d8c2607 - [clang][Sema] Fix false positive -Wshadow with structured binding captures (#157667)

2025-09-17 Thread via cfe-commits
Author: Ivan Murashko Date: 2025-09-15T10:55:59+01:00 New Revision: d8c2607fb1f4094db18e7716764738f9bc8489df URL: https://github.com/llvm/llvm-project/commit/d8c2607fb1f4094db18e7716764738f9bc8489df DIFF: https://github.com/llvm/llvm-project/commit/d8c2607fb1f4094db18e7716764738f9bc8489df.diff

[clang-tools-extra] [clang-tidy] make `misc-const-correctness` work with `auto` variables and lambdas (PR #157319)

2025-09-17 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > I'm not so sure if we need to remove this option later given by default it > will be set to `true`. Keeping it available means it's possible to tweak it such that auto and non-auto variables are handled differently, but that's probably unwanted. We should make the API h

[clang] [Clang][Cygwin] Cygwin x86_64 should accept __stdcall (PR #158385)

2025-09-17 Thread Tomohiro Kashiwada via cfe-commits
https://github.com/kikairoya edited https://github.com/llvm/llvm-project/pull/158385 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [docs][OpenMP] Remove "unclaimed" from language-specific items (PR #157481)

2025-09-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Krzysztof Parzyszek (kparzysz) Changes Things like C23 or Fortran 2023 had "unclaimed" entries in the column for the language that they don't apply to. Leave these fields blank instead. --- Full diff: https://github.com/llvm/llvm-project/

[clang] [clang-format] Fix for BreakTemplateDeclarations and RequiresClausePosition (PR #159277)

2025-09-17 Thread NagaChaitanya Vellanki via cfe-commits
https://github.com/chaitanyav updated https://github.com/llvm/llvm-project/pull/159277 >From 548e5bdd46833857e9ace5b778e2e41ea329a0a2 Mon Sep 17 00:00:00 2001 From: NagaChaitanya Vellanki Date: Wed, 17 Sep 2025 00:04:24 -0700 Subject: [PATCH] [clang-format] Fix for BreakTemplateDeclarations and

[clang] [Sema] Fix missing warnings for unused args with invalid printf specs. (PR #158514)

2025-09-17 Thread via cfe-commits
https://github.com/Sirraide commented: Yeah, I agree that it doesn’t seem helpful to try and determine how many arguments we actually want if there’s a problem w/ the format string. https://github.com/llvm/llvm-project/pull/158514 ___ cfe-commits mail

[clang] [Clang] Fix an incorrect assertion in `Sema::CheckAddressOfOperand` (PR #159314)

2025-09-17 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/159314 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-09-17 Thread Wael Yehia via cfe-commits
https://github.com/w2yehia updated https://github.com/llvm/llvm-project/pull/153049 >From 81a9c979385b5d368fcdcf36332ad506d97e1365 Mon Sep 17 00:00:00 2001 From: Wael Yehia Date: Wed, 3 Sep 2025 19:22:15 + Subject: [PATCH 1/6] [IR] enable attaching metadata on ifuncs In PR #153049, we have

[clang] ac2b51e - [C++20] [Modules] Fix issues with non-exported in-class friend declarations

2025-09-17 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2025-09-18T13:44:21+08:00 New Revision: ac2b51e6ce157b430b3823ebc90def9f1d49d36e URL: https://github.com/llvm/llvm-project/commit/ac2b51e6ce157b430b3823ebc90def9f1d49d36e DIFF: https://github.com/llvm/llvm-project/commit/ac2b51e6ce157b430b3823ebc90def9f1d49d36e.diff LO

[clang] [llvm] [RISCV] Support for Zvabd fast-track proposal (PR #124239)

2025-09-17 Thread Craig Topper via cfe-commits
@@ -20594,6 +20645,8 @@ SDValue RISCVTargetLowering::PerformDAGCombine(SDNode *N, if (SDValue V = combineVqdotAccum(N, DAG, Subtarget)) return V; return combineToVWMACC(N, DAG, Subtarget); + case RISCVISD::VWADDU_VL: topperc wrote: ok https://

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add AVX512 VPTERNLOGD/VPTERNLOGQ intrinsics to be used in constexpr (PR #158703)

2025-09-17 Thread via cfe-commits
https://github.com/kimsh02 updated https://github.com/llvm/llvm-project/pull/158703 >From e49dc71e548a561db03368317373c6b3f23ec47e Mon Sep 17 00:00:00 2001 From: kimsh02 Date: Mon, 15 Sep 2025 10:58:34 -0700 Subject: [PATCH 1/7] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - a

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

2025-09-17 Thread Chuanqi Xu 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] 57e1846 - [HLSL] Rewrite semantics parsing (#152537)

2025-09-17 Thread via cfe-commits
Author: Nathan Gauër Date: 2025-09-09T13:31:26Z New Revision: 57e1846c96f0c858f687fe9c66f4e3793b52f497 URL: https://github.com/llvm/llvm-project/commit/57e1846c96f0c858f687fe9c66f4e3793b52f497 DIFF: https://github.com/llvm/llvm-project/commit/57e1846c96f0c858f687fe9c66f4e3793b52f497.diff LOG:

[clang] [analyzer] Revert #115918, so empty base class optimization works again (PR #157480)

2025-09-17 Thread Balazs Benics via cfe-commits
https://github.com/steakhal created https://github.com/llvm/llvm-project/pull/157480 Tldr; We can't unconditionally trivially copy empty classes because that would clobber the stored entries in the object that the optimized empty class overlaps with. This regression was introduced by #115918,

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

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

[clang-tools-extra] [clang-tidy] Rename 'cert-err58-cpp' to 'bugprone-throwing-static-initialization' (PR #158151)

2025-09-17 Thread via cfe-commits
https://github.com/EugeneZelenko approved this pull request. https://github.com/llvm/llvm-project/pull/158151 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream a batch of passing tests from CIR-Incubator (PR #157333)

2025-09-17 Thread Burhan Söğüt via cfe-commits
https://github.com/bursot updated https://github.com/llvm/llvm-project/pull/157333 From b51c2c06909a402632fe75709997716cea990fc0 Mon Sep 17 00:00:00 2001 From: Burhan Date: Sun, 7 Sep 2025 11:52:47 +0300 Subject: [PATCH 01/10] [CIR] Upstream a batch of passing tests from CIR-Incubator --- cl

[clang] [flang] [llvm] [polly] Import and Export `getXXXPluginInfo` from embedded plugin such as Polly (PR #156440)

2025-09-17 Thread Tomohiro Kashiwada via cfe-commits
https://github.com/kikairoya edited https://github.com/llvm/llvm-project/pull/156440 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ASTImporter] Fixed test 'ctu-import-type-decl-definition' and ASTImporter (PR #158016)

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

[clang] [CIR] Upstream a batch of passing tests from CIR-Incubator (PR #157333)

2025-09-17 Thread Amr Hesham via cfe-commits
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= , Burhan =?utf-8?b?U8O2xJ/DvHQ=?= , Burhan =?utf-8?b?U8O2xJ/DvHQ=?= , Burhan =?utf-8?b?U8O2xJ/DvHQ=?= , Burhan =?utf-8?b?U8O2xJ/DvHQ=?= , Burhan =?utf-8?b?U8O2xJ/DvHQ=?= , Burhan =?utf-8?b?U8O2xJ/DvHQ=?= , Burhan =?utf-8?b?U8O2xJ/DvHQ=?= , Burhan =?utf-8?b?U8O2xJ/DvH

[clang] [flang] [llvm] Introduce -fexperimental-loop-fuse to clang and flang (PR #142686)

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

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

2025-09-17 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] [C++20][Modules] Fix merging of anonymous members of class templates. (PR #155948)

2025-09-17 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. Now it looks much better. https://github.com/llvm/llvm-project/pull/155948 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 43ec53b - [clang][HeuristicResolver] Default argument heuristic for template template parameters (#156404)

2025-09-17 Thread via cfe-commits
Author: Nathan Ridge Date: 2025-09-17T20:51:52-04:00 New Revision: 43ec53b8493752669dc24a6e2b6c66c4449a9e76 URL: https://github.com/llvm/llvm-project/commit/43ec53b8493752669dc24a6e2b6c66c4449a9e76 DIFF: https://github.com/llvm/llvm-project/commit/43ec53b8493752669dc24a6e2b6c66c4449a9e76.diff

[clang] [llvm] [llvm][AsmPrinter] Add direct calls to callgraph section (PR #155706)

2025-09-17 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/155706 >From eb26a3bdf9bfba33531d9c48f6080946b148f03a Mon Sep 17 00:00:00 2001 From: prabhukr Date: Wed, 27 Aug 2025 22:11:28 + Subject: [PATCH 01/12] [llvm][AsmPrinter] Add direct calls to callgraph section Exte

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

2025-09-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Use proper doc comments here instead of regular comments. --- Full diff: https://github.com/llvm/llvm-project/pull/159504.diff 1 Files Affected: - (modified) clang/include/clang/AST/Expr.h (+4-4) ``

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

2025-09-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/159504 Use proper doc comments here instead of regular comments. >From 0d1679e0857cd4f1da08878a1407c12cf74fcce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 18 Sep 2025 06:57:51 +0200 Subje

[clang] [clang][analyzer] Load config through the proper VFS (PR #159164)

2025-09-17 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. https://github.com/llvm/llvm-project/pull/159164 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Make lambda in non-dependent context generate same analysis-based warnings as function[ template] (PR #159364)

2025-09-17 Thread Younan Zhang via cfe-commits
@@ -1972,6 +1972,10 @@ ExprResult Sema::ActOnLambdaExpr(SourceLocation StartLoc, Stmt *Body) { if (LSI.CallOperator->hasAttr()) SYCL().CheckSYCLEntryPointFunctionDecl(LSI.CallOperator); + // TODO: Find out if passing LSI.CallOperator->getDescribedFunctionTemplate() +

[clang] [llvm] [RISCV] Support for Zvabd fast-track proposal (PR #124239)

2025-09-17 Thread Pengcheng Wang via cfe-commits
@@ -20594,6 +20645,8 @@ SDValue RISCVTargetLowering::PerformDAGCombine(SDNode *N, if (SDValue V = combineVqdotAccum(N, DAG, Subtarget)) return V; return combineToVWMACC(N, DAG, Subtarget); + case RISCVISD::VWADDU_VL: wangpc-pp wrote: I don't kn

[clang] [clang][Sema] Fix false positive -Wshadow with structured binding captures (PR #157667)

2025-09-17 Thread Ivan Murashko via cfe-commits
https://github.com/ivanmurashko edited https://github.com/llvm/llvm-project/pull/157667 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Cygwin] Cygwin x86_64 should accept __stdcall (PR #158385)

2025-09-17 Thread via cfe-commits
@@ -983,6 +983,7 @@ class LLVM_LIBRARY_VISIBILITY CygwinX86_64TargetInfo : public X86_64TargetInfo { : X86_64TargetInfo(Triple, Opts) { this->WCharType = TargetInfo::UnsignedShort; this->WIntType = TargetInfo::UnsignedInt; +this->UseMicrosoftManglingForC = tr

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

2025-09-17 Thread Benjamin Maxwell via cfe-commits
@@ -3976,6 +3976,9 @@ def warn_sme_streaming_pass_return_vl_to_non_streaming : Warning< "%select{returning|passing}0 a VL-dependent argument %select{from|to}0 a function with a different" " streaming-mode is undefined behaviour when the streaming and non-streaming vector

[clang] [llvm] RISCV: the builtins support for MIPS RV64 P8700 execution control . (PR #159246)

2025-09-17 Thread via cfe-commits
@@ -0,0 +1,27 @@ +//==- BuiltinsRISCVXMIPS.td - RISC-V MIPS Builtin database*- C++ -*-==// +// +// 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: Ap

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

2025-09-17 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/159404 >From dbabd925f7cd1a1c1bb32ebcc72a4353ffc8c07b Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Wed, 17 Sep 2025 22:41:47 +0530 Subject: [PATCH] Fix: out-of-process tests only on unix --- clang/unittests/Interp

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add AVX512 VPTERNLOGD/VPTERNLOGQ intrinsics to be used in constexpr (PR #158703)

2025-09-17 Thread Timm Baeder via cfe-commits
@@ -2903,6 +2903,55 @@ static bool interp__builtin_elementwise_triop( return true; } +static bool interp__builtin_pternlog(InterpState &S, CodePtr OpPC, + const CallExpr *Call, bool MaskZ) { + assert(Call->getNumArgs() == 5); + + const V

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

2025-09-17 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 approved this pull request. Hey @OCHyams Thanks for the review. Yes we don't expect this to work on Windows ! https://github.com/llvm/llvm-project/pull/159404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:

[clang] [llvm] RISCV: the builtins support for MIPS RV64 P8700 execution control . (PR #159246)

2025-09-17 Thread via cfe-commits
https://github.com/ukalappa-mips updated https://github.com/llvm/llvm-project/pull/159246 >From 6e82f232ece789939c4886754345a9eb3469cac6 Mon Sep 17 00:00:00 2001 From: Umesh Kalappa Date: Wed, 17 Sep 2025 05:48:57 + Subject: [PATCH 1/3] RISCV: the builtins support for MIPS RV64 P8700 execut

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

2025-09-17 Thread Craig Topper via cfe-commits
https://github.com/topperc updated https://github.com/llvm/llvm-project/pull/159465 >From 5450ee627726fe89312a9223ea27ff5251c86caf Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 17 Sep 2025 15:01:47 -0700 Subject: [PATCH 1/2] [RISCV] Add MVendorID, MArchID, and MImpID for sifive-p550.

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

2025-09-17 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast commented: Another case (maybe a separate regression)? ``` typedef int import; extern import and x; ``` With the patch: ``` $ clang++ importAltToken.cc -std=c++26 -fsyntax-only importAltToken.cc:3:1: error: expected unqualified-id 3 | import and x;

[clang] [llvm] RISCV: the builtins support for MIPS RV64 P8700 execution control . (PR #159246)

2025-09-17 Thread via cfe-commits
@@ -0,0 +1,20 @@ +//===- IntrinsicsRISCVXMIPS.td - Defines MIPS intrinsics ---*- tablegen -*-===// ukalappa-mips wrote: Thank you @topperc for the suggestions. https://github.com/llvm/llvm-project/pull/159246 ___

[clang] [llvm] RISCV: the builtins support for MIPS RV64 P8700 execution control . (PR #159246)

2025-09-17 Thread via cfe-commits
@@ -0,0 +1,35 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --tool /home/ukalappa/llvm/github/build/bin/llc --version 6 +; RUN: llc -mtriple=riscv64 -mcpu=mips-p8700 -O3 -verify-machineinstrs < %s \ +; RUN: | FileCheck -check-prefi

[clang] [Clang][Sema] Make lambda in non-dependent context generate same analysis-based warnings as function[ template] (PR #159364)

2025-09-17 Thread Younan Zhang via cfe-commits
@@ -178,3 +178,41 @@ auto b() { } } // namespace test6 #endif + +#if __cplusplus >= 201402L +// ensure lambda in non-dependent context generate same diagnostics as function[ template] +namespace lambda_in_non_dependent_context { +void f1() { + 0, 0; // expected-warning {{left

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

2025-09-17 Thread via cfe-commits
yronglin wrote: > I have doubts that this implements the wording of the papers. > > Consider: > > ```c++ > typedef int import; > #define EMP > EMP import m; > ``` > > There is no introduction of an _import-keyword_ in the above. The utterance > of `import` remains an identifier after phase 4.

[clang] [Headers][X86] VectorExprEvaluator::VisitCallExpr - allow SSE/AVX2/AVX512 pack intrinsics to be used in constexpr (PR #156003)

2025-09-17 Thread via cfe-commits
https://github.com/woruyu updated https://github.com/llvm/llvm-project/pull/156003 >From 61f8bfd509889a0154b838ad357adb2563b620ea Mon Sep 17 00:00:00 2001 From: woruyu <1214539...@qq.com> Date: Tue, 16 Sep 2025 23:30:47 -0900 Subject: [PATCH 1/2] [Headers][X86] VectorExprEvaluator::VisitCallExpr

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

2025-09-17 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast edited https://github.com/llvm/llvm-project/pull/107168 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] VectorExprEvaluator::VisitCallExpr - allow SSE/AVX2/AVX512 pack intrinsics to be used in constexpr (PR #156003)

2025-09-17 Thread via cfe-commits
@@ -1305,11 +1306,14 @@ let Features = "avx512f", Attributes = [NoThrow, Const, RequiredVectorWidth<512> let Features = "avx512bw", Attributes = [NoThrow, Const, RequiredVectorWidth<512>] in { def ucmpw512_mask : X86Builtin<"unsigned int(_Vector<32, short>, _Vector<32, sh

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

2025-09-17 Thread Wael Yehia via cfe-commits
https://github.com/w2yehia updated https://github.com/llvm/llvm-project/pull/153049 >From 81a9c979385b5d368fcdcf36332ad506d97e1365 Mon Sep 17 00:00:00 2001 From: Wael Yehia Date: Wed, 3 Sep 2025 19:22:15 + Subject: [PATCH 1/8] [IR] enable attaching metadata on ifuncs In PR #153049, we have

[clang] [clang][bytecode] Improve error detection in BitCastPrim op (PR #158575)

2025-09-17 Thread Timm Baeder via cfe-commits
@@ -572,3 +571,19 @@ namespace VectorCast { #endif } #endif + +namespace ToPrimPtrs { + struct S { int foo () { return 0; } }; + auto ptr = __builtin_bit_cast(int *, ((__INTPTR_TYPE__) 0)); + auto nptr = __builtin_bit_cast(nullptr_t, ((__INTPTR_TYPE__)0)); + + constexpr au

[clang] [Headers][X86] VectorExprEvaluator::VisitCallExpr - allow SSE/AVX2/AVX512 pack intrinsics to be used in constexpr (PR #156003)

2025-09-17 Thread via cfe-commits
@@ -2604,6 +2604,68 @@ static bool interp__builtin_elementwise_int_binop( return true; } +static bool interp__builtin_x86_pack( +InterpState &S, CodePtr, const CallExpr *E, unsigned SrcBits, bool IsUnsat, +llvm::function_ref +narrowElement) {

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

2025-09-17 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast commented: I am skeptical that this implements the wording of the papers. Consider: ```cpp typedef int import; #define EMP EMP import m; ``` There is no introduction of an _import-keyword_ in the above. The utterance of `import` remains an identifier i

[clang] [Headers][X86] VectorExprEvaluator::VisitCallExpr - allow SSE/AVX2/AVX512 pack intrinsics to be used in constexpr (PR #156003)

2025-09-17 Thread via cfe-commits
@@ -2604,6 +2604,68 @@ static bool interp__builtin_elementwise_int_binop( return true; } +static bool interp__builtin_x86_pack( +InterpState &S, CodePtr, const CallExpr *E, unsigned SrcBits, bool IsUnsat, +llvm::function_ref +narrowElement) {

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

2025-09-17 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast edited https://github.com/llvm/llvm-project/pull/107168 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] VectorExprEvaluator::VisitCallExpr - allow SSE/AVX2/AVX512 pack intrinsics to be used in constexpr (PR #156003)

2025-09-17 Thread via cfe-commits
@@ -2604,6 +2604,68 @@ static bool interp__builtin_elementwise_int_binop( return true; } +static bool interp__builtin_x86_pack( +InterpState &S, CodePtr, const CallExpr *E, unsigned SrcBits, bool IsUnsat, +llvm::function_ref +narrowElement) { + const auto *V

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

2025-09-17 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast edited https://github.com/llvm/llvm-project/pull/107168 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Implement MC support for Zvfofp8min extension (PR #157014)

2025-09-17 Thread Craig Topper via cfe-commits
https://github.com/topperc approved this pull request. LGTM with the version number issue fixed. https://github.com/llvm/llvm-project/pull/157014 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[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-17 Thread Shunsuke Watanabe via cfe-commits
https://github.com/s-watanabe314 approved this pull request. Looks good to me. However, `llvm_unreachable` seems to have already been merged in #159330. Removing the `break` is fine. https://github.com/llvm/llvm-project/pull/159408 ___ cfe-commits mai

[clang] [Headers][X86] Allow SSE2/AVX2/AVX512F/AVX512BW/AVX512DQ integer arithmetic intrinsics to be used in constexpr (PR #157582)

2025-09-17 Thread via cfe-commits
https://github.com/donneypr updated https://github.com/llvm/llvm-project/pull/157582 >From f0f99274e8b5d48ac12fafbc70b99cbf3b4fdf99 Mon Sep 17 00:00:00 2001 From: donneypr Date: Mon, 8 Sep 2025 19:54:43 -0400 Subject: [PATCH 1/8] [clang][x86][headers] Make SSE2 add/sub intrinsics constexpr --

[clang] [HLSL] Add static methods for resource initialization (PR #155866)

2025-09-17 Thread Justin Bogner via cfe-commits
@@ -512,6 +536,55 @@ BuiltinTypeMethodBuilder &BuiltinTypeMethodBuilder::dereference(T Ptr) { return *this; } +template +BuiltinTypeMethodBuilder & +BuiltinTypeMethodBuilder::accessHandleFieldOnResource(T ResourceRecord) { + ensureCompleteDecl(); + + Expr *ResourceExpr =

[clang] [NFC][clang] replace a C-array with std::array (PR #158047)

2025-09-17 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts updated https://github.com/llvm/llvm-project/pull/158047 From e42d05ca3c20817d9869f3e4cc3b98087b285175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathan=20Gau=C3=ABr?= Date: Thu, 11 Sep 2025 13:46:04 +0200 Subject: [PATCH 1/2] [NFC][clang] replace a C-array with std::ar

[clang] [Headers][X86] Allow SSE2/AVX2/AVX512F/AVX512BW/AVX512DQ integer arithmetic intrinsics to be used in constexpr (PR #157582)

2025-09-17 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 h -- clang/lib/Headers/avx2intrin.h clang/lib/Headers/a

[clang] [Clang] Permit implicit conversion from integral to boolean vectors (PR #158369)

2025-09-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Joseph Huber (jhuber6) Changes Summary: Clang supports boolean vectors as an extension to the vector model. These are commonly used to represent mask vectors in many vector ISAs. Currently, using these is quite difficult because all of the

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

2025-09-17 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,79 @@ +// RUN: %check_clang_tidy -std=c++17-or-later %s bugprone-loop-variable-copied-then-modified %t + +template +struct Iterator { + void operator++() {} + const T& operator*() { +static T* TT = new T(); +return *TT; + } + bool operator!=(const Iterator

[clang] [CIR] Upstream a batch of passing tests from CIR-Incubator (PR #157333)

2025-09-17 Thread Burhan Söğüt via cfe-commits
https://github.com/bursot updated https://github.com/llvm/llvm-project/pull/157333 From f23886d3c3d791a2378fd7eb303d97b8b3f571ba Mon Sep 17 00:00:00 2001 From: Burhan Date: Sun, 7 Sep 2025 11:52:47 +0300 Subject: [PATCH] [CIR] Upstream a batch of passing tests from CIR-Incubator --- clang/tes

[clang] [Clang][Sema] Make lambda in non-dependent context generate same analysis-based warnings as function[ template] (PR #159364)

2025-09-17 Thread Yanzuo Liu via cfe-commits
@@ -178,3 +178,41 @@ auto b() { } } // namespace test6 #endif + +#if __cplusplus >= 201402L +// ensure lambda in non-dependent context generate same diagnostics as function[ template] +namespace lambda_in_non_dependent_context { +void f1() { + 0, 0; // expected-warning {{left

[clang] [LifetimeSafety] Add support for GSL Pointer types (PR #154009)

2025-09-17 Thread Utkarsh Saxena via cfe-commits
usx95 wrote: I think we have a very different model of understanding when a loan is created so it is hard to match these. Is there any piece specifically you have in mind. I could imagine lot of implicit annotation and annotation presence check can be shared (`shouldTrackImplicitObjectArg`, `

  1   2   3   4   5   6   7   >