[clang] [llvm] AMDGPU: Implement tensor load and store instructions for gfx1250 (PR #146636)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 1 22:55:53 PDT 2025
================
@@ -4280,6 +4281,20 @@ bool AMDGPUAsmParser::validateMIMGD16(const MCInst &Inst) {
return true;
}
+bool AMDGPUAsmParser::validateTensorR128(const MCInst &Inst) {
+ const unsigned Opc = Inst.getOpcode();
+ const MCInstrDesc &Desc = MII.get(Opc);
+
+ if ((Desc.TSFlags & SIInstrFlags::TENSOR_CNT) == 0)
+ return true;
+
+ int R128Idx = AMDGPU::getNamedOperandIdx(Opc, AMDGPU::OpName::r128);
+ if (R128Idx >= 0 && Inst.getOperand(R128Idx).getImm())
+ return false;
+
+ return true;
----------------
arsenm wrote:
Fold to return of bool expression
https://github.com/llvm/llvm-project/pull/146636
More information about the llvm-commits
mailing list