[llvm] [AMDGPU][MC] Allow null where 128b or larger dst reg is expected (PR #115200)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 16 02:59:41 PST 2024
================
@@ -881,10 +885,12 @@ def SReg_1 : SIRegisterClass<"AMDGPU", [i1], 32,
let HasSGPR = 1;
}
+
multiclass SRegClass<int numRegs,
list<ValueType> regTypes,
SIRegisterTuples regList,
SIRegisterTuples ttmpList = regList,
+ bit hasNull = 0,
int copyCost = !sra(!add(numRegs, 1), 1)> {
----------------
jayfoad wrote:
Not really related to your patch, but copyCost could be a defvar if no-one is setting it.
https://github.com/llvm/llvm-project/pull/115200
More information about the llvm-commits
mailing list