[llvm-branch-commits] [llvm] d999ae6 - Revert "[GlobalISel] Combine [s, z]ext of undef into 0 (#117439)"

2024-12-04 Thread via llvm-branch-commits
Author: Thorsten Schütt Date: 2024-12-05T07:03:46+01:00 New Revision: d999ae6cfdae05ee22a7df13e8a70ce14fc96684 URL: https://github.com/llvm/llvm-project/commit/d999ae6cfdae05ee22a7df13e8a70ce14fc96684 DIFF: https://github.com/llvm/llvm-project/commit/d999ae6cfdae05ee22a7df13e8a70ce14fc96684.dif

[llvm-branch-commits] [llvm] d999ae6 - Revert "[GlobalISel] Combine [s, z]ext of undef into 0 (#117439)"

2024-12-04 Thread via llvm-branch-commits
Author: Thorsten Schütt Date: 2024-12-05T07:03:46+01:00 New Revision: d999ae6cfdae05ee22a7df13e8a70ce14fc96684 URL: https://github.com/llvm/llvm-project/commit/d999ae6cfdae05ee22a7df13e8a70ce14fc96684 DIFF: https://github.com/llvm/llvm-project/commit/d999ae6cfdae05ee22a7df13e8a70ce14fc96684.dif

[llvm-branch-commits] [clang][CallGraphSection] Add call graph section option and docs (PR #117037)

2024-12-04 Thread Paul Kirth via llvm-branch-commits
@@ -0,0 +1,251 @@ +== +Call Graph Section +== + +Introduction + + +With ``-fcall-graph-section``, the compiler will create a call graph section +in the object file. It will include type identifiers for indirect calls and +targets. This

[llvm-branch-commits] [clang][CallGraphSection] Add call graph section option and docs (PR #117037)

2024-12-04 Thread Paul Kirth via llvm-branch-commits
@@ -0,0 +1,251 @@ +== +Call Graph Section +== + +Introduction + + +With ``-fcall-graph-section``, the compiler will create a call graph section +in the object file. It will include type identifiers for indirect calls and +targets. This

[llvm-branch-commits] [llvm] AMDGPU/GlobalISel: AMDGPURegBankLegalize (PR #112864)

2024-12-04 Thread Matt Arsenault via llvm-branch-commits
@@ -674,6 +674,14 @@ class MachineRegisterInfo { return dyn_cast_if_present(Val); } + /// Return the register bank of \p Reg. + /// This shouldn't be used directly unless \p Reg has a register bank. + const RegisterBank *getRegBank(Register Reg) const { +assert(is

[llvm-branch-commits] [llvm] AMDGPU/GlobalISel: AMDGPURegBankLegalize (PR #112864)

2024-12-04 Thread Matt Arsenault via llvm-branch-commits
@@ -69,11 +82,295 @@ FunctionPass *llvm::createAMDGPURegBankLegalizePass() { return new AMDGPURegBankLegalize(); } -using namespace AMDGPU; +const RegBankLegalizeRules &getRules(const GCNSubtarget &ST, + MachineRegisterInfo &MRI) { + stat

[llvm-branch-commits] [llvm] AMDGPU/GlobalISel: AMDGPURegBankLegalize (PR #112864)

2024-12-04 Thread Matt Arsenault via llvm-branch-commits
@@ -106,3 +106,59 @@ void IntrinsicLaneMaskAnalyzer::findLCSSAPhi(Register Reg) { S32S64LaneMask.insert(LCSSAPhi.getOperand(0).getReg()); } } + +static LLT getReadAnyLaneSplitTy(LLT Ty) { + if (Ty.isVector()) { +LLT ElTy = Ty.getElementType(); +if (ElTy == LLT

[llvm-branch-commits] [llvm] AMDGPU/GlobalISel: AMDGPURegBankLegalize (PR #112864)

2024-12-04 Thread Matt Arsenault via llvm-branch-commits
@@ -69,11 +82,295 @@ FunctionPass *llvm::createAMDGPURegBankLegalizePass() { return new AMDGPURegBankLegalize(); } -using namespace AMDGPU; +const RegBankLegalizeRules &getRules(const GCNSubtarget &ST, + MachineRegisterInfo &MRI) { + stat

[llvm-branch-commits] [llvm] AMDGPU/GlobalISel: AMDGPURegBankLegalize (PR #112864)

2024-12-04 Thread Matt Arsenault via llvm-branch-commits
@@ -249,7 +317,21 @@ bool AMDGPUInstructionSelector::selectPHI(MachineInstr &I) const { } } - // TODO: Verify that all registers have the same bank + // If inputs have register bank, assign corresponding reg class. + // Note: registers don't need to have the same reg

[llvm-branch-commits] [llvm] AMDGPU/GlobalISel: AMDGPURegBankLegalize (PR #112864)

2024-12-04 Thread Matt Arsenault via llvm-branch-commits
@@ -69,11 +82,295 @@ FunctionPass *llvm::createAMDGPURegBankLegalizePass() { return new AMDGPURegBankLegalize(); } -using namespace AMDGPU; +const RegBankLegalizeRules &getRules(const GCNSubtarget &ST, + MachineRegisterInfo &MRI) { + stat

[llvm-branch-commits] [llvm] AMDGPU/GlobalISel: AMDGPURegBankLegalize (PR #112864)

2024-12-04 Thread Matt Arsenault via llvm-branch-commits
@@ -106,3 +106,59 @@ void IntrinsicLaneMaskAnalyzer::findLCSSAPhi(Register Reg) { S32S64LaneMask.insert(LCSSAPhi.getOperand(0).getReg()); } } + +static LLT getReadAnyLaneSplitTy(LLT Ty) { + if (Ty.isVector()) { +LLT ElTy = Ty.getElementType(); +if (ElTy == LLT

[llvm-branch-commits] [llvm] AMDGPU/GlobalISel: AMDGPURegBankLegalize (PR #112864)

2024-12-04 Thread Matt Arsenault via llvm-branch-commits
@@ -106,3 +106,59 @@ void IntrinsicLaneMaskAnalyzer::findLCSSAPhi(Register Reg) { S32S64LaneMask.insert(LCSSAPhi.getOperand(0).getReg()); } } + +static LLT getReadAnyLaneSplitTy(LLT Ty) { + if (Ty.isVector()) { +LLT ElTy = Ty.getElementType(); +if (ElTy == LLT

[llvm-branch-commits] [llvm] 81890dc - Revert "[DAGCombiner] Add support for scalarising extracts of a vector setcc …"

2024-12-04 Thread via llvm-branch-commits
Author: Vitaly Buka Date: 2024-12-04T12:27:34-08:00 New Revision: 81890dc8a940ef3dec5bf7164202eb36ff7e1821 URL: https://github.com/llvm/llvm-project/commit/81890dc8a940ef3dec5bf7164202eb36ff7e1821 DIFF: https://github.com/llvm/llvm-project/commit/81890dc8a940ef3dec5bf7164202eb36ff7e1821.diff L

[llvm-branch-commits] [lld] [PAC][lld][AArch64][ELF] Support signed GOT with tiny code model (PR #113816)

2024-12-04 Thread Daniil Kovalev via llvm-branch-commits
https://github.com/kovdan01 edited https://github.com/llvm/llvm-project/pull/113816 ___ 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] [lld] [PAC][lld][AArch64][ELF] Support signed GOT with tiny code model (PR #113816)

2024-12-04 Thread Daniil Kovalev via llvm-branch-commits
https://github.com/kovdan01 updated https://github.com/llvm/llvm-project/pull/113816 >From 8f3005f33d0945f066b4abbc0fb715687fce94b2 Mon Sep 17 00:00:00 2001 From: Daniil Kovalev Date: Fri, 25 Oct 2024 21:28:18 +0300 Subject: [PATCH 1/7] [PAC][lld][AArch64][ELF] Support signed GOT with tiny cod

[llvm-branch-commits] [lld] [PAC][lld][AArch64][ELF] Support signed TLSDESC (PR #113817)

2024-12-04 Thread Daniil Kovalev via llvm-branch-commits
https://github.com/kovdan01 updated https://github.com/llvm/llvm-project/pull/113817 >From 67e828f807bd60535d242e534ae5427fccdb9237 Mon Sep 17 00:00:00 2001 From: Daniil Kovalev Date: Fri, 25 Oct 2024 12:32:27 +0300 Subject: [PATCH 1/9] [PAC][lld][AArch64][ELF] Support signed TLSDESC Support `

[llvm-branch-commits] [lld] [PAC][lld][AArch64][ELF] Support signed GOT with tiny code model (PR #113816)

2024-12-04 Thread Daniil Kovalev via llvm-branch-commits
https://github.com/kovdan01 updated https://github.com/llvm/llvm-project/pull/113816 >From f061ec8df5648bdff25e0278075ad515e681b698 Mon Sep 17 00:00:00 2001 From: Daniil Kovalev Date: Fri, 25 Oct 2024 21:28:18 +0300 Subject: [PATCH 1/7] [PAC][lld][AArch64][ELF] Support signed GOT with tiny cod

[llvm-branch-commits] [lld] [PAC][lld][AArch64][ELF] Support signed TLSDESC (PR #113817)

2024-12-04 Thread Daniil Kovalev via llvm-branch-commits
https://github.com/kovdan01 updated https://github.com/llvm/llvm-project/pull/113817 >From ca216cb4ecf6bc1bac57b228c49d5d7d62d26b38 Mon Sep 17 00:00:00 2001 From: Daniil Kovalev Date: Fri, 25 Oct 2024 12:32:27 +0300 Subject: [PATCH 1/9] [PAC][lld][AArch64][ELF] Support signed TLSDESC Support `

[llvm-branch-commits] [llvm] [NFC][Utils] Eliminate DISubprogram set from BuildDebugInfoMDMap (PR #118625)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh updated https://github.com/llvm/llvm-project/pull/118625 >From 302580a1bd36c71c9dec53b42468ee70e9762762 Mon Sep 17 00:00:00 2001 From: Artem Pianykh Date: Sat, 14 Sep 2024 16:02:51 -0700 Subject: [PATCH] [NFC][Utils] Eliminate DISubprogram set from BuildDebugInf

[llvm-branch-commits] [flang] 6abd04e - Revert "[flang][cuda] Run target rewrite in gpu.module (#118592)"

2024-12-04 Thread via llvm-branch-commits
Author: Valentin Clement (バレンタイン クレメン) Date: 2024-12-04T10:16:54-08:00 New Revision: 6abd04e62cb913d970e74b13486a0485e175cf02 URL: https://github.com/llvm/llvm-project/commit/6abd04e62cb913d970e74b13486a0485e175cf02 DIFF: https://github.com/llvm/llvm-project/commit/6abd04e62cb913d970e74b13486a0

[llvm-branch-commits] [llvm] MachineUniformityAnalysis: Improve isConstantOrUndefValuePhi (PR #112866)

2024-12-04 Thread Petar Avramovic via llvm-branch-commits
https://github.com/petar-avramovic updated https://github.com/llvm/llvm-project/pull/112866 >From 18162175daa7f1627f036ecda9cbfb589b58d04a Mon Sep 17 00:00:00 2001 From: Petar Avramovic Date: Thu, 31 Oct 2024 14:10:57 +0100 Subject: [PATCH] MachineUniformityAnalysis: Improve isConstantOrUndefVa

[llvm-branch-commits] [llvm] AMDGPU/GlobalISel: RegBankLegalize rules for load (PR #112882)

2024-12-04 Thread Petar Avramovic via llvm-branch-commits
https://github.com/petar-avramovic updated https://github.com/llvm/llvm-project/pull/112882 >From 3f80c887a75708c9cf88283fde991be7221c73d9 Mon Sep 17 00:00:00 2001 From: Petar Avramovic Date: Wed, 30 Oct 2024 15:37:59 +0100 Subject: [PATCH] AMDGPU/GlobalISel: RegBankLegalize rules for load Add

[llvm-branch-commits] [RISCV] Enable ShouldTrackLaneMasks when having vector instructions (PR #115843)

2024-12-04 Thread Philip Reames via llvm-branch-commits
preames wrote: > Ping. I went and dug through the diffs in the tests. I see no obvious evidence of performance improvement, and a couple of regressions (see vector_interleave_nxv16f64_nxv8f64). I don't think this patch should move forward unless we have a justification for why we think this

[llvm-branch-commits] [llvm] [Coro] Prebuild a global debug info set and share it between all coroutine clones (PR #118628)

2024-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-coroutines @llvm/pr-subscribers-llvm-transforms Author: Artem Pianykh (artempyanykh) Changes [Coro] Prebuild a global debug info set and share it between all coroutine clones Summary: CoroCloner, by calling into CloneFunctionInto, does a lot of repeate

[llvm-branch-commits] [llvm] [Utils] Identity map global debug info on first use in CloneFunction* (PR #118627)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh edited https://github.com/llvm/llvm-project/pull/118627 ___ 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] [Coro] Use DebugInfoCache to speed up cloning in CoroSplitPass (PR #118630)

2024-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-coroutines Author: Artem Pianykh (artempyanykh) Changes [Coro] Use DebugInfoCache to speed up cloning in CoroSplitPass Summary: We can use a DebugInfoFinder from DebugInfoCache which is already primed on a compile unit to speed up collection of global

[llvm-branch-commits] [llvm] [NFC][Utils] Extract BuildDebugInfoMDMap from CloneFunctionInto (PR #118622)

2024-12-04 Thread Felipe de Azevedo Piovezan via llvm-branch-commits
@@ -79,14 +79,16 @@ struct ValueMapConfig { static mutex_type *getMutex(const ExtraDataT &/*Data*/) { return nullptr; } }; +/// This type stores Metadata. Used in ValueMap. +using MDMapT = DenseMap; felipepiovezan wrote: I don't think we should have a type

[llvm-branch-commits] [llvm] [NFC][Utils] Extract BuildDebugInfoMDMap from CloneFunctionInto (PR #118622)

2024-12-04 Thread Felipe de Azevedo Piovezan via llvm-branch-commits
https://github.com/felipepiovezan edited https://github.com/llvm/llvm-project/pull/118622 ___ 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] [Coro] Prebuild a global debug info set and share it between all coroutine clones (PR #118628)

2024-12-04 Thread Tyler Nowicki via llvm-branch-commits
TylerNowicki wrote: nit: Perhaps 'Common' is a better word than 'Global'. Global made me think of global variables but I realized in the patch that is not what you are doing. Seems you are just creating debug info based on the original function and sharing that with the continuations / splits?

[llvm-branch-commits] [llvm] AMDGPU: Simplify definition of bitop3 operand. NFC. (PR #118648)

2024-12-04 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/118648 >From 5e0861e23ee92934400ce9d8672d33b995d9d6fa Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Wed, 4 Dec 2024 09:07:01 -0500 Subject: [PATCH] AMDGPU: Simplify definition of bitop3 operand. NFC. Co-authored-

[llvm-branch-commits] [flang] [mlir] [Flang][OpenMP] Lowering of host-evaluated clauses (PR #116219)

2024-12-04 Thread Sergio Afonso via llvm-branch-commits
skatrak wrote: Thank you Michael for taking a look. Ping for a second reviewer! https://github.com/llvm/llvm-project/pull/116219 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llv

[llvm-branch-commits] [clang] [llvm] [mlir] [OMPIRBuilder] Support runtime number of teams and threads, and SPMD mode (PR #116051)

2024-12-04 Thread Sergio Afonso via llvm-branch-commits
https://github.com/skatrak edited https://github.com/llvm/llvm-project/pull/116051 ___ 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] [flang] [mlir] [MLIR][OpenMP] LLVM IR translation of host_eval (PR #116052)

2024-12-04 Thread Sergio Afonso via llvm-branch-commits
https://github.com/skatrak edited https://github.com/llvm/llvm-project/pull/116052 ___ 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] [llvm] [mlir] [OMPIRBuilder] Support runtime number of teams and threads, and SPMD mode (PR #116051)

2024-12-04 Thread Sergio Afonso via llvm-branch-commits
skatrak wrote: @jdoerfert, can you check whether your concerns have been addressed? https://github.com/llvm/llvm-project/pull/116051 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[llvm-branch-commits] [flang] [mlir] [MLIR][OpenMP] LLVM IR translation of host_eval (PR #116052)

2024-12-04 Thread Sergio Afonso via llvm-branch-commits
skatrak wrote: Ping for reviews! https://github.com/llvm/llvm-project/pull/116052 ___ 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] [llvm] [mlir] [OMPIRBuilder] Introduce struct to hold default kernel teams/threads (PR #116050)

2024-12-04 Thread Sergio Afonso via llvm-branch-commits
skatrak wrote: Ping for reviews! https://github.com/llvm/llvm-project/pull/116050 ___ 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] AMDGPU: Simplify definition of bitop3 operand. NFC. (PR #118648)

2024-12-04 Thread Shilei Tian via llvm-branch-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/118648 ___ 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] [flang] [mlir] [Flang][OpenMP] Lowering of host-evaluated clauses (PR #116219)

2024-12-04 Thread Sergio Afonso via llvm-branch-commits
https://github.com/skatrak updated https://github.com/llvm/llvm-project/pull/116219 >From 34437021123b32c9d38f8edc84448db1b0526574 Mon Sep 17 00:00:00 2001 From: Sergio Afonso Date: Thu, 14 Nov 2024 12:24:15 + Subject: [PATCH] [Flang][OpenMP] Lowering of host-evaluated clauses This patch a

[llvm-branch-commits] [llvm] AMDGPU: Simplify definition of bitop3 operand. NFC. (PR #118648)

2024-12-04 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm ready_for_review https://github.com/llvm/llvm-project/pull/118648 ___ 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] AMDGPU: Simplify definition of bitop3 operand. NFC. (PR #118648)

2024-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Matt Arsenault (arsenm) Changes Co-authored-by: Jay Foad --- Full diff: https://github.com/llvm/llvm-project/pull/118648.diff 2 Files Affected: - (modified) llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cp

[llvm-branch-commits] [llvm] AMDGPU: Simplify definition of bitop3 operand. NFC. (PR #118648)

2024-12-04 Thread Matt Arsenault via llvm-branch-commits
arsenm wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/118648?utm_source=stack-comment-downstack-mergeability-warning";

[llvm-branch-commits] [llvm] AMDGPU: Simplify definition of bitop3 operand. NFC. (PR #118648)

2024-12-04 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/118648 Co-authored-by: Jay Foad >From cf3e33b881b99553ff7e044b4df48c27479ee729 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Wed, 4 Dec 2024 09:07:01 -0500 Subject: [PATCH] AMDGPU: Simplify definition of bitop3

[llvm-branch-commits] [llvm] [NFC] Remove adhoc definition of MDMapT in IRMover (PR #118626)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh created https://github.com/llvm/llvm-project/pull/118626 [NFC] Remove adhoc definition of MDMapT in IRMover Summary: The typedef was there probably because the type alias in ValueMap was private. Test Plan: ninja check-llvm-unit check-llvm >From 7986937bb770f80

[llvm-branch-commits] [llvm] [Coro] Prebuild a global debug info set and share it between all coroutine clones (PR #118628)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh edited https://github.com/llvm/llvm-project/pull/118628 ___ 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] [flang] [mlir] [MLIR][OpenMP] LLVM IR translation of host_eval (PR #116052)

2024-12-04 Thread Sergio Afonso via llvm-branch-commits
https://github.com/skatrak updated https://github.com/llvm/llvm-project/pull/116052 >From a323719359d8d348e2080911d3cedcd4a58d3a5e Mon Sep 17 00:00:00 2001 From: Sergio Afonso Date: Tue, 12 Nov 2024 10:49:28 + Subject: [PATCH] [MLIR][OpenMP] LLVM IR translation of host_eval This patch adds

[llvm-branch-commits] [llvm] [NFC] Remove adhoc definition of MDMapT in IRMover (PR #118626)

2024-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-lto Author: Artem Pianykh (artempyanykh) Changes [NFC] Remove adhoc definition of MDMapT in IRMover Summary: The typedef was there probably because the type alias in ValueMap was private. Test Plan: ninja check-llvm-unit check-llvm --- Full diff: http

[llvm-branch-commits] [llvm] [Coro] Prebuild a global debug info set and share it between all coroutine clones (PR #118628)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh updated https://github.com/llvm/llvm-project/pull/118628 >From aa6401c9daa6645456dc26a214aed1253ad98f17 Mon Sep 17 00:00:00 2001 From: Artem Pianykh Date: Tue, 19 Nov 2024 17:19:27 -0700 Subject: [PATCH] [Coro] Prebuild a global debug info set and share it betwee

[llvm-branch-commits] [llvm] [19.x] Backport standalone build fixes for offload (PR #118643)

2024-12-04 Thread Michał Górny via llvm-branch-commits
https://github.com/mgorny created https://github.com/llvm/llvm-project/pull/118643 Backport the changes from #104647 and part of the changes from #118173. Note that I've cherry-picked the individual changes here since merging #118173 wholesale makes automatic merge adds some stuff that weren't

[llvm-branch-commits] [llvm] [19.x] Backport standalone build fixes for offload (PR #118643)

2024-12-04 Thread Michał Górny via llvm-branch-commits
https://github.com/mgorny edited https://github.com/llvm/llvm-project/pull/118643 ___ 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] [19.x] Backport standalone build fixes for offload (PR #118643)

2024-12-04 Thread Joseph Huber via llvm-branch-commits
=?utf-8?q?Micha=C5=82_G=C3=B3rny?= , =?utf-8?q?Micha=C5=82_G=C3=B3rny?= , =?utf-8?q?Micha=C5=82_G=C3=B3rny?= , =?utf-8?q?Micha=C5=82_G=C3=B3rny?= , =?utf-8?q?Micha=C5=82_G=C3=B3rny?= Message-ID: In-Reply-To: https://github.com/jhuber6 approved this pull request. https://github.com/llvm/llvm-p

[llvm-branch-commits] [llvm] [OMPIRBuilder] Propagate attributes to outlined target regions (PR #117875)

2024-12-04 Thread Sergio Afonso via llvm-branch-commits
https://github.com/skatrak updated https://github.com/llvm/llvm-project/pull/117875 >From 7de5d58b25bc416512b635f68d5d0a265034dae3 Mon Sep 17 00:00:00 2001 From: Sergio Afonso Date: Wed, 27 Nov 2024 11:35:28 + Subject: [PATCH] [OMPIRBuilder] Propagate attributes to outlined target regions

[llvm-branch-commits] [clang] [llvm] [mlir] [OMPIRBuilder] Support runtime number of teams and threads, and SPMD mode (PR #116051)

2024-12-04 Thread Sergio Afonso via llvm-branch-commits
https://github.com/skatrak updated https://github.com/llvm/llvm-project/pull/116051 >From 2fbe762b53bb6d6ffdce2b5ae3d6de30584ed93b Mon Sep 17 00:00:00 2001 From: Sergio Afonso Date: Wed, 27 Nov 2024 11:33:01 + Subject: [PATCH 1/3] [OMPIRBuilder] Support runtime number of teams and threads,

[llvm-branch-commits] [llvm] [19.x] Backport standalone build fixes for offload (PR #118643)

2024-12-04 Thread via llvm-branch-commits
=?utf-8?q?Michał_Górny?= , =?utf-8?q?Michał_Górny?= , =?utf-8?q?Michał_Górny?= , =?utf-8?q?Michał_Górny?= , =?utf-8?q?Michał_Górny?= Message-ID: In-Reply-To: llvmbot wrote: @llvm/pr-subscribers-offload Author: Michał Górny (mgorny) Changes Backport the changes from #104647 and part of t

[llvm-branch-commits] [llvm] [19.x] Backport standalone build fixes for offload (PR #118643)

2024-12-04 Thread Michał Górny via llvm-branch-commits
https://github.com/mgorny milestoned https://github.com/llvm/llvm-project/pull/118643 ___ 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] [NFC][Utils] Eliminate DISubprogram set from BuildDebugInfoMDMap (PR #118625)

2024-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: Artem Pianykh (artempyanykh) Changes [NFC][Utils] Eliminate DISubprogram set from BuildDebugInfoMDMap Summary: Previously, we'd add all SPs distinct from the cloned one into a set. Then when cloning a local scope we'd check if it

[llvm-branch-commits] [llvm] [Coro] Use DebugInfoCache to speed up cloning in CoroSplitPass (PR #118630)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh edited https://github.com/llvm/llvm-project/pull/118630 ___ 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] [NFC][Utils] Extract BuildDebugInfoMDMap from CloneFunctionInto (PR #118622)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh created https://github.com/llvm/llvm-project/pull/118622 [NFC][Utils] Extract BuildDebugInfoMDMap from CloneFunctionInto Summary: Extract the logic to build up a metadata map to use in metadata cloning into a separate function. Test Plan: ninja check-llvm-unit c

[llvm-branch-commits] [llvm] [Coro] Prebuild a global debug info set and share it between all coroutine clones (PR #118628)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh updated https://github.com/llvm/llvm-project/pull/118628 >From aa6401c9daa6645456dc26a214aed1253ad98f17 Mon Sep 17 00:00:00 2001 From: Artem Pianykh Date: Tue, 19 Nov 2024 17:19:27 -0700 Subject: [PATCH] [Coro] Prebuild a global debug info set and share it betwee

[llvm-branch-commits] [llvm] [NFC][Utils] Clone basic blocks after we're done with metadata in CloneFunctionInto (PR #118621)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh created https://github.com/llvm/llvm-project/pull/118621 [NFC][Utils] Clone basic blocks after we're done with metadata in CloneFunctionInto Summary: Moving the cloning of BBs after the metadata makes the flow of the function a bit more straightforward and makes

[llvm-branch-commits] [llvm] [NFC][Utils] Extract CloneFunctionBodyInto from CloneFunctionInto (PR #118624)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh updated https://github.com/llvm/llvm-project/pull/118624 >From 44ae17c0d8129a2011c0315b90fbacd076744c95 Mon Sep 17 00:00:00 2001 From: Artem Pianykh Date: Thu, 12 Sep 2024 15:50:25 -0700 Subject: [PATCH] [NFC][Utils] Extract CloneFunctionBodyInto from CloneFunct

[llvm-branch-commits] [mlir] [MLIR][OpenMP] Add host_eval clause to omp.target (PR #116049)

2024-12-04 Thread Sergio Afonso via llvm-branch-commits
https://github.com/skatrak updated https://github.com/llvm/llvm-project/pull/116049 >From 4d20a42bc7b9f93efab561dd931a31867a928829 Mon Sep 17 00:00:00 2001 From: Sergio Afonso Date: Fri, 8 Nov 2024 12:00:45 + Subject: [PATCH 1/2] [MLIR][OpenMP] Add host_eval clause to omp.target This patch

[llvm-branch-commits] [clang] [llvm] [mlir] [OMPIRBuilder] Introduce struct to hold default kernel teams/threads (PR #116050)

2024-12-04 Thread Sergio Afonso via llvm-branch-commits
https://github.com/skatrak updated https://github.com/llvm/llvm-project/pull/116050 >From e3cdc93fbeea22ed151178c54c5d9186b8bd55c4 Mon Sep 17 00:00:00 2001 From: Sergio Afonso Date: Fri, 8 Nov 2024 15:46:48 + Subject: [PATCH] [OMPIRBuilder] Introduce struct to hold default kernel teams/thr

[llvm-branch-commits] [llvm] [NFC] Remove adhoc definition of MDMapT in IRMover (PR #118626)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh updated https://github.com/llvm/llvm-project/pull/118626 >From b698e06ce0e0869dcc642548ce88818da72b27c7 Mon Sep 17 00:00:00 2001 From: Artem Pianykh Date: Sun, 15 Sep 2024 02:59:24 -0700 Subject: [PATCH] [NFC] Remove adhoc definition of MDMapT in IRMover Summary

[llvm-branch-commits] [llvm] [NFC][Utils] Extract CloneFunctionMetadataInto from CloneFunctionInto (PR #118623)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh created https://github.com/llvm/llvm-project/pull/118623 [NFC][Utils] Extract CloneFunctionMetadataInto from CloneFunctionInto Summary: The new API expects the caller to populate the VMap. We need it this way for a subsequent change around coroutine cloning. Tes

[llvm-branch-commits] [llvm] [NFC][Utils] Extract CloneFunctionMetadataInto from CloneFunctionInto (PR #118623)

2024-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: Artem Pianykh (artempyanykh) Changes [NFC][Utils] Extract CloneFunctionMetadataInto from CloneFunctionInto Summary: The new API expects the caller to populate the VMap. We need it this way for a subsequent change around coroutine

[llvm-branch-commits] [llvm] [NFC][Utils] Clone basic blocks after we're done with metadata in CloneFunctionInto (PR #118621)

2024-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: Artem Pianykh (artempyanykh) Changes [NFC][Utils] Clone basic blocks after we're done with metadata in CloneFunctionInto Summary: Moving the cloning of BBs after the metadata makes the flow of the function a bit more straightfor

[llvm-branch-commits] [llvm] [Utils] Identity map global debug info on first use in CloneFunction* (PR #118627)

2024-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: Artem Pianykh (artempyanykh) Changes [Utils] Identity map global debug info on first use in CloneFunction* Summary: To avoid cloning 'global' debug info, CloneFunction implementation used to eagerly identity map a known subset o

[llvm-branch-commits] [llvm] [Coro] Use DebugInfoCache to speed up cloning in CoroSplitPass (PR #118630)

2024-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: Artem Pianykh (artempyanykh) Changes [Coro] Use DebugInfoCache to speed up cloning in CoroSplitPass Summary: We can use a DebugInfoFinder from DebugInfoCache which is already primed on a compile unit to speed up collection of gl

[llvm-branch-commits] [llvm] [Coro] Use DebugInfoCache to speed up cloning in CoroSplitPass (PR #118630)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh updated https://github.com/llvm/llvm-project/pull/118630 >From bec4d02da40d1fd6f45b1fbd3a47b3e423041796 Mon Sep 17 00:00:00 2001 From: Artem Pianykh Date: Sun, 15 Sep 2024 11:00:00 -0700 Subject: [PATCH] [Coro] Use DebugInfoCache to speed up cloning in CoroSplit

[llvm-branch-commits] [llvm] [Coro] Prebuild a global debug info set and share it between all coroutine clones (PR #118628)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh created https://github.com/llvm/llvm-project/pull/118628 [Coro] Prebuild a global debug info set and share it between all coroutine clones Summary: CoroCloner, by calling into CloneFunctionInto, does a lot of repeated work priming DIFinder and building a list o

[llvm-branch-commits] [llvm] [Analysis] Add DebugInfoCache analysis (PR #118629)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh created https://github.com/llvm/llvm-project/pull/118629 [Analysis] Add DebugInfoCache analysis Summary: The analysis simply primes and caches DebugInfoFinders for each DICompileUnit in a module. This allows (future) callers like CoroSplitPass to compute global

[llvm-branch-commits] [llvm] [Analysis] Add DebugInfoCache analysis (PR #118629)

2024-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Artem Pianykh (artempyanykh) Changes Stacked PRs: * #118630 * __->__#118629 * #118628 * #118627 * #118626 * #118625 * #118624 * #118623 * #118622 * #118621 * #118620 --- --- --- ### [Analysis] Add DebugInfoCache analysis S

[llvm-branch-commits] [llvm] [NFC] Remove adhoc definition of MDMapT in IRMover (PR #118626)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh updated https://github.com/llvm/llvm-project/pull/118626 >From b698e06ce0e0869dcc642548ce88818da72b27c7 Mon Sep 17 00:00:00 2001 From: Artem Pianykh Date: Sun, 15 Sep 2024 02:59:24 -0700 Subject: [PATCH] [NFC] Remove adhoc definition of MDMapT in IRMover Summary

[llvm-branch-commits] [llvm] [NFC][Utils] Clone basic blocks after we're done with metadata in CloneFunctionInto (PR #118621)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh updated https://github.com/llvm/llvm-project/pull/118621 >From c2e1030a01b7c4716220cc28b7b7b5fd9d662cd8 Mon Sep 17 00:00:00 2001 From: Artem Pianykh Date: Thu, 12 Sep 2024 15:09:44 -0700 Subject: [PATCH] [NFC][Utils] Clone basic blocks after we're done with meta

[llvm-branch-commits] [llvm] [Utils] Identity map global debug info on first use in CloneFunction* (PR #118627)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh updated https://github.com/llvm/llvm-project/pull/118627 >From ecbbd61aa000838a3e4aa2b79020074c0ea47d83 Mon Sep 17 00:00:00 2001 From: Artem Pianykh Date: Sun, 15 Sep 2024 04:39:20 -0700 Subject: [PATCH] [Utils] Identity map global debug info on first use in Clo

[llvm-branch-commits] [llvm] [NFC][Utils] Extract BuildDebugInfoMDMap from CloneFunctionInto (PR #118622)

2024-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir @llvm/pr-subscribers-llvm-transforms Author: Artem Pianykh (artempyanykh) Changes [NFC][Utils] Extract BuildDebugInfoMDMap from CloneFunctionInto Summary: Extract the logic to build up a metadata map to use in metadata cloning into a separate fu

[llvm-branch-commits] [llvm] [Analysis] Add DebugInfoCache analysis (PR #118629)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh updated https://github.com/llvm/llvm-project/pull/118629 >From bdb7970f9a76cfadf77886290372f6852bcf1161 Mon Sep 17 00:00:00 2001 From: Artem Pianykh Date: Sun, 15 Sep 2024 10:51:38 -0700 Subject: [PATCH] [Analysis] Add DebugInfoCache analysis Summary: The analys

[llvm-branch-commits] [llvm] [NFC][Utils] Extract CloneFunctionMetadataInto from CloneFunctionInto (PR #118623)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh updated https://github.com/llvm/llvm-project/pull/118623 >From 36b917e377cccb070a0173ba78ecf12ed067ed28 Mon Sep 17 00:00:00 2001 From: Artem Pianykh Date: Thu, 12 Sep 2024 15:35:38 -0700 Subject: [PATCH] [NFC][Utils] Extract CloneFunctionMetadataInto from CloneF

[llvm-branch-commits] [llvm] [NFC][Utils] Clone basic blocks after we're done with metadata in CloneFunctionInto (PR #118621)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh updated https://github.com/llvm/llvm-project/pull/118621 >From c2e1030a01b7c4716220cc28b7b7b5fd9d662cd8 Mon Sep 17 00:00:00 2001 From: Artem Pianykh Date: Thu, 12 Sep 2024 15:09:44 -0700 Subject: [PATCH] [NFC][Utils] Clone basic blocks after we're done with meta

[llvm-branch-commits] [llvm] [NFC][Utils] Extract BuildDebugInfoMDMap from CloneFunctionInto (PR #118622)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh updated https://github.com/llvm/llvm-project/pull/118622 >From b968b21c6283403e04a45acaafc506d9f26fb8ea Mon Sep 17 00:00:00 2001 From: Artem Pianykh Date: Thu, 12 Sep 2024 15:23:43 -0700 Subject: [PATCH] [NFC][Utils] Extract BuildDebugInfoMDMap from CloneFunctio

[llvm-branch-commits] [llvm] [Coro] Use DebugInfoCache to speed up cloning in CoroSplitPass (PR #118630)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh created https://github.com/llvm/llvm-project/pull/118630 [Coro] Use DebugInfoCache to speed up cloning in CoroSplitPass Summary: We can use a DebugInfoFinder from DebugInfoCache which is already primed on a compile unit to speed up collection of global debug inf

[llvm-branch-commits] [llvm] [NFC][Utils] Extract CloneFunctionBodyInto from CloneFunctionInto (PR #118624)

2024-12-04 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: Artem Pianykh (artempyanykh) Changes [NFC][Utils] Extract CloneFunctionBodyInto from CloneFunctionInto Summary: This and previously extracted `CloneFunction*Into` functions will be used in later diffs. Test Plan: ninja check-ll

[llvm-branch-commits] [llvm] [NFC][Utils] Eliminate DISubprogram set from BuildDebugInfoMDMap (PR #118625)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh created https://github.com/llvm/llvm-project/pull/118625 [NFC][Utils] Eliminate DISubprogram set from BuildDebugInfoMDMap Summary: Previously, we'd add all SPs distinct from the cloned one into a set. Then when cloning a local scope we'd check if it's from one of

[llvm-branch-commits] [llvm] [Utils] Identity map global debug info on first use in CloneFunction* (PR #118627)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh created https://github.com/llvm/llvm-project/pull/118627 [Utils] Identity map global debug info on first use in CloneFunction* Summary: To avoid cloning 'global' debug info, CloneFunction implementation used to eagerly identity map a known subset of global debug

[llvm-branch-commits] [llvm] [NFC][Utils] Extract CloneFunctionBodyInto from CloneFunctionInto (PR #118624)

2024-12-04 Thread Artem Pianykh via llvm-branch-commits
https://github.com/artempyanykh created https://github.com/llvm/llvm-project/pull/118624 [NFC][Utils] Extract CloneFunctionBodyInto from CloneFunctionInto Summary: This and previously extracted `CloneFunction*Into` functions will be used in later diffs. Test Plan: ninja check-llvm-unit check-

[llvm-branch-commits] [lld] [PAC][lld][AArch64][ELF] Support signed TLSDESC (PR #113817)

2024-12-04 Thread Daniil Kovalev via llvm-branch-commits
https://github.com/kovdan01 updated https://github.com/llvm/llvm-project/pull/113817 >From 8c57e4cf99d7517079df09135f155e16cfe58e21 Mon Sep 17 00:00:00 2001 From: Daniil Kovalev Date: Fri, 25 Oct 2024 12:32:27 +0300 Subject: [PATCH 1/9] [PAC][lld][AArch64][ELF] Support signed TLSDESC Support `

[llvm-branch-commits] [lld] [PAC][lld][AArch64][ELF] Support signed GOT with tiny code model (PR #113816)

2024-12-04 Thread Daniil Kovalev via llvm-branch-commits
https://github.com/kovdan01 updated https://github.com/llvm/llvm-project/pull/113816 >From 6aced2afcc1a97719464024ada75da2c47994ca8 Mon Sep 17 00:00:00 2001 From: Daniil Kovalev Date: Fri, 25 Oct 2024 21:28:18 +0300 Subject: [PATCH 1/7] [PAC][lld][AArch64][ELF] Support signed GOT with tiny cod

[llvm-branch-commits] [lld] [PAC][lld][AArch64][ELF] Support signed TLSDESC (PR #113817)

2024-12-04 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 b8a4abd8a00a63cb494b0081d701b703e844c78e a41e25d36f71591995ac7d97fa120395f7caf443 --e

[llvm-branch-commits] [lld] [PAC][lld][AArch64][ELF] Support signed GOT with tiny code model (PR #113816)

2024-12-04 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 b8a4abd8a00a63cb494b0081d701b703e844c78e 1de7b3eb6d35437eea495a8c465958d0a98a61e9 --e

[llvm-branch-commits] [lld] [PAC][lld][AArch64][ELF] Support signed TLSDESC (PR #113817)

2024-12-04 Thread Daniil Kovalev via llvm-branch-commits
@@ -92,6 +92,10 @@ enum RelExpr { R_AARCH64_PAGE_PC, R_AARCH64_RELAX_TLS_GD_TO_IE_PAGE_PC, R_AARCH64_TLSDESC_PAGE, + R_AARCH64_AUTH_TLSDESC_PAGE, + // TODO: maybe it's better to rename this expression + // to avoid name conflict with dynamic reloc + R_AARCH64_AUTH_TLS

[llvm-branch-commits] [lld] [PAC][lld][AArch64][ELF] Support signed GOT with tiny code model (PR #113816)

2024-12-04 Thread Daniil Kovalev via llvm-branch-commits
https://github.com/kovdan01 updated https://github.com/llvm/llvm-project/pull/113816 >From 6aced2afcc1a97719464024ada75da2c47994ca8 Mon Sep 17 00:00:00 2001 From: Daniil Kovalev Date: Fri, 25 Oct 2024 21:28:18 +0300 Subject: [PATCH 1/6] [PAC][lld][AArch64][ELF] Support signed GOT with tiny cod

[llvm-branch-commits] [lld] [PAC][lld][AArch64][ELF] Support signed TLSDESC (PR #113817)

2024-12-04 Thread Daniil Kovalev via llvm-branch-commits
https://github.com/kovdan01 updated https://github.com/llvm/llvm-project/pull/113817 >From 8c57e4cf99d7517079df09135f155e16cfe58e21 Mon Sep 17 00:00:00 2001 From: Daniil Kovalev Date: Fri, 25 Oct 2024 12:32:27 +0300 Subject: [PATCH 1/8] [PAC][lld][AArch64][ELF] Support signed TLSDESC Support `