[clang-tools-extra] Add --project-root to clangd (PR #155905)

2025-11-28 Thread Mythreya Kuricheti via cfe-commits
MythreyaK wrote: That sounds reasonable, thank you! Two more questions, > If you don't have a compile_commands.json file in your workspace's root > directory For the example I was suggesting, only the subprojects have the compilation database, but `--project-root` would point to the parent

[clang-tools-extra] Add --project-root to clangd (PR #155905)

2025-11-28 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: > For multi-workspace (not vscode workspace) projects, say a monorepo where > each subproject is built individually (and therefore separate build dirs and > compile_commands.json), is the idea that each subproject will (should?) now > have its own clangd instance running?

[clang-tools-extra] Reapply "[clangd] Make lit tests work with the internal shell" (PR #169972)

2025-11-28 Thread Aiden Grossman via cfe-commits
boomanaiden154 wrote: The fixes specific to the reapply are in afc14ca0d90e5cea43377954ee5b67e6a5fbeda7. https://github.com/llvm/llvm-project/pull/169972 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/li

[clang-tools-extra] Reapply "[clangd] Make lit tests work with the internal shell" (PR #169972)

2025-11-28 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/169972 This reverts commit bd04ef6df50e8e6e5212762fc798ea9fbdcfc897. This reapply fixes the broken case where we would fail at CMake configuration time if LLVM_INCLUDE_BENCHMARKS was explicitly turned off.

[clang-tools-extra] Reapply "[clangd] Make lit tests work with the internal shell" (PR #169972)

2025-11-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Aiden Grossman (boomanaiden154) Changes This reverts commit bd04ef6df50e8e6e5212762fc798ea9fbdcfc897. This reapply fixes the broken case where we would fail at CMake configuration time if LLVM_INCLUDE_BENCHMARKS was explicitly turned

[clang-tools-extra] [clang-tidy] Fix OOB access in `FormatStringConverter` with signed chars (PR #169215)

2025-11-28 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Seeing link errors from `CustomModuleAnchorSource` https://github.com/llvm/llvm-project/pull/169215 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CUDA] Add device-side kernel launch support (PR #165519)

2025-11-28 Thread via cfe-commits
darkbuck wrote: > Any chances of testing something like this at runtime? I know we have the > external test suite but I don't know how easily we could add a trivial test > for this stuff The codegen test is added in this change. For the real test running GPU, I ported dynamic mandelbrot here

[clang] [CIR][X86] Implement lowering for sqrt builtins (PR #169310)

2025-11-28 Thread Priyanshu Kumar via cfe-commits
https://github.com/Priyanshu3820 updated https://github.com/llvm/llvm-project/pull/169310 >From 627bcb3bde64a780ed2b99267d97c9679f9c Mon Sep 17 00:00:00 2001 From: Priyanshu3820 <[email protected]> Date: Wed, 26 Nov 2025 17:45:00 +0530 Subject: [PATCH 1/2] Add CIR sqrt builtin support

[clang] [Serialization] Fix lazy template loading (PR #133057)

2025-11-28 Thread Alexander Kornienko via cfe-commits
alexfh wrote: After manually cleaning up the ~10KB that CVise could squeeze out of the initial 400+MB, I got this: ``` //--- a.cppmap module "a" { header "a.h" } //--- b.cppmap module "b" { header "b.h" } //--- d.cppmap module "d" { header "d.h" } //--- stl.cppmap module "stl" { header "stl.h" }

[clang-tools-extra] [clangd] Add option to fuzzy-match macros in code-complete (PR #169880)

2025-11-28 Thread Mythreya Kuricheti via cfe-commits
MythreyaK wrote: > > Fix for [clangd/clangd#1480](https://github.com/clangd/clangd/issues/1480) > > You can use [this > syntax](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue). Thanks, I keep forgetting it :sweat_smile: Updated the release

[clang] [llvm] [clang] Add hasAdjSubstatements matcher (PR #169965)

2025-11-28 Thread Yanzuo Liu via cfe-commits
zwuis wrote: Please add tests to "llvm/unittests/ADT/STLExtrasTest.cpp". It seems that we should add this function in a separate PR. https://github.com/llvm/llvm-project/pull/169965 ___ cfe-commits mailing list cfe-c

[clang] [clang][clang-scan-deps] Add LangOptions::AllowLiteralDigitSeparator to fix (#88896) (PR #158420)

2025-11-28 Thread Yifan Fang via cfe-commits
https://github.com/tsfn closed https://github.com/llvm/llvm-project/pull/158420 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Fix lazy template loading (PR #133057)

2025-11-28 Thread Alexander Kornienko via cfe-commits
alexfh wrote: > There's also a number of compilations that became significantly slower (or > hit an infinite loop in Clang). I will try to find time to get to this part too. https://github.com/llvm/llvm-project/pull/133057 ___ cfe-commits mailing li

[clang] [llvm] [clang] Add hasAdjSubstatements matcher (PR #169965)

2025-11-28 Thread Yanzuo Liu via cfe-commits
@@ -31,6 +31,7 @@ #include "llvm/Support/Regex.h" #include "llvm/Support/WithColor.h" #include "llvm/Support/raw_ostream.h" +#include zwuis wrote: Should be `llvm/ADT/STLExtras.h`? https://github.com/llvm/llvm-project/pull/169965

[clang] [llvm] [clang] Add hasAdjSubstatements matcher (PR #169965)

2025-11-28 Thread Yanzuo Liu via cfe-commits
@@ -95,6 +95,7 @@ #include #include #include +#include zwuis wrote: Unrelated changes? https://github.com/llvm/llvm-project/pull/169965 ___ cfe-commits mailing list [email protected] https://lists.llvm.

[clang-tools-extra] [clangd] Add option to fuzzy-match macros in code-complete (PR #169880)

2025-11-28 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK updated https://github.com/llvm/llvm-project/pull/169880 >From ddcdd9328804c49cda512611f2dc14c4f59e0d9b Mon Sep 17 00:00:00 2001 From: Mythreya Date: Thu, 27 Nov 2025 21:47:01 -0800 Subject: [PATCH 1/4] [clangd] Fuzzy-match some macros Allow results from macros tha

[clang] [llvm] [InstCombine] Try to infer type for `load`/`store` when replacing `memcpy` (PR #169966)

2025-11-28 Thread Finn Plummer via cfe-commits
https://github.com/inbelic created https://github.com/llvm/llvm-project/pull/169966 This pr implements an initial simple type inference used to improve the types of a `load`/`store` replacing a `memcpy` when the `%dest` and/or `%src` are an `alloca` instruction. As noted within `SimplifyAnyM

[clang-tools-extra] 5dd2b06 - [clang-tidy] Fix OOB access in `FormatStringConverter` with signed chars (#169215)

2025-11-28 Thread via cfe-commits
Author: mitchell Date: 2025-11-29T10:36:01+08:00 New Revision: 5dd2b06d60d3eb9b07c7513358ad8b04386f79bc URL: https://github.com/llvm/llvm-project/commit/5dd2b06d60d3eb9b07c7513358ad8b04386f79bc DIFF: https://github.com/llvm/llvm-project/commit/5dd2b06d60d3eb9b07c7513358ad8b04386f79bc.diff LOG:

[clang] [llvm] [clang] Add hasAdjSubstatements matcher (PR #169965)

2025-11-28 Thread Denis Mikhailov via cfe-commits
https://github.com/denzor200 created https://github.com/llvm/llvm-project/pull/169965 I need this mather at least to implement https://github.com/llvm/llvm-project/issues/133110 and https://github.com/llvm/llvm-project/issues/38471 Also maybe we will use it in https://github.com/llvm/llvm-proj

[clang] [llvm] [clang] Add hasAdjSubstatements matcher (PR #169965)

2025-11-28 Thread Denis Mikhailov via cfe-commits
https://github.com/denzor200 updated https://github.com/llvm/llvm-project/pull/169965 >From 0476cfd46a63af25a7f12e7ece5882246208ced9 Mon Sep 17 00:00:00 2001 From: denzor200 Date: Fri, 28 Nov 2025 23:51:14 +0300 Subject: [PATCH 1/6] Implement simple matcher --- clang/include/clang/ASTMatchers

[clang] [llvm] [InstCombine] Try to infer type for `load`/`store` when replacing `memcpy` (PR #169966)

2025-11-28 Thread Finn Plummer via cfe-commits
https://github.com/inbelic ready_for_review https://github.com/llvm/llvm-project/pull/169966 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang] Add hasAdjSubstatements matcher (PR #169965)

2025-11-28 Thread Yanzuo Liu via cfe-commits
zwuis wrote: It seems that this is a narrowing matcher, not traversal matcher. https://github.com/llvm/llvm-project/pull/169965 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/ma

[clang] [llvm] [InstCombine] Try to infer type for `load`/`store` when replacing `memcpy` (PR #169966)

2025-11-28 Thread Finn Plummer via cfe-commits
https://github.com/inbelic edited https://github.com/llvm/llvm-project/pull/169966 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang] Add hasAdjSubstatements matcher (PR #169965)

2025-11-28 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,cpp -- clang/include/clang/ASTMatchers/ASTMatchers.h

[clang] [clang-tools-extra] [clang][DependencyScanning] Remove dependency on clangDriver from clangDependencyScanning (PR #169964)

2025-11-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Naveen Seth Hanig (naveen-seth) Changes This follows PR #169962 and removes the dependency on `clangDriver` from `clangDependencyScanning`. `DependencyScanningWorker` now supports only `-cc1` command line inputs and all funct

[clang] [Clang] Apply exclude_from_explicit_instantiation to dllimport/dllexport (PR #168171)

2025-11-28 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: Thanks! If I remember correctly, there are a number of preexisting references to the problem that `exclude_from_explicit_instantiation` doesn't do what it would need to do on Windows; I think such references may exist in libcxx and/or as other issues here on github. It would b

[clang] [CIR][X86] Implement lowering for sqrt builtins (PR #169310)

2025-11-28 Thread Priyanshu Kumar via cfe-commits
https://github.com/Priyanshu3820 edited https://github.com/llvm/llvm-project/pull/169310 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-11-28 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper commented: nit https://github.com/llvm/llvm-project/pull/169566 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][X86] Implement lowering for sqrt builtins (PR #169310)

2025-11-28 Thread Priyanshu Kumar via cfe-commits
https://github.com/Priyanshu3820 edited https://github.com/llvm/llvm-project/pull/169310 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Make __builtin_assume_dereferenceable constexpr (PR #169869)

2025-11-28 Thread NagaChaitanya Vellanki via cfe-commits
@@ -19690,6 +19690,35 @@ class VoidExprEvaluator // The argument is not evaluated! return true; +case Builtin::BI__builtin_assume_dereferenceable: { + assert(E->getType()->isVoidType()); + assert(E->getNumArgs() == 2); + + APSInt ReqSizeVal; +

[clang] [clang-tools-extra] [clang][DependencyScanning] Separate clangDependencyScanning and DependencyScanningTool (NFC) (PR #169962)

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

[clang] [CIR][X86] Implement lowering for sqrt builtins (PR #169310)

2025-11-28 Thread Priyanshu Kumar via cfe-commits
https://github.com/Priyanshu3820 edited https://github.com/llvm/llvm-project/pull/169310 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] libunwind: Remove OS requirements from tests to make them run on more OSes (PR #167642)

2025-11-28 Thread Gleb Popov via cfe-commits
arrowd wrote: Yes please, I don't have rights on this repo. https://github.com/llvm/llvm-project/pull/167642 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Make __builtin_assume_dereferenceable constexpr (PR #169869)

2025-11-28 Thread NagaChaitanya Vellanki via cfe-commits
@@ -0,0 +1,64 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 -triple x86_64-unknown-unknown %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 -triple x86_64-unknown-unknown %s -fexperimental-new-constant-interpreter + +constexpr int arr[10] = {}; + +constexpr bool

[clang] [Clang] Make __builtin_assume_dereferenceable constexpr (PR #169869)

2025-11-28 Thread NagaChaitanya Vellanki via cfe-commits
@@ -0,0 +1,64 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 -triple x86_64-unknown-unknown %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 -triple x86_64-unknown-unknown %s -fexperimental-new-constant-interpreter + +constexpr int arr[10] = {}; + +constexpr bool

[clang-tools-extra] [clang-tidy] Fix OOB access in `FormatStringConverter` with signed chars (PR #169215)

2025-11-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang-tools-extra` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/28162 Here i

[clang] [llvm] [InstCombine] Try to infer type for `load`/`store` when replacing `memcpy` (PR #169966)

2025-11-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: Finn Plummer (inbelic) Changes This pr implements an initial simple type inference used to improve the types of a `load`/`store` replacing a `memcpy` when the `%dest` and/or `%src` are an `alloca` instruction. As noted within

[clang] [Clang] Export inline move constructors in dllexport-ed template instantiations on non-MSVC targets (PR #168170)

2025-11-28 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: > Thanks, LGTM. Maybe wait until Friday to merge this to give a bit more time > for @mstorsjo to comment. No objection from me to this; I can't say I can confidently review this as such, but it sounds reasonable. https://github.com/llvm/llvm-project/pull/168170 ___

[clang-tools-extra] Add --project-root to clangd (PR #155905)

2025-11-28 Thread Mythreya Kuricheti via cfe-commits
MythreyaK wrote: For multi-workspace (not vscode workspace) projects, say a monorepo where each subproject is built individually (and therefore separate build dirs and compile_commands.json), is the idea that each subproject will (should?) now have its own clangd instance running? It mostly

[clang] [clang-tools-extra] [clang][deps] Separate clangDependencyScanning and DependencyScanningTool (NFC) (PR #169962)

2025-11-28 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth created https://github.com/llvm/llvm-project/pull/169962 This patch is the first of two in refactoring Clang's dependency scanning tooling to remove its dependency on `clangDriver`. It separates `Tooling/DependencyScanningTool.cpp` from the rest of `clangDepende

[clang-tools-extra] [clang-doc] Do not serialize empty text comments (PR #169087)

2025-11-28 Thread Erick Velez via cfe-commits
@@ -98,10 +114,29 @@ static void insertComment(Object &Description, json::Value &Comment, } } +/// Takes the nested "Children" array from a comment Object. +/// +/// \return a json::Array of comments, possible json::Value::Kind::Null static json::Value extractTextComments(

[clang] [clang][docs] Add link to C++ modules Wikipedia page to docs (PR #169200)

2025-11-28 Thread via cfe-commits
https://github.com/mikomikotaishi updated https://github.com/llvm/llvm-project/pull/169200 >From 35e95966015d35af747c1a90be64e29dd83c8c51 Mon Sep 17 00:00:00 2001 From: Miko <[email protected]> Date: Sun, 23 Nov 2025 06:53:47 + Subject: [PATCH] Add link to C++

[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-11-28 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper edited https://github.com/llvm/llvm-project/pull/169566 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang] Add hasAdjSubstatements matcher (PR #169965)

2025-11-28 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis commented: Please run "clang/docs/tools/dump_ast_matchers.py" to update documentation. Please add a release note entry to "clang/docs/ReleaseNotes.rst". https://github.com/llvm/llvm-project/pull/169965 ___ cfe-commits mailing

[clang-tools-extra] [clang-tidy] Fix OOB access in `FormatStringConverter` with signed chars (PR #169215)

2025-11-28 Thread via cfe-commits
https://github.com/zeyi2 closed https://github.com/llvm/llvm-project/pull/169215 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Do not serialize empty text comments (PR #169087)

2025-11-28 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/169087 >From 58a8e1e0ea45711e3e326a306e5065090eda6bb1 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 19 Nov 2025 22:01:13 -0800 Subject: [PATCH] Address review feedback, handle extraction better --- clang-tool

[clang] [CIR] Upstream three way compare op (PR #169963)

2025-11-28 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 85541 tests passed * 743 tests skipped * 2 tests failed ## Failed Tests (click on a test name to see its output) ### Clang Clang.CIR/CodeGen/three-way-cmp.cpp ``` Exit Code: 1 Command Output (stdout): -- # RUN: at line 1 /home

[clang] [llvm] [clang] Add hasAdjSubstatements matcher (PR #169965)

2025-11-28 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/169965 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream Builtin FloorOp (PR #169954)

2025-11-28 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/169954 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-11-28 Thread Amr Hesham via cfe-commits
@@ -85,6 +88,41 @@ static mlir::Value getMaskVecValue(CIRGenBuilderTy &builder, mlir::Location loc, return maskVec; } +static mlir::Value emitX86FunnelShift(CIRGenFunction &cgf, + mlir::Location location, mlir::Value &op0, +

[clang-tools-extra] clangd: Extend index references with constructor calls through forwarding (PR #169742)

2025-11-28 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 3053 tests passed * 7 tests skipped * 1 test failed ## Failed Tests (click on a test name to see its output) ### Clangd Unit Tests Clangd Unit Tests._/ClangdTests/FindReferences/ForwardingInIndex ``` Script: -- /home/gha/actio

[clang] [clang][DebugInfo] Add call site debug info flag (PR #169942)

2025-11-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: J. Ryan Stinnett (jryans) Changes This moves a few existing debug info flags that were floating in the general pool of unorganised flags over to the existing groups for debug info flags (so that they are presented together in documentatio

[clang-tools-extra] [clangd] Add option to fuzzy-match macros in code-complete (PR #169880)

2025-11-28 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK edited https://github.com/llvm/llvm-project/pull/169880 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang][DependencyScanning] Separate clangDependencyScanning and DependencyScanningTool (NFC) (PR #169962)

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

[clang] [llvm] [clang] Add hasAdjSubstatements matcher (PR #169965)

2025-11-28 Thread Yanzuo Liu via cfe-commits
@@ -2283,6 +2283,37 @@ using HasOpNameMatcher = HasOpNameMatcher hasAnyOperatorNameFunc(ArrayRef NameRefs); +/// Matches nodes of type T (CompoundStmt or StmtExpr) that contain a sequence +/// of consecutive substatements matching the provided matchers in order. +/// +/// See

[clang] [clang][bytecode] Unify elementwise integer builtins using callback pattern (PR #169957)

2025-11-28 Thread Islam Imad via cfe-commits
https://github.com/Islam-Imad created https://github.com/llvm/llvm-project/pull/169957 This patch refactors the handling of elementwise integer unary operations to use a unified callback-based approach, eliminating code duplication. Changes: - Extended interp__builtin_elementwise_int_unaryop t

[clang] [clang][bytecode] Unify elementwise integer builtins using callback pattern (PR #169957)

2025-11-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Islam Imad (Islam-Imad) Changes This patch refactors the handling of elementwise integer unary operations to use a unified callback-based approach, eliminating code duplication. Changes: - Extended interp__builtin_elementwise_int_unaryop

[clang] [LifetimeSafety] Add missing origins stats for lifetime analysis (PR #166568)

2025-11-28 Thread via cfe-commits
https://github.com/DEBADRIBASAK updated https://github.com/llvm/llvm-project/pull/166568 >From fd8693c51af7d9f91be0926f4150e77c39e2dba4 Mon Sep 17 00:00:00 2001 From: Debadri Basak Date: Wed, 5 Nov 2025 14:07:42 + Subject: [PATCH 1/8] Adding the lifetime stats collection logic to AnalysisB

[clang] [openmp] Build and ship OpenMP with LLVM releases (PR #160581)

2025-11-28 Thread Leandro Lupori via cfe-commits
luporl wrote: About the test failures: - Flang :: Lower/location.f90 - was already failing in release builds (#164667) - LLVM :: Object/ar-create.test - LLVM :: Object/archive-extract-dir.test - LLVM :: tools/llvm-ar/mri-addlib.test - LLVM :: tools/llvm-ar/mri-errors.test - LLVM :: tools/llvm-

[clang] [clang][DebugInfo] Add call site debug info flag (PR #169942)

2025-11-28 Thread J. Ryan Stinnett via cfe-commits
https://github.com/jryans created https://github.com/llvm/llvm-project/pull/169942 This moves a few existing debug info flags that were floating in the general pool of unorganised flags over to the existing groups for debug info flags (so that they are presented together in documentation). As

[clang] [clang-tools-extra] [clang][deps] Separate clangDependencyScanning and DependencyScanningTool (NFC) (PR #169962)

2025-11-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Naveen Seth Hanig (naveen-seth) Changes This patch is the first of two in refactoring Clang's dependency scanning tooling to remove its dependency on `clangDriver`. It separates `Tooling/DependencyScanningTool.cpp` from the re

[clang] [CIR] Upstream support for cir.indirectBr (PR #169967)

2025-11-28 Thread via cfe-commits
https://github.com/Andres-Salamanca created https://github.com/llvm/llvm-project/pull/169967 This PR upstreams support for the `cir.indirectBr` operation, which is used to implement GCC’s labels-as-values `indirect goto`. To ensure correct lowering, we introduce precise bookkeeping to associate

[clang] [CIR] Upstream support for cir.indirectBr (PR #169967)

2025-11-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir @llvm/pr-subscribers-clang Author: None (Andres-Salamanca) Changes This PR upstreams support for the `cir.indirectBr` operation, which is used to implement GCC’s labels-as-values `indirect goto`. To ensure correct lowering, we introduce precise

[libunwind] libunwind: Remove OS requirements from tests to make them run on more OSes (PR #167642)

2025-11-28 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo approved this pull request. LGTM too https://github.com/llvm/llvm-project/pull/167642 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang] Add hasAdjSubstatements matcher (PR #169965)

2025-11-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-adt Author: Denis Mikhailov (denzor200) Changes I need this mather at least to implement https://github.com/llvm/llvm-project/issues/133110 and https://github.com/llvm/llvm-project/issues/38471 Also maybe we will use it in https://github.com/llvm/

[clang] [clang][NFC] Declare `CXXBasePaths::isAmbiguous` as `const` (PR #169944)

2025-11-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: David Stone (davidstone) Changes To make this change, we have to use `lookup` instead of `operator[]` on a map. They both return the same thing: a default constructed value. The difference is that `lookup` default constructs a value and t

[clang] [clang][docs] Add link to C++ modules Wikipedia page to docs (PR #169200)

2025-11-28 Thread via cfe-commits
https://github.com/mikomikotaishi updated https://github.com/llvm/llvm-project/pull/169200 >From 35e95966015d35af747c1a90be64e29dd83c8c51 Mon Sep 17 00:00:00 2001 From: Miko <[email protected]> Date: Sun, 23 Nov 2025 06:53:47 + Subject: [PATCH] Add link to C++

[clang] [llvm] [clang] Add hasAdjSubstatements matcher (PR #169965)

2025-11-28 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] [Clang][Driver] Split fsanitize.c test (PR #169952)

2025-11-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Marco Elver (melver) Changes The fsanitize.c test is one of the slowest tests we have: ``` -- Testing: 1 tests, 1 workers -- PASS: Clang :: Driver/fsanitize.c (1 of 1) Testing Time: 18.42s ``` It has beco

[clang] [clang][DebugInfo] Add call site debug info flag (PR #169942)

2025-11-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-debuginfo Author: J. Ryan Stinnett (jryans) Changes This moves a few existing debug info flags that were floating in the general pool of unorganised flags over to the existing groups for debug info flags (so that they are presented together in document

[clang] [llvm] [Clang][OpenMP] Handle check for non-contiguous mapping in pointer-based array sections (PR #157443)

2025-11-28 Thread Alexey Bataev via cfe-commits
@@ -8239,13 +8239,26 @@ class MappableExprsHandler { ElementType = CAT->getElementType().getTypePtr(); else if (VAT) ElementType = VAT->getElementType().getTypePtr(); -else - assert(&Component == &*Components.begin() && -

[clang] [flang] [flang] Emit target features for PPC (PR #169860)

2025-11-28 Thread Kelvin Li via cfe-commits
@@ -318,8 +319,67 @@ getExplicitAndImplicitNVPTXTargetFeatures(clang::DiagnosticsEngine &diags, return llvm::join(featuresVec, ","); } +enum ppcCPU { prePwr8, prePwr10 }; +static std::optional ppcType(std::string &cpu) { + return llvm::StringSwitch>(cpu) + .Case("futu

[clang] [LifetimeSafety] Suggest lifetime annotations (PR #169767)

2025-11-28 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/169767 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Make __builtin_assume_dereferenceable constexpr (PR #169869)

2025-11-28 Thread NagaChaitanya Vellanki via cfe-commits
https://github.com/chaitanyav updated https://github.com/llvm/llvm-project/pull/169869 >From 9d2faf6196c580558a1fac3eeb463cda2cdc927b Mon Sep 17 00:00:00 2001 From: NagaChaitanya Vellanki Date: Thu, 27 Nov 2025 19:18:31 -0800 Subject: [PATCH 1/2] [Clang] Make __builtin_assume_dereferenceable co

[clang] [Clang] Apply exclude_from_explicit_instantiation to dllimport/dllexport (PR #168171)

2025-11-28 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: > @mstorsjo This fixes [#135910 > (comment)](https://github.com/llvm/llvm-project/issues/135910#issuecomment-2907742933) That's great! Does this, together with https://github.com/llvm/llvm-project/pull/168170, address the overall problem in #135910, or are there many other iss

[clang] [CIR] Upstream three way compare op (PR #169963)

2025-11-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Hendrik Hübner (HendrikHuebner) Changes This PR upstreams the three way compare op from the incubator repo --- Patch is 36.96 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/169963.diff 10

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

2025-11-28 Thread Manuel Carrasco via cfe-commits
https://github.com/mgcarrasco closed https://github.com/llvm/llvm-project/pull/162282 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Warn when `std::atomic_thread_fence` is used with `fsanitize=thread` (PR #166542)

2025-11-28 Thread Dan Blackwell via cfe-commits
DanBlackwell wrote: > > I appreciate the effort you've put into this @BStott6; are you using > > `atomic_thread_fence` in a way that gives false positives? Perhaps I can > > try to add support for them in TSan (it looks like someone has a workaround > > here for now: https://stackoverflow.com/

[clang] [llvm] [dwarf] make dwarf fission compatible with RISCV relaxations (PR #164128)

2025-11-28 Thread via cfe-commits
https://github.com/daniilavdeev closed https://github.com/llvm/llvm-project/pull/164128 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang][DependencyScanning] Separate clangDependencyScanning and DependencyScanningTool (NFC) (PR #169962)

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

[clang] [CIR] Upstream three way compare op (PR #169963)

2025-11-28 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,cpp -- clang/test/CIR/CodeGen/Inputs/std-compare.h c

[clang] [CIR] Upstream three way compare op (PR #169963)

2025-11-28 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner created https://github.com/llvm/llvm-project/pull/169963 This PR upstreams the three way compare op from the incubator repo From 32285f45356c6d4d1986e0ee144b6821e992f4c3 Mon Sep 17 00:00:00 2001 From: hhuebner Date: Fri, 28 Nov 2025 23:41:30 +0100 Subject: [PA

[clang] [LifetimeSafety] Add missing origins stats for lifetime analysis (PR #166568)

2025-11-28 Thread via cfe-commits
https://github.com/DEBADRIBASAK updated https://github.com/llvm/llvm-project/pull/166568 >From fd8693c51af7d9f91be0926f4150e77c39e2dba4 Mon Sep 17 00:00:00 2001 From: Debadri Basak Date: Wed, 5 Nov 2025 14:07:42 + Subject: [PATCH 1/9] Adding the lifetime stats collection logic to AnalysisB

[clang] Revert "Reland [clang][modules-driver] Add scanner to detect C++20 module presence (#153497)" (PR #163371)

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

[clang] [flang] [flang] Emit target features for PPC (PR #169860)

2025-11-28 Thread Kelvin Li via cfe-commits
kkwli wrote: > While it makes sense to me that target features are set-up and emitted for > PPC, I do not get why the way is done has to be modified in a custom way for > PPC (see inline comments). I am not saying the changes are not needed, I just > do not understand why it is only needed for

[clang] [clang-tools-extra] [clang][DependencyScanning] Remove dependency on clangDriver from clangDependencyScanning (PR #169964)

2025-11-28 Thread Naveen Seth Hanig via cfe-commits
naveen-seth wrote: This patch is currently based on #169962 and requires it to land first. https://github.com/llvm/llvm-project/pull/169964 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [LifetimeSafety] Add missing origins stats for lifetime analysis (PR #166568)

2025-11-28 Thread via cfe-commits
DEBADRIBASAK wrote: @Xazax-hun @usx95 I do not think it is feasible to add the `StmtClassName` and `QualType` as keys without converting them to strings. 1. I tried using a DenseMap with `QualType` as the keys, but that is not allowed since QualType does not have tombstone. 2. I was planning t

[libunwind] libunwind: Remove OS requirements from tests to make them run on more OSes (PR #167642)

2025-11-28 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: > I have just re-reviewed my changes once more to be sure. Can we merge this? Feel free to. Or do you need someone else to merge it for you? https://github.com/llvm/llvm-project/pull/167642 ___ cfe-commits mailing list cfe-commits@list

[clang] [LifetimeSafety] Suggest lifetime annotations (PR #169767)

2025-11-28 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/169767 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][X86] Implement lowering for sqrt builtins (PR #169310)

2025-11-28 Thread Priyanshu Kumar via cfe-commits
Priyanshu3820 wrote: just saw PR #165682 has been merged, which removes these x86 sqrt builtins from clang. I'm waiting for guidance on whether CIR should still implement these or follow upstream's direction with __builtin_elementwise_sqrt. https://github.com/llvm/llvm-project/pull/169310

[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-11-28 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper commented: NIT https://github.com/llvm/llvm-project/pull/169566 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "Reland [clang][modules-driver] Add scanner to detect C++20 module presence (#153497)" (PR #163371)

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

[clang] [llvm] [Clang][OpenMP] Handle check for non-contiguous mapping in pointer-based array sections (PR #157443)

2025-11-28 Thread Alexey Bataev via cfe-commits
@@ -0,0 +1,44 @@ +// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 %s -Wuninitialized +// RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 %s -Wuninitialized + +extern void *malloc(__SIZE_TYPE__); +extern void free(void *); alexey-bataev wrote: Clang

[clang] [LifetimeSafety] Suggest lifetime annotations (PR #169767)

2025-11-28 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/169767 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Suggest lifetime annotations (PR #169767)

2025-11-28 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 commented: Thanks. LGTM. Last few comments: - I would suggest to build LLVM using this to be sure we do not introduce crashes. Maybe see if we have some suggestions already. - Filed a bug for implicit this https://github.com/llvm/llvm-project/issues/169941. Please add

[clang-tools-extra] clangd: Extend index references with constructor calls through forwarding (PR #169742)

2025-11-28 Thread via cfe-commits
https://github.com/timon-ul updated https://github.com/llvm/llvm-project/pull/169742 >From 44ebad6933fccab5bcfc866ee56dd5381da5f452 Mon Sep 17 00:00:00 2001 From: Timon Ulrich Date: Mon, 10 Nov 2025 10:40:14 +0100 Subject: [PATCH 1/8] clangd: make forwarding heuristic available for more locati

[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-11-28 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper edited https://github.com/llvm/llvm-project/pull/169566 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [dwarf] make dwarf fission compatible with RISCV relaxations (PR #164128)

2025-11-28 Thread via cfe-commits
daniilavdeev wrote: Split into: https://github.com/llvm/llvm-project/pull/166597, https://github.com/llvm/llvm-project/pull/164813, https://github.com/llvm/llvm-project/pull/169653 https://github.com/llvm/llvm-project/pull/164128 ___ cfe-commits mail

[clang] [LifetimeSafety] Suggest lifetime annotations (PR #169767)

2025-11-28 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 approved this pull request. https://github.com/llvm/llvm-project/pull/169767 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][x86]: allow PCLMULQDQ intrinsics to be used in constexpr (PR #169214)

2025-11-28 Thread Ahmed Nour via cfe-commits
https://github.com/ahmednoursphinx updated https://github.com/llvm/llvm-project/pull/169214 >From 60fac68bef81335aa12e2faa7e364bb647a51872 Mon Sep 17 00:00:00 2001 From: ahmed Date: Sun, 23 Nov 2025 14:21:51 +0200 Subject: [PATCH 01/15] [Clang][x86]: allow PCLMULQDQ intrinsics to be used in c

  1   2   3   4   5   6   7   8   9   10   >