[llvm] [AMDGPU][NFCI] Refactor BUFInstructions.td (PR #65746)
Joe Nash via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 8 08:29:41 PDT 2023
================
@@ -572,18 +572,25 @@ class MUBUF_Store_Pseudo <string opName,
let tfe = isTFE;
}
+multiclass MUBUF_Pseudo_Store_Pats<string BaseInst, ValueType store_vt = i32, SDPatternOperator st = null_frag> {
+
+ def _OFFSET : GCNPat <
+ (st store_vt:$vdata, (MUBUFOffset v4i32:$srsrc, i32:$soffset, i32:$offset)),
+ (!cast<MUBUF_Pseudo>(BaseInst # _OFFSET) store_vt:$vdata, v4i32:$srsrc, i32:$soffset, i32:$offset)>;
----------------
Sisyph wrote:
This part of the refactor may be a slight downgrade in sense that you need to explicitly specify the operands of the instruction when the pat is separate rather than part of the instruction definition.
https://github.com/llvm/llvm-project/pull/65746
More information about the llvm-commits
mailing list