[clang] [X86][AVX10.2] Fix VNNIINT16 maskz intrinsics arguments order (PR #151077)

2025-07-28 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#151092 https://github.com/llvm/llvm-project/pull/151077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Analysis] Prevent revisiting block when searching for noreturn vars (PR #150582)

2025-07-28 Thread Serge Pavlov via cfe-commits
@@ -225,3 +225,20 @@ extern void abc_02(func_type *); abc_02(&func_ptr); func_ptr(); } // expected-warning {{function declared 'noreturn' should not return}} + +namespace Issue150336 { +void free(void *); +typedef void (*sel_freefunc)(void *); +struct gmx_ana_selmethod_t {

[clang] [llvm] [Clang][OpenMP] Non-contiguous strided update (PR #144635)

2025-07-28 Thread Amit Tiwari via cfe-commits
https://github.com/amitamd7 updated https://github.com/llvm/llvm-project/pull/144635 >From 940d6dcd37dba9b8c9d8b945d4ff1b6f735f3ef1 Mon Sep 17 00:00:00 2001 From: amtiwari Date: Mon, 16 Jun 2025 01:07:01 -0400 Subject: [PATCH] strided_update_offloading with lit-offload and clang-tests --- cla

[clang] [clang][ExprConst] Consider integer pointers of value 0 nullptr (PR #150164)

2025-07-28 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/150164 >From b9655ff6d54475b5697a63571734192c92a6af07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 23 Jul 2025 06:05:21 +0200 Subject: [PAT

[clang] [X86][AVX10.2] Fix VNNIINT16 maskz intrinsics arguments order (PR #151077)

2025-07-28 Thread Phoebe Wang via cfe-commits
phoebewang wrote: /cherry-pick https://github.com/llvm/llvm-project/commit/3ea3e334cc19cdd34416b546ac4b4a24b2018a28 https://github.com/llvm/llvm-project/pull/151077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[clang] [X86][AVX10.2] Fix VNNIINT16 maskz intrinsics arguments order (PR #151077)

2025-07-28 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang milestoned https://github.com/llvm/llvm-project/pull/151077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][AVX10.2] Fix VNNIINT16 maskz intrinsics arguments order (PR #151077)

2025-07-28 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang closed https://github.com/llvm/llvm-project/pull/151077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3ea3e33 - [X86][AVX10.2] Fix VNNIINT16 maskz intrinsics arguments order (#151077)

2025-07-28 Thread via cfe-commits
Author: Phoebe Wang Date: 2025-07-29T14:52:14+08:00 New Revision: 3ea3e334cc19cdd34416b546ac4b4a24b2018a28 URL: https://github.com/llvm/llvm-project/commit/3ea3e334cc19cdd34416b546ac4b4a24b2018a28 DIFF: https://github.com/llvm/llvm-project/commit/3ea3e334cc19cdd34416b546ac4b4a24b2018a28.diff L

[clang] [X86][AVX10.2] Fix VNNIINT16 maskz intrinsics arguments order (PR #151077)

2025-07-28 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/151077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-28 Thread via cfe-commits
@@ -107,3 +110,282 @@ 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][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-28 Thread via cfe-commits
https://github.com/tyan0 updated https://github.com/llvm/llvm-project/pull/147960 >From 5a02673773031f782ccef1a510a58cbb80681f76 Mon Sep 17 00:00:00 2001 From: Takashi Yano Date: Thu, 10 Jul 2025 21:55:05 +0900 Subject: [PATCH] [Clang][Driver] Revise Cygwin ToolChain to call linker directly .

[clang] 8b020d5 - [Preprocessor] Do not expand macros if the input is already preprocessed (#137665)

2025-07-28 Thread via cfe-commits
Author: Juan Manuel Martinez Caamaño Date: 2025-07-29T08:49:36+02:00 New Revision: 8b020d5434078145e2fd2b4f1a48bb1c78ace491 URL: https://github.com/llvm/llvm-project/commit/8b020d5434078145e2fd2b4f1a48bb1c78ace491 DIFF: https://github.com/llvm/llvm-project/commit/8b020d5434078145e2fd2b4f1a48bb1

[clang] [Preprocessor] Do not expand macros if the input is already preprocessed (PR #137665)

2025-07-28 Thread Juan Manuel Martinez Caamaño via cfe-commits
https://github.com/jmmartinez closed https://github.com/llvm/llvm-project/pull/137665 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-07-28 Thread Carlos Galvez via cfe-commits
@@ -1336,6 +1336,45 @@ class MatchASTVisitor : public RecursiveASTVisitor, return false; } + bool isInSystemHeader(const SourceLocation &Loc) { +const SourceManager &SM = getASTContext().getSourceManager(); +return SM.isInSystemHeader(Loc); + } + + template

[clang] [llvm] [wip][Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-28 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From fbe4344831538480be33accd35ef618c6d0e50b3 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 01/26] pipes for redirection in oop jit --- .../clang/Interpreter/Remo

[clang] [llvm] [wip][Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-28 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From fbe4344831538480be33accd35ef618c6d0e50b3 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 01/25] pipes for redirection in oop jit --- .../clang/Interpreter/Remo

[clang] [llvm] [wip][Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-28 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From fbe4344831538480be33accd35ef618c6d0e50b3 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 01/24] pipes for redirection in oop jit --- .../clang/Interpreter/Remo

[clang] [Basic] Remove getVirtualFile (PR #151086)

2025-07-28 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/151086 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [wip][Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-28 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From fbe4344831538480be33accd35ef618c6d0e50b3 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 01/23] pipes for redirection in oop jit --- .../clang/Interpreter/Remo

[clang] [clang][bytecode] Always track item types in InterpStack (PR #151088)

2025-07-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes This has been a long-standing problem, but we didn't use to call the destructors of items on the stack unless we explicitly `pop()` or `discard()` them. When interpretation was interrupted midway-through (b

[clang] [clang][bytecode] Always track item types in InterpStack (PR #151088)

2025-07-28 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/151088 This has been a long-standing problem, but we didn't use to call the destructors of items on the stack unless we explicitly `pop()` or `discard()` them. When interpretation was interrupted midway-through (bec

[clang] 2b8696b - [CIR][NFC] Reformat Attr to use common CIR_ prefix and traits style (#150694)

2025-07-28 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-07-29T07:38:51+02:00 New Revision: 2b8696b58e25f53f23d35a3904c111c1ae61d6f4 URL: https://github.com/llvm/llvm-project/commit/2b8696b58e25f53f23d35a3904c111c1ae61d6f4 DIFF: https://github.com/llvm/llvm-project/commit/2b8696b58e25f53f23d35a3904c111c1ae61d6f4.diff

[clang] [CIR][NFC] Reformat Attr to use common CIR_ prefix and traits style (PR #150694)

2025-07-28 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko closed https://github.com/llvm/llvm-project/pull/150694 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFC] Reformat Attr to use common CIR_ prefix and traits style (PR #150694)

2025-07-28 Thread Henrich Lauko via cfe-commits
xlauko wrote: ### Merge activity * **Jul 29, 5:37 AM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/150694). https://github.com/llvm/llvm-project/pull/150694 _

[clang] [Basic] Remove getVirtualFile (PR #151086)

2025-07-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes This patch removes getVirtualFile because it has been deprecated for more than 10 months since: commit b1aea98cfa357e23f4bb52232da5f41781f23bff Author: Jan Svoboda Date:

[clang] [Basic] Remove getVirtualFile (PR #151086)

2025-07-28 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151086 This patch removes getVirtualFile because it has been deprecated for more than 10 months since: commit b1aea98cfa357e23f4bb52232da5f41781f23bff Author: Jan Svoboda Date: Wed Sep 25 10:36:44 2024

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

2025-07-28 Thread via cfe-commits
@@ -107,3 +110,282 @@ 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-tools-extra] [clang][CodeComplete] skip explicit obj param in SignatureHelp (PR #146649)

2025-07-28 Thread Nathan Ridge via cfe-commits
@@ -1,14 +1,42 @@ struct A { - void foo(this A self, int arg); + void foo(this auto&& self, int arg); + void bar(this A self, int arg); }; -int main() { +int func1() { A a {}; a. } -// RUN: %clang_cc1 -cc1 -fsyntax-only -code-completion-at=%s:%(line-2):5 -std=c++23

[clang] [clang-tools-extra] [clang][CodeComplete] skip explicit obj param in SignatureHelp (PR #146649)

2025-07-28 Thread Nathan Ridge via cfe-commits
@@ -4386,12 +4430,24 @@ TEST(CompletionTest, SkipExplicitObjectParameter) { MockFS FS; auto Inputs = TU.inputs(FS); - auto Result = codeComplete(testPath(TU.Filename), Code.point(), - Preamble.get(), Inputs, Opts); - - EXPECT_THAT(Result.Compl

[clang] [clang-tools-extra] [clang][CodeComplete] skip explicit obj param in SignatureHelp (PR #146649)

2025-07-28 Thread Nathan Ridge via cfe-commits
@@ -4368,11 +4409,14 @@ TEST(CompletionTest, SkipExplicitObjectParameter) { Annotations Code(R"cpp( struct A { void foo(this auto&& self, int arg); + void bar(this A self, int arg); }; int main() { A a {}; - a.^ + a.$c1^s + (&

[clang] [clang-tools-extra] [clang][CodeComplete] skip explicit obj param in SignatureHelp (PR #146649)

2025-07-28 Thread Nathan Ridge via cfe-commits
@@ -4368,11 +4409,14 @@ TEST(CompletionTest, SkipExplicitObjectParameter) { Annotations Code(R"cpp( struct A { void foo(this auto&& self, int arg); + void bar(this A self, int arg); }; int main() { A a {}; - a.^ + a.$c1^s -

[clang] [clang-tools-extra] [clang][CodeComplete] skip explicit obj param in SignatureHelp (PR #146649)

2025-07-28 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/146649 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang][CodeComplete] skip explicit obj param in SignatureHelp (PR #146649)

2025-07-28 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 commented: Thanks for the patch and the nice test coverage! A few comments/questions: https://github.com/llvm/llvm-project/pull/146649 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

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

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

[clang-tools-extra] [clang-tidy] Add 'enable-check-profiling' with aggregated results to 'run-clang-tidy' (PR #151011)

2025-07-28 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/151011 >From 65a04c0b903243bbc854477075b8e9e1a62fdfeb Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Mon, 28 Jul 2025 21:12:04 +0300 Subject: [PATCH 1/4] [clang-tidy] Add 'enable-check-profiling' with aggregated

[clang] [clang-tools-extra] [clang]: Support `analyzer_noreturn` attribute in `CFG` (PR #150952)

2025-07-28 Thread Andrey Karlov via cfe-commits
https://github.com/negativ updated https://github.com/llvm/llvm-project/pull/150952 >From 417b4e465744f9a1d1704c87da4587626c9f5411 Mon Sep 17 00:00:00 2001 From: Andrey Karlov Date: Mon, 28 Jul 2025 16:23:21 +0300 Subject: [PATCH 1/2] Initial implementation --- .../bugprone/unchecked-optional

[clang-tools-extra] [clang-tidy] Add 'enable-check-profiling' with aggregated results to 'run-clang-tidy' (PR #151011)

2025-07-28 Thread Baranov Victor via cfe-commits
@@ -178,6 +182,122 @@ def merge_replacement_files(tmpdir: str, mergefile: str) -> None: open(mergefile, "w").close() +def aggregate_profiles(profile_dir: str) -> Dict[str, float]: +"""Aggregate timing data from multiple profile JSON files""" +aggregated: Dict

[clang-tools-extra] [clang-tidy] Add 'enable-check-profiling' with aggregated results to 'run-clang-tidy' (PR #151011)

2025-07-28 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/151011 >From 65a04c0b903243bbc854477075b8e9e1a62fdfeb Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Mon, 28 Jul 2025 21:12:04 +0300 Subject: [PATCH 1/3] [clang-tidy] Add 'enable-check-profiling' with aggregated

[clang] [Analysis] Prevent revisiting block when searching for noreturn vars (PR #150582)

2025-07-28 Thread Serge Pavlov via cfe-commits
https://github.com/spavloff updated https://github.com/llvm/llvm-project/pull/150582 >From c63685694e0d2ffb7599006aa08c6032eafd2edb Mon Sep 17 00:00:00 2001 From: Serge Pavlov Date: Fri, 25 Jul 2025 13:35:19 +0700 Subject: [PATCH 1/2] [Analysis] Prevent revisiting block when searching for nore

[clang] [Clang][Sema] Expression in assumption attribute should be full expression (PR #150814)

2025-07-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `clang` at step 3 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/24252 Here is the relevant piece of the build log fo

[clang] [Clang][Sema] Expression in assumption attribute should be full expression (PR #150814)

2025-07-28 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis closed https://github.com/llvm/llvm-project/pull/150814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b39160d - [Clang][Sema] Expression in assumption attribute should be full expression (#150814)

2025-07-28 Thread via cfe-commits
Author: Yanzuo Liu Date: 2025-07-29T11:53:02+08:00 New Revision: b39160ddfb625bd57f9113471b15cda748151a10 URL: https://github.com/llvm/llvm-project/commit/b39160ddfb625bd57f9113471b15cda748151a10 DIFF: https://github.com/llvm/llvm-project/commit/b39160ddfb625bd57f9113471b15cda748151a10.diff LO

[clang] [X86][AVX10.2] Fix VNNIINT16 maskz intrinsics arguments order (PR #151077)

2025-07-28 Thread Phoebe Wang via cfe-commits
phoebewang wrote: The change needs a release note update, but I want to backport it to LLVM21 release. Would update LLVM21 release note instead. https://github.com/llvm/llvm-project/pull/151077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] [X86][AVX10.2] Fix VNNIINT16 maskz intrinsics arguments order (PR #151077)

2025-07-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Phoebe Wang (phoebewang) Changes For maskz intrinsics, the first argument is always the mask. --- Patch is 22.88 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/151077.diff 4 Files Affec

[clang] [X86][AVX10.2] Fix VNNIINT16 maskz intrinsics arguments order (PR #151077)

2025-07-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Phoebe Wang (phoebewang) Changes For maskz intrinsics, the first argument is always the mask. --- Patch is 22.88 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/151077.diff 4 Files Affected:

[clang] [X86][AVX10.2] Fix VNNIINT16 maskz intrinsics arguments order (PR #151077)

2025-07-28 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang created https://github.com/llvm/llvm-project/pull/151077 For maskz intrinsics, the first argument is always the mask. >From f175aa9a54b8fb6e3be91af0ae38e553a4d4852d Mon Sep 17 00:00:00 2001 From: "Wang, Phoebe" Date: Tue, 29 Jul 2025 10:59:38 +0800 Subject: [PATCH

[clang] [NFC] [Sema] [Modules] Use DynamicRecursiveASTVisitor to reduce generted code size (PR #151074)

2025-07-28 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/151074 >From 86b334ad710dcb622f63d4040096416ef10022b6 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Tue, 29 Jul 2025 10:23:33 +0800 Subject: [PATCH] [NFC] [Sema] [Modules] Use DynamicRecursiveASTVisitor to reduce

[clang] [CIR] Support more declarations without any codegen (PR #151076)

2025-07-28 Thread Morris Hafner via cfe-commits
https://github.com/mmha updated https://github.com/llvm/llvm-project/pull/151076 >From 41de9a3ded9751ec72715122ed9d5b91f7efd121 Mon Sep 17 00:00:00 2001 From: Morris Hafner Date: Tue, 29 Jul 2025 04:54:42 +0200 Subject: [PATCH] [CIR] Support more declarations without any codegen This patch adds

[clang] [CIR] Support more declarations without any codegen (PR #151076)

2025-07-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Morris Hafner (mmha) Changes This patch adds or completes support for a couple of top level declaration types that don't emit any code: Most notably these include Concepts, static_assert and type aliases. --- Full diff: https://github

[clang] [CIR] Support more declarations without any codegen (PR #151076)

2025-07-28 Thread Morris Hafner via cfe-commits
https://github.com/mmha created https://github.com/llvm/llvm-project/pull/151076 This patch adds or completes support for a couple of top level declaration types that don't emit any code: Most notably these include Concepts, static_assert and type aliases. >From fb52c398ad796aa3728b7f7c8edaf4

[clang] [NFC] [Sema] [Modules] Use DynamicRecursiveASTVisitor to reduce generted code size (PR #151074)

2025-07-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-modules Author: Chuanqi Xu (ChuanqiXu9) Changes It is better to use DynamicRecursiveASTVisitor than RecursiveASTVisitor as it can reduce the generated size. And also avoid using a template type to present callbacks to a

[clang] [NFC] [Sema] [Modules] Use DynamicRecursiveASTVisitor to reduce generted code size (PR #151074)

2025-07-28 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: I didn't use `function_ref` as it seems not safe to store functions. https://github.com/llvm/llvm-project/pull/151074 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] [Sema] [Modules] Use DynamicRecursiveASTVisitor to reduce generted code size (PR #151074)

2025-07-28 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 created https://github.com/llvm/llvm-project/pull/151074 It is better to use DynamicRecursiveASTVisitor than RecursiveASTVisitor as it can reduce the generated size. And also avoid using a template type to present callbacks to avoid generating more code too. >Fro

[clang] [CIR] Upstream support for function-level variable decompositions (PR #151073)

2025-07-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Morris Hafner (mmha) Changes This implements support for structured bindings on a function scope level. It does not add support for global structured bindings. --- Full diff: https://github.com/llvm/llvm-project/pull/151073.diff 5 Files

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

2025-07-28 Thread Oliver Hunt via cfe-commits
ojhunt wrote: (if linux folk could retest to see how badly I have broken everything that would be great) https://github.com/llvm/llvm-project/pull/143230 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[clang] [CIR] Upstream support for function-level variable decompositions (PR #151073)

2025-07-28 Thread Morris Hafner via cfe-commits
https://github.com/mmha created https://github.com/llvm/llvm-project/pull/151073 This implements support for structured bindings on a function scope level. It does not add support for global structured bindings. >From 1a77ffaa97180947a4bfb5c09d801f7feb9b173b Mon Sep 17 00:00:00 2001 From: Morri

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

2025-07-28 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Force push+rebase because I've significantly reworked and tidied the changes. I've centralized the schema definitions in each library, and made them explicit rather than constructed at each site. I've also replaced the __APPLE__ guards with feature guards which seems much more r

[clang] [CIR] Upstream support for variable template specializations (PR #151069)

2025-07-28 Thread Morris Hafner via cfe-commits
https://github.com/mmha updated https://github.com/llvm/llvm-project/pull/151069 >From a636f04d087eb18e10e6ec738244e2e394deb60b Mon Sep 17 00:00:00 2001 From: Morris Hafner Date: Tue, 29 Jul 2025 03:11:11 +0200 Subject: [PATCH 1/2] [CIR] Upstream support for variable template specializations -

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

2025-07-28 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/143230 >From 7b5855fef30ef35172e90dade5bdc6de492f5940 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Fri, 6 Jun 2025 18:50:28 -0700 Subject: [PATCH] [runtimes][PAC] Harden unwinding when possible (#138571) This harde

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

2025-07-28 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt edited https://github.com/llvm/llvm-project/pull/143230 ___ 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 'enable-check-profiling' with aggregated results to 'run-clang-tidy' (PR #151011)

2025-07-28 Thread Nicolas van Kempen via cfe-commits
@@ -178,6 +182,122 @@ def merge_replacement_files(tmpdir: str, mergefile: str) -> None: open(mergefile, "w").close() +def aggregate_profiles(profile_dir: str) -> Dict[str, float]: +"""Aggregate timing data from multiple profile JSON files""" +aggregated: Dict

[clang-tools-extra] [clang-tidy] Add 'enable-check-profiling' with aggregated results to 'run-clang-tidy' (PR #151011)

2025-07-28 Thread Nicolas van Kempen via cfe-commits
@@ -489,6 +616,12 @@ async def main() -> None: export_fixes_dir = tempfile.mkdtemp() delete_fixes_dir = True +profile_dir: Optional[str] = None +delete_profile_dir = False nicovank wrote: Maybe get rid of `delete_profile_dir` and just

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

2025-07-28 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/143230 >From 3c57edcebc14acc0f00565a9a96885c9ec2d849d Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Fri, 6 Jun 2025 18:50:28 -0700 Subject: [PATCH] [runtimes][PAC] Harden unwinding when possible (#138571) This harde

[libclc] [libclc] Optimize generic CLC fmin/fmax (PR #128506)

2025-07-28 Thread Wenju He via cfe-commits
@@ -43,8 +48,10 @@ _CLC_DEF _CLC_OVERLOAD half __clc_fmin(half x, half y) { return (y < x) ? y : x; wenju-he wrote: can we use this same implementation for float and double? https://github.com/llvm/llvm-project/pull/128506

[clang-tools-extra] [clang-tidy] Add 'enable-check-profiling' with aggregated results to 'run-clang-tidy' (PR #151011)

2025-07-28 Thread Nicolas van Kempen via cfe-commits
nicovank wrote: Funny, I wrote this feature a while ago and never got around to making a PR out of it. FWIW here is my (old) diff: https://github.com/llvm/llvm-project/compare/main...nicovank:llvm-project:temporary-tidy-profiles https://github.com/llvm/llvm-project/pull/151011 ___

[clang] [Clang][Sema] Expression in assumption attribute should be full expression (PR #150814)

2025-07-28 Thread Yanzuo Liu via cfe-commits
zwuis wrote: > Is there no issue associated with the crash? I ran into this assertion failure when trying to implement cwg712. I tried to search issues but found nothing. https://github.com/llvm/llvm-project/pull/150814 ___ cfe-commits mailing list c

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-28 Thread Aaron Danen via cfe-commits
aadanen wrote: 1. printing stuff on clang-repl start causes several tests to fail 2. need to not parse %lib as a bad % command. Maybe should add %lib as list of % commands? https://github.com/llvm/llvm-project/pull/150348 ___ cfe-commits mailing list

[clang-tools-extra] [clang-tools-extra] using wrapper llvm::sort(nfc) (PR #150998)

2025-07-28 Thread via cfe-commits
https://github.com/Zhenhang1213 closed https://github.com/llvm/llvm-project/pull/150998 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 28c2c1e - [clang-tools-extra] using wrapper llvm::sort(nfc) (#150998)

2025-07-28 Thread via cfe-commits
Author: Austin Date: 2025-07-29T09:57:02+08:00 New Revision: 28c2c1e06e2dc73df03cfc2d797fa70365d481f2 URL: https://github.com/llvm/llvm-project/commit/28c2c1e06e2dc73df03cfc2d797fa70365d481f2 DIFF: https://github.com/llvm/llvm-project/commit/28c2c1e06e2dc73df03cfc2d797fa70365d481f2.diff LOG: [

[clang] [Clang][Sema] Expression in assumption attribute should be full expression (PR #150814)

2025-07-28 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: Is there no issue associated with the crash? https://github.com/llvm/llvm-project/pull/150814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP] Link the LLVM libc libraries in no-RDC mode (PR #151046)

2025-07-28 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > Where did the decision to "get these libraries" come from? Linking "libc.bc" > into hip is unnecessary and unwanted at this point, in my view. The new driver, which hopefully be the default in HIP soonish, handles all the offloading languages more or less the same. We link the

[clang] [clang-tools-extra] [llvm] [clangd] introduce doxygen parser (PR #150790)

2025-07-28 Thread Maksim Ivanov via cfe-commits
@@ -0,0 +1,140 @@ +//===--- SymbolDocumentation.h ==-*- 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-tools-extra] [llvm] [clangd] introduce doxygen parser (PR #150790)

2025-07-28 Thread Maksim Ivanov via cfe-commits
@@ -1538,21 +1704,22 @@ markup::Document HoverInfo::present() const { std::string HoverInfo::present(MarkupKind Kind) const { if (Kind == MarkupKind::Markdown) { const Config &Cfg = Config::current(); -if ((Cfg.Documentation.CommentFormat == - Config::CommentF

[clang] [clang-tools-extra] [llvm] [clangd] introduce doxygen parser (PR #150790)

2025-07-28 Thread Maksim Ivanov via cfe-commits
@@ -1388,9 +1393,170 @@ static std::string formatOffset(uint64_t OffsetInBits) { return Offset; } -markup::Document HoverInfo::present() const { +markup::Document HoverInfo::presentDoxygen() const { + // NOTE: this function is currently almost identical to presentDefault().

[clang] [llvm] [clang][CodeGen] Extends lifetime of coroutine promise(CWG2563) (PR #151067)

2025-07-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: Weibo He (NewSigma) Changes This patch attempts to implement piece of the proposed solution to [CWG2563](https://cplusplus.github.io/CWG/issues/2563.html): > [9.6.4 dcl.fct.def.coroutine.p8] This return exits the scope of gro. I

[libclc] [libclc] Fix building top-level 'libclc' target (PR #150972)

2025-07-28 Thread Wenju He via cfe-commits
@@ -5,6 +5,9 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) endif() set(LLVM_SUBPROJECT_TITLE "libclc") +# Top level target used to build all Libclc libraries. +add_custom_target( libclc ALL ) wenju-he wrote: can we put this line near line 48~49, o

[clang] [llvm] [clang][CodeGen] Extends lifetime of coroutine promise(CWG2563) (PR #151067)

2025-07-28 Thread Weibo He via cfe-commits
https://github.com/NewSigma created https://github.com/llvm/llvm-project/pull/151067 This patch attempts to implement piece of the proposed solution to [CWG2563](https://cplusplus.github.io/CWG/issues/2563.html): > [9.6.4 dcl.fct.def.coroutine.p8] This return exits the scope of gro. It exits

[clang] [CIR] Add support for C++ conversion operators (PR #151066)

2025-07-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Morris Hafner (mmha) Changes This fairly simple addition enables codegen for C++ conversion operators --- Full diff: https://github.com/llvm/llvm-project/pull/151066.diff 2 Files Affected: - (modified) clang/lib/CIR/CodeGen/CIRGenModule

[clang] [CIR] Add support for C++ conversion operators (PR #151066)

2025-07-28 Thread Morris Hafner via cfe-commits
https://github.com/mmha created https://github.com/llvm/llvm-project/pull/151066 This fairly simple addition enables codegen for C++ conversion operators >From 433b6af403ce2648717874d1cce0cb9ea8142804 Mon Sep 17 00:00:00 2001 From: Morris Hafner Date: Tue, 29 Jul 2025 02:51:46 +0200 Subject: [P

[clang] [llvm] [AMDGPU] Support builtin/intrinsics for async loads/stores on gfx1250 (PR #151058)

2025-07-28 Thread Changpeng Fang via cfe-commits
https://github.com/changpeng updated https://github.com/llvm/llvm-project/pull/151058 Unicorn! · GitHub body { background-color: #f1f1f1; margin: 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; } .container { margin: 50px

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-28 Thread Aaron Danen via cfe-commits
https://github.com/aadanen updated https://github.com/llvm/llvm-project/pull/150348 >From 4e24cb20efa22e364d41026ae40aec470ff786aa Mon Sep 17 00:00:00 2001 From: Aaron Danen Date: Wed, 23 Jul 2025 18:01:14 -0700 Subject: [PATCH 1/6] added undo to docs in same format as %quit --- clang/docs/Cl

[clang] [llvm] [AMDGPU] Support builtin/intrinsics for async loads/stores on gfx1250 (PR #151058)

2025-07-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Changpeng Fang (changpeng) Changes --- Patch is 43.55 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/151058.diff 13 Files Affected: - (modified) clang/include/clang/Basic/BuiltinsAMDGPU.def

[clang] [llvm] [AMDGPU] Support builtin/intrinsics for async loads/stores on gfx1250 (PR #151058)

2025-07-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Changpeng Fang (changpeng) Changes --- Patch is 43.55 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/151058.diff 13 Files Affected: - (modified) clang/include/clang/Basic/BuiltinsA

[clang] [llvm] [AMDGPU] Support builtin/intrinsics for async loads/stores on gfx1250 (PR #151058)

2025-07-28 Thread Changpeng Fang via cfe-commits
https://github.com/changpeng created https://github.com/llvm/llvm-project/pull/151058 None Unicorn! · GitHub body { background-color: #f1f1f1; margin: 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; } .container { margin:

[clang] [Clang][attr] Add 'kcfi_salt' attribute (PR #141846)

2025-07-28 Thread Bill Wendling via cfe-commits
@@ -0,0 +1,38 @@ +// RUN: %clang_cc1 -fsyntax-only -fsanitize=kcfi -verify %s + +#define __cfi_salt(S) __attribute__((cfi_salt(S))) + +int foo(int a, int b) __cfi_salt("pepper"); // ok +int foo(int a, int b) __cfi_salt("pepper"); // ok + +typedef int (*bar_t)(void) __cfi_salt("pep

[clang] [llvm] [WebAssembly,clang] Add __builtin_wasm_test_function_pointer_signature (PR #150201)

2025-07-28 Thread Derek Schuff via cfe-commits
@@ -307,6 +310,14 @@ bool WebAssemblyTargetInfo::handleTargetFeatures( HasReferenceTypes = false; continue; } +if (Feature == "+gc") { + HasGC = true; + continue; +} +if (Feature == "-gc") { + HasGC = false; + continue; +} ---

[clang] [flang] [mlir] [mlir][core] Move `InitAll***` implementation into static library. (PR #150805)

2025-07-28 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. I verified that CIR builds for me also with the latest changes. https://github.com/llvm/llvm-project/pull/150805 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cg

[clang] [clang] Followup for constexpr-unknown potential constant expressions. (PR #151053)

2025-07-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Eli Friedman (efriedma-quic) Changes 6a60f18997d62b0e2842a921fcb6beb3e52ed823 fixed the primary issue of dereferences, but there are some expressions that depend on the identity of the pointed-to object without actually accessing it. Hand

[clang] [clang] Followup for constexpr-unknown potential constant expressions. (PR #151053)

2025-07-28 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic created https://github.com/llvm/llvm-project/pull/151053 6a60f18997d62b0e2842a921fcb6beb3e52ed823 fixed the primary issue of dereferences, but there are some expressions that depend on the identity of the pointed-to object without actually accessing it. Handle

[clang] [clang][Driver] Prefer non-Linux emulations for baremetal Arm/AArch64 targets (PR #149235)

2025-07-28 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#151052 https://github.com/llvm/llvm-project/pull/149235 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-07-28 Thread Julian Schmidt via cfe-commits
@@ -105,6 +105,10 @@ Improvements to clang-tidy now run checks in parallel by default using all available hardware threads. Both scripts display the number of threads being used in their output. +- :program:`clang-tidy` no longer attemps to match AST nodes from system hea

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-07-28 Thread Julian Schmidt via cfe-commits
@@ -135,10 +135,15 @@ class MatchFinder { llvm::StringMap &Records; }; +MatchFinderOptions() {} 5chmidti wrote: `MatchFinderOptions() = default;` (why add it in the first place? Having no ctor should be enough) https://github.com/llvm/llvm-pro

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-07-28 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti commented: Awesome to see this continuing. The changes also look quite clean and extendable to, e.g., modules, like you mentioned. The performance improvement is still incredible to see. Especially when considering library layering in user-code from external or inte

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-07-28 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti edited https://github.com/llvm/llvm-project/pull/151035 ___ 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 'enable-check-profiling' with aggregated results to 'run-clang-tidy' (PR #151011)

2025-07-28 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/151011 >From 65a04c0b903243bbc854477075b8e9e1a62fdfeb Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Mon, 28 Jul 2025 21:12:04 +0300 Subject: [PATCH 1/2] [clang-tidy] Add 'enable-check-profiling' with aggregated

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-07-28 Thread Baranov Victor via cfe-commits
@@ -1336,6 +1336,45 @@ class MatchASTVisitor : public RecursiveASTVisitor, return false; } + bool isInSystemHeader(const SourceLocation &Loc) { +const SourceManager &SM = getASTContext().getSourceManager(); +return SM.isInSystemHeader(Loc); + } + + template

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-07-28 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/151035 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-07-28 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor commented: Thank you for working on this! Left a couple of NFC comments on style https://github.com/llvm/llvm-project/pull/151035 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-07-28 Thread Baranov Victor via cfe-commits
@@ -1336,6 +1336,45 @@ class MatchASTVisitor : public RecursiveASTVisitor, return false; } + bool isInSystemHeader(const SourceLocation &Loc) { +const SourceManager &SM = getASTContext().getSourceManager(); +return SM.isInSystemHeader(Loc); + } + + template

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-07-28 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp updated https://github.com/llvm/llvm-project/pull/151035 >From d52db8ca5d53d021852f85600a63ba235e73fb0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20G=C3=A1lvez?= Date: Thu, 24 Jul 2025 21:10:43 + Subject: [PATCH] [clang-tidy] Avoid matching nodes in sy

  1   2   3   4   5   >