[clang] [llvm] [sancov] Introduce optional callback for stack-depth tracking (PR #138323)

2025-05-05 Thread Marco Elver via cfe-commits
https://github.com/melver approved this pull request. https://github.com/llvm/llvm-project/pull/138323 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Store documentation when indexing standard library (PR #133681)

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

[clang] [llvm] [NFC] Fix c++ style comment in c file (PR #138244)

2025-05-05 Thread Björn Pettersson via cfe-commits
https://github.com/bjope closed https://github.com/llvm/llvm-project/pull/138244 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Delegate CodeGen related operations for PTU to IncrementalParser (PR #137458)

2025-05-05 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/137458 >From 1d773dea825579e43485b99d57931c6fa19f1768 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Sat, 26 Apr 2025 18:56:38 +0530 Subject: [PATCH 1/2] Delegate CodeGen related operations for PTU to IncrementalP

[clang] 0054ab4 - [NFC] Fix c++ style comment in c file (#138244)

2025-05-05 Thread via cfe-commits
Author: Björn Pettersson Date: 2025-05-05T09:15:32+02:00 New Revision: 0054ab4dc84b2c8c054fc89df4ca745514ca0da4 URL: https://github.com/llvm/llvm-project/commit/0054ab4dc84b2c8c054fc89df4ca745514ca0da4 DIFF: https://github.com/llvm/llvm-project/commit/0054ab4dc84b2c8c054fc89df4ca745514ca0da4.di

[clang] [clang-repl] Delegate CodeGen related operations for PTU to IncrementalParser (PR #137458)

2025-05-05 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 HEAD~1 HEAD --extensions cpp,h -- clang/lib/Interpreter/IncrementalAction.cpp clang/

[clang] [clang][bytecode] Use bytecode interpreter in EvaluateCharRangeAsString (PR #138461)

2025-05-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/19477 Here is th

[clang] [llvm] [sancov] Introduce optional callback for stack-depth tracking (PR #138323)

2025-05-05 Thread Marco Elver via cfe-commits
@@ -2361,6 +2361,13 @@ def fsanitize_coverage_ignorelist : Joined<["-"], "fsanitize-coverage-ignorelist HelpText<"Disable sanitizer coverage instrumentation for modules and functions " "that match the provided special case list, even the allowed ones">,

[clang] [llvm] [sancov] Introduce optional callback for stack-depth tracking (PR #138323)

2025-05-05 Thread Marco Elver via cfe-commits
https://github.com/melver edited https://github.com/llvm/llvm-project/pull/138323 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ecc73a6 - [clang][bytecode] Use bytecode interpreter in EvaluateCharRangeAsString (#138461)

2025-05-05 Thread via cfe-commits
Author: Timm Baeder Date: 2025-05-05T09:06:34+02:00 New Revision: ecc73a6f1ce61a17250a45ee7cda289cc264f608 URL: https://github.com/llvm/llvm-project/commit/ecc73a6f1ce61a17250a45ee7cda289cc264f608 DIFF: https://github.com/llvm/llvm-project/commit/ecc73a6f1ce61a17250a45ee7cda289cc264f608.diff L

[clang] [clang][bytecode] Use bytecode interpreter in EvaluateCharRangeAsString (PR #138461)

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

[clang-tools-extra] 1b0a0c7 - [clangd] Store documentation when indexing standard library (#133681)

2025-05-05 Thread via cfe-commits
Author: Nathan Ridge Date: 2025-05-05T03:13:25-04:00 New Revision: 1b0a0c7382bff13e272dd547210edfa6bb06d15f URL: https://github.com/llvm/llvm-project/commit/1b0a0c7382bff13e272dd547210edfa6bb06d15f DIFF: https://github.com/llvm/llvm-project/commit/1b0a0c7382bff13e272dd547210edfa6bb06d15f.diff

[clang] [llvm] [sancov] Introduce optional callback for stack-depth tracking (PR #138323)

2025-05-05 Thread Marco Elver via cfe-commits
https://github.com/melver commented: Generally LGTM - but let's also wait for others to comment. Documentation of this feature is lacking (and afaik also wasn't added in https://reviews.llvm.org/D36839). Given this will be used in the kernel, some kind of official documentation might be good t

[clang] [clang-repl] Delegate CodeGen related operations for PTU to IncrementalParser (PR #137458)

2025-05-05 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/137458 >From 1d773dea825579e43485b99d57931c6fa19f1768 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Sat, 26 Apr 2025 18:56:38 +0530 Subject: [PATCH 1/2] Delegate CodeGen related operations for PTU to IncrementalP

[clang] [clang][bytecode] Use bytecode interpreter in EvaluateCharRangeAsString (PR #138461)

2025-05-05 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` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/17240 Her

[clang] [clang-repl] Delegate CodeGen related operations for PTU to IncrementalParser (PR #137458)

2025-05-05 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/137458 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,san

[clang] [clang][CompundLiteralExpr] Don't defer evaluation for CLEs (PR #137163)

2025-05-05 Thread kadir çetinkaya via cfe-commits
@@ -9125,9 +9126,25 @@ bool LValueExprEvaluator::VisitCompoundLiteralExpr(const CompoundLiteralExpr *E) { assert((!Info.getLangOpts().CPlusPlus || E->isFileScope()) && "lvalue compound literal in c++?"); - // Defer visiting the literal until the lvalue-to-rvalue con

[clang] 0f6b671 - [OpenCL] Add test for __kernel_exec macro (#138287)

2025-05-05 Thread via cfe-commits
Author: Sven van Haastregt Date: 2025-05-05T09:52:51+02:00 New Revision: 0f6b671a9b76ccd089f35156d47aae8f21be7e39 URL: https://github.com/llvm/llvm-project/commit/0f6b671a9b76ccd089f35156d47aae8f21be7e39 DIFF: https://github.com/llvm/llvm-project/commit/0f6b671a9b76ccd089f35156d47aae8f21be7e39.

[clang] [OpenCL] Add test for __kernel_exec macro (PR #138287)

2025-05-05 Thread Sven van Haastregt via cfe-commits
https://github.com/svenvh closed https://github.com/llvm/llvm-project/pull/138287 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 529b6fc - [clang-repl] Fix destructor for interpreter for the cuda negation case (#138091)

2025-05-05 Thread via cfe-commits
Author: Anutosh Bhat Date: 2025-05-05T11:02:33+03:00 New Revision: 529b6fcb00aabbed17365e5fb3abbc2ae127c967 URL: https://github.com/llvm/llvm-project/commit/529b6fcb00aabbed17365e5fb3abbc2ae127c967 DIFF: https://github.com/llvm/llvm-project/commit/529b6fcb00aabbed17365e5fb3abbc2ae127c967.diff

[clang] [clang-repl] Fix destructor for interpreter for the cuda negation case (PR #138091)

2025-05-05 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/138091 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Fix destructor for interpreter for the cuda negation case (PR #138091)

2025-05-05 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev closed https://github.com/llvm/llvm-project/pull/138091 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenCL] Add test for __kernel_exec macro (PR #138287)

2025-05-05 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` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/17243 Her

[clang] [clang-repl] Fix destructor for interpreter for the cuda negation case (PR #138091)

2025-05-05 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev milestoned https://github.com/llvm/llvm-project/pull/138091 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Fix destructor for interpreter for the cuda negation case (PR #138091)

2025-05-05 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: Generally we should wait a day or two for the bots to go through these changes... https://github.com/llvm/llvm-project/pull/138091 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [Clang][OpenCL][AMDGPU] OpenCL Kernel stubs should be assigned alwaysinline attribute (PR #137769)

2025-05-05 Thread Christudasan Devadasan via cfe-commits
cdevadas wrote: > Apparently the inliner has an arbitrary size threshold even for single uses. > I don't see the point of that, we should probably remove that I had a similar concern. For a single use and in this case especially when the call `Inst` is the only instruction in the Caller, it sh

[clang] 56097bc - [RISCV][Clang] Fix typo: RISCXCVBuiltin -> RISCVXCVBuiltin. NFC.

2025-05-05 Thread Jim Lin via cfe-commits
Author: Jim Lin Date: 2025-05-05T16:40:49+08:00 New Revision: 56097bce97b4f0a9717268e9ddc1bb72bc49390c URL: https://github.com/llvm/llvm-project/commit/56097bce97b4f0a9717268e9ddc1bb72bc49390c DIFF: https://github.com/llvm/llvm-project/commit/56097bce97b4f0a9717268e9ddc1bb72bc49390c.diff LOG:

[clang] [clang-format] Don't annotate enum colon as InheritanceColon (PR #138440)

2025-05-05 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/138440 >From 90803c382ecb040e016034d5798d739739ece03a Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Sat, 3 May 2025 23:38:18 -0700 Subject: [PATCH 1/2] [clang-format] Don't annotate enum colon as InheritanceColon Fix

[clang] [clang] Implement address sanitizer on AIX (1/6) (PR #129925)

2025-05-05 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay commented: clang/test/Driver/Inputs/resource_dir/lib/aix/libclang_rt.asan-powerpc.a is the old runtime path. Does $triple/libclang_rt.asan.a work? If yes, the new hierarchy is preferred https://github.com/llvm/llvm-project/pull/129925 _

[clang] [clang] Implement address sanitizer on AIX (1/6) (PR #129925)

2025-05-05 Thread Fangrui Song via cfe-commits
@@ -256,6 +256,8 @@ def err_drv_malformed_sanitizer_metadata_ignorelist : Error< "malformed sanitizer metadata ignorelist: '%0'">; def err_drv_unsupported_static_sanitizer_darwin : Error< MaskRay wrote: Rename this one to `err_drv_unsupported_static_sanitizer

[clang] [clang] Warn about deprecated volatile-qualified return types (PR #137899)

2025-05-05 Thread via cfe-commits
https://github.com/halbi2 updated https://github.com/llvm/llvm-project/pull/137899 >From 41feb9bdb2d3bcc218f351c54627bb258062a5bc Mon Sep 17 00:00:00 2001 From: halbi2 Date: Mon, 28 Apr 2025 20:07:43 -0400 Subject: [PATCH] [clang] Warn about deprecated volatile-qualified return types The old c

[clang] [clang] Warn about deprecated volatile-qualified return types (PR #137899)

2025-05-05 Thread via cfe-commits
https://github.com/halbi2 edited https://github.com/llvm/llvm-project/pull/137899 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Ensure type aware allocators handle transparent decl contexts (PR #138616)

2025-05-05 Thread via cfe-commits
https://github.com/cor3ntin commented: Can you:add tests? Thanks https://github.com/llvm/llvm-project/pull/138616 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Ensure type aware allocators handle transparent decl contexts (PR #138616)

2025-05-05 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/138616 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Remove "unknown" from availability diags (PR #138610)

2025-05-05 Thread via cfe-commits
cor3ntin wrote: The change looks reasonable but can you add a test? thanks! https://github.com/llvm/llvm-project/pull/138610 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][clang-offload-bundler] Simplify main function (PR #138555)

2025-05-05 Thread Alexey Bader via cfe-commits
https://github.com/bader closed https://github.com/llvm/llvm-project/pull/138555 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Handle invalid variable template specialization whose type depends on itself (PR #134522)

2025-05-05 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis updated https://github.com/llvm/llvm-project/pull/134522 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-ser

[clang] [clang] Implement address sanitizer on AIX (1/6) (PR #129925)

2025-05-05 Thread David Tenty via cfe-commits
@@ -259,6 +260,45 @@ void aix::Linker::ConstructJob(Compilation &C, const JobAction &JA, // Specify linker input file(s). AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); + // Add sanitizer libraries. + const SanitizerArgs &Sanitize = ToolChain.getSanitizerArgs(Ar

[clang] [clang] Implement address sanitizer on AIX (1/6) (PR #129925)

2025-05-05 Thread David Tenty via cfe-commits
@@ -259,6 +260,45 @@ void aix::Linker::ConstructJob(Compilation &C, const JobAction &JA, // Specify linker input file(s). AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); + // Add sanitizer libraries. + const SanitizerArgs &Sanitize = ToolChain.getSanitizerArgs(Ar

[clang] [clang] Implement address sanitizer on AIX (1/6) (PR #129925)

2025-05-05 Thread David Tenty via cfe-commits
@@ -1364,6 +1364,19 @@ static bool addSanitizerDynamicList(const ToolChain &TC, const ArgList &Args, // the option, so don't try to pass it. if (TC.getTriple().isOSSolaris() && !LinkerIsGnuLd) return true; + + if (TC.getTriple().isOSAIX()) { daltenty

[clang] [clang] Implement address sanitizer on AIX (1/6) (PR #129925)

2025-05-05 Thread David Tenty via cfe-commits
@@ -259,6 +260,45 @@ void aix::Linker::ConstructJob(Compilation &C, const JobAction &JA, // Specify linker input file(s). AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); + // Add sanitizer libraries. + const SanitizerArgs &Sanitize = ToolChain.getSanitizerArgs(Ar

[clang] [clang] Implement address sanitizer on AIX (1/6) (PR #129925)

2025-05-05 Thread David Tenty via cfe-commits
@@ -259,6 +260,45 @@ void aix::Linker::ConstructJob(Compilation &C, const JobAction &JA, // Specify linker input file(s). AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); + // Add sanitizer libraries. + const SanitizerArgs &Sanitize = ToolChain.getSanitizerArgs(Ar

[clang] [clang] Implement address sanitizer on AIX (1/6) (PR #129925)

2025-05-05 Thread David Tenty via cfe-commits
@@ -1364,6 +1364,19 @@ static bool addSanitizerDynamicList(const ToolChain &TC, const ArgList &Args, // the option, so don't try to pass it. if (TC.getTriple().isOSSolaris() && !LinkerIsGnuLd) return true; + + if (TC.getTriple().isOSAIX()) { +SmallString<128> SanR

[clang] [clang] Ensure type aware allocators handle transparent decl contexts (PR #138616)

2025-05-05 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/138616 >From b12d78087c521d61f3e078d5a0d79889b17fbde9 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Mon, 5 May 2025 16:17:15 -0700 Subject: [PATCH 1/2] [clang] Ensure type aware allocators handle transparent decl co

[clang] [clang] Ensure type aware allocators handle transparent decl contexts (PR #138616)

2025-05-05 Thread Oliver Hunt via cfe-commits
ojhunt wrote: > Can you add tests? Thanks sigh, I thought I had :D please hold https://github.com/llvm/llvm-project/pull/138616 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Correctly annotate C# nullable value type `?` (PR #138631)

2025-05-05 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/138631 Fix #78666 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,A

[clang] [clang-format] Correctly annotate C# nullable value type `?` (PR #138631)

2025-05-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fix #78666 --- Full diff: https://github.com/llvm/llvm-project/pull/138631.diff 2 Files Affected: - (modified) clang/lib/Format/TokenAnnotator.cpp (+5-15) - (modified) clang/unittests/Format/TokenAnnota

[clang] Reset CodeGenOptions fields for clean module/PCH builds (PR #138256)

2025-05-05 Thread Ayush Pareek via cfe-commits
ayushpareek2003 wrote: > Could you elaborate? Why `= {}` is better than `.clear()` ? according to my understanding, Clang stores some build-specific data in CodeGenOptions like file paths and debug info. When generating modules or precompiled headers, this data can make the output different fr

[clang] Reset CodeGenOptions fields for clean module/PCH builds (PR #138256)

2025-05-05 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: I feel `.clear()` should have a similar semantic with `= {};`. It will be confusing for people to understand this. It will be helpful if you can provide a test to show the difference. https://github.com/llvm/llvm-project/pull/138256 ___

[clang] [llvm] [sancov] Introduce optional callback for stack-depth tracking (PR #138323)

2025-05-05 Thread Marco Elver via cfe-commits
@@ -385,6 +385,49 @@ Users need to implement a single function to capture the CF table at startup: // the collected control flow. } +Tracing Stack Depth +=== + +With ``-fsanitize-coverage=stack-depth`` the compiler will track how much +stack space has be

[clang] [llvm] [sancov] Introduce optional callback for stack-depth tracking (PR #138323)

2025-05-05 Thread Marco Elver via cfe-commits
@@ -385,6 +385,49 @@ Users need to implement a single function to capture the CF table at startup: // the collected control flow. } +Tracing Stack Depth +=== + +With ``-fsanitize-coverage=stack-depth`` the compiler will track how much +stack space has be

[clang] [llvm] [sancov] Introduce optional callback for stack-depth tracking (PR #138323)

2025-05-05 Thread Marco Elver via cfe-commits
@@ -385,6 +385,49 @@ Users need to implement a single function to capture the CF table at startup: // the collected control flow. } +Tracing Stack Depth +=== + +With ``-fsanitize-coverage=stack-depth`` the compiler will track how much +stack space has be

[clang] [clang][Index] Use HeuristicResolver in libIndex (PR #125153)

2025-05-05 Thread Nathan Ridge via cfe-commits
@@ -25,6 +26,17 @@ static bool isGeneratedDecl(const Decl *D) { return false; } +IndexingContext::IndexingContext(IndexingOptions IndexOpts, + IndexDataConsumer &DataConsumer) +: IndexOpts(IndexOpts), DataConsumer(DataConsumer) {} + +Index

[clang] [clang][Index] Add comment about out-of-line defaulted destructor (PR #138640)

2025-05-05 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 created https://github.com/llvm/llvm-project/pull/138640 None >From eeeb71e72e3d5e9da5227b0f2f1d6e870e393a7c Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Tue, 6 May 2025 02:50:47 -0400 Subject: [PATCH] [clang][Index] Add comment about out-of-line defaulte

[clang] [clang][Index] Add comment about out-of-line defaulted destructor (PR #138640)

2025-05-05 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Per discussion at https://github.com/llvm/llvm-project/pull/125153#discussion_r2074478720 https://github.com/llvm/llvm-project/pull/138640 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[clang] [clang][Index] Add comment about out-of-line defaulted destructor (PR #138640)

2025-05-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nathan Ridge (HighCommander4) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/138640.diff 1 Files Affected: - (modified) clang/lib/Index/IndexingContext.h (+1) ``diff diff --git a/clang/lib/Index/IndexingCon

[clang] [clang][Index] Add comment about out-of-line defaulted destructor (PR #138640)

2025-05-05 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 HEAD~1 HEAD --extensions h -- clang/lib/Index/IndexingContext.h `` View

[clang] [llvm] [sancov] Introduce optional callback for stack-depth tracking (PR #138323)

2025-05-05 Thread Marco Elver via cfe-commits
@@ -385,6 +385,49 @@ Users need to implement a single function to capture the CF table at startup: // the collected control flow. } +Tracing Stack Depth +=== + +With ``-fsanitize-coverage=stack-depth`` the compiler will track how much +stack space has be

[clang] [llvm] [sancov] Introduce optional callback for stack-depth tracking (PR #138323)

2025-05-05 Thread Kees Cook via cfe-commits
kees wrote: Okay, a couple small clean-ups, and I've also solved the lack of dynamic stack size tracking. https://github.com/llvm/llvm-project/pull/138323 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

[clang] [Clang][Sema] Handle invalid variable template specialization whose type depends on itself (PR #134522)

2025-05-05 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/134522 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [sancov] Introduce optional callback for stack-depth tracking (PR #138323)

2025-05-05 Thread Vitaly Buka via cfe-commits
@@ -1078,22 +1091,61 @@ void ModuleSanitizerCoverage::InjectCoverageAtBlock(Function &F, BasicBlock &BB, Store->setNoSanitizeMetadata(); } if (Options.StackDepth && IsEntryBB && !IsLeafFunc) { -// Check stack depth. If it's the deepest so far, record it. Modu

[clang] [llvm] [ARM] Adding diagnostics for mcmodel=tiny when used in invalid targets (PR #125643)

2025-05-05 Thread via cfe-commits
ShashwathiNavada wrote: ping @MaskRay https://github.com/llvm/llvm-project/pull/125643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Ensure type aware allocators handle transparent decl contexts (PR #138616)

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

[clang] [llvm] [sancov] Introduce optional callback for stack-depth tracking (PR #138323)

2025-05-05 Thread Kees Cook via cfe-commits
@@ -1078,22 +1091,61 @@ void ModuleSanitizerCoverage::InjectCoverageAtBlock(Function &F, BasicBlock &BB, Store->setNoSanitizeMetadata(); } if (Options.StackDepth && IsEntryBB && !IsLeafFunc) { -// Check stack depth. If it's the deepest so far, record it. Modu

[clang] [libcxx] Reland: [clang] unified CWG2398 and P0522 changes; finishes implementation of P3310 (PR #124137)

2025-05-05 Thread Ziqing Luo via cfe-commits
ziqingluo-90 wrote: > @ziqingluo-90 I had already responded here: [#130778 > (comment)](https://github.com/llvm/llvm-project/issues/130778#issuecomment-2843256610) > > I think you moved your post between issues after I had responded. @mizvekov Oh, I see! Thank you! https://github.com/llvm/ll

[clang] [mlir] [OpenACC] Implement tile/collapse lowering (PR #138576)

2025-05-05 Thread Henrich Lauko via cfe-commits
@@ -82,6 +83,17 @@ class OpenACCClauseCIREmitter final return conversionOp.getResult(0); } + mlir::Value createConstantInt(mlir::Location loc, unsigned width, +int64_t value) { +mlir::IntegerType ty = mlir::IntegerType::get( +

[clang] [clang-format] Don't annotate enum colon as InheritanceColon (PR #138440)

2025-05-05 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/138440 >From 90803c382ecb040e016034d5798d739739ece03a Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Sat, 3 May 2025 23:38:18 -0700 Subject: [PATCH 1/3] [clang-format] Don't annotate enum colon as InheritanceColon Fix

[clang] [clang-format] Don't annotate enum colon as InheritanceColon (PR #138440)

2025-05-05 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/138440 >From 90803c382ecb040e016034d5798d739739ece03a Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Sat, 3 May 2025 23:38:18 -0700 Subject: [PATCH 1/4] [clang-format] Don't annotate enum colon as InheritanceColon Fix

[clang] [Clang][Sema] Handle invalid variable template specialization whose type depends on itself (PR #134522)

2025-05-05 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. Thanks! This looks nice @erichkeane are you happy with the current state? https://github.com/llvm/llvm-project/pull/134522 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llv

[clang] [NFC][clang-offload-bundler] Simplify main function (PR #138555)

2025-05-05 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu approved this pull request. https://github.com/llvm/llvm-project/pull/138555 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [Clang-Tidy][NFC] Simplify check cppcoreguidelines-missing-std-forward (PR #138504)

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

[clang] [flang] [llvm] Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler (PR #136098)

2025-05-05 Thread via cfe-commits
https://github.com/fanju110 updated https://github.com/llvm/llvm-project/pull/136098 >From 9494c9752400e4708dbc8b6a5ca4993ea9565e95 Mon Sep 17 00:00:00 2001 From: fanyikang Date: Thu, 17 Apr 2025 15:17:07 +0800 Subject: [PATCH 01/13] Add support for IR PGO (-fprofile-generate/-fprofile-use=/fi

[clang] [llvm] [sancov] Introduce optional callback for stack-depth tracking (PR #138323)

2025-05-05 Thread Kees Cook via cfe-commits
https://github.com/kees updated https://github.com/llvm/llvm-project/pull/138323 >From a481c0b96417c63786811e5bf118f3eb2e7dabb1 Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Fri, 2 May 2025 10:51:02 -0700 Subject: [PATCH 1/2] [sancov] Introduce optional callback for stack-depth tracking Norma

[clang] 3f1267e - [NFC][clang-offload-bundler] Simplify main function (#138555)

2025-05-05 Thread via cfe-commits
Author: Alexey Bader Date: 2025-05-05T20:01:42-07:00 New Revision: 3f1267e1b39c31cea390c7425e88b01d3304d8c7 URL: https://github.com/llvm/llvm-project/commit/3f1267e1b39c31cea390c7425e88b01d3304d8c7 DIFF: https://github.com/llvm/llvm-project/commit/3f1267e1b39c31cea390c7425e88b01d3304d8c7.diff

[clang] Reset CodeGenOptions fields for clean module/PCH builds (PR #138256)

2025-05-05 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 commented: Could you elaborate? Why `= {}` is better than `.clear()` ? https://github.com/llvm/llvm-project/pull/138256 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [llvm] [sancov] Introduce optional callback for stack-depth tracking (PR #138323)

2025-05-05 Thread Kees Cook via cfe-commits
https://github.com/kees updated https://github.com/llvm/llvm-project/pull/138323 >From a481c0b96417c63786811e5bf118f3eb2e7dabb1 Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Fri, 2 May 2025 10:51:02 -0700 Subject: [PATCH] [sancov] Introduce optional callback for stack-depth tracking Normally -

[clang] [llvm] [RISCV] Add processor definition for SiFive P870 (PR #137725)

2025-05-05 Thread Min-Yih Hsu via cfe-commits
mshockwave wrote: > LLVM Buildbot has detected a new failure on builder `arc-builder` running on > `arc-worker` while building `clang,llvm` at step 6 > "test-build-unified-tree-check-all". > > Full details are available at: > https://lab.llvm.org/buildbot/#/builders/3/builds/15497 > > Here i

[clang-tools-extra] [Clang-Tidy][NFC] Simplify check cppcoreguidelines-missing-std-forward (PR #138504)

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

[clang] [llvm] [sancov] Introduce optional callback for stack-depth tracking (PR #138323)

2025-05-05 Thread Kees Cook via cfe-commits
https://github.com/kees updated https://github.com/llvm/llvm-project/pull/138323 >From 549d71572f086a3ecab9d8cd4e546a55b078bf11 Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Fri, 2 May 2025 10:51:02 -0700 Subject: [PATCH 1/3] [sancov] Introduce optional callback for stack-depth tracking Norma

[clang] [llvm] [sancov] Introduce optional callback for stack-depth tracking (PR #138323)

2025-05-05 Thread Kees Cook via cfe-commits
@@ -2361,6 +2361,13 @@ def fsanitize_coverage_ignorelist : Joined<["-"], "fsanitize-coverage-ignorelist HelpText<"Disable sanitizer coverage instrumentation for modules and functions " "that match the provided special case list, even the allowed ones">,

[clang] [llvm] [ARM] Adding diagnostics for mcmodel=tiny when used in invalid targets (PR #125643)

2025-05-05 Thread Fangrui Song via cfe-commits
@@ -391,6 +391,7 @@ Improvements to Clang's diagnostics - An error is now emitted when a ``musttail`` call is made to a function marked with the ``not_tail_called`` attribute. (#GH133509). +- The ``-mcmodel=tiny`` option will now be diagnosed on all targets other than ARM o

[clang] f1985d5 - [clang] Ensure type aware allocators handle transparent decl contexts (#138616)

2025-05-05 Thread via cfe-commits
Author: Oliver Hunt Date: 2025-05-05T22:39:17-07:00 New Revision: f1985d583d283fc662c94ef39feeb58bed19ac2c URL: https://github.com/llvm/llvm-project/commit/f1985d583d283fc662c94ef39feeb58bed19ac2c DIFF: https://github.com/llvm/llvm-project/commit/f1985d583d283fc662c94ef39feeb58bed19ac2c.diff L

[clang] [clang-format] Fix a bug in annotating binary operator && (PR #138633)

2025-05-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fix #138485 --- Full diff: https://github.com/llvm/llvm-project/pull/138633.diff 2 Files Affected: - (modified) clang/lib/Format/TokenAnnotator.cpp (+5-3) - (modified) clang/unittests/Format/TokenAnnota

[clang] [clang] Ensure type aware allocators handle transparent decl contexts (PR #138616)

2025-05-05 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt closed https://github.com/llvm/llvm-project/pull/138616 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement the core language parts of P2786 - Trivial relocation (PR #127636)

2025-05-05 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/127636 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-

[clang] [clang-format] Fix a bug in annotating binary operator && (PR #138633)

2025-05-05 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/138633 Fix #138485 >From e72f081f3a1f06ec9e868042cbe7db0a3c18796d Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Mon, 5 May 2025 22:35:40 -0700 Subject: [PATCH] [clang-format] Fix a bug in annotating binary operator &&

[clang] [llvm] [sancov] Introduce optional callback for stack-depth tracking (PR #138323)

2025-05-05 Thread Kees Cook via cfe-commits
https://github.com/kees updated https://github.com/llvm/llvm-project/pull/138323 >From 03e2eead7c4034c81c79619c1507dd27145aaa43 Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Fri, 2 May 2025 10:51:02 -0700 Subject: [PATCH 1/2] [sancov] Introduce optional callback for stack-depth tracking Norma

[clang] [llvm] [sancov] Introduce optional callback for stack-depth tracking (PR #138323)

2025-05-05 Thread Kees Cook via cfe-commits
@@ -1078,22 +1091,61 @@ void ModuleSanitizerCoverage::InjectCoverageAtBlock(Function &F, BasicBlock &BB, Store->setNoSanitizeMetadata(); } if (Options.StackDepth && IsEntryBB && !IsLeafFunc) { -// Check stack depth. If it's the deepest so far, record it. Modu

[clang] Fix crash with invalid VLA in a type trait (PR #138543)

2025-05-05 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman created https://github.com/llvm/llvm-project/pull/138543 Transforming an expression to a potentially evaluated expression can fail. If it does so, no longer attempt to make the type trait expression, instead return an error expression. This ensures we don't try

[clang] [HLSL] Handle init list with OpaqueValueExprs in CGExprScalar (PR #138541)

2025-05-05 Thread Sarah Spall via cfe-commits
https://github.com/spall created https://github.com/llvm/llvm-project/pull/138541 When an HLSL Init list is producing a Scalar, handle OpaqueValueExprs in the Init List with 'emitInitListOpaqueValues' Copied from 'AggExprEmitter::VisitCXXParenListOrInitListExpr' Closes #136408 >From 24f4cf687

[clang] [HLSL] Handle init list with OpaqueValueExprs in CGExprScalar (PR #138541)

2025-05-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Sarah Spall (spall) Changes When an HLSL Init list is producing a Scalar, handle OpaqueValueExprs in the Init List with 'emitInitListOpaqueValues' Copied from 'AggExprEmitter::VisitCXXParenListOrInitListExpr' Closes #136408 --- Full diff:

[clang] Fix crash with invalid VLA in a type trait (PR #138543)

2025-05-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aaron Ballman (AaronBallman) Changes Transforming an expression to a potentially evaluated expression can fail. If it does so, no longer attempt to make the type trait expression, instead return an error expression. This ensures we don't

[clang] Fix crash with invalid VLA in a type trait (PR #138543)

2025-05-05 Thread Erich Keane via cfe-commits
@@ -4700,6 +4700,10 @@ ExprResult Sema::CreateUnaryExprOrTypeTraitExpr(TypeSourceInfo *TInfo, TInfo->getType()->isVariablyModifiedType()) TInfo = TransformToPotentiallyEvaluated(TInfo); + // It's possible that the transformation above failed. + if (!TInfo) +re

[clang] Fix crash with invalid VLA in a type trait (PR #138543)

2025-05-05 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/138543 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for switch statements case kinds (PR #138003)

2025-05-05 Thread via cfe-commits
@@ -455,7 +456,8 @@ CIRGenFunction::emitCaseDefaultCascade(const T *stmt, mlir::Type condType, if (isa(sub) && isa(stmt)) { subStmtKind = SubStmtKind::Default; builder.createYield(loc); -} else if (isa(sub) && isa(stmt)) { +} else if ((isa(sub) && isa(s

[clang] [llvm] [HLSL][SPIR-V] Implement vk::ext_builtin_input attribute (PR #138530)

2025-05-05 Thread Steven Perron via cfe-commits
Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= Message-ID: In-Reply-To: @@ -5759,9 +5761,18 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D, getCUDARuntime().internalizeDeviceSideVar(D, Linkage);

[clang] [llvm] [HLSL][SPIR-V] Implement vk::ext_builtin_input attribute (PR #138530)

2025-05-05 Thread Steven Perron via cfe-commits
Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= Message-ID: In-Reply-To: s-perron wrote: Could you add a tests to [SemaHLSL](https://github.com/llvm/llvm-project/tree/44856d957e3a878e1f15d5ab0009bff9c

[clang] [CIR] Upstream support for switch statements case kinds (PR #138003)

2025-05-05 Thread Erich Keane via cfe-commits
@@ -515,19 +517,44 @@ CIRGenFunction::emitCaseDefaultCascade(const T *stmt, mlir::Type condType, mlir::LogicalResult CIRGenFunction::emitCaseStmt(const CaseStmt &s, mlir::Type condType,

[clang] [llvm] [HLSL][SPIR-V] Implement vk::ext_builtin_input attribute (PR #138530)

2025-05-05 Thread Steven Perron via cfe-commits
https://github.com/s-perron edited https://github.com/llvm/llvm-project/pull/138530 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][SPIR-V] Implement vk::ext_builtin_input attribute (PR #138530)

2025-05-05 Thread Steven Perron via cfe-commits
Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= Message-ID: In-Reply-To: @@ -5636,6 +5636,8 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D, Init = llvm::UndefValue::get(getTypes().ConvertTypeForMem

  1   2   3   4   5   >