[clang] [CIR] Use getDefiningOp() instead of dyn_cast(getDefiningOp()) (NFC) (PR #151217)

2025-08-01 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko updated https://github.com/llvm/llvm-project/pull/151217 >From 320cabcdefda70ba4f3af33f633cf43b834bc1d4 Mon Sep 17 00:00:00 2001 From: xlauko Date: Tue, 29 Jul 2025 21:49:22 +0200 Subject: [PATCH] [CIR] Use getDefiningOp() instead of dyn_cast(getDefiningOp()) (NFC) T

[clang] [clang][test] Split out staticanalyzer portion of Modules/specializations-lazy-load-parentmap-crash.cpp (PR #151259)

2025-08-01 Thread Nathan Chancellor via cfe-commits
https://github.com/nathanchance closed https://github.com/llvm/llvm-project/pull/151259 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a1c3c65 - [clang][test] Split out staticanalyzer portion of Modules/specializations-lazy-load-parentmap-crash.cpp (#151259)

2025-08-01 Thread via cfe-commits
Author: Nathan Chancellor Date: 2025-08-01T23:53:17-07:00 New Revision: a1c3c6554f0fe2a0404268c07017c315f52b5415 URL: https://github.com/llvm/llvm-project/commit/a1c3c6554f0fe2a0404268c07017c315f52b5415 DIFF: https://github.com/llvm/llvm-project/commit/a1c3c6554f0fe2a0404268c07017c315f52b5415.d

[clang] [clang] Proofread LanguageExtensions.rst (PR #151802)

2025-08-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/151802.diff 1 Files Affected: - (modified) clang/docs/LanguageExtensions.rst (+12-12) ``diff diff --git a/clang/docs/LanguageExten

[clang] [clang] Proofread LanguageExtensions.rst (PR #151802)

2025-08-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151802 None >From fbc1226debd167bd6aab94e00e549251996de8d7 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 31 Jul 2025 15:27:43 -0700 Subject: [PATCH] [clang] Proofread LanguageExtensions.rst --- clang/

[clang-tools-extra] [clang-tidy] Use llvm::none_of (NFC) (PR #151801)

2025-08-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Kazu Hirata (kazutakahirata) Changes We can pass a range to llvm::none_if. --- Full diff: https://github.com/llvm/llvm-project/pull/151801.diff 2 Files Affected: - (modified) clang-tools-extra/clang-tidy/bugprone/InvalidEn

[clang] [AST] Use llvm::iterator_range::empty (NFC) (PR #151800)

2025-08-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes With empty, we don't have to repeat the whole expression. --- Full diff: https://github.com/llvm/llvm-project/pull/151800.diff 1 Files Affected: - (modified) clang/lib/AST/MicrosoftMangle.cpp (+1-2)

[clang-tools-extra] [clang-tidy] Use llvm::none_of (NFC) (PR #151801)

2025-08-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151801 We can pass a range to llvm::none_if. >From 97eaab273c441f8e64702a89e9f9b71bd6b1b1cc Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 31 Jul 2025 19:51:08 -0700 Subject: [PATCH] [clang-tidy] Use ll

[clang] [AST] Use llvm::iterator_range::empty (NFC) (PR #151800)

2025-08-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151800 With empty, we don't have to repeat the whole expression. >From 1b1616dacce8fa504baa05d14616d1654130c59b Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 31 Jul 2025 19:56:52 -0700 Subject: [PATCH]

[clang] Insert headers in global module fragment (PR #151624)

2025-08-01 Thread via cfe-commits
https://github.com/JVApen requested changes to this pull request. Looks good, can you extend the testing as indicated in a comment? https://github.com/llvm/llvm-project/pull/151624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.l

[clang] Insert headers in global module fragment (PR #151624)

2025-08-01 Thread via cfe-commits
JVApen wrote: I like the test cases you wrote. I do think we should add at least one extra where we already had some includes in the source code. Such that we know this works in such case as well. (I don't expect failure based on your code) https://github.com

[clang] Insert headers in global module fragment (PR #151624)

2025-08-01 Thread via cfe-commits
https://github.com/JVApen edited https://github.com/llvm/llvm-project/pull/151624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Insert headers in global module fragment (PR #151624)

2025-08-01 Thread via cfe-commits
JVApen wrote: Checking the example of https://clang.llvm.org/docs/StandardCPlusPlusModules.html#abi-breaking-style, there is not really and end where to put the include. It might be advised to put the headers all together after the global module fragment, though restricting the range to that

[clang] [CIR] Use getDefiningOp() instead of dyn_cast(getDefiningOp()) (NFC) (PR #151217)

2025-08-01 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko updated https://github.com/llvm/llvm-project/pull/151217 >From 4d76a80344df0e4543c86613e5c36c02d230b962 Mon Sep 17 00:00:00 2001 From: xlauko Date: Tue, 29 Jul 2025 21:49:22 +0200 Subject: [PATCH] [CIR] Use getDefiningOp() instead of dyn_cast(getDefiningOp()) (NFC) T

[clang] [clang-format] Google Style: disable DerivePointerAlignment. (PR #149602)

2025-08-01 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#151797 https://github.com/llvm/llvm-project/pull/149602 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Google Style: disable DerivePointerAlignment. (PR #149602)

2025-08-01 Thread Owen Pan via cfe-commits
owenca wrote: /cherry-pick 9281797a577b7954521fb9192d41e457ca2ca42e https://github.com/llvm/llvm-project/pull/149602 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Google Style: disable DerivePointerAlignment. (PR #149602)

2025-08-01 Thread Owen Pan via cfe-commits
https://github.com/owenca milestoned https://github.com/llvm/llvm-project/pull/149602 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExprConst] Remove Loc param (PR #151461)

2025-08-01 Thread Timm Baeder via cfe-commits
@@ -14723,9 +14723,10 @@ void Sema::CheckCompleteVariableDeclaration(VarDecl *var) { type->isIntegralOrEnumerationType()) { // In C++98, in-class initialization for a static data member must // be an integer constant expression. - Sourc

[clang] [clang][test] Split out staticanalyzer portion of Modules/specializations-lazy-load-parentmap-crash.cpp (PR #151259)

2025-08-01 Thread Michael Jabbour via cfe-commits
https://github.com/michael-jabbour-sonarsource commented: LGTM. Thank you. https://github.com/llvm/llvm-project/pull/151259 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][diagnostics] Fix fix-it hint parenthesis placement for fold expressions (PR #151790)

2025-08-01 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -verify -std=c++17 -pedantic-errors %s +// RUN: cp %s %t +// RUN: not %clang_cc1 -x c++ -std=c++17 -fixit %t +// RUN: %clang_cc1 -Wall -pedantic-errors -x c++ -std=c++17 %t + +/* This is a test of the various code modification hints that only +

[clang] Insert headers in global module fragment (PR #151624)

2025-08-01 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK updated https://github.com/llvm/llvm-project/pull/151624 >From f7e79ed934bcb05548b6a4d303d6ed6284648f35 Mon Sep 17 00:00:00 2001 From: Mythreya Kuricheti Date: Fri, 1 Aug 2025 01:19:18 -0700 Subject: [PATCH] [libtooling] Insert headers in global module fragment ---

[clang] [clang-tools-extra] [lldb] NFC: Clean up of IntrusiveRefCntPtr construction from raw pointers. (PR #151782)

2025-08-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-fast` running on `sanitizer-buildbot4` while building `clang-tools-extra,clang,lldb` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/13549 Here

[clang] [clang][diagnostics] Fix fix-it hint parenthesis placement for fold expressions (PR #151790)

2025-08-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Iris Shi (el-ev) Changes - Closes #151787 Insert the right parenthesis one token later to correctly enclose the expression. --- Full diff: https://github.com/llvm/llvm-project/pull/151790.diff 3 Files Affected: - (modified) clang/docs

[clang] [clang][diagnostics] Fix fix-it hint parenthesis placement for fold expressions (PR #151790)

2025-08-01 Thread Iris Shi via cfe-commits
https://github.com/el-ev created https://github.com/llvm/llvm-project/pull/151790 - Closes #151787 Insert the right parenthesis one token later to correctly enclose the expression. >From 12e745a621a7fbd30c0991bf52598455b886f37e Mon Sep 17 00:00:00 2001 From: Iris Shi <0...@owo.li> Date: Sat,

[clang] [llvm] [AMDGPU] gfx1250 v_perm_pk16_* instructions (PR #151773)

2025-08-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/31865 Here is t

[clang] [llvm] [AMDGPU] gfx1250 v_perm_pk16_* instructions (PR #151773)

2025-08-01 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec closed https://github.com/llvm/llvm-project/pull/151773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0988510 - [AMDGPU] gfx1250 v_perm_pk16_* instructions (#151773)

2025-08-01 Thread via cfe-commits
Author: Stanislav Mekhanoshin Date: 2025-08-01T20:12:35-07:00 New Revision: 0988510ad436e3fc9e9526dda505c02a53d497a1 URL: https://github.com/llvm/llvm-project/commit/0988510ad436e3fc9e9526dda505c02a53d497a1 DIFF: https://github.com/llvm/llvm-project/commit/0988510ad436e3fc9e9526dda505c02a53d497

[clang] [clang] Introduce elementwise ctlz/cttz builtins (PR #131995)

2025-08-01 Thread Matt Arsenault via cfe-commits
arsenm wrote: > My literal reading of this is already that it's always undefined behaviour > for all targets (as you're requesting), That's not what I'm requesting, it would be an undefined *value*. It is not instant undefined behavior, you would get UB on use of that value https://github.co

[clang] [clang-tools-extra] [lldb] NFC: Clean up of IntrusiveRefCntPtr construction from raw pointers. (PR #151782)

2025-08-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `clang-tools-extra,clang,lldb` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/13997 Here

[clang] [llvm] [AMDGPU] gfx1250 v_cvt_scalef32_sr_pk8_* instructions (PR #151765)

2025-08-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/31862 Here is t

[clang] [llvm] [AMDGPU] gfx1250 v_perm_pk16_* instructions (PR #151773)

2025-08-01 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/151773 >From 17f230e2b5c82ce47a3954f5478813ef113e9928 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Fri, 1 Aug 2025 14:09:42 -0700 Subject: [PATCH] [AMDGPU] gfx1250 v_perm_pk16_* instructions --- clang/

[clang] [llvm] [AMDGPU] gfx1250 v_perm_pk16_* instructions (PR #151773)

2025-08-01 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec edited https://github.com/llvm/llvm-project/pull/151773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] gfx1250 v_cvt_scalef32_sr_pk8_* instructions (PR #151765)

2025-08-01 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec closed https://github.com/llvm/llvm-project/pull/151765 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] cc3932b - [AMDGPU] gfx1250 v_cvt_scalef32_sr_pk8_* instructions (#151765)

2025-08-01 Thread via cfe-commits
Author: Stanislav Mekhanoshin Date: 2025-08-01T19:25:57-07:00 New Revision: cc3932bf290fce1ba13102fbe1af9e1758323f55 URL: https://github.com/llvm/llvm-project/commit/cc3932bf290fce1ba13102fbe1af9e1758323f55 DIFF: https://github.com/llvm/llvm-project/commit/cc3932bf290fce1ba13102fbe1af9e1758323f

[clang] [clang-tools-extra] [lldb] NFC: Clean up of IntrusiveRefCntPtr construction from raw pointers. (PR #151782)

2025-08-01 Thread James Y Knight via cfe-commits
https://github.com/jyknight closed https://github.com/llvm/llvm-project/pull/151782 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4205da0 - NFC: Clean up of IntrusiveRefCntPtr construction from raw pointers. (#151782)

2025-08-01 Thread via cfe-commits
Author: James Y Knight Date: 2025-08-01T22:23:30-04:00 New Revision: 4205da0f130cf86ae6b89bfc36723e7ddba9b0b7 URL: https://github.com/llvm/llvm-project/commit/4205da0f130cf86ae6b89bfc36723e7ddba9b0b7 DIFF: https://github.com/llvm/llvm-project/commit/4205da0f130cf86ae6b89bfc36723e7ddba9b0b7.diff

[clang] Insert headers in global module fragment (PR #151624)

2025-08-01 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: @MythreyaK thanks for the patch! @JVApen I'll let you take a first crack at reviewing this :) Feel free to flag me if you think it needs an additional pair of eyes. https://github.com/llvm/llvm-project/pull/151624 ___ cfe-commit

[clang] [llvm] [Clang][AMDGPU] Add builtins for some buffer resource atomics (PR #149216)

2025-08-01 Thread Matt Arsenault via cfe-commits
@@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -triple amdgcn-unknown-unknown -S -verify=expected -o - %s +// REQUIRES: amdgpu-registered-target + +void test_raw_ptr_atomics(__amdgpu_buffer_rsrc_t rsrc, float f32, double f64, int offset, int soffset) { + f32 = __builtin_amdgcn_raw_ptr_buff

[clang] [llvm] [Clang][AMDGPU] Add builtins for some buffer resource atomics (PR #149216)

2025-08-01 Thread Matt Arsenault via cfe-commits
@@ -459,6 +459,8 @@ void AMDGPU::fillAMDGPUFeatureMap(StringRef GPU, const Triple &T, Features["atomic-global-pk-add-bf16-inst"] = true; Features["atomic-ds-pk-add-16-insts"] = true; Features["setprio-inc-wg-inst"] = true; + Features["atomic-fmin-fmax-gl

[clang] [llvm] [Clang][AMDGPU] Add builtins for some buffer resource atomics (PR #149216)

2025-08-01 Thread Matt Arsenault via cfe-commits
@@ -163,6 +163,13 @@ BUILTIN(__builtin_amdgcn_raw_buffer_load_b64, "V2UiQbiiIi", "n") BUILTIN(__builtin_amdgcn_raw_buffer_load_b96, "V3UiQbiiIi", "n") BUILTIN(__builtin_amdgcn_raw_buffer_load_b128, "V4UiQbiiIi", "n") +BUILTIN(__builtin_amdgcn_raw_ptr_buffer_atomic_add_i32, "i

[clang] [llvm] [Clang][AMDGPU] Add builtins for some buffer resource atomics (PR #149216)

2025-08-01 Thread Matt Arsenault via cfe-commits
@@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -triple amdgcn-unknown-unknown -target-cpu gfx90a -target-feature +atomic-fmin-fmax-global-f32 -target-feature +atomic-fmin-fmax-global-f64 -S -verify=expected -o - %s +// RUN: %clang_cc1 -triple amdgcn-unknown-unknown -target-cpu gfx942 -tar

[clang] [Clang][Basic] Enable `__has_feature(cfi)` (PR #151348)

2025-08-01 Thread Florian Mayer via cfe-commits
fmayer wrote: > Also, I just learned that non-standard features are meant to be under > `__has_extension` (`EXTENSION` macro) instead of `__has_feature`. See > > https://github.com/llvm/llvm-project/blob/154354e60e46debb68716cde867cb4e325ce5eb7/clang/include/clang/Basic/Features.def#L20 Given

[clang] [Clang][Basic] Enable `__has_feature(cfi)` (PR #151348)

2025-08-01 Thread Peter Collingbourne via cfe-commits
pcc wrote: Also, I just learned that non-standard features are meant to be under `__has_extension` (`EXTENSION` macro) instead of `__has_feature`. See https://github.com/llvm/llvm-project/blob/154354e60e46debb68716cde867cb4e325ce5eb7/clang/include/clang/Basic/Features.def#L20 https://github.co

[clang] [CIR] Upstream builtin lowering emitter & FAbs op (PR #151750)

2025-08-01 Thread Andy Kaylor via cfe-commits
@@ -71,6 +71,19 @@ RValue CIRGenFunction::emitRotate(const CallExpr *e, bool isRotateLeft) { return RValue::get(r); } +template +static RValue emitUnaryMaybeConstrainedFPBuiltin(CIRGenFunction &cgf, + const CallExpr &e) { +

[clang] [CIR] Upstream builtin lowering emitter & FAbs op (PR #151750)

2025-08-01 Thread Andy Kaylor via cfe-commits
@@ -25,6 +25,7 @@ using namespace clang; enum ActionType { PrintRecords, DumpJSON, + GenCIRBuiltinsLowering, andykaylor wrote: All of the changes in this directory need to be guarded by a `CLANG_ENABLE_CIR` preprocessor check, and we'll need approval fro

[clang] [CIR] Upstream builtin lowering emitter & FAbs op (PR #151750)

2025-08-01 Thread Andy Kaylor via cfe-commits
@@ -3199,4 +3199,22 @@ def CIR_ExpectOp : CIR_Op<"expect", [ }]; } +//===--===// +// Floating Point Ops +//===--===// + +class CIR_UnaryFPT

[clang] [CIR] Upstream builtin lowering emitter & FAbs op (PR #151750)

2025-08-01 Thread Andy Kaylor via cfe-commits
@@ -3199,4 +3199,22 @@ def CIR_ExpectOp : CIR_Op<"expect", [ }]; } +//===--===// +// Floating Point Ops +//===--===// + +class CIR_UnaryFPT

[clang] [CIR] Upstream builtin lowering emitter & FAbs op (PR #151750)

2025-08-01 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,108 @@ +//===- CIRLoweringEmitter.cpp - Generate lowering of builtins --=-*- 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][bytecode] Fix a crash in codegen (PR #151515)

2025-08-01 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: Do we get a frontend diagnostic in this case? https://github.com/llvm/llvm-project/pull/151515 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] gfx1250 v_cvt_scalef32_pk8_* instructions (PR #151758)

2025-08-01 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/151758 >From fb0ab28cd513d327611134d55e7652b3be2789d3 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Fri, 1 Aug 2025 12:38:04 -0700 Subject: [PATCH] [AMDGPU] gfx1250 v_cvt_scalef32_pk8_* instructions ---

[clang] [llvm] [AMDGPU] gfx1250 v_cvt_scalef32_pk8_* instructions (PR #151758)

2025-08-01 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec edited https://github.com/llvm/llvm-project/pull/151758 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] gfx1250 v_permlane_* instructions (PR #151749)

2025-08-01 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec closed https://github.com/llvm/llvm-project/pull/151749 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 33abf05 - [AMDGPU] gfx1250 v_permlane_* instructions (#151749)

2025-08-01 Thread via cfe-commits
Author: Stanislav Mekhanoshin Date: 2025-08-01T16:14:19-07:00 New Revision: 33abf05af4f8f7f80856bd018d117c98f8807e87 URL: https://github.com/llvm/llvm-project/commit/33abf05af4f8f7f80856bd018d117c98f8807e87 DIFF: https://github.com/llvm/llvm-project/commit/33abf05af4f8f7f80856bd018d117c98f8807e

[clang] [CUDA] Do not include obsolete texture_fetch_functions.h (PR #151766)

2025-08-01 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B updated https://github.com/llvm/llvm-project/pull/151766 >From 7ad34288652d0f236e87f0c348275bcff5469432 Mon Sep 17 00:00:00 2001 From: Artem Belevich Date: Fri, 1 Aug 2025 13:09:11 -0700 Subject: [PATCH 1/2] [CUDA] Do not include obsolete texture_fetch_functions.h --

[clang] [CUDA] Do not include obsolete texture_fetch_functions.h (PR #151766)

2025-08-01 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B updated https://github.com/llvm/llvm-project/pull/151766 >From 7ad34288652d0f236e87f0c348275bcff5469432 Mon Sep 17 00:00:00 2001 From: Artem Belevich Date: Fri, 1 Aug 2025 13:09:11 -0700 Subject: [PATCH 1/2] [CUDA] Do not include obsolete texture_fetch_functions.h --

[clang] [Clang][Basic] Enable `__has_feature(cfi)` (PR #151348)

2025-08-01 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc requested changes to this pull request. cc @fmayer We have been trying to break `__has_feature(undefined_behavior_sanitizer)` into fine grained checks (#148310). If we have `__has_feature(cfi)`mean CFI || KCFI that is sort of going in the opposite direction. Let's take

[clang] [clang] Introduce elementwise ctlz/cttz builtins (PR #131995)

2025-08-01 Thread Shafik Yaghmour via cfe-commits
@@ -860,3 +860,41 @@ static_assert(__builtin_elementwise_sub_sat(0U, 1U) == 0U); static_assert(__builtin_bit_cast(unsigned, __builtin_elementwise_sub_sat((vector4char){5, 4, 3, 2}, (vector4char){1, 1, 1, 1})) == (LITTLE_END ? 0x01020304 : 0x04030201)); static_assert(__builtin_

[clang] [CIR] Fix outdated bitfield iteration logic in accumulateFields (PR #151741)

2025-08-01 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/151741 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] gfx1250 v_permlane_* instructions (PR #151749)

2025-08-01 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/151749 >From 856e3530e0c3f3fb5358ab1baa7c96a7efc0b4d5 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Fri, 1 Aug 2025 11:48:38 -0700 Subject: [PATCH] [AMDGPU] gfx1250 v_permlane_* instructions --- clang/i

[clang] [CodeGen][counted_by] See past parentheses and no-op casts (PR #151266)

2025-08-01 Thread Bill Wendling via cfe-commits
@@ -471,3 +471,80 @@ size_t test9(struct annotated_sized_ptr *p, int index) { size_t test10(struct annotated_sized_ptr *p, int index) { return __bdos(&((unsigned int *) p->buf)[index]); } + +struct pr151236_struct { +int *a __counted_by(a_count); +short a_coun

[clang] [Docs] Some updates to the Clang user's manual (PR #151702)

2025-08-01 Thread Reid Kleckner via cfe-commits
https://github.com/rnk approved this pull request. Thanks for the updates! https://github.com/llvm/llvm-project/pull/151702 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Basic] Enable `__has_feature(cfi)` (PR #151348)

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

[clang-tools-extra] [clangd] textDocument/documentLink to support include statements with macro argument (PR #137550)

2025-08-01 Thread via cfe-commits
frayien wrote: Nice ! It is the first time I contribute to the LLVM/clang/clangd, and I am not familiar with Github's PR interface anyway, so I don't really know what to do nor what you mean exactly by "landing"... I clicked on "update" as it is the only thing it proposed me but I may have me

[clang-tools-extra] [clang-tidy] Skip declarations in system headers in RenamerClangTidyC… (PR #151772)

2025-08-01 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti approved this pull request. https://github.com/llvm/llvm-project/pull/151772 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CodeGen][counted_by] See past parentheses and no-op casts (PR #151266)

2025-08-01 Thread Shafik Yaghmour via cfe-commits
@@ -471,3 +471,80 @@ size_t test9(struct annotated_sized_ptr *p, int index) { size_t test10(struct annotated_sized_ptr *p, int index) { return __bdos(&((unsigned int *) p->buf)[index]); } + +struct pr151236_struct { +int *a __counted_by(a_count); +short a_coun

[clang] [llvm] [AMDGPU] gfx1250 v_permlane_* instructions (PR #151749)

2025-08-01 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/151749 >From 856e3530e0c3f3fb5358ab1baa7c96a7efc0b4d5 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Fri, 1 Aug 2025 11:48:38 -0700 Subject: [PATCH] [AMDGPU] gfx1250 v_permlane_* instructions --- clang/i

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

2025-08-01 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/149827 >From 9ec9eefb23b0676bcb89c195d96e5a2e1d6c615f Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Fri, 1 Aug 2025 11:04:47 +0100 Subject: [PATCH] Structors init --- clang/include/clang/Basic/Attr.td

[clang] [llvm] [AMDGPU] gfx1250 v_permlane_* instructions (PR #151749)

2025-08-01 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/151749 >From 856e3530e0c3f3fb5358ab1baa7c96a7efc0b4d5 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Fri, 1 Aug 2025 11:48:38 -0700 Subject: [PATCH] [AMDGPU] gfx1250 v_permlane_* instructions --- clang/i

[clang-tools-extra] [clang-tidy] Skip declarations in system headers in RenamerClangTidyC… (PR #151772)

2025-08-01 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp edited https://github.com/llvm/llvm-project/pull/151772 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Skip declarations in system headers in RenamerClangTidyC… (PR #151772)

2025-08-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Carlos Galvez (carlosgalvezp) Changes …heck One typically only wants to perform renaming operations in user code, not in system headers (which are out of the user's control). Let's skip those altogether. This leads to perfor

[clang-tools-extra] [clang-tidy] Skip declarations in system headers in RenamerClangTidyC… (PR #151772)

2025-08-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Carlos Galvez (carlosgalvezp) Changes …heck One typically only wants to perform renaming operations in user code, not in system headers (which are out of the user's control). Let's skip those altogether. This leads to performance i

[clang-tools-extra] [clang-tidy] Skip declarations in system headers in RenamerClangTidyC… (PR #151772)

2025-08-01 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp created https://github.com/llvm/llvm-project/pull/151772 …heck One typically only wants to perform renaming operations in user code, not in system headers (which are out of the user's control). Let's skip those altogether. This leads to performance improvemen

[clang] [CUDA] Do not include obsolete texture_fetch_functions.h (PR #151766)

2025-08-01 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. https://github.com/llvm/llvm-project/pull/151766 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] gfx1250 v_permlane_* instructions (PR #151749)

2025-08-01 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/151749 >From 2488855dfd455a33353a99112c805b671f5ea244 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Fri, 1 Aug 2025 11:48:38 -0700 Subject: [PATCH] [AMDGPU] gfx1250 v_permlane_* instructions --- clang/i

[clang] [CUDA] Do not include obsolete texture_fetch_functions.h (PR #151766)

2025-08-01 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/Headers/__clang_cuda_runtime_wrapper.h ``

[clang] [CUDA] Do not include obsolete texture_fetch_functions.h (PR #151766)

2025-08-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Artem Belevich (Artem-B) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/151766.diff 1 Files Affected: - (modified) clang/lib/Headers/__clang_cuda_runtime_wrapper.h (+4) ``diff diff --git a/clang/lib/Headers

[clang] [llvm] [AMDGPU] gfx1250 v_permlane_* instructions (PR #151749)

2025-08-01 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/151749 >From 3bf2cbc27a1cc325a634a2afdfe098c39fdbd248 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Fri, 1 Aug 2025 11:48:38 -0700 Subject: [PATCH] [AMDGPU] gfx1250 v_permlane_* instructions --- clang/i

[clang] [CUDA] Do not include obsolete texture_fetch_functions.h (PR #151766)

2025-08-01 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B created https://github.com/llvm/llvm-project/pull/151766 None >From 7ad34288652d0f236e87f0c348275bcff5469432 Mon Sep 17 00:00:00 2001 From: Artem Belevich Date: Fri, 1 Aug 2025 13:09:11 -0700 Subject: [PATCH] [CUDA] Do not include obsolete texture_fetch_functions.h

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

2025-08-01 Thread Bill Wendling via cfe-commits
https://github.com/bwendling updated https://github.com/llvm/llvm-project/pull/141846 >From bfdf16cee252dc6491f15c0715c7a39538fbf120 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 23 Apr 2025 13:14:24 -0700 Subject: [PATCH 01/17] [Clang][attr] Add cfi_salt attribute The new 'cfi_salt'

[clang] [CUDA] Use --image3 to construct fat binary (PR #151760)

2025-08-01 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B closed https://github.com/llvm/llvm-project/pull/151760 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 12eab1a - [CUDA] Use --image3 to construct fat binary (#151760)

2025-08-01 Thread via cfe-commits
Author: Artem Belevich Date: 2025-08-01T13:14:14-07:00 New Revision: 12eab1a7b82d8db0e781862902b674332298162f URL: https://github.com/llvm/llvm-project/commit/12eab1a7b82d8db0e781862902b674332298162f DIFF: https://github.com/llvm/llvm-project/commit/12eab1a7b82d8db0e781862902b674332298162f.diff

[clang] [llvm] [AMDGPU] gfx1250 v_permlane_* instructions (PR #151749)

2025-08-01 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/151749 >From a94f0463e6f768c0321b66b7bcd9982242bb2c26 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Fri, 1 Aug 2025 11:48:38 -0700 Subject: [PATCH] [AMDGPU] gfx1250 v_permlane_* instructions --- clang/i

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

2025-08-01 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 01/17] added undo to docs in same format as %quit --- clang/docs/

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

2025-08-01 Thread Bill Wendling via cfe-commits
https://github.com/bwendling updated https://github.com/llvm/llvm-project/pull/141846 >From bfdf16cee252dc6491f15c0715c7a39538fbf120 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 23 Apr 2025 13:14:24 -0700 Subject: [PATCH 01/16] [Clang][attr] Add cfi_salt attribute The new 'cfi_salt'

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

2025-08-01 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp 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][attr] Add 'kcfi_salt' attribute (PR #141846)

2025-08-01 Thread Bill Wendling via cfe-commits
@@ -3929,6 +3929,14 @@ def CFICanonicalJumpTable : InheritableAttr { let SimpleHandler = 1; } +def CFISalt : DeclOrTypeAttr { + let Spellings = [Clang<"cfi_salt">]; + let Args = [StringArgument<"Salt">]; + let Subjects = SubjectList<[Function, Field, Var, TypedefName], Er

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

2025-08-01 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] [CUDA] Use --image3 to construct fat binary (PR #151760)

2025-08-01 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B updated https://github.com/llvm/llvm-project/pull/151760 >From a3359f2959d2f161be88c49e5fece6d6fc73bf6b Mon Sep 17 00:00:00 2001 From: Artem Belevich Date: Fri, 1 Aug 2025 12:23:06 -0700 Subject: [PATCH] [CUDA] Use --image3 to construct fat binary CUDA-12.9 has remov

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

2025-08-01 Thread Bill Wendling via cfe-commits
@@ -3643,6 +3643,64 @@ make the function's CFI jump table canonical. See :ref:`the CFI documentation }]; } +def KCFISaltDocs : Documentation { + let Category = DocCatFunction; + let Content = [{ +Use ``__attribute__((kcfi_salt("")))`` on a function declaration, function

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

2025-08-01 Thread Bill Wendling via cfe-commits
https://github.com/bwendling updated https://github.com/llvm/llvm-project/pull/141846 >From bfdf16cee252dc6491f15c0715c7a39538fbf120 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 23 Apr 2025 13:14:24 -0700 Subject: [PATCH 01/15] [Clang][attr] Add cfi_salt attribute The new 'cfi_salt'

[clang] [CUDA] Use --image3 to construct fat binary (PR #151760)

2025-08-01 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. https://github.com/llvm/llvm-project/pull/151760 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CUDA] Use --image3 to construct fat binary (PR #151760)

2025-08-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Artem Belevich (Artem-B) Changes CUDA-12.9 has removed fatbinary tool's `--image` argument we've been using till now. --image3 has been supported since cuda-9, so we do not need CUDA SDK version checks.

[clang] [CUDA] Use --image3 to construct fat binary (PR #151760)

2025-08-01 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B created https://github.com/llvm/llvm-project/pull/151760 CUDA-12.9 has removed fatbinary tool's `--image` argument we've been using till now. --image3 has been supported since cuda-9, so we do not need CUDA SDK version checks. >From 098ea946feb9d2f95d1a0913bd7d24cb

[clang] [llvm] [AMDGPU] gfx1250 v_permlane_* instructions (PR #151749)

2025-08-01 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/151749 >From 004783894769d831e3dc1c14d9acf6cc3e80a508 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Fri, 1 Aug 2025 11:48:38 -0700 Subject: [PATCH] [AMDGPU] gfx1250 v_permlane_* instructions --- clang/i

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

2025-08-01 Thread Bill Wendling via cfe-commits
https://github.com/bwendling edited https://github.com/llvm/llvm-project/pull/141846 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Basic] Enable `__has_feature(cfi)` (PR #151348)

2025-08-01 Thread via cfe-commits
moorabbit wrote: There's also a problem that caused a driver test to fail. I fixed it in [b6a7ce7](https://github.com/llvm/llvm-project/pull/151348/commits/b6a7ce7e3f4f51ca71f813d931362a710abd7d87). The issue was that the driver was not expecting `-fsanitize=cfi` to also enable the `cfi-cast-s

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

2025-08-01 Thread Bill Wendling via cfe-commits
https://github.com/bwendling updated https://github.com/llvm/llvm-project/pull/141846 >From bfdf16cee252dc6491f15c0715c7a39538fbf120 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 23 Apr 2025 13:14:24 -0700 Subject: [PATCH 01/14] [Clang][attr] Add cfi_salt attribute The new 'cfi_salt'

[clang] [clang] Avoid inheriting [[noreturn]] in explicit function template specializations (PR #150003)

2025-08-01 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#151752 https://github.com/llvm/llvm-project/pull/150003 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-08-01 Thread Bill Wendling via cfe-commits
https://github.com/bwendling updated https://github.com/llvm/llvm-project/pull/141846 >From bfdf16cee252dc6491f15c0715c7a39538fbf120 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 23 Apr 2025 13:14:24 -0700 Subject: [PATCH 01/13] [Clang][attr] Add cfi_salt attribute The new 'cfi_salt'

[clang] [llvm] [ARM] enable FENV_ACCESS pragma support for hard-float targets (PR #137101)

2025-08-01 Thread Erik Enikeev via cfe-commits
Varnike wrote: Hi, I added the processing of remaining strict fp ops for VFP and adjusted the tests. Could you please review these changes and tell what else needs to be done? I also have a question about whether it's necessary to change the instruction selection patterns for MVE and NEON (as

  1   2   3   4   5   >