[clang] [analyzer] Add time-trace scopes for high-level analyzer steps (PR #125508)

2025-02-03 Thread Gábor Horváth via cfe-commits
@@ -0,0 +1,38 @@ += +Performance Investigation += + +Multiple factors contribute to the time it takes to analyze a file with Clang Static Analyzer. +A translation unit contains multiple entry points, each of which take multiple ste

[clang] [CIR] Initial implementation of CIR-to-LLVM IR lowering pass (PR #125260)

2025-02-03 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/125260 >From 4801886dd4c45d32891a7337ad7430a6c5137929 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Tue, 28 Jan 2025 12:28:58 -0800 Subject: [PATCH 1/9] [CIR] Initial implementation of CIR-to-LLVM IR lowering pa

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-03 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov edited https://github.com/llvm/llvm-project/pull/125492 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #124554)

2025-02-03 Thread Ilya Biryukov via cfe-commits
ilya-biryukov wrote: FYI: this PR was taking too long to pick changes after rebase, so the discussions continued in #125492. https://github.com/llvm/llvm-project/pull/124554 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.or

[clang] Reland: [clang] Track function template instantiation from definition (PR #125266)

2025-02-03 Thread Erich Keane via cfe-commits
@@ -2298,6 +2298,13 @@ class FunctionDecl : public DeclaratorDecl, FunctionDeclBits.IsLateTemplateParsed = ILT; } + bool isInstantiatedFromMemberTemplate() const { +return FunctionDeclBits.IsInstantiatedFromMemberTemplate; + } + void setInstantiatedFromMemberTempl

[clang] Reland: [clang] Track function template instantiation from definition (PR #125266)

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

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-03 Thread Ilya Biryukov via cfe-commits
@@ -186,106 +214,212 @@ class MatchDescendantVisitor : public DynamicRecursiveASTVisitor { return DynamicRecursiveASTVisitor::TraverseStmt(Node); } + void setASTContext(ASTContext &Context) { ActiveASTContext = &Context; } + + void setHandler(const UnsafeBufferUsageHa

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-03 Thread Ilya Biryukov via cfe-commits
@@ -68,32 +70,59 @@ static std::string getDREAncestorString(const DeclRefExpr *DRE, if (StParents.size() > 1) return "unavailable due to multiple parents"; -if (StParents.size() == 0) +if (StParents.empty()) break; St = StParents.begin()->get();

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-03 Thread Ilya Biryukov via cfe-commits
@@ -2672,7 +3055,7 @@ static inline std::optional createDataFixit(const ASTContext &Ctx, // `DRE.data()` std::optional UPCStandalonePointerGadget::getFixits(const FixitStrategy &S) const { - const auto VD = cast(Node->getDecl()); + const auto *const VD = cast(Node->getDecl()

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-03 Thread Ilya Biryukov via cfe-commits
@@ -68,32 +70,59 @@ static std::string getDREAncestorString(const DeclRefExpr *DRE, if (StParents.size() > 1) return "unavailable due to multiple parents"; -if (StParents.size() == 0) +if (StParents.empty()) break; St = StParents.begin()->get();

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-03 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov commented: We really want this to enable the `Wunsafe-buffer-usage` more broadly in our codebase. Right now the performance impact is just way too high for us. So thanks a lot for working on this! Obviously, we need to add people who own the particular piece of

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-03 Thread Ilya Biryukov via cfe-commits
@@ -1189,29 +1355,40 @@ class PointerArithmeticGadget : public WarningGadget { const Expr *Ptr; // the pointer expression in `PA` public: - PointerArithmeticGadget(const MatchFinder::MatchResult &Result) + PointerArithmeticGadget(const MatchResult &Result)

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-03 Thread Ilya Biryukov via cfe-commits
@@ -1048,7 +1197,10 @@ class FixableGadget : public Gadget { } }; -static auto toSupportedVariable() { return to(varDecl()); } +static auto toSupportedVariable(const DeclRefExpr &Node) { ilya-biryukov wrote: NIT: replace `auto` with `bool`, rename to `isSup

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-03 Thread Ilya Biryukov via cfe-commits
ilya-biryukov wrote: I added @ziqingluo-90 @jkorous-apple as reviewers since you've approved recent changes to this warning. Please let us know if you're the right reviewers for this and feel free to loop in more people if necessary. https://github.com/llvm/llvm-project/pull/125492 ___

[clang] Reland: [clang] Track function template instantiation from definition (PR #125266)

2025-02-03 Thread Erich Keane via cfe-commits
@@ -2298,6 +2298,13 @@ class FunctionDecl : public DeclaratorDecl, FunctionDeclBits.IsLateTemplateParsed = ILT; } + bool isInstantiatedFromMemberTemplate() const { +return FunctionDeclBits.IsInstantiatedFromMemberTemplate; + } + void setInstantiatedFromMemberTempl

[clang] Pass -offload-lto instead of -lto for cuda/hip kernels (PR #125243)

2025-02-03 Thread Omar Ahmed via cfe-commits
@@ -498,12 +498,16 @@ Expected clang(ArrayRef InputFiles, const ArgList &Args) { }; // Forward all of the `--offload-opt` and similar options to the device. - CmdArgs.push_back("-flto"); for (auto &Arg : Args.filtered(OPT_offload_opt_eq_minus, OPT_mllvm)) CmdArgs

[clang] Pass -offload-lto instead of -lto for cuda/hip kernels (PR #125243)

2025-02-03 Thread Joseph Huber via cfe-commits
@@ -498,12 +498,16 @@ Expected clang(ArrayRef InputFiles, const ArgList &Args) { }; // Forward all of the `--offload-opt` and similar options to the device. - CmdArgs.push_back("-flto"); for (auto &Arg : Args.filtered(OPT_offload_opt_eq_minus, OPT_mllvm)) CmdArgs

[clang] [llvm] [Hexagon] Set the default compilation target to V68 (PR #125239)

2025-02-03 Thread Brian Cain via cfe-commits
androm3da wrote: @quic-akaryaki do we want/need a corresponding change to the assembler? Or is it okay for the compiler to have a different default cpu from the assembler? https://github.com/llvm/llvm-project/pull/125239 ___ cfe-commits mailing list

[clang] [AArch64][Clang] Update untyped sme intrinsics with fp8 variants (PR #124543)

2025-02-03 Thread via cfe-commits
@@ -856,18 +926,18 @@ void test_svwrite_za64_s64_vg1x2(uint32_t base, svint64x2_t val) __arm_streaming SVE_ACLE_FUNC(svwrite_za64,_s64,_vg1x2,)(base, val); } -// CHECK-LABEL: @test_svwrite_za8_s8_vg1x4( +// CHECK-LABEL: @test_svwrite_za8_mf8_vg1x4( // CHECK-NEXT: entry:

[clang] [AArch64][Clang] Update untyped sme intrinsics with fp8 variants (PR #124543)

2025-02-03 Thread via cfe-commits
https://github.com/CarolineConcatto edited https://github.com/llvm/llvm-project/pull/124543 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64][Clang] Update untyped sme intrinsics with fp8 variants (PR #124543)

2025-02-03 Thread via cfe-commits
https://github.com/CarolineConcatto approved this pull request. LGTM, Before merging, check if the test for test_svwrite_za8_s8_vg1x4 was actually removed as it looks like. https://github.com/llvm/llvm-project/pull/124543 ___ cfe-commits mailing list

[clang] 707e2b8 - [clang][bytecode] Handle union move assignment operators as well (#125516)

2025-02-03 Thread via cfe-commits
Author: Timm Baeder Date: 2025-02-03T17:43:32+01:00 New Revision: 707e2b83a5d7f5d1a363f992197e3afad6369d6e URL: https://github.com/llvm/llvm-project/commit/707e2b83a5d7f5d1a363f992197e3afad6369d6e DIFF: https://github.com/llvm/llvm-project/commit/707e2b83a5d7f5d1a363f992197e3afad6369d6e.diff L

[clang] [clang][bytecode] Handle union move assignment operators as well (PR #125516)

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

[clang] [clang][bytecode] Add special handling for union copy assign operators (PR #125476)

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

[clang] 21a8c92 - [clang][bytecode] Add special handling for union copy assign operators (#125476)

2025-02-03 Thread via cfe-commits
Author: Timm Baeder Date: 2025-02-03T12:41:49+01:00 New Revision: 21a8c920fe1f6e9d2ac7e1b3f56b04fcd8bcc94c URL: https://github.com/llvm/llvm-project/commit/21a8c920fe1f6e9d2ac7e1b3f56b04fcd8bcc94c DIFF: https://github.com/llvm/llvm-project/commit/21a8c920fe1f6e9d2ac7e1b3f56b04fcd8bcc94c.diff L

[clang] Warn when unique objects might be duplicated in shared libraries (PR #117622)

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

[clang] [clang][CodeGen] `sret` args should always point to the `alloca` AS, so use that (PR #114062)

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

[clang] [clang][CodeGen] `sret` args should always point to the `alloca` AS, so use that (PR #114062)

2025-02-03 Thread Matt Arsenault via cfe-commits
@@ -0,0 +1,68 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5 +// RUN: %clang_cc1 -cl-std=CL2.0 -triple amdgcn-amd-amdhsa -disable-llvm-passes -emit-llvm -o - %s | FileCheck %s + +// Check there's no assertion when passing

[clang] [clang] CTAD alias: Respecte explicit deduction guides defined after the first use of the alias template. (PR #125478)

2025-02-03 Thread via cfe-commits
@@ -1191,13 +1209,10 @@ void DeclareImplicitDeductionGuidesForTypeAlias( if (AliasTemplate->isInvalidDecl()) return; auto &Context = SemaRef.Context; - // FIXME: if there is an explicit deduction guide after the first use of the - // type alias usage, we will not cove

[clang] [clang] CTAD alias: Respecte explicit deduction guides defined after the first use of the alias template. (PR #125478)

2025-02-03 Thread via cfe-commits
@@ -740,6 +740,24 @@ bool hasDeclaredDeductionGuides(DeclarationName Name, DeclContext *DC) { return false; } +// Returns all source deduction guides associated with the declared +// deduction guides that have the specified deduction guide name. +llvm::DenseSet getSourceDed

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-02-03 Thread Ivana Ivanovska via cfe-commits
https://github.com/ivanaivanovska edited https://github.com/llvm/llvm-project/pull/125492 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Add time-trace scopes for high-level analyzer steps (PR #125508)

2025-02-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis @llvm/pr-subscribers-clang Author: Arseniy Zaostrovnykh (necto) Changes Specifically, add a scope for - each work-list step, - each entry point, - each checker run within a step, and - bug-suppression phase at the end of the analysis of a

[clang] [analyzer] Add time-trace scopes for high-level analyzer steps (PR #125508)

2025-02-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Arseniy Zaostrovnykh (necto) Changes Specifically, add a scope for - each work-list step, - each entry point, - each checker run within a step, and - bug-suppression phase at the end of the analysis of an entry-point. Th

[clang] [Clang][P1061] Consolidate ResolvedUnpexandedPackExpr into FunctionParmPackExpr (PR #125394)

2025-02-03 Thread Erich Keane via cfe-commits
@@ -3492,10 +3492,13 @@ VarDecl *BindingDecl::getHoldingVar() const { return VD; } -llvm::ArrayRef BindingDecl::getBindingPackExprs() const { +llvm::ArrayRef BindingDecl::getBindingPackDecls() const { assert(Binding && "expecting a pack expr"); - auto *RP = cast(Binding)

[clang] [analyzer][NFC] Add option assume-one-iteration (PR #125494)

2025-02-03 Thread Gábor Horváth via cfe-commits
Xazax-hun wrote: My preference would be to not have NFC tags for off by default features. https://github.com/llvm/llvm-project/pull/125494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[clang] [llvm] [Hexagon] Set the default compilation target to V68 (PR #125239)

2025-02-03 Thread Ikhlas Ajbar via cfe-commits
iajbar wrote: Done. Thanks Brian. https://github.com/llvm/llvm-project/pull/125239 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang module] Current Working Directory Pruning (PR #124786)

2025-02-03 Thread Qiongsi Wu via cfe-commits
qiongsiwu wrote: Gentle ping for review. Thanks! https://github.com/llvm/llvm-project/pull/124786 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Warn when unique objects might be duplicated in shared libraries (PR #125526)

2025-02-03 Thread Devon Loehr via cfe-commits
https://github.com/DKLoehr created https://github.com/llvm/llvm-project/pull/125526 This is attempt 2 to merge this, the first one is #117622. This properly disables the tests when building for playstation, since the warning is disabled there. When a hidden object is built into multiple share

[clang] [clang] Fix ASTWriter crash after merging named enums (PR #114240)

2025-02-03 Thread Vassil Vassilev via cfe-commits
@@ -2639,6 +2628,19 @@ void Sema::MergeTypedefNameDecl(Scope *S, TypedefNameDecl *New, notePreviousDefinition(Old, New->getLocation()); } +void Sema::CleanupMergedEnum(Scope *S, Decl *New) { vgvassilev wrote: I feel like this is a property of merging. Can

[clang] [llvm] [llvm] Create() functions for ConvergenceControlInst (PR #125627)

2025-02-03 Thread Sameer Sahasrabuddhe via cfe-commits
https://github.com/ssahasra updated https://github.com/llvm/llvm-project/pull/125627 >From 5d6d4fbbfabf5e33ec366ea113a0e6c93ba46bf4 Mon Sep 17 00:00:00 2001 From: Sameer Sahasrabuddhe Date: Thu, 9 Jan 2025 13:36:20 +0530 Subject: [PATCH 1/2] [llvm] Create() functions for ConvergenceControlInst

[clang] [Driver][HIP] Do not pass -dependency-file flag for HIP Device offloading (PR #125646)

2025-02-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Aniket Lal (lalaniket8) Changes When we launch hipcc with multiple offload architectures along with -MF dep_file flag, the clang compilation invocations for host and device offloads write to the same dep_

[clang] [Driver][HIP] Do not pass -dependency-file flag for HIP Device offloading (PR #125646)

2025-02-03 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [clang][StaticAnalyzer] Fix a typo in comments [NFC] (PR #125622)

2025-02-03 Thread Ben Shi via cfe-commits
https://github.com/benshi001 updated https://github.com/llvm/llvm-project/pull/125622 >From c4e7f13e392a1f36f3c5774927954a2fab3d5ccd Mon Sep 17 00:00:00 2001 From: Ben Shi Date: Tue, 4 Feb 2025 11:28:42 +0800 Subject: [PATCH] [clang][StaticAnalyzer] Fix typos in comments [NFC] --- .../clang/S

[clang] [Driver][HIP] Do not pass -dependency-file flag for HIP Device offloading (PR #125646)

2025-02-03 Thread Aniket Lal via cfe-commits
https://github.com/lalaniket8 created https://github.com/llvm/llvm-project/pull/125646 When we launch hipcc with multiple offload architectures along with -MF dep_file flag, the clang compilation invocations for host and device offloads write to the same dep_file, and can lead to collision dur

[clang] [clang-tools-extra] [clangd] Make clangd run `format::cleanupAroundReplacements()` for all code actions just as clang-tidy does (PR #118569)

2025-02-03 Thread Richard Li via cfe-commits
https://github.com/chomosuke updated https://github.com/llvm/llvm-project/pull/118569 >From efc17a803c9c22543de7d5f9e960a7267ade1f2e Mon Sep 17 00:00:00 2001 From: chomosuke Date: Wed, 4 Dec 2024 14:42:24 + Subject: [PATCH 1/3] [clangd][clang-tidy] Make clangd run `format::cleanupAroundRep

[clang] [llvm] [llvm] Create() functions for ConvergenceControlInst (PR #125627)

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

[clang] Adding diagnostics for unsupported option #125641 (PR #125643)

2025-02-03 Thread via cfe-commits
https://github.com/ShashwathiNavada updated https://github.com/llvm/llvm-project/pull/125643 >From 0aebcd7119fbcd51154c5d9706752e8ff3f041bc Mon Sep 17 00:00:00 2001 From: ShashwathiNavada Date: Tue, 4 Feb 2025 00:16:09 -0600 Subject: [PATCH 1/3] Adding diagnostics for unsupported option --- c

[clang] [clang][StaticAnalyzer] Fix a typo in comments [NFC] (PR #125622)

2025-02-03 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. LGTM so far. https://github.com/llvm/llvm-project/pull/125622 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][StaticAnalyzer] Fix a typo in comments [NFC] (PR #125622)

2025-02-03 Thread Balazs Benics via cfe-commits
steakhal wrote: Does the "other then" pattern appear anywhere else? Same for paremeters? (At lesdt withing static analyzer code?) https://github.com/llvm/llvm-project/pull/125622 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.ll

[clang] [clang][StaticAnalyzer] Fix a typo in comments [NFC] (PR #125622)

2025-02-03 Thread Ben Shi via cfe-commits
benshi001 wrote: > Does the "other then" pattern appear anywhere else? Same for paremeters? > > (At lesdt withing static analyzer code?) I did not find them in other places. https://github.com/llvm/llvm-project/pull/125622 ___ cfe-commits mailing lis

[clang] Adding diagnostics for unsupported option #125641 (PR #125643)

2025-02-03 Thread via cfe-commits
https://github.com/ShashwathiNavada updated https://github.com/llvm/llvm-project/pull/125643 >From 0aebcd7119fbcd51154c5d9706752e8ff3f041bc Mon Sep 17 00:00:00 2001 From: ShashwathiNavada Date: Tue, 4 Feb 2025 00:16:09 -0600 Subject: [PATCH 1/4] Adding diagnostics for unsupported option --- c

[clang] Adding diagnostics for unsupported option (PR #125643)

2025-02-03 Thread via cfe-commits
https://github.com/ShashwathiNavada edited https://github.com/llvm/llvm-project/pull/125643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Fix a typo in comments [NFC] (PR #125622)

2025-02-03 Thread Balazs Benics via cfe-commits
https://github.com/steakhal edited https://github.com/llvm/llvm-project/pull/125622 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [Sanitizers] the access size (8 bytes) exceeds the max lock-free size (4 bytes) for 32-bit (PR #125388)

2025-02-03 Thread Hubert Tong via cfe-commits
@@ -1120,3 +1120,21 @@ // RUN:-c \ // RUN: | FileCheck --check-prefixes=CHECK-K-UNUSED %s // CHECK-K-UNUSED: clang: warning: -K: 'linker' input unused [-Wunused-command-line-argument] + +// Check No Sanitizer on 32-bit AIX +// RUN: %if target={{.*aix.*}} %{ \ +// RUN

[clang] [compiler-rt] [Sanitizers] the access size (8 bytes) exceeds the max lock-free size (4 bytes) for 32-bit (PR #125388)

2025-02-03 Thread Hubert Tong via cfe-commits
@@ -1120,3 +1120,21 @@ // RUN:-c \ // RUN: | FileCheck --check-prefixes=CHECK-K-UNUSED %s // CHECK-K-UNUSED: clang: warning: -K: 'linker' input unused [-Wunused-command-line-argument] + +// Check No Sanitizer on 32-bit AIX +// RUN: %if target={{.*aix.*}} %{ \ +// RUN

[clang] [compiler-rt] [Sanitizers] the access size (8 bytes) exceeds the max lock-free size (4 bytes) for 32-bit (PR #125388)

2025-02-03 Thread Hubert Tong via cfe-commits
@@ -1120,3 +1120,21 @@ // RUN:-c \ // RUN: | FileCheck --check-prefixes=CHECK-K-UNUSED %s // CHECK-K-UNUSED: clang: warning: -K: 'linker' input unused [-Wunused-command-line-argument] + +// Check No Sanitizer on 32-bit AIX +// RUN: %if target={{.*aix.*}} %{ \ +// RUN

[clang] [compiler-rt] [Sanitizers] the access size (8 bytes) exceeds the max lock-free size (4 bytes) for 32-bit (PR #125388)

2025-02-03 Thread Honey Goyal via cfe-commits
https://github.com/honeygoyal updated https://github.com/llvm/llvm-project/pull/125388 >From f9d8e7f9c0df6beb8b4a63a01ebbc3b3ab93d091 Mon Sep 17 00:00:00 2001 From: Honey Goyal Date: Sun, 2 Feb 2025 14:27:01 +0530 Subject: [PATCH 1/5] Test Cases for adding -latomic (the access size (8 bytes) e

[clang] [compiler-rt] [Sanitizers] the access size (8 bytes) exceeds the max lock-free size (4 bytes) for 32-bit (PR #125388)

2025-02-03 Thread Honey Goyal via cfe-commits
https://github.com/honeygoyal updated https://github.com/llvm/llvm-project/pull/125388 >From f9d8e7f9c0df6beb8b4a63a01ebbc3b3ab93d091 Mon Sep 17 00:00:00 2001 From: Honey Goyal Date: Sun, 2 Feb 2025 14:27:01 +0530 Subject: [PATCH 1/4] Test Cases for adding -latomic (the access size (8 bytes) e

[clang-tools-extra] [clang-tidy] Add performance-redundant-lookup check (PR #125420)

2025-02-03 Thread Balazs Benics via cfe-commits
@@ -0,0 +1,159 @@ +//===--- RedundantLookupCheck.cpp - clang-tidy ===// +// +// 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][NFC] Only call getSource() when necessary (PR #125419)

2025-02-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/12911 Here is the r

[clang] f7f3dfc - [clang][bytecode] Refactor Program::createGlobalString (#125467)

2025-02-03 Thread via cfe-commits
Author: Timm Baeder Date: 2025-02-03T09:42:12+01:00 New Revision: f7f3dfce3d33c23c4bea8a7dbb3e1993f1f809bd URL: https://github.com/llvm/llvm-project/commit/f7f3dfce3d33c23c4bea8a7dbb3e1993f1f809bd DIFF: https://github.com/llvm/llvm-project/commit/f7f3dfce3d33c23c4bea8a7dbb3e1993f1f809bd.diff L

[clang] [clang][bytecode] Refactor Program::createGlobalString (PR #125467)

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

[clang] [CodeGen] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125456)

2025-02-03 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/125456 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ARM] Ensure FPU Selection can select mode correctly (PR #124935)

2025-02-03 Thread Jack Styles via cfe-commits
@@ -1013,3 +1013,41 @@ // CHECK-MVE1_2: #define __ARM_FEATURE_MVE 1 // RUN: %clang -target arm-arm-none-eabi -march=armv8.1-m.main+mve.fp -x c -E -dM %s -o - | FileCheck -check-prefix=CHECK-MVE3 %s // CHECK-MVE3: #define __ARM_FEATURE_MVE 3 + +// Cortex-R52 and Cortex-R52Plus

[clang] [llvm] [ARM] Ensure FPU Selection can select mode correctly (PR #124935)

2025-02-03 Thread Jack Styles via cfe-commits
https://github.com/Stylie777 updated https://github.com/llvm/llvm-project/pull/124935 >From 8da3a78692c4c0c4d4a47610d7b705f1a55f6f14 Mon Sep 17 00:00:00 2001 From: Jack Styles Date: Wed, 29 Jan 2025 15:19:46 + Subject: [PATCH 1/4] [ARM] Ensure FPU Selection can select mode correctly Previo

[clang] [flang] [flang] Add support for -fimplicit-none-ext option (PR #125248)

2025-02-03 Thread via cfe-commits
https://github.com/jeanPerier approved this pull request. Looks good https://github.com/llvm/llvm-project/pull/125248 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Support member function poiners in Decl::getFunctionType() (PR #125077)

2025-02-03 Thread Benjamin Maxwell via cfe-commits
https://github.com/MacDue closed https://github.com/llvm/llvm-project/pull/125077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64] Simplify definitions of SVE/SME intrinsics which set FPMR (PR #123796)

2025-02-03 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov closed https://github.com/llvm/llvm-project/pull/123796 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b6e50ed - [AArch64] Simplify definitions of SVE/SME intrinsics which set FPMR (#123796)

2025-02-03 Thread via cfe-commits
Author: Momchil Velikov Date: 2025-02-03T09:38:05Z New Revision: b6e50ed20931a8887ca6f7df8842a83a6e9751d2 URL: https://github.com/llvm/llvm-project/commit/b6e50ed20931a8887ca6f7df8842a83a6e9751d2 DIFF: https://github.com/llvm/llvm-project/commit/b6e50ed20931a8887ca6f7df8842a83a6e9751d2.diff LO

[clang] 692c9b2 - [clang] Support member function poiners in Decl::getFunctionType() (#125077)

2025-02-03 Thread via cfe-commits
Author: Benjamin Maxwell Date: 2025-02-03T09:37:16Z New Revision: 692c9b210728323ac499a402ee6eb901f35856f2 URL: https://github.com/llvm/llvm-project/commit/692c9b210728323ac499a402ee6eb901f35856f2 DIFF: https://github.com/llvm/llvm-project/commit/692c9b210728323ac499a402ee6eb901f35856f2.diff L

[clang] 6303563 - Simplify MS mangling of bultin types (NFC) (#125051)

2025-02-03 Thread via cfe-commits
Author: Momchil Velikov Date: 2025-02-03T09:38:33Z New Revision: 6303563b40f9d7896f0d44380f397560143da26b URL: https://github.com/llvm/llvm-project/commit/6303563b40f9d7896f0d44380f397560143da26b DIFF: https://github.com/llvm/llvm-project/commit/6303563b40f9d7896f0d44380f397560143da26b.diff LO

[clang] Simplify MS mangling of bultin types (NFC) (PR #125051)

2025-02-03 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov closed https://github.com/llvm/llvm-project/pull/125051 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   5