[clang] [libclang] Remove unnecessary casts (NFC) (PR #152259)

2025-08-05 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/152259 stringVal is already of char *. >From 633a2261fac10c1f271905603955c9ef14d81798 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 5 Aug 2025 08:03:57 -0700 Subject: [PATCH] [libclang] Remove unnecess

[clang-tools-extra] [clangd] Implement simple folding for preprocessor branches (PR #140959)

2025-08-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-tools-extra/clangd/SemanticSelection.cpp cla

[clang-tools-extra] Use resolved path when filtering in IncludeInserter (PR #148371)

2025-08-05 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 commented: Thanks for the update! https://github.com/llvm/llvm-project/pull/148371 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Use resolved path when filtering in IncludeInserter (PR #148371)

2025-08-05 Thread Nathan Ridge via cfe-commits
@@ -344,6 +344,21 @@ TEST_F(HeadersTest, ShortenIncludesInSearchPathBracketed) { EXPECT_EQ(calculate(BarHeader), ""); } +TEST_F(HeadersTest, ShortenIncludesInSearchPathBracketedFilterByFullPath) { + // The filter receives the full path of the header, so it is able to filter

[clang-tools-extra] Use resolved path when filtering in IncludeInserter (PR #148371)

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

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

2025-08-05 Thread Oliver Hunt via cfe-commits
@@ -597,6 +611,18 @@ _LIBUNWIND_EXPORT uintptr_t _Unwind_GetIP(struct _Unwind_Context *context) { unw_cursor_t *cursor = (unw_cursor_t *)context; unw_word_t result; __unw_get_reg(cursor, UNW_REG_IP, &result); + +#if __has_feature(ptrauth_calls) + // If we are in an arm6

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

2025-08-05 Thread Oliver Hunt via cfe-commits
@@ -2140,6 +2241,13 @@ class _LIBUNWIND_HIDDEN Registers_arm { uint32_t getIP() const { return _registers.__pc; } void setIP(uint32_t value) { _registers.__pc = value; } + typedef uint32_t reg_t; + typedef uint32_t link_reg_t; + void loadAndAuthentica

[clang] [clang][bytecode][NFC] Only collect non-null args if we have to (PR #152074)

2025-08-05 Thread Timm Baeder via cfe-commits
@@ -2064,7 +2069,7 @@ bool Compiler::visitCallArgs(ArrayRef Args, return false; } -if (FuncDecl && NonNullArgs[ArgIndex]) { +if (HasNonNullAttr && NonNullArgs[ArgIndex]) { tbaederr wrote: Yeah, that should work too https://github.com/llvm

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

2025-08-05 Thread Oliver Hunt via cfe-commits
@@ -207,7 +211,8 @@ bool DwarfInstructions::isReturnAddressSignedWithPC(A &addressSpace, #endif template -int DwarfInstructions::stepWithDwarf(A &addressSpace, pint_t pc, +int DwarfInstructions::stepWithDwarf(A &addressSpace, + typen

[clang] [Clang][RISCV] Loosen the requirement of -fcf-protection=return to zimop (PR #152252)

2025-08-05 Thread Ming-Yi Lai via cfe-commits
https://github.com/mylai-mtk approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/152252 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-08-05 Thread Oliver Hunt via cfe-commits
@@ -377,13 +395,32 @@ const char *CFI_Parser::parseCIE(A &addressSpace, pint_t cie, case 'z': cieInfo->fdesHaveAugmentationData = true; break; - case 'P': + case 'P': { cieInfo->personalityEncoding = addressSpace.get8(p); ++p;

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation directive and "looprange" clause (PR #139293)

2025-08-05 Thread Roger Ferrer Ibáñez via cfe-commits
@@ -1479,7 +1492,109 @@ class SemaOpenMP : public SemaBase { bool checkTransformableLoopNest( OpenMPDirectiveKind Kind, Stmt *AStmt, int NumLoops, SmallVectorImpl &LoopHelpers, - Stmt *&Body, SmallVectorImpl> &OriginalInits); + Stmt *&Body, SmallVectorIm

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

2025-08-05 Thread Oliver Hunt via cfe-commits
@@ -63,10 +67,11 @@ class DwarfInstructions { pint_t cfa, const RegisterLocation &savedReg); static pint_t getCFA(A &addressSpace, const PrologInfo &prolog, - const R ®isters) { -if (prolog.cfaRegister != 0) -

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

2025-08-05 Thread Oliver Hunt via cfe-commits
@@ -129,26 +129,29 @@ struct UnwindInfoSections { defined(_LIBUNWIND_SUPPORT_COMPACT_UNWIND) || \ defined(_LIBUNWIND_USE_DL_ITERATE_PHDR) // No dso_base for SEH. - uintptr_t dso_base; + uintptr_t __ptrauth_unwind_info_section_dso_

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

2025-08-05 Thread Oliver Hunt via cfe-commits
@@ -21,6 +21,44 @@ #include "cxa_handlers.h" #include "private_typeinfo.h" #include "unwind.h" +#include "libunwind.h" + +#if __has_include() +# include +#endif + +#if __has_extension(ptrauth_qualifier) +// The actual value of the discriminators listed below is not important.

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

2025-08-05 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/143230 >From 7882528d14f3e7c7f834c82735b950b5a4d4a87f Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Tue, 5 Aug 2025 18:16:32 -0700 Subject: [PATCH] [runtimes][PAC] Harden unwinding when possible (#138571) This harde

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation directive and "looprange" clause (PR #139293)

2025-08-05 Thread Roger Ferrer Ibáñez via cfe-commits
@@ -1479,7 +1492,109 @@ class SemaOpenMP : public SemaBase { bool checkTransformableLoopNest( OpenMPDirectiveKind Kind, Stmt *AStmt, int NumLoops, SmallVectorImpl &LoopHelpers, - Stmt *&Body, SmallVectorImpl> &OriginalInits); + Stmt *&Body, SmallVectorIm

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation directive and "looprange" clause (PR #139293)

2025-08-05 Thread Roger Ferrer Ibáñez via cfe-commits
@@ -11664,6 +11664,17 @@ def note_omp_implicit_dsa : Note< "implicitly determined as %0">; def err_omp_loop_var_dsa : Error< "loop iteration variable in the associated loop of 'omp %1' directive may not be %0, predetermined as %2">; +def err_omp_not_canonical_loop : Error<

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation directive and "looprange" clause (PR #139293)

2025-08-05 Thread Roger Ferrer Ibáñez via cfe-commits
@@ -11664,6 +11664,17 @@ def note_omp_implicit_dsa : Note< "implicitly determined as %0">; def err_omp_loop_var_dsa : Error< "loop iteration variable in the associated loop of 'omp %1' directive may not be %0, predetermined as %2">; +def err_omp_not_canonical_loop : Error<

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation directive and "looprange" clause (PR #139293)

2025-08-05 Thread Roger Ferrer Ibáñez via cfe-commits
@@ -11664,6 +11664,17 @@ def note_omp_implicit_dsa : Note< "implicitly determined as %0">; def err_omp_loop_var_dsa : Error< "loop iteration variable in the associated loop of 'omp %1' directive may not be %0, predetermined as %2">; +def err_omp_not_canonical_loop : Error<

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation directive and "looprange" clause (PR #139293)

2025-08-05 Thread Roger Ferrer Ibáñez via cfe-commits
@@ -1479,7 +1492,109 @@ class SemaOpenMP : public SemaBase { bool checkTransformableLoopNest( OpenMPDirectiveKind Kind, Stmt *AStmt, int NumLoops, SmallVectorImpl &LoopHelpers, - Stmt *&Body, SmallVectorImpl> &OriginalInits); + Stmt *&Body, SmallVectorIm

[clang] [Clang][RISCV] Loosen the requirement of -fcf-protection=return to zimop (PR #152252)

2025-08-05 Thread Kito Cheng via cfe-commits
https://github.com/kito-cheng approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/152252 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] performance-unnecessary-copy-initialization: Enhance the check for the scenario with MemberExpr initialization. (PR #151936)

2025-08-05 Thread Victor Chernyakin via cfe-commits
@@ -369,6 +387,18 @@ void UnnecessaryCopyInitialization::diagnoseCopyFromLocalVar( maybeIssueFixes(Ctx, Diagnostic); } +void UnnecessaryCopyInitialization::diagnoseCopyFromConstLocalVarMember( +const CheckContext &Ctx, const VarDecl &OldVar) { + auto Diagnostic = +

[clang-tools-extra] [clang-tidy] performance-unnecessary-copy-initialization: Enhance the check for the scenario with MemberExpr initialization. (PR #151936)

2025-08-05 Thread Victor Chernyakin via cfe-commits
@@ -170,6 +170,11 @@ Changes in existing checks when the format string is converted to a different type by an implicit constructor call. +- Improved :doc:`performance-unnecessary-copy-initialization + ` check by + adding detection for the local variables initialized wit

[clang-tools-extra] [clang-tidy] performance-unnecessary-copy-initialization: Enhance the check for the scenario with MemberExpr initialization. (PR #151936)

2025-08-05 Thread Victor Chernyakin via cfe-commits
@@ -939,3 +939,28 @@ template bool OperatorWithNoDirectCallee(T t) { return a1 == t; } +bool CopiedFromConstRefParmVar(const Struct &crs, const Struct cs, Struct &rs, Struct s) { + const auto m1 = crs.Member; + // CHECK-MESSAGES: [[@LINE-1]]:14: warning: local copy 'm1' o

[libclc] [libclc] Set TARGET_FILE property for prepare-${obj_suffix} target (PR #152245)

2025-08-05 Thread Wenju He via cfe-commits
https://github.com/wenju-he created https://github.com/llvm/llvm-project/pull/152245 The target's output bitcode `libclc_builtins_lib` is located in a sub-directory in clang resource directory since df7473673214. Setting TARGET_FILE property can allow targets in non-libclc project to obtain th

[clang] [clang] Respect [[gnu::error]] on functions passed to [[gnu::cleanup]] (PR #152082)

2025-08-05 Thread via cfe-commits
https://github.com/Mr-Anyone updated https://github.com/llvm/llvm-project/pull/152082 >From c0fda068d6a17845593702ea6198ad458bec217d Mon Sep 17 00:00:00 2001 From: Vincent Date: Tue, 5 Aug 2025 13:39:02 +0800 Subject: [PATCH 1/3] [clang] Emit Error for Cleanup Attribute Functions Marked with E

[clang] [llvm] [RISCV] Add SpacemiT XSMTVDot (SpacemiT Vector Dot Product) extension. (PR #151706)

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

[clang] [llvm] [RISCV] Add SpacemiT XSMTVDot (SpacemiT Vector Dot Product) extension. (PR #151706)

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

[clang] ee6afeb - [NFC] [C++20] [Modules] Lookup in cache before checking if the primary template is an exposure

2025-08-05 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2025-08-06T10:00:03+08:00 New Revision: ee6afeb72ef2cee918c1338c926c481ad36aa915 URL: https://github.com/llvm/llvm-project/commit/ee6afeb72ef2cee918c1338c926c481ad36aa915 DIFF: https://github.com/llvm/llvm-project/commit/ee6afeb72ef2cee918c1338c926c481ad36aa915.diff LO

[clang-tools-extra] [clangd] Implement simple folding for preprocessor branches (PR #140959)

2025-08-05 Thread via cfe-commits
https://github.com/aketchum15 updated https://github.com/llvm/llvm-project/pull/140959 >From f6abf494febe7becb42dd24071a3309c2d4b66d5 Mon Sep 17 00:00:00 2001 From: Ruihua Dong Date: Fri, 17 Jan 2025 12:52:19 +0500 Subject: [PATCH 1/6] [clangd] Implement simple folding of preprocessor branches

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-08-05 Thread Owen Pan via cfe-commits
owenca wrote: > > IMO, the best place to handle this is in FormatTokenLexer::getNextToken(). > > I see you have much more experience in this part of the codebase, but I have > some hangups because I don't understand the implications of doing this move > myself. Here's what I'm thinking; are th

[clang] [llvm] [RISCV] Add SpacemiT XSMTVDot (SpacemiT Vector Dot Product) extension. (PR #151706)

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

[clang] [llvm] [RISCV] Add SpacemiT XSMTVDot (SpacemiT Vector Dot Product) extension. (PR #151706)

2025-08-05 Thread via cfe-commits
@@ -531,6 +531,9 @@ The current vendor extensions supported are: ``XAndesVDot`` LLVM implements `version 5.0.0 of the Andes Vector Dot Product Extension specification

[libclc] [libclc] Move mem_fence and barrier to clc library (PR #151446)

2025-08-05 Thread Wenju He via cfe-commits
https://github.com/wenju-he closed https://github.com/llvm/llvm-project/pull/151446 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Move mem_fence and barrier to clc library (PR #151446)

2025-08-05 Thread Wenju He via cfe-commits
@@ -0,0 +1,37 @@ +//===--===// +// +// 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: Apac

[libclc] af16fc2 - [libclc] Move mem_fence and barrier to clc library (#151446)

2025-08-05 Thread via cfe-commits
Author: Wenju He Date: 2025-08-06T09:49:28+08:00 New Revision: af16fc2e2a50c1cbac49726ea70739ad6e193729 URL: https://github.com/llvm/llvm-project/commit/af16fc2e2a50c1cbac49726ea70739ad6e193729 DIFF: https://github.com/llvm/llvm-project/commit/af16fc2e2a50c1cbac49726ea70739ad6e193729.diff LOG:

[clang] [HLSL][SPIRV] Add vk::binding attribute (PR #150957)

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

[clang] fe0948c - [HLSL][SPIRV] Add vk::binding attribute (#150957)

2025-08-05 Thread via cfe-commits
Author: Steven Perron Date: 2025-08-05T21:00:06-04:00 New Revision: fe0948c9a5d4ad0255c94306b16ac977c2e84ee0 URL: https://github.com/llvm/llvm-project/commit/fe0948c9a5d4ad0255c94306b16ac977c2e84ee0 DIFF: https://github.com/llvm/llvm-project/commit/fe0948c9a5d4ad0255c94306b16ac977c2e84ee0.diff

[clang] [OpenACC] Improve C++20 compatibility of private/firstprivate test (PR #152233)

2025-08-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Douglas (dgg5503) Changes Under C++17, `DeletedCopy` and `DefaultedCopy` in the test `clang/test/SemaOpenACC/private_firstprivate_reduction_required_ops.cpp` are eligible for aggregate initialization. Under C++20 and up, that is no longer

[clang] [OpenACC] Improve C++20 compatibility of private/firstprivate test (PR #152233)

2025-08-05 Thread via cfe-commits
https://github.com/dgg5503 created https://github.com/llvm/llvm-project/pull/152233 Under C++17, `DeletedCopy` and `DefaultedCopy` in the test `clang/test/SemaOpenACC/private_firstprivate_reduction_required_ops.cpp` are eligible for aggregate initialization. Under C++20 and up, that is no long

[clang] 813e477 - Mention MTE in the HWASan design doc.

2025-08-05 Thread Peter Collingbourne via cfe-commits
Author: Peter Collingbourne Date: 2025-08-05T17:49:05-07:00 New Revision: 813e477155dee55d69297acbeac135b86ee72751 URL: https://github.com/llvm/llvm-project/commit/813e477155dee55d69297acbeac135b86ee72751 DIFF: https://github.com/llvm/llvm-project/commit/813e477155dee55d69297acbeac135b86ee72751

[clang] [Clang][NFC] Enumerate Clang ABI versions in a separate header file (PR #151995)

2025-08-05 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt edited https://github.com/llvm/llvm-project/pull/151995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Enumerate Clang ABI versions in a separate header file (PR #151995)

2025-08-05 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt edited https://github.com/llvm/llvm-project/pull/151995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Enumerate Clang ABI versions in a separate header file (PR #151995)

2025-08-05 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt edited https://github.com/llvm/llvm-project/pull/151995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Enumerate Clang ABI versions in a separate header file (PR #151995)

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

[clang] [Clang][NFC] Enumerate Clang ABI versions in a separate header file (PR #151995)

2025-08-05 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt edited https://github.com/llvm/llvm-project/pull/151995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_f4 instructions (PR #152194)

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

[clang] 34aed0e - [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_f4 instructions (#152194)

2025-08-05 Thread via cfe-commits
Author: Stanislav Mekhanoshin Date: 2025-08-05T15:15:21-07:00 New Revision: 34aed0ed5615583a8f1aaf9c036cc69fa88b3503 URL: https://github.com/llvm/llvm-project/commit/34aed0ed5615583a8f1aaf9c036cc69fa88b3503 DIFF: https://github.com/llvm/llvm-project/commit/34aed0ed5615583a8f1aaf9c036cc69fa88b35

[clang] [HLSL] Add support for fixed-size global resource arrays (PR #152209)

2025-08-05 Thread Steven Perron via cfe-commits
s-perron wrote: I'll see what I can do. I'm on vacation right now. I need to make the change you suggested https://github.com/llvm/llvm-project/pull/152209 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang] [HLSL] Add support for fixed-size global resource arrays (PR #152209)

2025-08-05 Thread Helena Kotas via cfe-commits
hekota wrote: Making this a draft for now because it only supports `register` binding and it will have conflicts with the change that adds `[[vk:binding]]` attribute (#150957). Once that gets merged, I will update this PR to resolve the conflicts and add `[[vk:binding]]` support for arrays as

[clang] [analyzer] Drop assertion enforcing that assume args are known constants (PR #151908)

2025-08-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `clang` at step 6 "test-build-unified-tree-check-clang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/34807 Here is the r

[clang] [HLSL] Add support for fixed-size global resource arrays (PR #152209)

2025-08-05 Thread Helena Kotas via cfe-commits
https://github.com/hekota created https://github.com/llvm/llvm-project/pull/152209 Adds support for fixed-size resource arrays declared at the global scope. When a global resource array is indexed to access an individual resource, codegen will translate the `ArraySubscriptExpr` into a construc

[clang] [analyzer] Drop assertion enforcing that assume args are known constants (PR #151908)

2025-08-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-x86_64-debian-fast` running on `gribozavr4` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/32629 Here is the rel

[clang] [clang] Fix constant evaluation of member pointer access into sibling class. (PR #150829)

2025-08-05 Thread via cfe-commits
github-actions[bot] wrote: @keinflue Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build

[clang] [clang] Fix constant evaluation of member pointer access into sibling class. (PR #150829)

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

[clang] 81ed756 - [clang] Fix constant evaluation of member pointer access into sibling class. (#150829)

2025-08-05 Thread via cfe-commits
Author: keinflue Date: 2025-08-05T14:44:15-07:00 New Revision: 81ed75679dcfb0b60764db1c8e0a91065a26a742 URL: https://github.com/llvm/llvm-project/commit/81ed75679dcfb0b60764db1c8e0a91065a26a742 DIFF: https://github.com/llvm/llvm-project/commit/81ed75679dcfb0b60764db1c8e0a91065a26a742.diff LOG:

[clang] [clang] Fix constant evaluation of member pointer access into sibling class. (PR #150829)

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

[clang] [clang] Fix constant evaluation of member pointer access into sibling class. (PR #150829)

2025-08-05 Thread Justin Stitt via cfe-commits
@@ -43,6 +43,26 @@ C++ Specific Potentially Breaking Changes regressions if your build system supports two-phase compilation model but haven't support reduced BMI or it is a compiler bug or a bug in users code. +- Clang now correctly diagnoses during constant expression e

[clang] [llvm] [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_f4 instructions (PR #152194)

2025-08-05 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/152194 >From 27300f7d2c75bcae3cf94a2c31ac958705d6a9ee Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Tue, 5 Aug 2025 12:42:36 -0700 Subject: [PATCH] [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_f4 in

[clang] [clang] Fix constant evaluation of member pointer access into sibling class. (PR #150829)

2025-08-05 Thread via cfe-commits
keinflue wrote: @erichkeane I do not have commit access, so I would appreciate if you could do it for me. The state of the PR should be fine, unless I should squash and rebase first myself. https://github.com/llvm/llvm-project/pull/150829 ___ cfe-com

[clang] [clang] Fix constant evaluation of member pointer access into sibling class. (PR #150829)

2025-08-05 Thread via cfe-commits
https://github.com/keinflue edited https://github.com/llvm/llvm-project/pull/150829 ___ 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-05 Thread via cfe-commits
PiJoules wrote: @moorabbit could you split the check into individual ones akin to https://github.com/llvm/llvm-project/pull/148310 https://github.com/llvm/llvm-project/pull/151348 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.l

[clang] [llvm] [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_f4 instructions (PR #152194)

2025-08-05 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/152194 >From 27300f7d2c75bcae3cf94a2c31ac958705d6a9ee Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Tue, 5 Aug 2025 12:42:36 -0700 Subject: [PATCH] [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_f4 in

[clang] [llvm] [HLSL][DirectX] Add the `Qdx-rootsignature-strip` driver option (PR #152196)

2025-08-05 Thread Finn Plummer via cfe-commits
inbelic wrote: >From discussion, turning this back into a draft to investigate if we could >have a `dx.codegenopts` or can avoid using metadata based on how some other >options are used. https://github.com/llvm/llvm-project/pull/152196 ___ cfe-commit

[clang] [llvm] [HLSL][DirectX] Add the `Qdx-rootsignature-strip` driver option (PR #152196)

2025-08-05 Thread Finn Plummer via cfe-commits
https://github.com/inbelic converted_to_draft https://github.com/llvm/llvm-project/pull/152196 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix Clang bug that -Wformat-signedness is not reported properly. (PR #150962)

2025-08-05 Thread Karl-Johan Karlsson via cfe-commits
karka228 wrote: > Note that PR [74440](https://github.com/llvm/llvm-project/pull/74440) > contains a review comment that the following property would be good: > "diagnostic text shows the name of the warning flag (in case you need to look > it up or disable it)" That being said, this change re

[clang] [compiler-rt] [ubsan_minimal] Allow UBSan handler from Minimal runtime to acceprt arguments (PR #152192)

2025-08-05 Thread Andrew Lazarev via cfe-commits
https://github.com/alazarev updated https://github.com/llvm/llvm-project/pull/152192 >From adf6d324a6681acb9fc837dd08afd180eaf46306 Mon Sep 17 00:00:00 2001 From: Andrew Lazarev Date: Tue, 5 Aug 2025 18:16:00 + Subject: [PATCH 1/3] [ubsan_minimal] Allow UBSan handler from Minimal runtime t

[clang] [clang] Fix constant evaluation of member pointer access into sibling class. (PR #150829)

2025-08-05 Thread Erich Keane via cfe-commits
erichkeane wrote: I think you're good to go, feel free to click the merge button. Let me know if you don't have commit rights yet, and I'll click it for you :) https://github.com/llvm/llvm-project/pull/150829 ___ cfe-commits mailing list cfe-commits

[clang] [clang][RISCV][Zicfilp] Force user to use `-mcf-branch-label-scheme=unlabeled` (PR #152122)

2025-08-05 Thread Sam Elliott via cfe-commits
@@ -71,21 +71,24 @@ // RUN: --check-prefixes=NO-FLAG,FUNC-SIG-SCHEME-UNUSED %s // Default -mcf-branch-label-scheme is func-sig -// RUN: %clang --target=riscv32 -fcf-protection=branch -S -emit-llvm %s -o - \ -// RUN: | FileCheck --check-prefixes=BRANCH-PROT-FLAG,FUNC-SIG-FLAG %

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

2025-08-05 Thread Richard Smith via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: zygoloid wrote: Oh. Hm, I see. So it looks like there's no way to turn on C++20 or above with OpenCL enabled, and the only way to get a null pointer that's not zero is with OpenCL enabled. (I'm going to grumble here that we've got our command l

[clang] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-08-05 Thread Justin Stitt via cfe-commits
JustinStitt wrote: gentle ping. https://github.com/llvm/llvm-project/pull/148914 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Plus & Minus CompoundAssignment support for ComplexType (PR #150759)

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

[clang] [llvm] [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_f4 instructions (PR #152194)

2025-08-05 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/152194 >From 27300f7d2c75bcae3cf94a2c31ac958705d6a9ee Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Tue, 5 Aug 2025 12:42:36 -0700 Subject: [PATCH] [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_f4 in

[clang] [llvm] [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_f4 instructions (PR #152194)

2025-08-05 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/152194 >From 27300f7d2c75bcae3cf94a2c31ac958705d6a9ee Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Tue, 5 Aug 2025 12:42:36 -0700 Subject: [PATCH] [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_f4 in

[clang] [llvm] [HLSL][DirectX] Add the `Qdx-rootsignature-strip` driver option (PR #152196)

2025-08-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Finn Plummer (inbelic) Changes This pr adds the `Qdx-rootsignature-strip` to the `Clang` and `CC1` driver options. It also adds `Qstrip-rootsignature` as the DXC compatible alias. It implements this by storing the flag information

[clang] [llvm] [HLSL][DirectX] Add the `Qdx-rootsignature-strip` driver option (PR #152196)

2025-08-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-analysis @llvm/pr-subscribers-backend-directx Author: Finn Plummer (inbelic) Changes This pr adds the `Qdx-rootsignature-strip` to the `Clang` and `CC1` driver options. It also adds `Qstrip-rootsignature` as the DXC compatible alias. It implements

[clang] [llvm] [HLSL][DirectX] Add the `Qdx-rootsignature-strip` driver option (PR #152196)

2025-08-05 Thread Finn Plummer via cfe-commits
https://github.com/inbelic created https://github.com/llvm/llvm-project/pull/152196 This pr adds the `Qdx-rootsignature-strip` to the `Clang` and `CC1` driver options. It also adds `Qstrip-rootsignature` as the DXC compatible alias. It implements this by storing the flag information as part of

[clang] [clang] Fix constant evaluation of member pointer access into sibling class. (PR #150829)

2025-08-05 Thread via cfe-commits
keinflue wrote: ping and question: I have addressed the last review via commit and gotten approval. Should I wait for the second review or should I proceed in a different way? https://github.com/llvm/llvm-project/pull/150829 ___ cfe-commits mailing l

[clang] [llvm] [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_f4 instructions (PR #152194)

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

[clang] [llvm] [Flang] Search flang_rt in clang_rt path (PR #151954)

2025-08-05 Thread Tarun Prabhu via cfe-commits
@@ -855,17 +855,26 @@ void ToolChain::addFortranRuntimeLibs(const ArgList &Args, void ToolChain::addFortranRuntimeLibraryPath(const llvm::opt::ArgList &Args, ArgStringList &CmdArgs) const { - // Default to the /../lib directory. Th

[clang] [llvm] [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_f4 instructions (PR #152194)

2025-08-05 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/152194 >From 27300f7d2c75bcae3cf94a2c31ac958705d6a9ee Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Tue, 5 Aug 2025 12:42:36 -0700 Subject: [PATCH] [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_f4 in

[clang] Fix scope of typedefs present inside a template class (PR #146729)

2025-08-05 Thread David Blaikie via cfe-commits
@@ -4189,8 +4189,13 @@ llvm::DICompositeType *CGDebugInfo::CreateLimitedType(const RecordType *Ty) { llvm::MDNode::replaceWithDistinct(llvm::TempDICompositeType(RealDecl)); break; } - - RegionMap[Ty->getDecl()].reset(RealDecl); + if (auto *CTSD = dyn_cast(Ty->g

[clang] Fix scope of typedefs present inside a template class (PR #146729)

2025-08-05 Thread David Blaikie via cfe-commits
@@ -4189,8 +4189,13 @@ llvm::DICompositeType *CGDebugInfo::CreateLimitedType(const RecordType *Ty) { llvm::MDNode::replaceWithDistinct(llvm::TempDICompositeType(RealDecl)); break; } - - RegionMap[Ty->getDecl()].reset(RealDecl); + if (auto *CTSD = dyn_cast(Ty->g

[clang] [llvm] [Flang] Search flang_rt in clang_rt path (PR #151954)

2025-08-05 Thread Paul H. Hargrove via cfe-commits
PHHargrove wrote: Testing with the two new commits _still_ fails to locate `libflang_rt.runtime.a` and *adds* a warning about a non-existent directory in the library search path. ``` $ /opt/llvm/bin/flang ~/Hello/hello.f ld: warning: search path '/opt/llvm/lib/clang/22/lib/darwin' not found l

[clang] [llvm] [Flang] Search flang_rt in clang_rt path (PR #151954)

2025-08-05 Thread Kelvin Li via cfe-commits
https://github.com/kkwli approved this pull request. It works. Thanks. https://github.com/llvm/llvm-project/pull/151954 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_f4 instructions (PR #152194)

2025-08-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Stanislav Mekhanoshin (rampitec) Changes --- Patch is 91.02 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/152194.diff 13 Files Affected: - (modified) clang/include/clang/Basic/BuiltinsAM

[clang] [llvm] [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_f4 instructions (PR #152194)

2025-08-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Stanislav Mekhanoshin (rampitec) Changes --- Patch is 91.02 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/152194.diff 13 Files Affected: - (modified) clang/include/clang/Basic/Bui

[clang] [llvm] [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_f4 instructions (PR #152194)

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

[clang] [llvm] [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_f4 instructions (PR #152194)

2025-08-05 Thread Stanislav Mekhanoshin via cfe-commits
rampitec wrote: * **#152194** https://app.graphite.dev/github/pr/llvm/llvm-project/152194?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/152

[clang] [llvm] [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_f4 instructions (PR #152194)

2025-08-05 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec created https://github.com/llvm/llvm-project/pull/152194 None >From 27300f7d2c75bcae3cf94a2c31ac958705d6a9ee Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Tue, 5 Aug 2025 12:42:36 -0700 Subject: [PATCH] [AMDGPU] Add gfx1250 wmma_scale[16]_f32_32x16x128_

[clang] [compiler-rt] [ubsan_minimal] Allow UBSan handler from Minimal runtime to acceprt arguments (PR #152192)

2025-08-05 Thread Andrew Lazarev via cfe-commits
https://github.com/alazarev updated https://github.com/llvm/llvm-project/pull/152192 >From adf6d324a6681acb9fc837dd08afd180eaf46306 Mon Sep 17 00:00:00 2001 From: Andrew Lazarev Date: Tue, 5 Aug 2025 18:16:00 + Subject: [PATCH 1/2] [ubsan_minimal] Allow UBSan handler from Minimal runtime t

[clang] [compiler-rt] [ubsan_minimal] Allow UBSan handler from Minimal runtime to acceprt arguments (PR #152192)

2025-08-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 c,cpp -- compiler-rt/test/ubsan_minimal/TestCases/misalignme

[clang] [compiler-rt] [ubsan_minimal] Allow UBSan handler from Minimal runtime to acceprt arguments (PR #152192)

2025-08-05 Thread Andrew Lazarev via cfe-commits
https://github.com/alazarev edited https://github.com/llvm/llvm-project/pull/152192 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Use resolved path when filtering in IncludeInserter (PR #148371)

2025-08-05 Thread via cfe-commits
https://github.com/Harald-R updated https://github.com/llvm/llvm-project/pull/148371 >From 6fe2b17e3da0935a10f8b5608388085095534133 Mon Sep 17 00:00:00 2001 From: Harald-R Date: Sat, 12 Jul 2025 16:32:04 +0300 Subject: [PATCH] Use resolved path when filtering in IncludeInserter --- clang-tool

[clang] [compiler-rt] [ubsan_minimal] Allow UBSan handler from Minimal runtime to acceprt arguments (PR #152192)

2025-08-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andrew Lazarev (alazarev) Changes Also renamed minimal-specific WEAK_DEF anchor from __ubsan_report_error to __ubsan_minimal_report_error. A new __ubsan_minimal_report_error accepts address of the variable being inspected. The change inc

[clang] [compiler-rt] [ubsan_minimal] Allow UBSan handler from Minimal runtime to acceprt arguments (PR #152192)

2025-08-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-compiler-rt-sanitizer Author: Andrew Lazarev (alazarev) Changes Also renamed minimal-specific WEAK_DEF anchor from __ubsan_report_error to __ubsan_minimal_report_error. A new __ubsan_minimal_report_error accepts address of the variable being inspected.

[clang] [compiler-rt] [ubsan_minimal] Allow UBSan handler from Minimal runtime to acceprt arguments (PR #152192)

2025-08-05 Thread Andrew Lazarev via cfe-commits
https://github.com/alazarev created https://github.com/llvm/llvm-project/pull/152192 Also renamed minimal-specific WEAK_DEF anchor from __ubsan_report_error to __ubsan_minimal_report_error. A new __ubsan_minimal_report_error accepts address of the variable being inspected. The change increase

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-08-05 Thread Andy MacGregor via cfe-commits
30Wedge wrote: > IMO, the best place to handle this is in FormatTokenLexer::getNextToken(). I see you have much more experience in this part of the codebase, but I have some hangups because I don't understand the implications of doing this move myself. Here's what I'm thinking; are these vali

[clang] [CIR] Plus & Minus CompoundAssignment support for ComplexType (PR #150759)

2025-08-05 Thread Amr Hesham via cfe-commits
@@ -630,6 +654,104 @@ ComplexExprEmitter::emitBinOps(const BinaryOperator *e, QualType promotionTy) { return binOpInfo; } +LValue ComplexExprEmitter::emitCompoundAssignLValue( +const CompoundAssignOperator *e, +mlir::Value (ComplexExprEmitter::*func)(const BinOpInfo

  1   2   3   4   >