[clang] [llvm] [AMDGPU] Emit a waitcnt instruction after each memory instruction (PR #79236)

2024-02-15 Thread Pierre van Houtryve via cfe-commits
https://github.com/Pierre-vh edited https://github.com/llvm/llvm-project/pull/79236 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Emit a waitcnt instruction after each memory instruction (PR #79236)

2024-02-15 Thread Pierre van Houtryve via cfe-commits
https://github.com/Pierre-vh commented: I also agree with Jay, can't this go in InsertWaitCnt? Why does it have to go in SIMemoryLegalizer instead? If it has to stay here, fine, but is it possible to merge some code with SIInsertWaitCnt in a common helper somewhere? https://github.com/llvm/ll

[clang] [llvm] [AMDGPU] Emit a waitcnt instruction after each memory instruction (PR #79236)

2024-02-15 Thread Pierre van Houtryve via cfe-commits
@@ -167,6 +167,10 @@ def FeatureCuMode : SubtargetFeature<"cumode", "Enable CU wavefront execution mode" >; +def FeaturePreciseMemory Pierre-vh wrote: I think you just need to add something like this in `AMDGPU.cpp` in `getAMDGPUTargetFeatures` ``` if (A

[clang] [llvm] [AMDGPU] Emit a waitcnt instruction after each memory instruction (PR #79236)

2024-02-15 Thread Pierre van Houtryve via cfe-commits
@@ -603,14 +626,69 @@ class SIGfx12CacheControl : public SIGfx11CacheControl { SIAtomicAddrSpace AddrSpace, SIMemOp Op, bool IsVolatile, bool IsNonTemporal) const o

[clang] [llvm] [AMDGPU] Emit a waitcnt instruction after each memory instruction (PR #79236)

2024-02-15 Thread Pierre van Houtryve via cfe-commits
@@ -603,14 +626,69 @@ class SIGfx12CacheControl : public SIGfx11CacheControl { SIAtomicAddrSpace AddrSpace, SIMemOp Op, bool IsVolatile, bool IsNonTemporal) const o

[clang] [llvm] [AMDGPU] Emit a waitcnt instruction after each memory instruction (PR #79236)

2024-02-15 Thread Pierre van Houtryve via cfe-commits
@@ -603,14 +626,69 @@ class SIGfx12CacheControl : public SIGfx11CacheControl { SIAtomicAddrSpace AddrSpace, SIMemOp Op, bool IsVolatile, bool IsNonTemporal) const o

[clang] [llvm] [AMDGPU] Emit a waitcnt instruction after each memory instruction (PR #79236)

2024-02-15 Thread Pierre van Houtryve via cfe-commits
@@ -2378,6 +2456,221 @@ bool SIGfx12CacheControl::enableVolatileAndOrNonTemporal( return Changed; } +bool SIGfx6CacheControl ::handleNonAtomicForPreciseMemory( +MachineBasicBlock::iterator &MI) { + assert(MI->mayLoadOrStore()); + + MachineInstr &Inst = *MI; + AMDGPU:

[clang] [llvm] [AMDGPU] Emit a waitcnt instruction after each memory instruction (PR #79236)

2024-02-15 Thread Pierre van Houtryve via cfe-commits
@@ -2378,6 +2456,221 @@ bool SIGfx12CacheControl::enableVolatileAndOrNonTemporal( return Changed; } +bool SIGfx6CacheControl ::handleNonAtomicForPreciseMemory( +MachineBasicBlock::iterator &MI) { + assert(MI->mayLoadOrStore()); + + MachineInstr &Inst = *MI; + AMDGPU:

[clang] [lld] [llvm] Support .note.gnu.property for enable Zicfiss and Zicfilp extension (PR #77414)

2024-02-15 Thread via cfe-commits
https://github.com/SuHo-llrr updated https://github.com/llvm/llvm-project/pull/77414 >From 13841607619f27dd6dcc2289d0380f5b76d99cbe Mon Sep 17 00:00:00 2001 From: SuHsien Ho Date: Thu, 23 Nov 2023 14:36:43 +0800 Subject: [PATCH 1/5] [RISCV][ELF] Add RISCV GNU property label --- llvm/include/l

[clang] [libcxx] [libcxxabi] [lld] [llvm] Support .note.gnu.property for enable Zicfiss and Zicfilp extension (PR #77414)

2024-02-15 Thread via cfe-commits
https://github.com/SuHo-llrr updated https://github.com/llvm/llvm-project/pull/77414 >From 13841607619f27dd6dcc2289d0380f5b76d99cbe Mon Sep 17 00:00:00 2001 From: SuHsien Ho Date: Thu, 23 Nov 2023 14:36:43 +0800 Subject: [PATCH 1/6] [RISCV][ELF] Add RISCV GNU property label --- llvm/include/l

[clang] [lld] [llvm] Support .note.gnu.property for enable Zicfiss and Zicfilp extension (PR #77414)

2024-02-15 Thread via cfe-commits
https://github.com/SuHo-llrr updated https://github.com/llvm/llvm-project/pull/77414 >From 13841607619f27dd6dcc2289d0380f5b76d99cbe Mon Sep 17 00:00:00 2001 From: SuHsien Ho Date: Thu, 23 Nov 2023 14:36:43 +0800 Subject: [PATCH 1/5] [RISCV][ELF] Add RISCV GNU property label --- llvm/include/l

[clang] [lld] [llvm] Support .note.gnu.property for enable Zicfiss and Zicfilp extension (PR #77414)

2024-02-15 Thread via cfe-commits
https://github.com/SuHo-llrr edited https://github.com/llvm/llvm-project/pull/77414 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] Support .note.gnu.property for enable Zicfiss and Zicfilp extension (PR #77414)

2024-02-15 Thread via cfe-commits
https://github.com/SuHo-llrr updated https://github.com/llvm/llvm-project/pull/77414 >From 13841607619f27dd6dcc2289d0380f5b76d99cbe Mon Sep 17 00:00:00 2001 From: SuHsien Ho Date: Thu, 23 Nov 2023 14:36:43 +0800 Subject: [PATCH 1/5] [RISCV][ELF] Add RISCV GNU property label --- llvm/include/l

[clang] [clang] Fix isInStdNamespace for Decl flagged extern c++ (PR #81776)

2024-02-15 Thread via cfe-commits
https://github.com/cor3ntin commented: Looks good. Can you add an entry to clang/docs/ReleseNotes.rst? There is an ast matchers section. Thanks https://github.com/llvm/llvm-project/pull/81776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[clang] [Clang][Parser] Have the depth of the abbreviated generic lambdas inside a requires clause differ from the surrounding generic lambda (PR #80656)

2024-02-15 Thread Younan Zhang via cfe-commits
zyn0217 wrote: @cor3ntin gently ping https://github.com/llvm/llvm-project/pull/80656 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix isInStdNamespace for Decl flagged extern c++ (PR #81776)

2024-02-15 Thread Fred Tingaud via cfe-commits
https://github.com/frederic-tingaud-sonarsource updated https://github.com/llvm/llvm-project/pull/81776 >From c12b2e26ad7a114aff09b89c75178d4ab7890a20 Mon Sep 17 00:00:00 2001 From: Fred Tingaud Date: Wed, 14 Feb 2024 19:40:29 +0100 Subject: [PATCH 1/2] [clang] Fix isInStdNamespace for Decl fla

[clang] 4a32a41 - [clang] Fix two gcc warnings about unused variables [NFC]

2024-02-15 Thread Mikael Holmen via cfe-commits
Author: Mikael Holmen Date: 2024-02-15T10:31:59+01:00 New Revision: 4a32a414ee07bf15c47ba7fb7286d968e73a04fe URL: https://github.com/llvm/llvm-project/commit/4a32a414ee07bf15c47ba7fb7286d968e73a04fe DIFF: https://github.com/llvm/llvm-project/commit/4a32a414ee07bf15c47ba7fb7286d968e73a04fe.diff

[clang] [flang] [clang][flang][driver] Correct program names in option group descriptions (PR #81726)

2024-02-15 Thread Andrzej Warzyński via cfe-commits
https://github.com/banach-space approved this pull request. I've been dreaming to have a fix for this for ages, thank you! This is along the lines of what I had in mind, thanks for implementing it! LGTM 🙏🏻 https://github.com/llvm/llvm-project/pull/81726 __

[clang] ba27993 - [dataflow] Fix crash when InitListExpr is not a prvalue (#80970)

2024-02-15 Thread via cfe-commits
Author: Paul Semel Date: 2024-02-15T10:59:51+01:00 New Revision: ba279934c6ab09d5394a89d8318651aefd8d565b URL: https://github.com/llvm/llvm-project/commit/ba279934c6ab09d5394a89d8318651aefd8d565b DIFF: https://github.com/llvm/llvm-project/commit/ba279934c6ab09d5394a89d8318651aefd8d565b.diff LO

[clang] [dataflow] Fix crash when InitListExpr is not a prvalue (PR #80970)

2024-02-15 Thread Paul Semel via cfe-commits
https://github.com/paulsemel closed https://github.com/llvm/llvm-project/pull/80970 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 09b80e6 - [clang][flang][driver] Correct program names in option group descriptions (#81726)

2024-02-15 Thread via cfe-commits
Author: David Spickett Date: 2024-02-15T10:27:43Z New Revision: 09b80e6145a2e619fa8ff486a04cdc7d1534a81a URL: https://github.com/llvm/llvm-project/commit/09b80e6145a2e619fa8ff486a04cdc7d1534a81a DIFF: https://github.com/llvm/llvm-project/commit/09b80e6145a2e619fa8ff486a04cdc7d1534a81a.diff LOG

[clang] [flang] [clang][flang][driver] Correct program names in option group descriptions (PR #81726)

2024-02-15 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett closed https://github.com/llvm/llvm-project/pull/81726 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix isInStdNamespace for Decl flagged extern c++ (PR #81776)

2024-02-15 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/81776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Change modeling of 'fileno' in checkers. (PR #81842)

2024-02-15 Thread Balázs Kéri via cfe-commits
https://github.com/balazske created https://github.com/llvm/llvm-project/pull/81842 Function 'fileno' fails only if invalid pointer is passed, this is a case that is often ignored in source code. The failure case leads to many "false positive" (theoretically correct bug normally "should not ha

[clang] [clang][AArch64] multilib: fix deduction of "-march=" option (PR #81474)

2024-02-15 Thread Michael Platings via cfe-commits
Dominik =?utf-8?q?Wójt?= Message-ID: In-Reply-To: https://github.com/mplatings edited https://github.com/llvm/llvm-project/pull/81474 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][AArch64] multilib: fix deduction of "-march=" option (PR #81474)

2024-02-15 Thread Michael Platings via cfe-commits
Dominik =?utf-8?q?Wójt?= Message-ID: In-Reply-To: @@ -191,7 +191,11 @@ static void getAArch64MultilibFlags(const Driver &D, for (const auto &Ext : AArch64::Extensions) if (FeatureSet.contains(Ext.NegFeature)) MArch.push_back(("no" + Ext.Name).str()); - MArch.ins

[clang] [clang][AArch64] multilib: fix deduction of "-march=" option (PR #81474)

2024-02-15 Thread Michael Platings via cfe-commits
Dominik =?utf-8?q?W=C3=B3jt?= Message-ID: In-Reply-To: https://github.com/mplatings requested changes to this pull request. Definitely an improvement, thanks. https://github.com/llvm/llvm-project/pull/81474 ___ cfe-commits mailing list cfe-commits@l

[clang] [clang][analyzer] Change modeling of 'fileno' in checkers. (PR #81842)

2024-02-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-static-analyzer-1 Author: Balázs Kéri (balazske) Changes Function 'fileno' fails only if invalid pointer is passed, this is a case that is often ignored in source code. The failure case leads to many "false positive" (t

[clang] [clang][analyzer] Change modeling of 'fileno' in checkers. (PR #81842)

2024-02-15 Thread Balázs Kéri via cfe-commits
balazske wrote: Additionally code of `fflush` is moved in `StreamChecker` to a better place. https://github.com/llvm/llvm-project/pull/81842 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [clang] Fix isInStdNamespace for Decl flagged extern c++ (PR #81776)

2024-02-15 Thread via cfe-commits
cor3ntin wrote: Hum, should we use `getNonTransparentContext` instead? That would be cleaner https://github.com/llvm/llvm-project/pull/81776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] 0636309 - Fix MSVC "signed/unsigned mismatch" warning. NFC.

2024-02-15 Thread Simon Pilgrim via cfe-commits
Author: Simon Pilgrim Date: 2024-02-15T10:41:09Z New Revision: 0636309051f3b1a2b87047770bb3f7df1f3e27c3 URL: https://github.com/llvm/llvm-project/commit/0636309051f3b1a2b87047770bb3f7df1f3e27c3 DIFF: https://github.com/llvm/llvm-project/commit/0636309051f3b1a2b87047770bb3f7df1f3e27c3.diff LOG:

[clang] [alpha.webkit.UncountedCallArgsChecker] Detect more trivial functions (PR #81829)

2024-02-15 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/81829 >From 382ce72e206ca80e3414d5a141afa0f4f8b8 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Wed, 14 Feb 2024 23:30:27 -0800 Subject: [PATCH] [alpha.webkit.UncountedCallArgsChecker] Detect more trivial function

[clang] 3fe5a0c - MCDCCoverageBuilder: Use `pop_back_val()`

2024-02-15 Thread NAKAMURA Takumi via cfe-commits
Author: NAKAMURA Takumi Date: 2024-02-15T20:27:47+09:00 New Revision: 3fe5a0cfa5391db18fcc226f3f783642d3f44503 URL: https://github.com/llvm/llvm-project/commit/3fe5a0cfa5391db18fcc226f3f783642d3f44503 DIFF: https://github.com/llvm/llvm-project/commit/3fe5a0cfa5391db18fcc226f3f783642d3f44503.dif

[clang] 75f0d40 - CoverageMapping: Move `getParams(MCDCParams)` into `mcdc::`

2024-02-15 Thread NAKAMURA Takumi via cfe-commits
Author: NAKAMURA Takumi Date: 2024-02-15T20:27:47+09:00 New Revision: 75f0d40507ea3f7c99dd3250ff0fbe6dab341910 URL: https://github.com/llvm/llvm-project/commit/75f0d40507ea3f7c99dd3250ff0fbe6dab341910 DIFF: https://github.com/llvm/llvm-project/commit/75f0d40507ea3f7c99dd3250ff0fbe6dab341910.dif

[clang] 9f2d8cd - [flang][clang][docs] Split out Clang specific doc text for -mrvv-vector-bits

2024-02-15 Thread David Spickett via cfe-commits
Author: David Spickett Date: 2024-02-15T11:49:59Z New Revision: 9f2d8cdf4209638973a0611fa2efd4e2fe38bfa5 URL: https://github.com/llvm/llvm-project/commit/9f2d8cdf4209638973a0611fa2efd4e2fe38bfa5 DIFF: https://github.com/llvm/llvm-project/commit/9f2d8cdf4209638973a0611fa2efd4e2fe38bfa5.diff LOG

[clang] [clang] Fix crash when declaring invalid lambda member (PR #74110)

2024-02-15 Thread Nikolas Klauser via cfe-commits
philnik777 wrote: Ping (@AaronBallman maybe?) https://github.com/llvm/llvm-project/pull/74110 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix AllowShortLambdasOnASingleLine interfering with lambda brace wrapping. (PR #81848)

2024-02-15 Thread via cfe-commits
https://github.com/rmarker created https://github.com/llvm/llvm-project/pull/81848 Fix an issue where the lambda body left brace could sometimes fail to be wrapped when AllowShortLambdasOnASingleLine is enabled. Now, when BraceWrapping.BeforeLambdaBody is enabled, if the brace is not wrapped,

[clang] [clang-format] Fix AllowShortLambdasOnASingleLine interfering with lambda brace wrapping. (PR #81848)

2024-02-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (rmarker) Changes Fix an issue where the lambda body left brace could sometimes fail to be wrapped when AllowShortLambdasOnASingleLine is enabled. Now, when BraceWrapping.BeforeLambdaBody is enabled, if the brace is not wrapp

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-02-15 Thread Dinar Temirbulatov via cfe-commits
https://github.com/dtemirbulatov updated https://github.com/llvm/llvm-project/pull/79842 >From af323998a63a72f569d543cf5167d5d28e784682 Mon Sep 17 00:00:00 2001 From: Dinar Temirbulatov Date: Mon, 29 Jan 2024 14:43:13 + Subject: [PATCH 1/6] [Clang][AArch64] Warn when calling streaming/non-

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-02-15 Thread Dinar Temirbulatov via cfe-commits
@@ -3717,6 +3717,14 @@ def err_sme_definition_using_za_in_non_sme_target : Error< "function using ZA state requires 'sme'">; def err_sme_definition_using_zt0_in_non_sme2_target : Error< "function using ZT0 state requires 'sme2'">; +def warn_sme_streaming_pass_return_vl_to_

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-02-15 Thread Dinar Temirbulatov via cfe-commits
@@ -7513,6 +7516,41 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, } } +auto *CallerFD = dyn_cast(CurContext); +bool IsCalleeStreaming = ((ExtInfo.AArch64SMEAttributes & + FunctionType::SME_PStateSMEna

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-02-15 Thread Dinar Temirbulatov via cfe-commits
@@ -7513,6 +7516,41 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, } } +auto *CallerFD = dyn_cast(CurContext); +bool IsCalleeStreaming = ((ExtInfo.AArch64SMEAttributes & + FunctionType::SME_PStateSMEna

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-02-15 Thread Dinar Temirbulatov via cfe-commits
@@ -12236,6 +12236,23 @@ bool Sema::CheckFunctionDeclaration(Scope *S, FunctionDecl *NewFD, bool UsesSM = NewFD->hasAttr(); bool UsesZA = Attr && Attr->isNewZA(); bool UsesZT0 = Attr && Attr->isNewZT0(); + +if (UsesSM) { + if (NewFD->getReturnType()->isSiz

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-02-15 Thread Dinar Temirbulatov via cfe-commits
@@ -12236,6 +12236,23 @@ bool Sema::CheckFunctionDeclaration(Scope *S, FunctionDecl *NewFD, bool UsesSM = NewFD->hasAttr(); bool UsesZA = Attr && Attr->isNewZA(); bool UsesZT0 = Attr && Attr->isNewZT0(); + +if (UsesSM) { + if (NewFD->getReturnType()->isSiz

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-02-15 Thread Dinar Temirbulatov via cfe-commits
@@ -7517,34 +7517,37 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, } auto *CallerFD = dyn_cast(CurContext); -if (FD && CallerFD && Context.getTargetInfo().hasFeature("sme") && -!FD->getBuiltinID()) { +bool IsCalleeStreaming

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-02-15 Thread Dinar Temirbulatov via cfe-commits
https://github.com/dtemirbulatov updated https://github.com/llvm/llvm-project/pull/79842 >From af323998a63a72f569d543cf5167d5d28e784682 Mon Sep 17 00:00:00 2001 From: Dinar Temirbulatov Date: Mon, 29 Jan 2024 14:43:13 + Subject: [PATCH 1/7] [Clang][AArch64] Warn when calling streaming/non-

[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)

2024-02-15 Thread Dinar Temirbulatov via cfe-commits
@@ -12239,7 +12239,8 @@ bool Sema::CheckFunctionDeclaration(Scope *S, FunctionDecl *NewFD, if (UsesSM) { dtemirbulatov wrote: Done. https://github.com/llvm/llvm-project/pull/79842 ___ cfe-commits mailing list c

[clang] [clang-format] Support of TableGen basic format restrictions. (PR #81611)

2024-02-15 Thread Hirofumi Nakamura via cfe-commits
https://github.com/hnakamura5 updated https://github.com/llvm/llvm-project/pull/81611 >From 7ee4b35f0aed434053b6fd6329ef39de97bc22db Mon Sep 17 00:00:00 2001 From: hnakamura5 Date: Tue, 13 Feb 2024 23:50:15 +0900 Subject: [PATCH 1/6] [clang-format] Support of TableGen basic format restrictions

[clang] [COFF][Aarch64] Add _InterlockedAdd64 intrinsic (PR #81849)

2024-02-15 Thread Pierrick Bouvier via cfe-commits
https://github.com/pbo-linaro created https://github.com/llvm/llvm-project/pull/81849 Found when compiling openssl master branch using clang-cl. This commit introduces usage of InterlockedAdd64: https://github.com/openssl/openssl/commit/d0e1a0ae701cfaca7f3dd3bf28a3f934a6408813 https://learn.mi

[clang] [COFF][Aarch64] Add _InterlockedAdd64 intrinsic (PR #81849)

2024-02-15 Thread Pierrick Bouvier via cfe-commits
pbo-linaro wrote: InterlockedAdd original commit for reference: https://github.com/llvm/llvm-project/commit/df7929676dacf443f7cbc6d215272a793ea2b569 https://github.com/llvm/llvm-project/pull/81849 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [COFF][Aarch64] Add _InterlockedAdd64 intrinsic (PR #81849)

2024-02-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: Pierrick Bouvier (pbo-linaro) Changes Found when compiling openssl master branch using clang-cl. This commit introduces usage of InterlockedAdd64: https://github.com/openssl/openssl/commit/d0e1a0ae701cfaca7f3dd3bf28a3f934a6408813

[clang] [llvm] [ASAN] For Asan instrumented global, emit two symbols, one with actual size and other with instrumented size. (PR #70166)

2024-02-15 Thread Mitch Phillips via cfe-commits
hctim wrote: Messing around with global variables (changing their size, padding, alignment) is a common theme amongst sanitizers. We'd therefore want any strategy applied to ASan to be generic and apply across other sanitizers. The patch might not cause issues right now with ASan - but I think

[clang] [llvm] [AArch64] Add soft-float ABI (PR #74460)

2024-02-15 Thread via cfe-commits
https://github.com/ostannard updated https://github.com/llvm/llvm-project/pull/74460 >From 890f12e20ebfb7b4ab188f9fa8a46fe262a20783 Mon Sep 17 00:00:00 2001 From: Oliver Stannard Date: Fri, 1 Dec 2023 10:06:57 + Subject: [PATCH 1/8] [AArch64] Split feature tests for FP and SIMD AArch64Targ

[clang] 9cc98e3 - [AArch64] Add soft-float ABI (#74460)

2024-02-15 Thread via cfe-commits
Author: ostannard Date: 2024-02-15T12:39:16Z New Revision: 9cc98e336980f00cbafcbed8841344e6ac472bdc URL: https://github.com/llvm/llvm-project/commit/9cc98e336980f00cbafcbed8841344e6ac472bdc DIFF: https://github.com/llvm/llvm-project/commit/9cc98e336980f00cbafcbed8841344e6ac472bdc.diff LOG: [AA

[clang] [llvm] [AArch64] Add soft-float ABI (PR #74460)

2024-02-15 Thread via cfe-commits
https://github.com/ostannard closed https://github.com/llvm/llvm-project/pull/74460 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [COFF][Aarch64] Add _InterlockedAdd64 intrinsic (PR #81849)

2024-02-15 Thread Pierrick Bouvier via cfe-commits
pbo-linaro wrote: Review request: @rnk @mstorsjo https://github.com/llvm/llvm-project/pull/81849 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Do less advertising for unresolved issues in `cxx_dr_status.html` (PR #78836)

2024-02-15 Thread Aaron Ballman via cfe-commits
@@ -159,21 +165,37 @@ def availability(issue): if status == 'unknown': avail = 'Unknown' avail_style = ' class="unknown"' - elif re.match('^[0-9]+\.?[0-9]*', status): -avail = 'Clang %s' % status -if float(status) > latest_release: - avail_style = ' clas

[clang] [clang] Do less advertising for unresolved issues in `cxx_dr_status.html` (PR #78836)

2024-02-15 Thread Aaron Ballman via cfe-commits
@@ -159,21 +165,37 @@ def availability(issue): if status == 'unknown': avail = 'Unknown' avail_style = ' class="unknown"' - elif re.match('^[0-9]+\.?[0-9]*', status): -avail = 'Clang %s' % status -if float(status) > latest_release: - avail_style = ' clas

[clang] [clang][AArch64] multilib: fix deduction of "-march=" option (PR #81474)

2024-02-15 Thread Dominik Wójt via cfe-commits
https://github.com/domin144 updated https://github.com/llvm/llvm-project/pull/81474 From da3ef3a5705ca4eec5683e0c048dd93da8c58b5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20W=C3=B3jt?= Date: Mon, 12 Feb 2024 13:38:14 +0100 Subject: [PATCH 1/3] [clang][AArch64] multilib: fix deduction of

[clang] [clang][AArch64] multilib: fix deduction of "-march=" option (PR #81474)

2024-02-15 Thread Dominik Wójt via cfe-commits
@@ -191,7 +191,11 @@ static void getAArch64MultilibFlags(const Driver &D, for (const auto &Ext : AArch64::Extensions) if (FeatureSet.contains(Ext.NegFeature)) MArch.push_back(("no" + Ext.Name).str()); - MArch.insert(MArch.begin(), ("-march=" + Triple.getArchName())

[clang] [clang][AArch64] multilib: fix deduction of "-march=" option (PR #81474)

2024-02-15 Thread Michael Platings via cfe-commits
Dominik =?utf-8?q?W=C3=B3jt?= , Dominik =?utf-8?q?W=C3=B3jt?= Message-ID: In-Reply-To: https://github.com/mplatings approved this pull request. https://github.com/llvm/llvm-project/pull/81474 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] [clang] Only set the trailing bytes to zero when filling a partially … (PR #79502)

2024-02-15 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/79502 >From ead2aca22a0f964d0f316e5ea7a5e3967844c015 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Thu, 25 Jan 2024 22:12:55 +0100 Subject: [PATCH] [clang] Only set the trailing bytes to zero when fi

[clang] [C23] Fix handling of alignas (PR #81637)

2024-02-15 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. Still LGTM. Will you be able to create the good first issue? https://github.com/llvm/llvm-project/pull/81637 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] [C23] Fix handling of alignas (PR #81637)

2024-02-15 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > Still LGTM. Will you be able to create the good first issue? Yes, or I'll fix the issue myself. One or the other. :-) https://github.com/llvm/llvm-project/pull/81637 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang-tools-extra] [clang-tidy] fix incorrect hint for InitListExpr in prefer-member-initializer (PR #81560)

2024-02-15 Thread Julian Schmidt via cfe-commits
@@ -616,3 +616,26 @@ class Foo { #undef INVALID_HANDLE_VALUE #undef RGB } + +namespace GH77684 { +struct S1 { +// CHECK-MESSAGES: :[[@LINE+1]]:16: warning: 'M' should be initialized in a member initializer of the constructor [cppcoreguidelines-prefer-member-initializer] + S1

[clang-tools-extra] [clang-tidy] fix incorrect hint for InitListExpr in prefer-member-initializer (PR #81560)

2024-02-15 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti edited https://github.com/llvm/llvm-project/pull/81560 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b9cf7f1 - [C23] Fix handling of alignas (#81637)

2024-02-15 Thread via cfe-commits
Author: Aaron Ballman Date: 2024-02-15T07:58:01-05:00 New Revision: b9cf7f1066cc7ec11c6074d10b0f2ec9a3ae72d9 URL: https://github.com/llvm/llvm-project/commit/b9cf7f1066cc7ec11c6074d10b0f2ec9a3ae72d9 DIFF: https://github.com/llvm/llvm-project/commit/b9cf7f1066cc7ec11c6074d10b0f2ec9a3ae72d9.diff

[clang] [C23] Fix handling of alignas (PR #81637)

2024-02-15 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/81637 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5b8e7ed - [AArch64][Driver] Mark test as requiring AArch64 backend

2024-02-15 Thread Oliver Stannard via cfe-commits
Author: Oliver Stannard Date: 2024-02-15T12:59:16Z New Revision: 5b8e7ed787f6e537876c4fdafd070eba9681f343 URL: https://github.com/llvm/llvm-project/commit/5b8e7ed787f6e537876c4fdafd070eba9681f343 DIFF: https://github.com/llvm/llvm-project/commit/5b8e7ed787f6e537876c4fdafd070eba9681f343.diff LO

[clang] [llvm] [AArch64] Add soft-float ABI (PR #74460)

2024-02-15 Thread via cfe-commits
ostannard wrote: One test caused a buildbot failure when the AArch64 backend is not built, fixed by 5b8e7ed787f6e537876c4fdafd070eba9681f343 https://github.com/llvm/llvm-project/pull/74460 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:

[clang] [clang] Implement `__is_layout_compatible` (PR #81506)

2024-02-15 Thread via cfe-commits
@@ -1558,6 +1558,89 @@ void is_standard_layout() int t71[F(__is_standard_layout(HasEmptyIndirectBaseAsSecondUnionMember))]; } +struct CStruct2 { + int one; + int two; +}; + +struct CEmptyStruct2 {}; + +struct CppEmptyStruct2 : CStruct2 {}; +struct CppStructStandard2 : CEmp

[clang] [clang] Only set the trailing bytes to zero when filling a partially … (PR #79502)

2024-02-15 Thread via cfe-commits
serge-sans-paille wrote: > It's not clear to me this is actually consistently profitable if the computed > offset is small. If we have to emit a memset starting at a weird offset, the > code might get worse overall. (e.g. on x86, a memset of 32 bytes is three > instructions; a memset of 31 byt

[clang] [analyzer] UnixAPIMisuseChecker Get O_CREAT from preprocessor (PR #81855)

2024-02-15 Thread Alejandro Álvarez Ayllón via cfe-commits
https://github.com/alejandro-alvarez-sonarsource created https://github.com/llvm/llvm-project/pull/81855 Now calling `open` with the `O_CREAT` flag and no mode parameter will raise an issue in any system that defines `O_CREAT`. The value for this flag is obtained after the full source code has

[clang] [analyzer] UnixAPIMisuseChecker Get O_CREAT from preprocessor (PR #81855)

2024-02-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Alejandro Álvarez Ayllón (alejandro-alvarez-sonarsource) Changes Now calling `open` with the `O_CREAT` flag and no mode parameter will raise an issue in any system that defines `O_CREAT`. The value for this flag is obtained after the full

[clang] [compiler-rt] [clang][UBSan] Add implicit conversion check for bitfields (PR #75481)

2024-02-15 Thread Axel Lundberg via cfe-commits
https://github.com/Zonotora updated https://github.com/llvm/llvm-project/pull/75481 >From 5c85a13cbd5fb1d861f2b5a4cbb53abc5736674e Mon Sep 17 00:00:00 2001 From: Zonotora Date: Sat, 16 Dec 2023 19:33:21 +0100 Subject: [PATCH 1/3] [clang] Extract negativity check lambda to function --- clang/l

[clang] [clang] Fix isInStdNamespace for Decl flagged extern c++ (PR #81776)

2024-02-15 Thread Fred Tingaud via cfe-commits
https://github.com/frederic-tingaud-sonarsource updated https://github.com/llvm/llvm-project/pull/81776 >From c12b2e26ad7a114aff09b89c75178d4ab7890a20 Mon Sep 17 00:00:00 2001 From: Fred Tingaud Date: Wed, 14 Feb 2024 19:40:29 +0100 Subject: [PATCH 1/3] [clang] Fix isInStdNamespace for Decl fla

[clang] [clang] Fix isInStdNamespace for Decl flagged extern c++ (PR #81776)

2024-02-15 Thread Fred Tingaud via cfe-commits
frederic-tingaud-sonarsource wrote: Oh, I didn't know about this, but it does look better. Thanks! https://github.com/llvm/llvm-project/pull/81776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [clang] Fix isInStdNamespace for Decl flagged extern c++ (PR #81776)

2024-02-15 Thread Fred Tingaud via cfe-commits
https://github.com/frederic-tingaud-sonarsource updated https://github.com/llvm/llvm-project/pull/81776 >From c12b2e26ad7a114aff09b89c75178d4ab7890a20 Mon Sep 17 00:00:00 2001 From: Fred Tingaud Date: Wed, 14 Feb 2024 19:40:29 +0100 Subject: [PATCH 1/3] [clang] Fix isInStdNamespace for Decl fla

[clang] [clang-cl] Fix value of __FUNCTION__ in MSVC mode. (PR #67592)

2024-02-15 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam updated https://github.com/llvm/llvm-project/pull/67592 >From 55b67a58ef8b9856e5f0a8f535b8617f59711dec Mon Sep 17 00:00:00 2001 From: Ammarguellat Date: Wed, 27 Sep 2023 11:59:04 -0700 Subject: [PATCH 01/15] Fix value of __FUNCTION__ and __func__ in MSVC mode. ---

[clang] [clang-cl] Fix value of __FUNCTION__ in MSVC mode. (PR #67592)

2024-02-15 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 d1f510cca8e966bd1742bf17256bfec99dcdf229 09c7dd2f5973a36448dd7ea17664f13c28aa --

[clang] [clang] Fix isInStdNamespace for Decl flagged extern c++ (PR #81776)

2024-02-15 Thread via cfe-commits
cor3ntin wrote: Thanks! Do you need me to merge this for you? https://github.com/llvm/llvm-project/pull/81776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix isInStdNamespace for Decl flagged extern c++ (PR #81776)

2024-02-15 Thread Fred Tingaud via cfe-commits
frederic-tingaud-sonarsource wrote: Yes please :) https://github.com/llvm/llvm-project/pull/81776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c609211 - [clang] Fix isInStdNamespace for Decl flagged extern c++ (#81776)

2024-02-15 Thread via cfe-commits
Author: Fred Tingaud Date: 2024-02-15T14:55:25+01:00 New Revision: c609211d912dfa9849c5ca873d40d10e32e0a975 URL: https://github.com/llvm/llvm-project/commit/c609211d912dfa9849c5ca873d40d10e32e0a975 DIFF: https://github.com/llvm/llvm-project/commit/c609211d912dfa9849c5ca873d40d10e32e0a975.diff

[clang] [clang] Fix isInStdNamespace for Decl flagged extern c++ (PR #81776)

2024-02-15 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/81776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d68aa30 - [clang][Interp] Do r-to-l conversion immediately when returning (#80662)

2024-02-15 Thread via cfe-commits
Author: Timm Baeder Date: 2024-02-15T15:13:12+01:00 New Revision: d68aa303fe779a29a981d1d4166c45a128aa65d6 URL: https://github.com/llvm/llvm-project/commit/d68aa303fe779a29a981d1d4166c45a128aa65d6 DIFF: https://github.com/llvm/llvm-project/commit/d68aa303fe779a29a981d1d4166c45a128aa65d6.diff L

[clang] [clang][Interp] Do r-to-l conversion immediately when returning (PR #80662)

2024-02-15 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/80662 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP] Allow partial linking for `-fgpu-rdc` (PR #81700)

2024-02-15 Thread Yaxun Liu via cfe-commits
@@ -36,6 +47,146 @@ static std::string normalizeForBundler(const llvm::Triple &T, : T.normalize(); } +// Collect undefined __hip_fatbin* and __hip_gpubin_handle* symbols from all +// input object or archive files. +class HIPUndefinedFatBinSymbols { +publi

[clang] [clang-cl] Fix value of __FUNCTION__ in MSVC mode. (PR #67592)

2024-02-15 Thread Aaron Ballman via cfe-commits
@@ -1635,6 +1635,13 @@ void TypePrinter::printElaboratedBefore(const ElaboratedType *T, if (T->getKeyword() != ElaboratedTypeKeyword::None) OS << " "; NestedNameSpecifier *Qualifier = T->getQualifier(); +if (Policy.ForcePrintingAsElaboratedType) { + if (

[clang] [clang-cl] Fix value of __FUNCTION__ in MSVC mode. (PR #67592)

2024-02-15 Thread Aaron Ballman via cfe-commits
@@ -897,7 +897,8 @@ void DeclPrinter::VisitFunctionDecl(FunctionDecl *D) { D->getBody()->printPrettyControlled(Out, nullptr, SubPolicy, Indentation, "\n", &Context); } else { - if (!Policy.TerseOutput && isa(*D)) + if (Po

[clang] [clang-cl] Fix value of __FUNCTION__ in MSVC mode. (PR #67592)

2024-02-15 Thread Aaron Ballman via cfe-commits
@@ -326,6 +326,10 @@ struct PrintingPolicy { LLVM_PREFERRED_TYPE(bool) unsigned AlwaysIncludeTypeForTemplateArgument : 1; + // Whether to print the type as an elaborated type. This is used when + // printing a function via the _FUNCTION__ macro in MSVC mode. + unsigned

[clang] [HIP] Allow partial linking for `-fgpu-rdc` (PR #81700)

2024-02-15 Thread Yaxun Liu via cfe-commits
@@ -36,6 +47,146 @@ static std::string normalizeForBundler(const llvm::Triple &T, : T.normalize(); } +// Collect undefined __hip_fatbin* and __hip_gpubin_handle* symbols from all +// input object or archive files. +class HIPUndefinedFatBinSymbols { +publi

[clang] [HIP] Allow partial linking for `-fgpu-rdc` (PR #81700)

2024-02-15 Thread Yaxun Liu via cfe-commits
@@ -36,6 +47,146 @@ static std::string normalizeForBundler(const llvm::Triple &T, : T.normalize(); } +// Collect undefined __hip_fatbin* and __hip_gpubin_handle* symbols from all +// input object or archive files. +class HIPUndefinedFatBinSymbols { +publi

[clang] [llvm] [AIX] support builtin_cpu_is() for aix (PR #80069)

2024-02-15 Thread zhijian lin via cfe-commits
@@ -16542,12 +16542,64 @@ Value *CodeGenFunction::EmitPPCBuiltinExpr(unsigned BuiltinID, Intrinsic::ID ID = Intrinsic::not_intrinsic; + // The lambda function converts builtin_cpu_is function into directly + // returning false or true, or it gets and checks the informati

[clang] Revert "[X86][clang] Lift _BitInt() supported max width." (PR #81175)

2024-02-15 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: I'm not in favor of this revert at the moment, but I'd like to hear more from our ABI folks (@rjmccall @hjl-tools specifically). It does not seem reasonable to me that we basically have no path forward to support `_BitInt` with larger sizes, which is one of the key points t

[clang] Revert "[X86][clang] Lift _BitInt() supported max width." (PR #81175)

2024-02-15 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: CC @phoebewang as well https://github.com/llvm/llvm-project/pull/81175 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement `__is_layout_compatible` (PR #81506)

2024-02-15 Thread Aaron Ballman via cfe-commits
@@ -1558,6 +1558,89 @@ void is_standard_layout() int t71[F(__is_standard_layout(HasEmptyIndirectBaseAsSecondUnionMember))]; } +struct CStruct2 { + int one; + int two; +}; + +struct CEmptyStruct2 {}; + +struct CppEmptyStruct2 : CStruct2 {}; +struct CppStructStandard2 : CEmp

[clang] [clang] Allow builtin addc/subc to be constant evaluated (PR #81656)

2024-02-15 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/81656 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Allow builtin addc/subc to be constant evaluated (PR #81656)

2024-02-15 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. Please also add a release note to clang/docs/ReleaseNotes.rst so users know about the new functionality. There were a few tiny nits with comments, but otherwise this LGTM! https://github.com/llvm/llvm-project/pull/81656 __

[clang] [clang] Allow builtin addc/subc to be constant evaluated (PR #81656)

2024-02-15 Thread Aaron Ballman via cfe-commits
@@ -12696,6 +12696,59 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E, return BuiltinOp == Builtin::BI__atomic_always_lock_free ? Success(0, E) : Error(E); } + case Builtin::BI__builtin_addcb: + case Builtin::BI__builtin_addcs: + case Builtin:

[clang] [clang] Allow builtin addc/subc to be constant evaluated (PR #81656)

2024-02-15 Thread Aaron Ballman via cfe-commits
@@ -12696,6 +12696,59 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E, return BuiltinOp == Builtin::BI__atomic_always_lock_free ? Success(0, E) : Error(E); } + case Builtin::BI__builtin_addcb: + case Builtin::BI__builtin_addcs: + case Builtin:

  1   2   3   4   >