[llvm] [AMDGPU] Add support for preloading implicit kernel arguments (PR #83817)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 26 05:37:49 PDT 2024
================
@@ -5495,6 +5495,34 @@ bool AMDGPULegalizerInfo::legalizeLDSKernelId(MachineInstr &MI,
return true;
}
+bool AMDGPULegalizerInfo::legalizePreloadImplicitarg(
+ MachineInstr &MI, MachineRegisterInfo &MRI, MachineIRBuilder &B) const {
+ assert(ST.hasKernargPreload());
----------------
arsenm wrote:
This shouldn't be an assert. Better to just return false and let the intrinsic fail to select
https://github.com/llvm/llvm-project/pull/83817
More information about the llvm-commits
mailing list