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

2025-07-29 Thread Mythreya Kuricheti via cfe-commits
@@ -3294,18 +3294,27 @@ TEST(SignatureHelpTest, SkipExplicitObjectParameter) { const auto Result = signatureHelp(testPath(TU.Filename), Code.point("c1"), *Preamble, Inputs, MarkupKind::PlainText); -EXPECT_EQ(1, Result.signatures.s

[clang] clang: Make the type_info builtin declaration a singleton (PR #151277)

2025-07-29 Thread via cfe-commits
https://github.com/matts1 updated https://github.com/llvm/llvm-project/pull/151277 >From ec1e6069deb5c5ed161942089457ee05386d692e Mon Sep 17 00:00:00 2001 From: Matt Stark Date: Wed, 30 Jul 2025 15:26:44 +1000 Subject: [PATCH] [clang][modules] Make the type_info builtin declaration a singleton

[clang] [llvm] [PowerPC] Add BCDCOPYSIGN and BCDSETSIGN Instruction Support (PR #144874)

2025-07-29 Thread Aditi Medhane via cfe-commits
https://github.com/AditiRM updated https://github.com/llvm/llvm-project/pull/144874 >From 8e287c19723361b0141c7bf9d1de34b145b9782c Mon Sep 17 00:00:00 2001 From: Aditi-Medhane Date: Thu, 19 Jun 2025 11:04:12 + Subject: [PATCH 1/2] [PowerPC] Add BCDCOPYSIGN and BCDSETSIGN Instruction Suppor

[clang] [llvm] [RISCV] Implement MC support for Zvfbfa extension (PR #151106)

2025-07-29 Thread Luke Lau via cfe-commits
@@ -216,9 +216,12 @@ void RISCVInstPrinter::printVTypeI(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI, raw_ostream &O) { unsigned Imm = MI->getOperand(OpNo).getImm(); // Print the raw immediate for reserved values: vlmul[2:

[clang] clang: Make the type_info builtin declaration a singleton (PR #151277)

2025-07-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Matt (matts1) Changes This fixes an ambiguous type type_info when you try and reference the `type_info` type while using clang modulemaps with `-fms-compatibility` enabled Fixes #38400 --- Full diff: https://github.com/llvm/llvm-

[clang] clang: Make the type_info builtin declaration a singleton (PR #151277)

2025-07-29 Thread via cfe-commits
https://github.com/matts1 ready_for_review https://github.com/llvm/llvm-project/pull/151277 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang: Make the type_info builtin declaration a singleton (PR #151277)

2025-07-29 Thread via cfe-commits
https://github.com/matts1 updated https://github.com/llvm/llvm-project/pull/151277 >From 47d44b2d62cf834c082c87b738a821b2f62a8be5 Mon Sep 17 00:00:00 2001 From: Matt Stark Date: Wed, 30 Jul 2025 15:26:44 +1000 Subject: [PATCH] [clang][modules] Make the type_info builtin declaration a singleton

[clang] [clang-format] Disalbe IntegerLiteralSeparator for C++ before c++14 (PR #151273)

2025-07-29 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/151273 >From 9fab68a7aa71e6ffe6ad6476359a21884b084576 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Tue, 29 Jul 2025 21:09:46 -0700 Subject: [PATCH] [clang-format] Disalbe IntegerLiteralSeparator for C++ before c++14

[clang] [AST] Remove an unnecessary cast (NFC) (PR #151278)

2025-07-29 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/151278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AST] Remove an unnecessary cast (NFC) (PR #151278)

2025-07-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes getSignificantBits() already returns unsigned. --- Full diff: https://github.com/llvm/llvm-project/pull/151278.diff 1 Files Affected: - (modified) clang/include/clang/AST/ASTContext.h (+1-1)

[clang] [AST] Remove an unnecessary cast (NFC) (PR #151278)

2025-07-29 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151278 getSignificantBits() already returns unsigned. >From b54d6c9890e2ea169ee70c7ba27ca4403b05b7d0 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 29 Jul 2025 09:04:49 -0700 Subject: [PATCH] [AST] Remo

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

2025-07-29 Thread Andrey Karlov via cfe-commits
@@ -2668,6 +2668,10 @@ class FunctionDecl : public DeclaratorDecl, /// an attribute on its declaration or its type. bool isNoReturn() const; + /// Determines whether this function is known to be 'noreturn' for analyzer, + /// through an `analyzer_noreturn` attribute on i

[clang] [Clang] Don't allow implicit this access when checking function constraints (PR #151276)

2025-07-29 Thread Younan Zhang via cfe-commits
zyn0217 wrote: (I'll issue a backport in a few days) https://github.com/llvm/llvm-project/pull/151276 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a9d491b - [Clang] Don't allow implicit this access when checking function constraints (#151276)

2025-07-29 Thread via cfe-commits
Author: Younan Zhang Date: 2025-07-30T14:07:06+08:00 New Revision: a9d491b17f4f0a131f68a5dbdac8d34c7c8427db URL: https://github.com/llvm/llvm-project/commit/a9d491b17f4f0a131f68a5dbdac8d34c7c8427db DIFF: https://github.com/llvm/llvm-project/commit/a9d491b17f4f0a131f68a5dbdac8d34c7c8427db.diff

[clang] [Clang] Don't allow implicit this access when checking function constraints (PR #151276)

2025-07-29 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/151276 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang: Make the type_info builtin declaration a singleton (PR #151277)

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

[clang] clang: Make the type_info builtin declaration a singleton (PR #151277)

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

[clang] clang: Fix ambiguous type_info when using clang modules with -fms-compatibility (PR #151277)

2025-07-29 Thread via cfe-commits
matts1 wrote: @atetubou FYI https://github.com/llvm/llvm-project/pull/151277 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang: Fix ambiguous type_info when using clang modules with -fms-compatibility (PR #151277)

2025-07-29 Thread via cfe-commits
@@ -77,6 +77,9 @@ enum PredefinedDeclIDs { /// The internal '__NSConstantString' tag type. PREDEF_DECL_CF_CONSTANT_STRING_TAG_ID, + /// The predeclared 'type_info' struct. + PREDEF_DECL_BUILTIN_MS_TYPE_INFO_TAG_ID, matts1 wrote: Is changing the enum val

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

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

[clang] [Driver][MinGW] Always put libc argument last, even if non-standard (PR #149434)

2025-07-29 Thread Keno Fischer via cfe-commits
https://github.com/Keno closed https://github.com/llvm/llvm-project/pull/149434 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7f47058 - [Driver][MinGW] Always put libc argument last, even if non-standard (#149434)

2025-07-29 Thread via cfe-commits
Author: Keno Fischer Date: 2025-07-30T01:09:27-04:00 New Revision: 7f470586e10543aa12efc7e04d4d4ac814eaca35 URL: https://github.com/llvm/llvm-project/commit/7f470586e10543aa12efc7e04d4d4ac814eaca35 DIFF: https://github.com/llvm/llvm-project/commit/7f470586e10543aa12efc7e04d4d4ac814eaca35.diff

[clang] [llvm] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)

2025-07-29 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: @hoodmane The patch was reverted. https://github.com/llvm/llvm-project/pull/151107 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Revert "[WebAssembly] Add gc target feature to addBleedingEdgeFeatures" (PR #151268)

2025-07-29 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/151268 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a7e029b - Revert "[WebAssembly] Add gc target feature to addBleedingEdgeFeatures" (#151268)

2025-07-29 Thread via cfe-commits
Author: ronlieb Date: 2025-07-29T22:07:17-07:00 New Revision: a7e029bd0bee6304c3654dd41aee04984d2b6edc URL: https://github.com/llvm/llvm-project/commit/a7e029bd0bee6304c3654dd41aee04984d2b6edc DIFF: https://github.com/llvm/llvm-project/commit/a7e029bd0bee6304c3654dd41aee04984d2b6edc.diff LOG:

[clang] [llvm] Revert "[WebAssembly] Add gc target feature to addBleedingEdgeFeatures" (PR #151268)

2025-07-29 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/151268 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix FP for cplusplus.placement new #149240 (PR #150161)

2025-07-29 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. https://github.com/llvm/llvm-project/pull/150161 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] add -floop-fuse to clang and flang (PR #142686)

2025-07-29 Thread Madhur Amilkanthwar via cfe-commits
madhur13490 wrote: @tarunprabhu Sure, I can take that suggestion. I have done the changes. @kasuga-fj I fixed the rebase issue in `flang/docs`. > I don't think this implies that the pass should be part of the function > simplification pipeline. Its position should be determined by what the pas

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

2025-07-29 Thread Oliver Hunt via cfe-commits
@@ -30,6 +30,50 @@ EXCEPTION_DISPOSITION _GCC_specific_handler(PEXCEPTION_RECORD, void *, PCONTEXT, _Unwind_Personality_Fn); #endif +#if __has_feature(ptrauth_qualifier) +#include +#endif + +#if defined(__APPLE__) && __has_feature(

[clang] [flang] [llvm] add -floop-fuse to clang and flang (PR #142686)

2025-07-29 Thread Madhur Amilkanthwar via cfe-commits
https://github.com/madhur13490 updated https://github.com/llvm/llvm-project/pull/142686 >From 3b71a3ca82ed5bfdad8836f317c9476af964e432 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Thu, 22 May 2025 13:50:38 + Subject: [PATCH 1/2] add -floop-fuse to clang and flang --- clang/include/c

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

2025-07-29 Thread Oliver Hunt via cfe-commits
@@ -103,10 +104,68 @@ #define _LIBCXXABI_DTOR_FUNC #endif -#if __cplusplus < 201103L ojhunt wrote: by failing to compile we ensure there are no memory safety bugs. :D https://github.com/llvm/llvm-project/pull/143230 __

[clang] [flang] [llvm] add -floop-fuse to clang and flang (PR #142686)

2025-07-29 Thread Madhur Amilkanthwar via cfe-commits
https://github.com/madhur13490 updated https://github.com/llvm/llvm-project/pull/142686 >From 3b71a3ca82ed5bfdad8836f317c9476af964e432 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Thu, 22 May 2025 13:50:38 + Subject: [PATCH 1/2] add -floop-fuse to clang and flang --- clang/include/c

[clang] [flang] [llvm] add -floop-fuse to clang and flang (PR #142686)

2025-07-29 Thread Madhur Amilkanthwar via cfe-commits
https://github.com/madhur13490 updated https://github.com/llvm/llvm-project/pull/142686 >From 3b71a3ca82ed5bfdad8836f317c9476af964e432 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Thu, 22 May 2025 13:50:38 + Subject: [PATCH 1/2] add -floop-fuse to clang and flang --- clang/include/c

[clang] [Clang] Fail the constraint substitution early after CWG2369 (PR #143096)

2025-07-29 Thread Tom Stellard via cfe-commits
tstellar wrote: @zyn0217 Here is the issue with the reduced test case: https://github.com/llvm/llvm-project/issues/151271 https://github.com/llvm/llvm-project/pull/143096 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/c

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-07-29 Thread Anutosh Bhat via cfe-commits
@@ -29,8 +29,9 @@ Target &llvm::getTheWebAssemblyTarget64() { extern "C" LLVM_ABI LLVM_EXTERNAL_VISIBILITY void LLVMInitializeWebAssemblyTargetInfo() { - RegisterTarget X(getTheWebAssemblyTarget32(), "wasm32", - "WebAssembly 32-bit", "WebAsse

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-07-29 Thread Anutosh Bhat via cfe-commits
@@ -37,6 +37,9 @@ TEST(IncrementalCompilerBuilder, SetCompilerArgs) { } TEST(IncrementalCompilerBuilder, SetTargetTriple) { +#ifdef __EMSCRIPTEN__ + GTEST_SKIP() << "Test fails for Emscipten builds"; +#endif anutosh491 wrote: Hmm, we should be able to fetch

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

2025-07-29 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 closed https://github.com/llvm/llvm-project/pull/151074 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-29 Thread via cfe-commits
Author: Chuanqi Xu Date: 2025-07-30T11:10:39+08:00 New Revision: 8f09b03aebb71c154f3bbe725c29e3f47d37c26e URL: https://github.com/llvm/llvm-project/commit/8f09b03aebb71c154f3bbe725c29e3f47d37c26e DIFF: https://github.com/llvm/llvm-project/commit/8f09b03aebb71c154f3bbe725c29e3f47d37c26e.diff LO

[clang] [LinkerWrapper] Fix -fsave-optimization-record default file (PR #149003)

2025-07-29 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. LGTM! Thanks for not adding an extra driver option. https://github.com/llvm/llvm-project/pull/149003 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

[clang] [llvm] Revert "[WebAssembly] Add gc target feature to addBleedingEdgeFeatures" (PR #151268)

2025-07-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (ronlieb) Changes Reverts llvm/llvm-project#151107 --- Full diff: https://github.com/llvm/llvm-project/pull/151268.diff 8 Files Affected: - (modified) clang/lib/Basic/Targets/WebAssembly.cpp (+11-12) - (modified) clang/lib/Basic/T

[clang] [llvm] Revert "[WebAssembly] Add gc target feature to addBleedingEdgeFeatures" (PR #151268)

2025-07-29 Thread via cfe-commits
https://github.com/ronlieb created https://github.com/llvm/llvm-project/pull/151268 Reverts llvm/llvm-project#151107 >From 09141eb903af90e767385ba4d9207a0bac95bce0 Mon Sep 17 00:00:00 2001 From: ronlieb Date: Tue, 29 Jul 2025 23:04:12 -0400 Subject: [PATCH] Revert "[WebAssembly] Add gc target

[clang] [llvm] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)

2025-07-29 Thread via cfe-commits
dyung wrote: This change is causing failures on quite a few bots, can we either fix or revert this soon? https://github.com/llvm/llvm-project/pull/151107 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[clang] [llvm] [RISCV] Implement MC support for Zvfbfa extension (PR #151106)

2025-07-29 Thread Pengcheng Wang via cfe-commits
wangpc-pp wrote: What is the status of Zvfbfa in RVI vector sig? https://github.com/llvm/llvm-project/pull/151106 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)

2025-07-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-bootstrap-msan` running on `sanitizer-buildbot5` while building `clang,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/164/builds/12047 Here is the

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

2025-07-29 Thread Chuanqi Xu via cfe-commits
@@ -13,11 +13,12 @@ #include "clang/AST/ASTConsumer.h" #include "clang/AST/ASTMutationListener.h" -#include "clang/AST/RecursiveASTVisitor.h" +#include "clang/AST/DynamicRecursiveASTVisitor.h" #include "clang/Lex/HeaderSearch.h" #include "clang/Lex/Preprocessor.h" #include

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

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

[clang] [llvm] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)

2025-07-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-msan` running on `sanitizer-buildbot9` while building `clang,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/94/builds/9325 Here is the r

[clang] [llvm] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)

2025-07-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-asan` running on `sanitizer-buildbot8` while building `clang,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/24/builds/11011 Here is the

[clang] [llvm] [RISCV] Implement MC support for Zvfbfa extension (PR #151106)

2025-07-29 Thread Jim Lin via cfe-commits
https://github.com/tclin914 updated https://github.com/llvm/llvm-project/pull/151106 >From 0621311ea29b1d0b707b43e19975a5a4b67b038f Mon Sep 17 00:00:00 2001 From: Jim Lin Date: Wed, 11 Jun 2025 09:45:46 +0800 Subject: [PATCH 1/6] [RISCV] Implement MC support for Zvfbfa extension This patch add

[clang] [llvm] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)

2025-07-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-key-instructions` running on `sie-linux-worker5` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/208/builds/3210

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

2025-07-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Bill Wendling (bwendling) Changes Parentheses and no-op casts don't change the value. Skip past them to get to a MemberExpr. Fixes #151236 --- Full diff: https://github.com/llvm/llvm-project/pull/151266.diff 2 Files Affected: - (modif

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

2025-07-29 Thread Bill Wendling via cfe-commits
https://github.com/bwendling created https://github.com/llvm/llvm-project/pull/151266 Parentheses and no-op casts don't change the value. Skip past them to get to a MemberExpr. Fixes #151236 >From e3e6589b55127e78ecdc7fe5fcc01c93c8e48be2 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue

[clang] [llvm] [RISCV] Implement MC support for Zvfbfa extension (PR #151106)

2025-07-29 Thread Jim Lin via cfe-commits
https://github.com/tclin914 updated https://github.com/llvm/llvm-project/pull/151106 >From 0621311ea29b1d0b707b43e19975a5a4b67b038f Mon Sep 17 00:00:00 2001 From: Jim Lin Date: Wed, 11 Jun 2025 09:45:46 +0800 Subject: [PATCH 1/5] [RISCV] Implement MC support for Zvfbfa extension This patch add

[clang] [clang][test] Require staticanalyzer for Modules/specializations-lazy-load-parentmap-crash.cpp (PR #151259)

2025-07-29 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. LGTM. It will be better if you can split it. It can be achieved by copying the test and remove the corresponding `RUN` lines. But I don't feel bad if you want to commit it as is since I believe the test may still be covered in a lot of

[clang] [llvm] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)

2025-07-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-lld-multistage-test` running on `ppc64le-lld-multistage-test` while building `clang,llvm` at step 7 "test-build-stage1-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/1

[clang] [llvm] [RISCV] Implement MC support for Zvfbfa extension (PR #151106)

2025-07-29 Thread Jim Lin via cfe-commits
https://github.com/tclin914 updated https://github.com/llvm/llvm-project/pull/151106 >From 0621311ea29b1d0b707b43e19975a5a4b67b038f Mon Sep 17 00:00:00 2001 From: Jim Lin Date: Wed, 11 Jun 2025 09:45:46 +0800 Subject: [PATCH 1/4] [RISCV] Implement MC support for Zvfbfa extension This patch add

[clang] [llvm] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)

2025-07-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/21932

[clang] [llvm] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)

2025-07-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `clang,llvm` at step 7 "Add check check-clang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/10463 Here is

[clang] [Clang][Driver] Installation detectors in user facing include dir (PR #151114)

2025-07-29 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. Seems straightforward enough. https://github.com/llvm/llvm-project/pull/151114 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)

2025-07-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-quick` running on `linaro-clang-aarch64-quick` while building `clang,llvm` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/65/builds/20410 Here is the relevan

[clang] [llvm] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)

2025-07-29 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 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/31

[clang] [clang][test] Require staticanalyzer for Modules/specializations-lazy-load-parentmap-crash.cpp (PR #151259)

2025-07-29 Thread Nathan Chancellor via cfe-commits
nathanchance wrote: Right, I was unsure if there was a way to do that other than splitting the test in some manner. My understanding is that `REQUIRES` is an all or nothing. https://github.com/llvm/llvm-project/pull/151259 ___ cfe-commits mailing list

[clang] [llvm] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)

2025-07-29 Thread Heejin Ahn via cfe-commits
aheejin wrote: Tests failures don't seem to be related to this PR. Merged. https://github.com/llvm/llvm-project/pull/151107 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)

2025-07-29 Thread Heejin Ahn via cfe-commits
https://github.com/aheejin closed https://github.com/llvm/llvm-project/pull/151107 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fe25445 - [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (#151107)

2025-07-29 Thread via cfe-commits
Author: Hood Chatham Date: 2025-07-29T17:54:12-07:00 New Revision: fe25445ded152df6cba2efcf053924f3f9f0e3c7 URL: https://github.com/llvm/llvm-project/commit/fe25445ded152df6cba2efcf053924f3f9f0e3c7 DIFF: https://github.com/llvm/llvm-project/commit/fe25445ded152df6cba2efcf053924f3f9f0e3c7.diff

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

2025-07-29 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt edited 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] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-07-29 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt edited 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] Thread Safety Analysis: Very basic capability alias-analysis (PR #142955)

2025-07-29 Thread Marco Elver via cfe-commits
@@ -1012,6 +1030,107 @@ void SExprBuilder::exitCFG(const CFGBlock *Last) { IncompleteArgs.clear(); } +bool SExprBuilder::isVariableReassigned(const VarDecl *VD) { + // Note: The search is performed lazily per-variable and result is cached. An + // alternative would have be

[clang] [analyzer] Fix getElementRegion to retain address space information (PR #151249)

2025-07-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: None (vabridgers) Changes This change modifies getElementRegion to retain address space information when removing all QualType qualifiers. Always removing address space qualifiers can expose cases where QualTypes for dif

[clang] [compiler-rt] Split TypeMismatch UBSan handler into 4 handlers (PR #151243)

2025-07-29 Thread Thurston Dang via cfe-commits
@@ -766,18 +766,13 @@ void CodeGenFunction::EmitTypeCheck(TypeCheckKind TCK, SourceLocation Loc, llvm::BasicBlock *Done = nullptr; bool DoneViaNullSanitize = false; + llvm::Value *True = llvm::ConstantInt::getTrue(getLLVMContext()); + { -auto CheckHandler = Saniti

[clang] [analyzer] Fix getElementRegion to retain address space information (PR #151249)

2025-07-29 Thread via cfe-commits
https://github.com/vabridgers created https://github.com/llvm/llvm-project/pull/151249 This change modifies getElementRegion to retain address space information when removing all QualType qualifiers. Always removing address space qualifiers can expose cases where QualTypes for different pointe

[clang] [Clang] Only C link device libraries by default for OpenMP (PR #151239)

2025-07-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Joseph Huber (jhuber6) Changes Summary: We link these implicitly for OpenMP because it's the canonical implementation of those C language features. This was inhereted by HIP and ended up with these resolvin

[clang] [Clang] Only C link device libraries by default for OpenMP (PR #151239)

2025-07-29 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/151239 Summary: We link these implicitly for OpenMP because it's the canonical implementation of those C language features. This was inhereted by HIP and ended up with these resolving functions. There are some useful fu

[clang] [analyzer] Fix FP for cplusplus.placement new #149240 (PR #150161)

2025-07-29 Thread via cfe-commits
https://github.com/Aethezz updated https://github.com/llvm/llvm-project/pull/150161 >From a018c87c6356326cb04bd0a98ff5842e07403f9c Mon Sep 17 00:00:00 2001 From: Aethezz <64500703+aeth...@users.noreply.github.com> Date: Tue, 22 Jul 2025 23:19:11 -0400 Subject: [PATCH 1/4] fix false positive, war

[clang] [llvm] [CodeGen][AArch64] ptrauth intrinsic to safely construct relative ptr (PR #142047)

2025-07-29 Thread John McCall via cfe-commits
rjmccall wrote: > > Oliver is right that we need custom checking in SemaChecking akin to the > > other builtins, e.g. to validate that the keys are constants. The pattern > > should be straightforward to follow. Otherwise the frontend changes LGTM > > except as noted. > > When I noticed that

[clang] [analyzer] Fix FP for cplusplus.placement new #149240 (PR #150161)

2025-07-29 Thread via cfe-commits
@@ -111,32 +111,13 @@ bool PlacementNewChecker::checkPlaceCapacityIsSufficient( if (!SizeOfPlaceCI) return true; - if ((SizeOfPlaceCI->getValue() < SizeOfTargetCI->getValue()) || - (IsArrayTypeAllocated && - SizeOfPlaceCI->getValue() >= SizeOfTargetCI->getVal

[clang] [Clang] fix coroutine await suspend wrapper linkage types (PR #151224)

2025-07-29 Thread Haojian Wu via cfe-commits
https://github.com/hokein approved this pull request. I'm not familiar with LLVM middle/back-end, but this change looks good from my side. https://github.com/llvm/llvm-project/pull/151224 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

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

2025-07-29 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: I'm happy to split the little refactor of `shouldSkipNode` into a separate patch to make this one smaller / not have to revert the whole thing if it doesn't work out, please let me know :) https://github.com/llvm/llvm-project/pull/151035 __

[clang] [API notes] Allow SwiftConformsTo on Typedefs (PR #151213)

2025-07-29 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/include/clang/APINotes/Types.h clang/lib/APIN

[clang] [API notes] Allow SwiftConformsTo on Typedefs (PR #151213)

2025-07-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Doug Gregor (DougGregor) Changes SwiftConformsTo specifies an additional conformance that should be applied on import. Allow this on typedefs, because those can be imported as wrapper types. --- Full diff: https://github.com/llvm/llvm-pro

[clang] [API notes] Allow SwiftConformsTo on Typedefs (PR #151213)

2025-07-29 Thread Doug Gregor via cfe-commits
https://github.com/DougGregor created https://github.com/llvm/llvm-project/pull/151213 SwiftConformsTo specifies an additional conformance that should be applied on import. Allow this on typedefs, because those can be imported as wrapper types. >From 1073b67aba7358a10988b73096d9d623935cd0dd Mo

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-07-29 Thread via cfe-commits
@@ -29,8 +29,9 @@ Target &llvm::getTheWebAssemblyTarget64() { extern "C" LLVM_ABI LLVM_EXTERNAL_VISIBILITY void LLVMInitializeWebAssemblyTargetInfo() { - RegisterTarget X(getTheWebAssemblyTarget32(), "wasm32", - "WebAssembly 32-bit", "WebAsse

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

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

[clang] [Sema] Fix -Wunreachable-code false negative when operands differ only by implicit casts (PR #149972)

2025-07-29 Thread M. Zeeshan Siddiqui via cfe-commits
@@ -1160,8 +1160,11 @@ class CFGBuilder { return {}; // Check that it is the same variable on both sides. -if (!Expr::isSameComparisonOperand(DeclExpr1, DeclExpr2)) - return {}; +if (!Expr::isSameComparisonOperand(DeclExpr1, DeclExpr2)) { + if (!Exp

[clang] [Sema] Fix -Wunreachable-code false negative when operands differ only by implicit casts (PR #149972)

2025-07-29 Thread M. Zeeshan Siddiqui via cfe-commits
https://github.com/codemzs updated https://github.com/llvm/llvm-project/pull/149972 >From 20ad1ba3b919a37a86f39ba7d30249a0b9b9d2c6 Mon Sep 17 00:00:00 2001 From: Zeeshan Siddiqui Date: Tue, 22 Jul 2025 06:37:54 + Subject: [PATCH 1/2] [Sema] Make incorrect-logic operator check cast-agnostic

[clang] [llvm] [CodeGen][AArch64] ptrauth intrinsic to safely construct relative ptr (PR #142047)

2025-07-29 Thread John McCall via cfe-commits
https://github.com/rjmccall requested changes to this pull request. Oliver is right that we need custom checking in SemaChecking akin to the other builtins, e.g. to validate that the keys are constants. The pattern should be straightforward to follow. Otherwise the frontend changes LGTM except

[clang] [clang][analyzer] Add StoreToImmutable checker (PR #150417)

2025-07-29 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 updated https://github.com/llvm/llvm-project/pull/150417 From 0630d81e544319a1a18798996760775d4a13f7ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Endre=20F=C3=BCl=C3=B6p?= Date: Thu, 24 Jul 2025 14:49:14 +0200 Subject: [PATCH 01/11] [clang][analyzer] Add StoreToImmuta

[clang] [Sema] Fix -Wunreachable-code false negative when operands differ only by implicit casts (PR #149972)

2025-07-29 Thread M. Zeeshan Siddiqui via cfe-commits
@@ -1,16 +1,33 @@ -// RUN: %clang_cc1 -verify -Wunreachable-code %s +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -verify -Wunreachable-code %s +// RUN: %clang_cc1 -triple aarch64-unknown-linux-gnu -target-feature +fullfp16 -verify -Wunreachable-code %s +// REQUIRES: aarc

[clang] [Sema] Fix -Wunreachable-code false negative when operands differ only by implicit casts (PR #149972)

2025-07-29 Thread M. Zeeshan Siddiqui via cfe-commits
@@ -1,16 +1,33 @@ -// RUN: %clang_cc1 -verify -Wunreachable-code %s +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -verify -Wunreachable-code %s +// RUN: %clang_cc1 -triple aarch64-unknown-linux-gnu -target-feature +fullfp16 -verify -Wunreachable-code %s +// REQUIRES: aarc

[clang] [llvm] [CodeGen][AArch64] ptrauth intrinsic to safely construct relative ptr (PR #142047)

2025-07-29 Thread John McCall via cfe-commits
@@ -259,78 +284,6 @@ typedef __UINTPTR_TYPE__ ptrauth_generic_signature_t; /* The value is ptrauth_string_discriminator("init_fini") */ #define __ptrauth_init_fini_discriminator 0xd9d4 -#else - -#define ptrauth_strip(__value, __key) \

[clang] [clang][analyzer] Add StoreToImmutable checker (PR #150417)

2025-07-29 Thread Endre Fülöp via cfe-commits
@@ -0,0 +1,136 @@ +//=== StoreToImmutableChecker.cpp - Store to immutable memory ---*- 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][analyzer] Add StoreToImmutable checker (PR #150417)

2025-07-29 Thread Endre Fülöp via cfe-commits
@@ -29,29 +29,24 @@ class StoreToImmutableChecker : public Checker { void checkBind(SVal Loc, SVal Val, const Stmt *S, CheckerContext &C) const; private: - bool isConstVariable(const MemRegion *MR, CheckerContext &C) const; + bool isEffectivelyConstRegion(const MemRegion

[clang] [clang][analyzer] Add StoreToImmutable checker (PR #150417)

2025-07-29 Thread Endre Fülöp via cfe-commits
@@ -62,22 +57,33 @@ bool StoreToImmutableChecker::isConstVariable(const MemRegion *MR, return true; } - // Check if this is an ElementRegion accessing a const array - if (const ElementRegion *ER = dyn_cast(MR)) { -return isConstQualifiedType(ER->getSuperRegion()

[clang] [llvm] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)

2025-07-29 Thread Hood Chatham via cfe-commits
hoodmane wrote: Thanks @aheejin. How's it look now? https://github.com/llvm/llvm-project/pull/151107 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Add StoreToImmutable checker (PR #150417)

2025-07-29 Thread Endre Fülöp via cfe-commits
@@ -8,6 +8,7 @@ void test_global_const() { } // String literal +// NOTE: This only works in C++, not in C, as the analyzer treats string literals as non-const char arrays in C mode. gamesh411 wrote: The const keyword was introduced in the ANSI C standard (C8

[clang] [llvm] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)

2025-07-29 Thread Hood Chatham via cfe-commits
https://github.com/hoodmane updated https://github.com/llvm/llvm-project/pull/151107 >From bb71b4795d85938772e78de3022d5d58b25d6d20 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Tue, 29 Jul 2025 10:41:49 +0200 Subject: [PATCH 1/5] [WebAssembly] Add gc target feature to addBleedingEdgeFeatu

[clang] [llvm] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)

2025-07-29 Thread Heejin Ahn via cfe-commits
aheejin wrote: > https://github.com/llvm/llvm-project/blob/main/clang/test/Driver/wasm-features.c > needs to be updated too. For example, this is `fp16`: > > https://github.com/llvm/llvm-project/blob/052b836d2384c8a583ae5f945dcdcfba2004bbb0/clang/test/Driver/wasm-features.c#L38-L42 I don't thi

[clang] [llvm] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)

2025-07-29 Thread Hood Chatham via cfe-commits
hoodmane wrote: Okay I think I'm up to date with the comments so far. https://github.com/llvm/llvm-project/pull/151107 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [WebAssembly] Add gc target feature to addBleedingEdgeFeatures (PR #151107)

2025-07-29 Thread Hood Chatham via cfe-commits
https://github.com/hoodmane updated https://github.com/llvm/llvm-project/pull/151107 >From bb71b4795d85938772e78de3022d5d58b25d6d20 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Tue, 29 Jul 2025 10:41:49 +0200 Subject: [PATCH 1/4] [WebAssembly] Add gc target feature to addBleedingEdgeFeatu

[clang] [NFC][analyzer] Conversion to CheckerFamily: CStringChecker (PR #150971)

2025-07-29 Thread Balazs Benics via cfe-commits
=?utf-8?q?Don=C3=A1t?= Nagy Message-ID: In-Reply-To: https://github.com/steakhal approved this pull request. It's probably good. https://github.com/llvm/llvm-project/pull/150971 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.l

  1   2   3   4   5   >