[clang] [llvm] Add support for Windows hot-patching (PR #138972)

2025-05-07 Thread via cfe-commits
@@ -0,0 +1,251 @@ +//===-- WindowsHotPatch.cpp - Support for Windows hotpatching -===// +// +// 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-tools-extra] [clang-doc] Add HTMLMustacheGenerator.cpp (PR #138060)

2025-05-07 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,85 @@ +//===-- HTMLMustacheGenerator.cpp - HTML Mustache Generator -*- C++ -*-===// ilovepi wrote: Ah, good catch. https://github.com/llvm/llvm-project/pull/138060 ___ cfe-commits mailing list cfe-commi

[clang] [llvm] Add support for Windows hot-patching (PR #138972)

2025-05-07 Thread Eli Friedman via cfe-commits
@@ -0,0 +1,251 @@ +//===-- WindowsHotPatch.cpp - Support for Windows hotpatching -===// +// +// 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] 45b5cc0 - [Clang] Fix the warning group of several compatibilty diagnostics (#138872)

2025-05-07 Thread via cfe-commits
Author: Sirraide Date: 2025-05-08T01:41:57+02:00 New Revision: 45b5cc08e5823c59802f88ec3f27108ab98c1eb9 URL: https://github.com/llvm/llvm-project/commit/45b5cc08e5823c59802f88ec3f27108ab98c1eb9 DIFF: https://github.com/llvm/llvm-project/commit/45b5cc08e5823c59802f88ec3f27108ab98c1eb9.diff LOG:

[clang] [clang][modules][deps] Implicit modules are out of date when their explicit imports are (PR #138920)

2025-05-07 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 updated https://github.com/llvm/llvm-project/pull/138920 >From 306a9ceab9aa77ccb2752e847339c5a67e672549 Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Wed, 7 May 2025 10:10:47 -0700 Subject: [PATCH 1/2] [clang][modules][deps] Rebuild implicit modules when thei

[clang] [clang][modules][deps] Implicit modules are out of date when their explicit imports are (PR #138920)

2025-05-07 Thread Jan Svoboda via cfe-commits
@@ -0,0 +1,77 @@ +// Test that modifications to a common header (imported from both a PCH and a TU) +// cause rebuilds of dependent modules imported from the TU on incremental build. + +// RUN: rm -rf %t +// RUN: split-file %s %t + +//--- module.modulemap +module mod_common { he

[clang] [Clang] Fix the warning group of several compatibilty diagnostics (PR #138872)

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

[clang-tools-extra] [clang-doc] Add missing comment for Base (PR #138053)

2025-05-07 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/138053 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Add HTMLMustacheGenerator.cpp (PR #138060)

2025-05-07 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,87 @@ +//===-- clang-doc/HTMLMustacheGeneratorTest.cpp ---===// +// +// 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: Apa

[clang-tools-extra] [clang-doc] Add HTMLMustacheGenerator.cpp (PR #138060)

2025-05-07 Thread Paul Kirth via cfe-commits
@@ -535,6 +535,8 @@ struct ClangDocContext { // JavaScript files that will be imported in all HTML files. std::vector JsScripts; StringRef Base; + // Mustache Template files ilovepi wrote: My understanding is that it provides a mapping to of a template

[clang-tools-extra] [clang-doc] Add HTMLMustacheGenerator.cpp (PR #138060)

2025-05-07 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,85 @@ +//===-- HTMLMustacheGenerator.cpp - HTML Mustache Generator -*- 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: Apa

[clang] [HLSL][NFC] Stricter Overload Tests (clamp, max, min, pow) (PR #138993)

2025-05-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Ashley Coleman (V-FEXrt) Changes Partial implementation of #138016 to unblock other ongoing work. NFC --- Patch is 33.33 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/138993.diff 4 Files Affe

[clang] [webkit.UncountedLambdaCapturesChecker] Treat every argument of std::ranges functions as noescape. (PR #138995)

2025-05-07 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/138995 Functions in std::ranges namespace does not store the lambada passed-in as an arugment in heap so treat such an argument as if it has [[noescape]] in the WebKit lambda capture checker so that we don't emit warnin

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-05-07 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx commented: > A side question, is it legal to use the builtin in unstructured control flow, > like here: https://godbolt.org/z/no7Kzv19r ? Note, if the answer is "no", > then enforcing the builtin to initialize something would (probably) > automatically prevent this c

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-05-07 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx edited https://github.com/llvm/llvm-project/pull/134016 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [webkit.UncountedLambdaCapturesChecker] Treat every argument of std::ranges functions as noescape. (PR #138995)

2025-05-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ryosuke Niwa (rniwa) Changes Functions in std::ranges namespace does not store the lambada passed-in as an arugment in heap so treat such an argument as if it has [[noescape]] in the WebKit lambda capture checker so that we don't emit war

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

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

[clang] [HLSL][NFC] Stricter Overload Tests (clamp, max, min, pow) (PR #138993)

2025-05-07 Thread Ashley Coleman via cfe-commits
https://github.com/V-FEXrt created https://github.com/llvm/llvm-project/pull/138993 Partial implementation of #138016 to unblock other ongoing work. NFC Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-fam

[clang] [llvm] [AMDGPU] Allow 0 as min./max. of amdgpu-waves-per-eu (PR #138284)

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

[clang] [webkit.UncountedLambdaCapturesChecker] Treat every argument of std::ranges functions as noescape. (PR #138995)

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

[clang] [ItaniumMangle] Make sure class types are added to the dictionary of substitution candidates when compiling for older ABIs (PR #138947)

2025-05-07 Thread John McCall via cfe-commits
rjmccall wrote: Can you confirm that the intent here is to restore mangler behavior to what it was prior to #132401, making the pair of PRs ABI-neutral? https://github.com/llvm/llvm-project/pull/138947 ___ cfe-commits mailing list cfe-commits@lists.ll

[clang] [ObjC] Stop hard-coding the list of keywords that are allowed in selectors (PR #138952)

2025-05-07 Thread Akira Hatanaka via cfe-commits
https://github.com/ahatanak created https://github.com/llvm/llvm-project/pull/138952 The design intent is that ObjC selector pieces can be arbitrary keywords, including basic C keywords like `if`, and the grammar permits this and makes it unambiguous. Use TokenKinds.def to autogenerate the li

[clang] [ObjC] Stop hard-coding the list of keywords that are allowed in selectors (PR #138952)

2025-05-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Akira Hatanaka (ahatanak) Changes The design intent is that ObjC selector pieces can be arbitrary keywords, including basic C keywords like `if`, and the grammar permits this and makes it unambiguous. Use TokenKinds.def to autogenerate t

[clang] [ItaniumMangle] Make sure class types are added to the dictionary of substitution candidates when compiling for older ABIs (PR #138947)

2025-05-07 Thread Oliver Hunt via cfe-commits
ojhunt wrote: This change seems to impact the path add for #108015 which was explicitly related to vtable mangling, are we sure we're not regressing that bug? https://github.com/llvm/llvm-project/pull/138947 ___ cfe-commits mailing list cfe-commits@li

[clang] [ItaniumMangle] Make sure class types are added to the dictionary of substitution candidates when compiling for older ABIs (PR #138947)

2025-05-07 Thread Oliver Hunt via cfe-commits
ojhunt wrote: (sorry for the noise, I see the above references are PRs rather than the issue # so they're all the same thing :D) https://github.com/llvm/llvm-project/pull/138947 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llv

[clang-tools-extra] [clang-doc] Add HTMLMustacheGenerator.cpp (PR #138060)

2025-05-07 Thread Daniel Thornburgh via cfe-commits
@@ -535,6 +535,8 @@ struct ClangDocContext { // JavaScript files that will be imported in all HTML files. std::vector JsScripts; StringRef Base; + // Mustache Template files mysterymath wrote: This is a map from strings to strings. What is the semantics

[clang] [llvm] [clang] Add spir_kernel attribute (PR #137882)

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

[clang] [HLSL][NFC] Rename isImplicit() to hasRegisterStot() on HLSLResourceBindingAttr (PR #138964)

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

[clang] 1698beb - [clang][modules][deps] Optimize in-process timestamping of PCMs (#137363)

2025-05-07 Thread via cfe-commits
Author: Jan Svoboda Date: 2025-05-07T14:02:40-07:00 New Revision: 1698beb5420f6e6f7eed5d9914ab6a10ff5f4b1f URL: https://github.com/llvm/llvm-project/commit/1698beb5420f6e6f7eed5d9914ab6a10ff5f4b1f DIFF: https://github.com/llvm/llvm-project/commit/1698beb5420f6e6f7eed5d9914ab6a10ff5f4b1f.diff L

[clang] [clang][modules][deps] Optimize in-process timestamping of PCMs (PR #137363)

2025-05-07 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 closed https://github.com/llvm/llvm-project/pull/137363 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang] Add spir_kernel attribute (PR #137882)

2025-05-07 Thread Nick Sarnie via cfe-commits
sarnex wrote: @AaronBallman I just pushed a first attempt to combine the attrs, however I'm not sure if it's much cleaner given the attrs have different subjects/allowed cases/expected warnings/etc. Do you mind taking a first look and seeing if you think the general direction is a good idea? T

[clang] [llvm] [aarch64][x86][win] Add compiler support for MSVC's /funcoverride flag (Windows kernel loader replaceable functions) (PR #125320)

2025-05-07 Thread Eli Friedman via cfe-commits
@@ -7613,6 +7613,9 @@ def import_call_optimization : Flag<["-"], "import-call-optimization">, "by the Windows kernel to enable import call optimization">, MarshallingInfoFlag>; +def replaceable_function: Joined<["-"], "loader-replaceable-function=">, + Marsh

[clang] [llvm] [aarch64][x86][win] Add compiler support for MSVC's /funcoverride flag (Windows kernel loader replaceable functions) (PR #125320)

2025-05-07 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic edited https://github.com/llvm/llvm-project/pull/125320 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [aarch64][x86][win] Add compiler support for MSVC's /funcoverride flag (Windows kernel loader replaceable functions) (PR #125320)

2025-05-07 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/125320 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [aarch64][x86][win] Add compiler support for MSVC's /funcoverride flag (Windows kernel loader replaceable functions) (PR #125320)

2025-05-07 Thread Eli Friedman via cfe-commits
@@ -4661,3 +4661,109 @@ AsmPrinter::getCodeViewJumpTableInfo(int JTI, const MachineInstr *BranchInstr, return std::make_tuple(Base, 0, BranchLabel, codeview::JumpTableEntrySize::Int32); } + +void AsmPrinter::emitCOFFReplaceableFunctionData(Module &M)

[clang] [HLSL] Update Sema Checking Diagnostics for builtins (PR #138429)

2025-05-07 Thread via cfe-commits
@@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected +// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %

[clang] [flang] [lld] [lldb] [llvm] [mlir] [polly] [CMake] respect LLVMConfig.cmake's LLVM_DEFINITIONS in standalone builds (PR #138587)

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

[clang] [Coverage] Support -fprofile-list for cold function coverage (PR #136333)

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

[clang] [Coverage] Support -fprofile-list for cold function coverage (PR #136333)

2025-05-07 Thread Lei Wang via cfe-commits
https://github.com/wlei-llvm edited https://github.com/llvm/llvm-project/pull/136333 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add support for Windows hot-patching (PR #138972)

2025-05-07 Thread via cfe-commits
@@ -0,0 +1,251 @@ +//===-- WindowsHotPatch.cpp - Support for Windows hotpatching -===// +// +// 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] [Coverage] Support -fprofile-list for cold function coverage (PR #136333)

2025-05-07 Thread Lei Wang via cfe-commits
https://github.com/wlei-llvm updated https://github.com/llvm/llvm-project/pull/136333 >From 3d770595ce6568148ddfe2596f1a53dfc2ee751f Mon Sep 17 00:00:00 2001 From: wlei Date: Fri, 18 Apr 2025 10:37:30 -0700 Subject: [PATCH 1/2] [Inverge] Support -fprofile-list for cold function coveragege ---

[clang] [Coverage] Support -fprofile-list for cold function coverage (PR #136333)

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

[clang] [Coverage] Support -fprofile-list for cold function coverage (PR #136333)

2025-05-07 Thread Lei Wang via cfe-commits
wlei-llvm wrote: > LGTM, but I'd like to bikeshed the name a bit. Since this is only used for > the Sample PGO pipeline, should we include Sample PGO in the name? Sounds good, I will go with `[sample-coldcov]` if that works for you. https://github.com/llvm/llvm-project/pull/136333

[clang] [llvm] Add support for Windows hot-patching (PR #138972)

2025-05-07 Thread Eli Friedman via cfe-commits
@@ -0,0 +1,251 @@ +//===-- WindowsHotPatch.cpp - Support for Windows hotpatching -===// +// +// 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] [llvm] Add support for Windows hot-patching (PR #138972)

2025-05-07 Thread Eli Friedman via cfe-commits
@@ -0,0 +1,251 @@ +//===-- WindowsHotPatch.cpp - Support for Windows hotpatching -===// +// +// 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] [llvm] Add support for Windows hot-patching (PR #138972)

2025-05-07 Thread Eli Friedman via cfe-commits
@@ -0,0 +1,251 @@ +//===-- WindowsHotPatch.cpp - Support for Windows hotpatching -===// +// +// 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] [llvm] Add support for Windows hot-patching (PR #138972)

2025-05-07 Thread Eli Friedman via cfe-commits
@@ -0,0 +1,251 @@ +//===-- WindowsHotPatch.cpp - Support for Windows hotpatching -===// +// +// 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] [llvm] Add support for Windows hot-patching (PR #138972)

2025-05-07 Thread via cfe-commits
@@ -0,0 +1,251 @@ +//===-- WindowsHotPatch.cpp - Support for Windows hotpatching -===// +// +// 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] [llvm] Add support for Windows hot-patching (PR #138972)

2025-05-07 Thread Eli Friedman via cfe-commits
@@ -0,0 +1,251 @@ +//===-- WindowsHotPatch.cpp - Support for Windows hotpatching -===// +// +// 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][OpenMP] Add error for large expr in collapse clause (PR #138592)

2025-05-07 Thread via cfe-commits
k-arrows wrote: In addition to the collapse clause, the ordered clause also seems to have the same problem. For example, does your patch also fix the following crash? If so, you also need tests regarding the ordered clause. https://godbolt.org/z/96sa5jxff ```cpp void f(void) { #pragma omp for o

[clang] [clang][modules][deps] Optimize in-process timestamping of PCMs (PR #137363)

2025-05-07 Thread Jan Svoboda via cfe-commits
jansvoboda11 wrote: (Just adding a note here for my records that this speeds up from-scratch scans by 1.4% and incremental _null_ scans by 67% on my benchmark.) https://github.com/llvm/llvm-project/pull/137363 ___ cfe-commits mailing list cfe-commits@

[clang-tools-extra] [clang-doc][NFC] Add TODO for future work (PR #138052)

2025-05-07 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/138052 >From 3e612b30626cfe3963fdbed341c028a8a8f0917e Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 29 Apr 2025 18:11:55 -0700 Subject: [PATCH 1/2] [clang-doc][NFC] Add TODO for future work --- clang-tools-ext

[clang-tools-extra] [clang-doc] Add missing comment for Base (PR #138053)

2025-05-07 Thread Paul Kirth via cfe-commits
ilovepi wrote: ### Merge activity * **May 7, 7:22 PM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/138053). https://github.com/llvm/llvm-project/pull/138053 _

[clang-tools-extra] [clang-doc][NFC] Add TODO for future work (PR #138052)

2025-05-07 Thread Paul Kirth via cfe-commits
ilovepi wrote: ### Merge activity * **May 7, 7:22 PM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/138052). https://github.com/llvm/llvm-project/pull/138052 _

[clang-tools-extra] [clang-doc][NFC] Add TODO for future work (PR #138052)

2025-05-07 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/138052 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 59a73bd - [clang-doc] Add missing comment for Base (#138053)

2025-05-07 Thread via cfe-commits
Author: Paul Kirth Date: 2025-05-07T16:24:27-07:00 New Revision: 59a73bdbc4c7b99a4b82ecd0d246267815699077 URL: https://github.com/llvm/llvm-project/commit/59a73bdbc4c7b99a4b82ecd0d246267815699077 DIFF: https://github.com/llvm/llvm-project/commit/59a73bdbc4c7b99a4b82ecd0d246267815699077.diff LO

[clang-tools-extra] 83e1f34 - [clang-doc][NFC] Add TODO for future work (#138052)

2025-05-07 Thread via cfe-commits
Author: Paul Kirth Date: 2025-05-07T16:24:02-07:00 New Revision: 83e1f34c1c8c7b5d2c53a45dfb44cf3766f7c345 URL: https://github.com/llvm/llvm-project/commit/83e1f34c1c8c7b5d2c53a45dfb44cf3766f7c345 DIFF: https://github.com/llvm/llvm-project/commit/83e1f34c1c8c7b5d2c53a45dfb44cf3766f7c345.diff LO

[clang] [ItaniumMangle] Make sure class types are added to the dictionary of substitution candidates when compiling for older ABIs (PR #138947)

2025-05-07 Thread Akira Hatanaka via cfe-commits
https://github.com/ahatanak created https://github.com/llvm/llvm-project/pull/138947 https://github.com/llvm/llvm-project/pull/132401 made changes to the function that mangles member pointer types, which caused substitutions to be mangled incorrectly. Make sure addSubstitution is called in ma

[clang] [analyzer] Make it a noop when initializing a field of empty record (PR #138594)

2025-05-07 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. Indeed, it looks great now. Thank you! Let's merge this. https://github.com/llvm/llvm-project/pull/138594 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[clang] [clang][ptrauth] Add support for querying the ptrauth schema of a type (PR #138482)

2025-05-07 Thread Oliver Hunt via cfe-commits
@@ -9561,6 +9561,41 @@ class PointerExprEvaluator return true; } + bool VisitUnaryExprOrTypeTraitExpr(const UnaryExprOrTypeTraitExpr *E) { +// This is the only UETT we evaluate here. +assert(E->getKind() == UETT_PtrAuthSchemaOptions && + "Unknown Unary

[clang] [analyzer] Make it a noop when initializing a field of empty record (PR #138594)

2025-05-07 Thread via cfe-commits
isuckatcs wrote: Sorry for the post-merge comment, but can we please wait for the CI to finish before merging a patch, so that we can check if everything is fine? Apparently, we broke the trunk. https://github.com/llvm/llvm-project/pull/138594 ___ cf

[clang] [clang][ptrauth] Add support for querying the ptrauth schema of a type (PR #138482)

2025-05-07 Thread Oliver Hunt via cfe-commits
@@ -9619,6 +9620,65 @@ ObjCInterfaceDecl *ASTContext::getObjCProtocolDecl() const { return ObjCProtocolClassDecl; } +std::optional +ASTContext::getExplicitOrImplicitPointerAuth(QualType T) { + auto ExplicitQualifier = T.getPointerAuth(); + if (ExplicitQualifier.isPresent(

[clang] [clang][OpenMP] Add error for large expr in collapse clause (PR #138592)

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

[clang] [analyzer] Make it a noop when initializing a field of empty record (PR #138594)

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

[clang] [llvm] [Driver] Reject -mcmodel=tiny on X86 (PR #125643)

2025-05-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-flang-rhel-clang` running on `ppc64le-flang-rhel-test` while building `clang` at step 6 "test-build-unified-tree-check-flang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/157/builds/27305

[clang] [analyzer] Make it a noop when initializing a field of empty record (PR #138594)

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

[clang] [ObjC] Stop hard-coding the list of keywords that are allowed in selectors (PR #138952)

2025-05-07 Thread Richard Smith via cfe-commits
@@ -1095,75 +1095,8 @@ IdentifierInfo *Parser::ParseObjCSelectorPiece(SourceLocation &SelectorLoc) { } case tok::identifier: - case tok::kw_asm: - case tok::kw_auto: - case tok::kw_bool: - case tok::kw_break: - case tok::kw_case: - case tok::kw_catch: - case tok::k

[clang] [llvm] [Driver] Reject -mcmodel=tiny on X86 (PR #125643)

2025-05-07 Thread via cfe-commits
Kewen12 wrote: Hi there, we would appreciate it if you could revert this PR while investigating. It breaks our buildbot and will block our downstream merge. https://github.com/llvm/llvm-project/pull/125643 ___ cfe-commits mailing list cfe-commits@lis

[clang] 43c514b - [Clang] Deprecate `__is_trivially_relocatable` (#138835)

2025-05-07 Thread via cfe-commits
Author: cor3ntin Date: 2025-05-07T22:23:41+02:00 New Revision: 43c514bd42d3e12dd299c0a7165b3e079e9efd38 URL: https://github.com/llvm/llvm-project/commit/43c514bd42d3e12dd299c0a7165b3e079e9efd38 DIFF: https://github.com/llvm/llvm-project/commit/43c514bd42d3e12dd299c0a7165b3e079e9efd38.diff LOG:

[clang] f4e7ba0 - [OpenACC][CIR] Implement 'worker'/'vector' lowering (#138765)

2025-05-07 Thread via cfe-commits
Author: Erich Keane Date: 2025-05-07T13:48:17-07:00 New Revision: f4e7ba02cc7fd35f3e5ad82cf98c3220af7cd068 URL: https://github.com/llvm/llvm-project/commit/f4e7ba02cc7fd35f3e5ad82cf98c3220af7cd068 DIFF: https://github.com/llvm/llvm-project/commit/f4e7ba02cc7fd35f3e5ad82cf98c3220af7cd068.diff L

[clang] [mlir] [OpenACC][CIR] Implement 'worker'/'vector' lowering (PR #138765)

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

[clang] [clang] Mark some language options as benign. (PR #131569)

2025-05-07 Thread Michael Spencer via cfe-commits
https://github.com/Bigcheese approved this pull request. lgtm with Chuanqi's release notes request. Separately, I'd also like to see the rtti and exceptions stuff be marked compatible, although with some testing first of what happens when people do create AST differences with the macros. It's

[clang] [llvm] [Driver] Reject -mcmodel=tiny on X86 (PR #125643)

2025-05-07 Thread Jan Patrick Lehr via cfe-commits
jplehr wrote: I put up https://github.com/llvm/llvm-project/pull/138959 which removes the offending `tiny` mcmodel from the Flang driver test. I don't know if this is the right fix though. https://github.com/llvm/llvm-project/pull/125643 ___ cfe-comm

[clang] [ItaniumMangle] Make sure class types are added to the dictionary of substitution candidates when compiling for older ABIs (PR #138947)

2025-05-07 Thread Matheus Izvekov via cfe-commits
@@ -3102,11 +3103,15 @@ void CXXNameMangler::mangleType(QualType T) { addSubstitution(T); } -void CXXNameMangler::mangleCXXRecordDecl(const CXXRecordDecl *Record) { +void CXXNameMangler::mangleCXXRecordDecl(const CXXRecordDecl *Record, +

[clang] [ItaniumMangle] Make sure class types are added to the dictionary of substitution candidates when compiling for older ABIs (PR #138947)

2025-05-07 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: > Can you confirm that the intent here is to restore mangler behavior to what > it was prior to #132401, making the pair of PRs ABI-neutral? I a bit confused here as well. The description on the PR doesn't say this, but the patch seems to claim that https://github.com/llvm/llvm

[clang] [ItaniumMangle] Make sure class types are added to the dictionary of substitution candidates when compiling for older ABIs (PR #138947)

2025-05-07 Thread Matheus Izvekov via cfe-commits
@@ -1,4 +1,5 @@ -// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-apple-darwin9 -fblocks -std=c++11 | FileCheck %s +// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-apple-darwin9 -fblocks -std=c++11 | FileCheck --check-prefixes=CHECK,CHECK-ABI-LATEST %s +// RUN: %clang_c

[clang-tools-extra] [clang-doc] Add HTMLMustacheGenerator.cpp (PR #138060)

2025-05-07 Thread Daniel Thornburgh via cfe-commits
@@ -0,0 +1,85 @@ +//===-- HTMLMustacheGenerator.cpp - HTML Mustache Generator -*- 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: Apa

[clang-tools-extra] [clang-doc] Add HTMLMustacheGenerator.cpp (PR #138060)

2025-05-07 Thread Daniel Thornburgh via cfe-commits
@@ -0,0 +1,85 @@ +//===-- HTMLMustacheGenerator.cpp - HTML Mustache Generator -*- C++ -*-===// mysterymath wrote: Nit: the C++ tag is no longer needed. https://github.com/llvm/llvm-project/pull/138060 ___ cfe-comm

[clang-tools-extra] [clang-doc] Add HTMLMustacheGenerator.cpp (PR #138060)

2025-05-07 Thread Daniel Thornburgh via cfe-commits
@@ -0,0 +1,85 @@ +//===-- HTMLMustacheGenerator.cpp - HTML Mustache Generator -*- 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: Apa

[clang-tools-extra] [clang-doc] Add HTMLMustacheGenerator.cpp (PR #138060)

2025-05-07 Thread Daniel Thornburgh via cfe-commits
@@ -0,0 +1,87 @@ +//===-- clang-doc/HTMLMustacheGeneratorTest.cpp ---===// +// +// 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: Apa

[clang-tools-extra] [clang-doc] Add HTMLMustacheGenerator.cpp (PR #138060)

2025-05-07 Thread Daniel Thornburgh via cfe-commits
@@ -0,0 +1,85 @@ +//===-- HTMLMustacheGenerator.cpp - HTML Mustache Generator -*- 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: Apa

[clang] [HLSL][NFC] Rename isImplicit() to hasRegisterStot() on HLSLResourceBindingAttr (PR #138964)

2025-05-07 Thread Helena Kotas via cfe-commits
https://github.com/hekota created https://github.com/llvm/llvm-project/pull/138964 Renaming because the name `isImplicit` is ambiguous. It can mean implicit attribute or implicit binding. >From 989c75d4376eaedfb8756bc564f81aee6199756a Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Wed, 7 M

[clang] [Clang][CodeGen] Enable pointer overflow check for GCC workaround (PR #137849)

2025-05-07 Thread Eli Friedman via cfe-commits
@@ -4169,10 +4169,10 @@ static Value *emitPointerArithmetic(CodeGenFunction &CGF, // The index is not pointer-sized. // The pointer type is not byte-sized. // - if (BinaryOperator::isNullPointerArithmeticExtension(CGF.getContext(), -

[clang] Mention compilation database generator tool `basset` (PR #79758)

2025-05-07 Thread Glebs Ivanovskis via cfe-commits
i-ky wrote: Ping https://github.com/llvm/llvm-project/pull/79758 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 74c0422 - [Clang][CMake] use CMakePushCheckState (#138783)

2025-05-07 Thread via cfe-commits
Author: jeremyd2019 Date: 2025-05-07T22:17:54+03:00 New Revision: 74c0422cfeac42c83b82a3ff5c0c0cde849bd240 URL: https://github.com/llvm/llvm-project/commit/74c0422cfeac42c83b82a3ff5c0c0cde849bd240 DIFF: https://github.com/llvm/llvm-project/commit/74c0422cfeac42c83b82a3ff5c0c0cde849bd240.diff L

[clang] [clang][ptrauth] Add support for querying the ptrauth schema of a type (PR #138482)

2025-05-07 Thread Oliver Hunt via cfe-commits
@@ -9619,6 +9620,65 @@ ObjCInterfaceDecl *ASTContext::getObjCProtocolDecl() const { return ObjCProtocolClassDecl; } +std::optional +ASTContext::getExplicitOrImplicitPointerAuth(QualType T) { + auto ExplicitQualifier = T.getPointerAuth(); + if (ExplicitQualifier.isPresent(

[clang] [clang][ptrauth] Add support for querying the ptrauth schema of a type (PR #138482)

2025-05-07 Thread Oliver Hunt via cfe-commits
@@ -9619,6 +9620,65 @@ ObjCInterfaceDecl *ASTContext::getObjCProtocolDecl() const { return ObjCProtocolClassDecl; } +std::optional +ASTContext::getExplicitOrImplicitPointerAuth(QualType T) { + auto ExplicitQualifier = T.getPointerAuth(); + if (ExplicitQualifier.isPresent(

[clang] Revert "[analyzer] Make it a noop when initializing a field of empty record" (PR #138951)

2025-05-07 Thread Balazs Benics via cfe-commits
https://github.com/steakhal created https://github.com/llvm/llvm-project/pull/138951 Reverts llvm/llvm-project#138594 Crashes, see: https://lab.llvm.org/buildbot/#/builders/144/builds/24534 Rate limit · GitHub body { background-color: #f6f8fa;

[clang] Revert "[analyzer] Make it a noop when initializing a field of empty record" (PR #138951)

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

[clang] [clang][ptrauth] Add support for querying the ptrauth schema of a type (PR #138482)

2025-05-07 Thread Oliver Hunt via cfe-commits
ojhunt wrote: > This should come with a release note so users know about the new builtins, > right? I'm wondering if we should actually just have the release notes say something like "Added support for ARMv{revision} pointer authentication, see the `pointer authentication` section for details

[clang] [Clang] Deprecate `__is_trivially_relocatable` (PR #138835)

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

[clang] [flang] [llvm] [openmp] [Flang][OpenMP] Move builtin .mod generation into runtimes (PR #137828)

2025-05-07 Thread Michael Kruse via cfe-commits
Meinersbur wrote: > Just want to make sure: Should it be > `$prefix/lib/clang/${LLVM_VERSION_MAJOR}/finclude//*.mod`? That is correct, I forgot the version number that is part of the resource directory. https://github.com/llvm/llvm-project/pull/137828 ___

[clang] [clang][Unit Test] Updating Negative Stat Caching Diagnostic Unit Test (PR #138955)

2025-05-07 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu created https://github.com/llvm/llvm-project/pull/138955 This PR makes a minor modification to make it more stable. The only change is adding a suffix to the path under test. >From 1078b4a257ed1ed8d955b2041df73977fa45e3ed Mon Sep 17 00:00:00 2001 From: Qiongsi Wu

[clang] [Modules] Don't fail when an unused textual header is missing. (PR #138227)

2025-05-07 Thread Michael Spencer via cfe-commits
https://github.com/Bigcheese approved this pull request. Just looking at the `missing_textual_header` module alone this is a bit odd, but that's just the semantics of textual headers. Really textual headers just exist to control the non-modular include warning, so this is fine. https://github.

[clang] [clang][Unit Test] Updating Negative Stat Caching Diagnostic Unit Test (PR #138955)

2025-05-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Qiongsi Wu (qiongsiwu) Changes This PR makes a minor modification to make it more stable. The only change is adding a suffix to the path under test. --- Full diff: https://github.com/llvm/llvm-project/pull/138955.diff 1 Files Affected

[clang] [clang][Unit Test] Updating Negative Stat Caching Diagnostic Unit Test (PR #138955)

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

[clang] [ItaniumMangle] Make sure class types are added to the dictionary of substitution candidates when compiling for older ABIs (PR #138947)

2025-05-07 Thread Akira Hatanaka via cfe-commits
ahatanak wrote: > > Can you confirm that the intent here is to restore mangler behavior to what > > it was prior to #132401, making the pair of PRs ABI-neutral? > > I a bit confused here as well. The description on the PR doesn't say this, > but the patch seems to claim that #132401 fixed a bu

[clang] [llvm] [aarch64][x86][win] Add compiler support for MSVC's /funcoverride flag (Windows kernel loader replaceable functions) (PR #125320)

2025-05-07 Thread Daniel Paoliello via cfe-commits
@@ -7613,6 +7613,9 @@ def import_call_optimization : Flag<["-"], "import-call-optimization">, "by the Windows kernel to enable import call optimization">, MarshallingInfoFlag>; +def replaceable_function: Joined<["-"], "loader-replaceable-function=">, + Marsh

[clang] [clang][modules][deps] Optimize in-process timestamping of PCMs (PR #137363)

2025-05-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux` running on `sanitizer-buildbot1` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/66/builds/13630 Here is the relevant piece of the

[clang] [clang-tools-extra] [clang][modules] Timestamp-less validation API (PR #138983)

2025-05-07 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 created https://github.com/llvm/llvm-project/pull/138983 Timestamps are an implementation detail of the cross-process module cache implementation. This PR hide it from the `ModuleCache` API, which simplifies the in-process implementation. >From 8d594dd6ffdf2601

<    1   2   3   4   5   >