[llvm-branch-commits] [llvm] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-16 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135715 >From 6e865810ea2acaf636a4759fd4ffc67aa3dbb848 Mon Sep 17 00:00:00 2001 From: Koakuma Date: Thu, 17 Apr 2025 08:24:54 +0700 Subject: [PATCH] Promote i32 CTLZ when we don't have VIS3 or POPC Created using spr 1.

[llvm-branch-commits] [lldb] e70b828 - Revert "[CI] monolithic-linux improvements (#135499)"

2025-04-16 Thread via llvm-branch-commits
Author: Younan Zhang Date: 2025-04-17T11:45:52+08:00 New Revision: e70b8283d7778568ff715f8cc400732ad92ac321 URL: https://github.com/llvm/llvm-project/commit/e70b8283d7778568ff715f8cc400732ad92ac321 DIFF: https://github.com/llvm/llvm-project/commit/e70b8283d7778568ff715f8cc400732ad92ac321.diff

[llvm-branch-commits] [SPARC] Use op-then-neg instructions when we have VIS3 (PR #135717)

2025-04-16 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135717 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [BOLT][test] Fix callcont-fallthru.s after #129481 (PR #135867)

2025-04-16 Thread Fangrui Song via llvm-branch-commits
MaskRay wrote: > Hey Amir, > > Thanks for the PR. Unfortunately, it is still failing. The trick below > doesn't seem to work on my buildbot machine: > > > Link against a DSO to ensure PLT entries. > > So doing: > > ```shell > nm --synthetic callcont-fallthru.s.tmp > ``` > > won't list a `pu

[llvm-branch-commits] [llvm] cecfa42 - Revert "Reapply "[LLVM][TableGen] Parameterize NumToSkip in DecoderEmitter" (…"

2025-04-16 Thread via llvm-branch-commits
Author: Rahul Joshi Date: 2025-04-16T18:23:08-07:00 New Revision: cecfa425a090acdc8ed8b3442cbb890ff0cd9b11 URL: https://github.com/llvm/llvm-project/commit/cecfa425a090acdc8ed8b3442cbb890ff0cd9b11 DIFF: https://github.com/llvm/llvm-project/commit/cecfa425a090acdc8ed8b3442cbb890ff0cd9b11.diff L

[llvm-branch-commits] [SPARC] Promote i32 CTTZ when we have VIS3 (PR #135894)

2025-04-16 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135894 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-16 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135715 >From 6e865810ea2acaf636a4759fd4ffc67aa3dbb848 Mon Sep 17 00:00:00 2001 From: Koakuma Date: Thu, 17 Apr 2025 08:24:54 +0700 Subject: [PATCH 1/2] Promote i32 CTLZ when we don't have VIS3 or POPC Created using sp

[llvm-branch-commits] [llvm] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-16 Thread Sergei Barannikov via llvm-branch-commits
@@ -303,4 +303,10 @@ def : Pat<(i64 (mulhs i64:$lhs, i64:$rhs)), (SUBrr (UMULXHI $lhs, $rhs), (ADDrr (ANDrr (SRAXri $lhs, 63), $rhs), (ANDrr (SRAXri $rhs, 63), $lhs)))>; + +def : Pat<(i64 (ctlz i64:$src)), (LZCNT $src)>; +// 32-bit LZCNT.

[llvm-branch-commits] [llvm] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-16 Thread Sergei Barannikov via llvm-branch-commits
@@ -303,4 +303,10 @@ def : Pat<(i64 (mulhs i64:$lhs, i64:$rhs)), (SUBrr (UMULXHI $lhs, $rhs), (ADDrr (ANDrr (SRAXri $lhs, 63), $rhs), (ANDrr (SRAXri $rhs, 63), $lhs)))>; + +def : Pat<(i64 (ctlz i64:$src)), (LZCNT $src)>; +// 32-bit LZCNT.

[llvm-branch-commits] [llvm] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-16 Thread Sergei Barannikov via llvm-branch-commits
@@ -0,0 +1,183 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc < %s -mtriple=sparcv9 | FileCheck %s -check-prefix=V9 +; RUN: llc < %s -mtriple=sparcv9 -mattr=popc | FileCheck %s -check-prefix=POPC +; RUN: llc < %s -mtriple=sparcv9 -mat

[llvm-branch-commits] [llvm] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-16 Thread Sergei Barannikov via llvm-branch-commits
https://github.com/s-barannikov edited https://github.com/llvm/llvm-project/pull/135715 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [HLSL] Adding support for Root Constants in LLVM Metadata (PR #135085)

2025-04-16 Thread via llvm-branch-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/135085 >From 9b59d0108f6b23c039e2c417247216862073cd4b Mon Sep 17 00:00:00 2001 From: joaosaffran Date: Wed, 9 Apr 2025 21:05:58 + Subject: [PATCH 01/13] adding support for root constants in metadata generation

[llvm-branch-commits] [SPARC] Use native bitcast instructions when we have VIS3 (PR #135716)

2025-04-16 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135716 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-16 Thread Sergei Barannikov via llvm-branch-commits
@@ -0,0 +1,183 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc < %s -mtriple=sparcv9 | FileCheck %s -check-prefix=V9 +; RUN: llc < %s -mtriple=sparcv9 -mattr=popc | FileCheck %s -check-prefix=POPC +; RUN: llc < %s -mtriple=sparcv9 -mat

[llvm-branch-commits] [llvm] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-16 Thread via llvm-branch-commits
@@ -303,4 +303,10 @@ def : Pat<(i64 (mulhs i64:$lhs, i64:$rhs)), (SUBrr (UMULXHI $lhs, $rhs), (ADDrr (ANDrr (SRAXri $lhs, 63), $rhs), (ANDrr (SRAXri $rhs, 63), $lhs)))>; + +def : Pat<(i64 (ctlz i64:$src)), (LZCNT $src)>; +// 32-bit LZCNT.

[llvm-branch-commits] [llvm] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-16 Thread Sergei Barannikov via llvm-branch-commits
https://github.com/s-barannikov approved this pull request. Looks great, I left some final comments (few of them are actionable). There is also a couple of methods in TargetLoweringBase that should be implemented: `isCheapToSpeculateCtlz()`, `isCtlzFast()`. I think they could improve codegen a

[llvm-branch-commits] [llvm] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-16 Thread Sergei Barannikov via llvm-branch-commits
@@ -0,0 +1,183 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc < %s -mtriple=sparcv9 | FileCheck %s -check-prefix=V9 s-barannikov wrote: Would be nice to check V8 as well. https://github.com/llvm/llvm-project/pull/13

[llvm-branch-commits] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-16 Thread via llvm-branch-commits
@@ -1815,7 +1817,8 @@ SparcTargetLowering::SparcTargetLowering(const TargetMachine &TM, setOperationAction(ISD::FREM , MVT::f32, Expand); setOperationAction(ISD::FMA , MVT::f32, Expand); setOperationAction(ISD::CTTZ , MVT::i32, Expand); - setOperationAction(ISD::CTLZ ,

[llvm-branch-commits] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-16 Thread Sergei Barannikov via llvm-branch-commits
@@ -1815,7 +1817,8 @@ SparcTargetLowering::SparcTargetLowering(const TargetMachine &TM, setOperationAction(ISD::FREM , MVT::f32, Expand); setOperationAction(ISD::FMA , MVT::f32, Expand); setOperationAction(ISD::CTTZ , MVT::i32, Expand); - setOperationAction(ISD::CTLZ ,

[llvm-branch-commits] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-16 Thread Sergei Barannikov via llvm-branch-commits
@@ -1815,7 +1817,8 @@ SparcTargetLowering::SparcTargetLowering(const TargetMachine &TM, setOperationAction(ISD::FREM , MVT::f32, Expand); setOperationAction(ISD::FMA , MVT::f32, Expand); setOperationAction(ISD::CTTZ , MVT::i32, Expand); - setOperationAction(ISD::CTLZ ,

[llvm-branch-commits] [llvm] [HLSL] Adding support for Root Constants in LLVM Metadata (PR #135085)

2025-04-16 Thread via llvm-branch-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/135085 >From 9b59d0108f6b23c039e2c417247216862073cd4b Mon Sep 17 00:00:00 2001 From: joaosaffran Date: Wed, 9 Apr 2025 21:05:58 + Subject: [PATCH 01/12] adding support for root constants in metadata generation

[llvm-branch-commits] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-16 Thread via llvm-branch-commits
@@ -1815,7 +1817,8 @@ SparcTargetLowering::SparcTargetLowering(const TargetMachine &TM, setOperationAction(ISD::FREM , MVT::f32, Expand); setOperationAction(ISD::FMA , MVT::f32, Expand); setOperationAction(ISD::CTTZ , MVT::i32, Expand); - setOperationAction(ISD::CTLZ ,

[llvm-branch-commits] [llvm] [HLSL] Adding support for Root Constants in LLVM Metadata (PR #135085)

2025-04-16 Thread Finn Plummer via llvm-branch-commits
@@ -0,0 +1,18 @@ +; RUN: not opt -passes='print' %s -S -o - 2>&1 | FileCheck %s + +target triple = "dxil-unknown-shadermodel6.0-compute" + +; CHECK: error: Invalid value for Num32BitValues +; CHECK-NOT: Root Signature Definitions + +define void @main() #0 { +entry: + ret void +}

[llvm-branch-commits] [SPARC] Use op-then-neg instructions when we have VIS3 (PR #135717)

2025-04-16 Thread Sergei Barannikov via llvm-branch-commits
@@ -316,4 +316,17 @@ def : Pat<(i64 (sext (i32 (bitconvert f32:$src, (MOVSTOSW $src)>; def : Pat<(f32 (bitconvert i32:$src)), (MOVWTOS $src)>; def : Pat<(i64 (bitconvert f64:$src)), (MOVDTOX $src)>; def : Pat<(f64 (bitconvert i64:$src)), (MOVXTOD $src)>; + +// OP-then-neg

[llvm-branch-commits] [MTE] do not tag zero sized globals (PR #136020)

2025-04-16 Thread Peter Collingbourne via llvm-branch-commits
https://github.com/pcc approved this pull request. https://github.com/llvm/llvm-project/pull/136020 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [lldb] [lldb] Fix SBTarget::ReadInstruction with flavor (PR #136034)

2025-04-16 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Ebuka Ezike (da-viper) Changes Backported #134626 to 20.X --- Full diff: https://github.com/llvm/llvm-project/pull/136034.diff 4 Files Affected: - (modified) lldb/source/API/SBTarget.cpp (+3-3) - (added) lldb/test/API/python_api/target

[llvm-branch-commits] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-16 Thread Sergei Barannikov via llvm-branch-commits
https://github.com/s-barannikov edited https://github.com/llvm/llvm-project/pull/135715 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-16 Thread Sergei Barannikov via llvm-branch-commits
@@ -1815,7 +1817,8 @@ SparcTargetLowering::SparcTargetLowering(const TargetMachine &TM, setOperationAction(ISD::FREM , MVT::f32, Expand); setOperationAction(ISD::FMA , MVT::f32, Expand); setOperationAction(ISD::CTTZ , MVT::i32, Expand); - setOperationAction(ISD::CTLZ ,

[llvm-branch-commits] [llvm] [HLSL] Adding support for Root Constants in LLVM Metadata (PR #135085)

2025-04-16 Thread via llvm-branch-commits
@@ -94,10 +144,56 @@ static bool parse(LLVMContext *Ctx, mcdxbc::RootSignatureDesc &RSD, static bool verifyRootFlag(uint32_t Flags) { return (Flags & ~0xfff) == 0; } +static bool verifyShaderVisibility(dxbc::ShaderVisibility Flags) { + switch (Flags) { + + case dxbc::Shade

[llvm-branch-commits] [SPARC] Use op-then-halve instructions when we have VIS3 (PR #135718)

2025-04-16 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135718 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [SPARC] Use op-then-halve instructions when we have VIS3 (PR #135718)

2025-04-16 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135718 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [SPARC] Use op-then-neg instructions when we have VIS3 (PR #135717)

2025-04-16 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135717 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [SPARC] Use native bitcast instructions when we have VIS3 (PR #135716)

2025-04-16 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135716 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-16 Thread via llvm-branch-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/135715 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [MTE] do not tag zero sized globals (PR #136020)

2025-04-16 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Florian Mayer (fmayer) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/136020.diff 2 Files Affected: - (modified) clang/test/CodeGen/memtag-globals-asm.cpp (+6) - (modified) llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

[llvm-branch-commits] [MTE] do not tag zero sized globals (PR #136020)

2025-04-16 Thread Florian Mayer via llvm-branch-commits
https://github.com/fmayer ready_for_review https://github.com/llvm/llvm-project/pull/136020 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [HLSL] Adding support for Root Constants in LLVM Metadata (PR #135085)

2025-04-16 Thread Finn Plummer via llvm-branch-commits
@@ -94,10 +144,56 @@ static bool parse(LLVMContext *Ctx, mcdxbc::RootSignatureDesc &RSD, static bool verifyRootFlag(uint32_t Flags) { return (Flags & ~0xfff) == 0; } +static bool verifyShaderVisibility(dxbc::ShaderVisibility Flags) { + switch (Flags) { + + case dxbc::Shade

[llvm-branch-commits] [lldb] [lldb] Fix SBTarget::ReadInstruction with flavor (PR #136034)

2025-04-16 Thread Ebuka Ezike via llvm-branch-commits
https://github.com/da-viper created https://github.com/llvm/llvm-project/pull/136034 Backported #134626 to 20.X >From be595e63f7050a204e5c588e656c5b6e40fb024b Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Fri, 11 Apr 2025 13:45:19 +0100 Subject: [PATCH 1/2] [lldb] Fix SBTarget::ReadInstru

[llvm-branch-commits] [llvm] [BOLT][test] Fix callcont-fallthru.s after #129481 (PR #135867)

2025-04-16 Thread Amir Ayupov via llvm-branch-commits
aaupov wrote: @MaskRay – can you please advise how to force a PLT entry if linking with a DSO hack doesn't work? https://github.com/llvm/llvm-project/pull/135867 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llv

[llvm-branch-commits] [clang] b315dee - Revert "[NFC][CFI] Avoid clang error in CFI tests (#135981)"

2025-04-16 Thread via llvm-branch-commits
Author: Vitaly Buka Date: 2025-04-16T13:55:22-07:00 New Revision: b315dee6cd4f67532a53a850cd8f6d461d95ad4d URL: https://github.com/llvm/llvm-project/commit/b315dee6cd4f67532a53a850cd8f6d461d95ad4d DIFF: https://github.com/llvm/llvm-project/commit/b315dee6cd4f67532a53a850cd8f6d461d95ad4d.diff L

[llvm-branch-commits] [clang] 9d2bc67 - Revert "[NFC][CFI] Dump test output to debug llvm-clang-win-x-aarch64 failure…"

2025-04-16 Thread via llvm-branch-commits
Author: Vitaly Buka Date: 2025-04-16T13:54:29-07:00 New Revision: 9d2bc671fe2c22f84d736820e3c63617139ef2e3 URL: https://github.com/llvm/llvm-project/commit/9d2bc671fe2c22f84d736820e3c63617139ef2e3 DIFF: https://github.com/llvm/llvm-project/commit/9d2bc671fe2c22f84d736820e3c63617139ef2e3.diff L

[llvm-branch-commits] [MTE] do not tag zero sized globals (PR #136020)

2025-04-16 Thread Florian Mayer via llvm-branch-commits
https://github.com/fmayer created https://github.com/llvm/llvm-project/pull/136020 None ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] 24b0bd6 - Revert "[LLVM][TableGen] Parameterize NumToSkip in DecoderEmitter (#135882)"

2025-04-16 Thread via llvm-branch-commits
Author: Rahul Joshi Date: 2025-04-16T13:15:51-07:00 New Revision: 24b0bd6a97ed115c7530f0538eed9b9ef2b581f9 URL: https://github.com/llvm/llvm-project/commit/24b0bd6a97ed115c7530f0538eed9b9ef2b581f9 DIFF: https://github.com/llvm/llvm-project/commit/24b0bd6a97ed115c7530f0538eed9b9ef2b581f9.diff L

[llvm-branch-commits] [llvm] [llvm][IR] Treat memcmp and bcmp as libcalls (PR #135706)

2025-04-16 Thread Paul Kirth via llvm-branch-commits
ilovepi wrote: hmm, that's an interesting direction. We were discussing this internally, and we were outlining some ideas along these lines, but I think you've articulated this quite a bit better than we have so far. I really like this idea of a "no-builtins" world, and transitioning the IR. I

[llvm-branch-commits] [llvm] [llvm][IR] Treat memcmp and bcmp as libcalls (PR #135706)

2025-04-16 Thread Eli Friedman via llvm-branch-commits
efriedma-quic wrote: We need to enter the "-fno-builtins" world to make interprocedural optimizations with libc safe. Most optimizations you care about can be preserved in other ways. For example, if malloc called some intrinsic "llvm.allocate_memory"/"llvm.free_memory" to create/destroy pro

[llvm-branch-commits] [clang] 2586e26 - Revert "[Clang][RFC] Bypass TAD during overload resolution if a perfect match…"

2025-04-16 Thread via llvm-branch-commits
Author: cor3ntin Date: 2025-04-16T19:39:15+02:00 New Revision: 2586e26ebaaf967c441651a736b740bc2113ecc1 URL: https://github.com/llvm/llvm-project/commit/2586e26ebaaf967c441651a736b740bc2113ecc1 DIFF: https://github.com/llvm/llvm-project/commit/2586e26ebaaf967c441651a736b740bc2113ecc1.diff LOG:

[llvm-branch-commits] [llvm] [llvm][IR] Treat memcmp and bcmp as libcalls (PR #135706)

2025-04-16 Thread Paul Kirth via llvm-branch-commits
ilovepi wrote: First, thanks for the context. I don't see anything like this written down, so I plan to find some place in our docs to put those details. I'll be sure to CC you and other folks I think will have thoughts on the precise verbiage. The compiler's contract with libc is, from what I

[llvm-branch-commits] [NFC][CFI] Avoid failing CFI tests (PR #135981)

2025-04-16 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/135981 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [Driver] Add support for crtbegin.o, crtend.o and libgloss lib to BareMetal toolchain object (PR #121830)

2025-04-16 Thread Fangrui Song via llvm-branch-commits
@@ -1,5 +1,12 @@ // UNSUPPORTED: system-windows +// Test interaction with -fuse-ld=lld MaskRay wrote: You need to ensure that there is an `ld.lld` file with `-B%S/Inputs/lld` https://github.com/llvm/llvm-project/pull/121830 ___

[llvm-branch-commits] [clang] [Driver] Add support for crtbegin.o, crtend.o and libgloss lib to BareMetal toolchain object (PR #121830)

2025-04-16 Thread Fangrui Song via llvm-branch-commits
@@ -1,5 +1,12 @@ // UNSUPPORTED: system-windows +// Test interaction with -fuse-ld=lld MaskRay wrote: For `-fuse-ld=lld` , testing `ld.lld` is probably not a good use of an extra RUN line. Could just modify one of the tests below from `-fuse-ld=` to `-fuse-l

[llvm-branch-commits] [NFC][CFI] Avoid failing CFI tests (PR #135981)

2025-04-16 Thread Thurston Dang via llvm-branch-commits
https://github.com/thurstond approved this pull request. https://github.com/llvm/llvm-project/pull/135981 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [NFC][CFI] Avoid failing CFI tests (PR #135981)

2025-04-16 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vitaly Buka (vitalybuka) Changes In these tests we test correct linking flags set, and it' confusing that command fails because of other missing required flags. --- Full diff: https://github.com/llvm/llvm-project/pull/135981.diff 1 File

[llvm-branch-commits] [NFC][CFI] Avoid failing CFI tests (PR #135981)

2025-04-16 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/135981 In these tests we test correct linking flags set, and it' confusing that command fails because of other missing required flags. ___ llvm-branch-commits mailing li

[llvm-branch-commits] [mlir] [mlir][memref][NFC] Simplify `constifyIndexValues` (PR #135940)

2025-04-16 Thread Quentin Colombet via llvm-branch-commits
https://github.com/qcolombet approved this pull request. https://github.com/llvm/llvm-project/pull/135940 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [mlir] [mlir][memref][NFC] Simplify `constifyIndexValues` (PR #135940)

2025-04-16 Thread Quentin Colombet via llvm-branch-commits
@@ -88,101 +88,30 @@ SmallVector memref::getMixedSizes(OpBuilder &builder, // Utility functions for propagating static information //===--===// -/// Helper function that infers the constant values from a lis

[llvm-branch-commits] [NFC][CFI] Add test to check for '-flto' and '-fvisibility=' flags (PR #135892)

2025-04-16 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/135892 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [NFC][CFI] Add test to check for '-flto' and '-fvisibility=' flags (PR #135892)

2025-04-16 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/135892 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [NFC][CFI] Add test to check for '-flto' and '-fvisibility=' flags (PR #135892)

2025-04-16 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/135892 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [NFC][CFI] Add test to check for '-flto' and '-fvisibility=' flags (PR #135892)

2025-04-16 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/135892 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [NFC][CFI] Don't mix CFI and non-CFI flags on the same line (PR #135890)

2025-04-16 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/135890 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [NFC][Driver][CFI] Rename to clarify purpose of CFI runtime (PR #135885)

2025-04-16 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/135885 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [NFC][Driver][CFI] Rename to clarify purpose of CFI runtime (PR #135885)

2025-04-16 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/135885 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [compiler-rt] [llvm] Reentry (PR #135656)

2025-04-16 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin updated https://github.com/llvm/llvm-project/pull/135656 >From d2502c89927e7f013a1f71f0dc5a52f390dc8c8e Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Mon, 14 Apr 2025 07:19:58 -0700 Subject: [PATCH] Reentry --- .../lib/ctx_profile/CtxInstrProfiling.cpp | 15

[llvm-branch-commits] [compiler-rt] [llvm] Reentry (PR #135656)

2025-04-16 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin updated https://github.com/llvm/llvm-project/pull/135656 >From d2502c89927e7f013a1f71f0dc5a52f390dc8c8e Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Mon, 14 Apr 2025 07:19:58 -0700 Subject: [PATCH] Reentry --- .../lib/ctx_profile/CtxInstrProfiling.cpp | 15

[llvm-branch-commits] [SPARC] Promote i32 CTTZ when we have VIS3 (PR #135894)

2025-04-16 Thread via llvm-branch-commits
@@ -1,70 +1,195 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc < %s -mtriple=sparc -mcpu=v9 | FileCheck %s +; RUN: llc < %s -mtriple=sparcv9 | FileCheck %s -check-prefix=V9 +; RUN: llc < %s -mtriple=sparcv9 -mattr=popc | FileCheck %s

[llvm-branch-commits] [SPARC] Use lzcnt to implement CTLZ when we have VIS3 (PR #135715)

2025-04-16 Thread via llvm-branch-commits
@@ -0,0 +1,313 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc < %s -mtriple=sparcv9 | FileCheck %s -check-prefix=V9 +; RUN: llc < %s -mtriple=sparcv9 -mattr=popc | FileCheck %s -check-prefix=POPC +; RUN: llc < %s -mtriple=sparcv9 -mat

[llvm-branch-commits] [compiler-rt] [llvm] Reentry (PR #135656)

2025-04-16 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin updated https://github.com/llvm/llvm-project/pull/135656 >From 82a52559695b52adfcf6dc4f5c4e5383b3616848 Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Mon, 14 Apr 2025 07:19:58 -0700 Subject: [PATCH] Reentry --- .../lib/ctx_profile/CtxInstrProfiling.cpp | 15

[llvm-branch-commits] [compiler-rt] [llvm] Reentry (PR #135656)

2025-04-16 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin updated https://github.com/llvm/llvm-project/pull/135656 >From 82a52559695b52adfcf6dc4f5c4e5383b3616848 Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Mon, 14 Apr 2025 07:19:58 -0700 Subject: [PATCH] Reentry --- .../lib/ctx_profile/CtxInstrProfiling.cpp | 15

[llvm-branch-commits] [compiler-rt] [llvm] Reentry (PR #135656)

2025-04-16 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin updated https://github.com/llvm/llvm-project/pull/135656 >From caa4002fa5ad9e1a04d20d980753d36b261fef2a Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Mon, 14 Apr 2025 07:19:58 -0700 Subject: [PATCH] Reentry --- .../lib/ctx_profile/CtxInstrProfiling.cpp | 15

[llvm-branch-commits] [compiler-rt] [llvm] Reentry (PR #135656)

2025-04-16 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin updated https://github.com/llvm/llvm-project/pull/135656 >From caa4002fa5ad9e1a04d20d980753d36b261fef2a Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Mon, 14 Apr 2025 07:19:58 -0700 Subject: [PATCH] Reentry --- .../lib/ctx_profile/CtxInstrProfiling.cpp | 15

[llvm-branch-commits] [clang] release/20.x: [clang][AST] Handle implicit first argument in CallExpr::getBeginLoc() (PR #135927)

2025-04-16 Thread Aaron Ballman via llvm-branch-commits
https://github.com/AaronBallman approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/135927 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commit

[llvm-branch-commits] [llvm] [BOLT][test] Fix callcont-fallthru.s after #129481 (PR #135867)

2025-04-16 Thread Paschalis Mpeis via llvm-branch-commits
https://github.com/paschalis-mpeis commented: Hey Amir, Thanks for the PR. Unfortunately, it is still failing. The trick below doesn't seem to work on my buildbot machine: > Link against a DSO to ensure PLT entries. So doing: ```bash nm --synthetic callcont-fallthru.s.tmp ``` won't list a `pu

[llvm-branch-commits] [mlir] [mlir][memref][NFC] Simplify `constifyIndexValues` (PR #135940)

2025-04-16 Thread Matthias Springer via llvm-branch-commits
https://github.com/matthias-springer updated https://github.com/llvm/llvm-project/pull/135940 >From 05d2c7b8c4645dc686ea7ad20ed351c707430475 Mon Sep 17 00:00:00 2001 From: Matthias Springer Date: Wed, 16 Apr 2025 10:02:41 +0200 Subject: [PATCH] [mlir][memref][NFC] Simplify `constifyIndexValues`

[llvm-branch-commits] [mlir] [mlir][memref][NFC] Simplify `constifyIndexValues` (PR #135940)

2025-04-16 Thread Matthias Springer via llvm-branch-commits
https://github.com/matthias-springer updated https://github.com/llvm/llvm-project/pull/135940 >From d137ec06b1b846232a77b78472c522183b872152 Mon Sep 17 00:00:00 2001 From: Matthias Springer Date: Wed, 16 Apr 2025 10:02:41 +0200 Subject: [PATCH] [mlir][memref][NFC] Simplify `constifyIndexValues`

[llvm-branch-commits] [mlir] [mlir][memref][NFC] Simplify `constifyIndexValues` (PR #135940)

2025-04-16 Thread Matthias Springer via llvm-branch-commits
https://github.com/matthias-springer updated https://github.com/llvm/llvm-project/pull/135940 >From ea19bcfab213967b0e86aa1346734432e4843e0f Mon Sep 17 00:00:00 2001 From: Matthias Springer Date: Wed, 16 Apr 2025 10:02:41 +0200 Subject: [PATCH] [mlir][memref][NFC] Simplify `constifyIndexValues`

[llvm-branch-commits] [mlir] [mlir][memref][NFC] Simplify `constifyIndexValues` (PR #135940)

2025-04-16 Thread via llvm-branch-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 -- mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp ``

[llvm-branch-commits] [mlir] [mlir][memref][NFC] Simplify `constifyIndexValues` (PR #135940)

2025-04-16 Thread Matthias Springer via llvm-branch-commits
https://github.com/matthias-springer edited https://github.com/llvm/llvm-project/pull/135940 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [mlir] [mlir][memref][NFC] Simplify `constifyIndexValues` (PR #135940)

2025-04-16 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-memref Author: Matthias Springer (matthias-springer) Changes Depends on #135939. --- Full diff: https://github.com/llvm/llvm-project/pull/135940.diff 1 Files Affected: - (modified) mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp (+50-103) `

[llvm-branch-commits] [mlir] [mlir][memref][NFC] Simplify `constifyIndexValues` (PR #135940)

2025-04-16 Thread Matthias Springer via llvm-branch-commits
https://github.com/matthias-springer created https://github.com/llvm/llvm-project/pull/135940 Depends on #135939. >From 0ca00d18d5ce5b118fbc4c777ae9eabd5ae410e5 Mon Sep 17 00:00:00 2001 From: Matthias Springer Date: Wed, 16 Apr 2025 10:02:41 +0200 Subject: [PATCH] [mlir][memref][NFC] Simplify

[llvm-branch-commits] [clang] release/20.x: [clang][AST] Handle implicit first argument in CallExpr::getBeginLoc() (PR #135927)

2025-04-16 Thread Younan Zhang via llvm-branch-commits
https://github.com/zyn0217 approved this pull request. https://github.com/llvm/llvm-project/pull/135927 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] release/20.x: [LoongArch] Don't crash on instruction prefetch intrinsics (#135760) (PR #135923)

2025-04-16 Thread via llvm-branch-commits
https://github.com/heiher approved this pull request. https://github.com/llvm/llvm-project/pull/135923 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] release/20.x: [clang][AST] Handle implicit first argument in CallExpr::getBeginLoc() (PR #135927)

2025-04-16 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nathan Ridge (HighCommander4) Changes Backport https://github.com/llvm/llvm-project/commit/289baf1f42c8b5773271b611cd235d4ab94bb4e8 Fixes https://github.com/llvm/llvm-project/issues/135922 --- Full diff: https://github.com/llvm/llvm-proj

[llvm-branch-commits] [clang] release/20.x: [clang][AST] Handle implicit first argument in CallExpr::getBeginLoc() (PR #135927)

2025-04-16 Thread Nathan Ridge via llvm-branch-commits
https://github.com/HighCommander4 created https://github.com/llvm/llvm-project/pull/135927 Backport https://github.com/llvm/llvm-project/commit/289baf1f42c8b5773271b611cd235d4ab94bb4e8 Fixes https://github.com/llvm/llvm-project/issues/135922 >From a9ea5de20db3ff08d691856e7da5b185d438e228 Mon

[llvm-branch-commits] [clang] release/20.x: [clang][AST] Handle implicit first argument in CallExpr::getBeginLoc() (PR #135927)

2025-04-16 Thread Nathan Ridge via llvm-branch-commits
https://github.com/HighCommander4 milestoned https://github.com/llvm/llvm-project/pull/135927 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] release/20.x: [LoongArch] Don't crash on instruction prefetch intrinsics (#135760) (PR #135923)

2025-04-16 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-loongarch Author: None (llvmbot) Changes Backport dfb5b6e Requested by: @leecheechen --- Full diff: https://github.com/llvm/llvm-project/pull/135923.diff 3 Files Affected: - (modified) llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp (+15

[llvm-branch-commits] [llvm] release/20.x: [LoongArch] Don't crash on instruction prefetch intrinsics (#135760) (PR #135923)

2025-04-16 Thread via llvm-branch-commits
llvmbot wrote: @heiher What do you think about merging this PR to the release branch? https://github.com/llvm/llvm-project/pull/135923 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[llvm-branch-commits] [llvm] release/20.x: [LoongArch] Don't crash on instruction prefetch intrinsics (#135760) (PR #135923)

2025-04-16 Thread via llvm-branch-commits
https://github.com/llvmbot milestoned https://github.com/llvm/llvm-project/pull/135923 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] release/20.x: [LoongArch] Don't crash on instruction prefetch intrinsics (#135760) (PR #135923)

2025-04-16 Thread via llvm-branch-commits
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/135923 Backport dfb5b6e Requested by: @leecheechen >From 96e5a1d7b878dc608d5e4b20278d2c5ce8cf218c Mon Sep 17 00:00:00 2001 From: leecheechen Date: Wed, 16 Apr 2025 14:12:00 +0800 Subject: [PATCH] [LoongArch] Don't cr

[llvm-branch-commits] [llvm] [AMDGPU][InsertWaitCnts] Track global_wb/inv/wbinv (PR #135340)

2025-04-16 Thread Pierre van Houtryve via llvm-branch-commits
Pierre-vh wrote: > Just a quick side question, do we have any write-up or documentation about > the memory model? AMDGPUUsage has a memory model section for each arch https://github.com/llvm/llvm-project/pull/135340 ___ llvm-branch-commits mailing li