[PATCH] D43151: [NVPTX] TblGen-ized lowering of WMMA intrinsics.

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 12 16:29:10 PST 2018

tra added inline comments.

Comment at: llvm/lib/Target/NVPTX/NVPTXIntrinsics.td:7420
                            string Type, NVPTXRegClass regclass,
-                           Operand SrcOp, int WithOffset, int WithStride>
-  : NVPTXInst<!if(!eq(Abc#Type,"cf16"),
-                  (outs regclass:$r0, regclass:$r1, regclass:$r2, regclass:$r3),
-                  (outs regclass:$r0, regclass:$r1, regclass:$r2, regclass:$r3,
-                         regclass:$r4, regclass:$r5, regclass:$r6, regclass:$r7)),
-              !if(WithStride,
-                  !if(WithOffset,
-                      (ins SrcOp:$src, i32imm:$offset, Int32Regs:$ldm),
-                      (ins SrcOp:$src, Int32Regs:$ldm)),
-                  !if(WithOffset,
-                      (ins SrcOp:$src, i32imm:$offset),
-                      (ins SrcOp:$src))),
-              "wmma.load."#Abc#".sync."#Layout#".m16n16k16"#Space#"." #Type# " \t"
+                           DAGOperand SrcOp, int WithStride>
+  : EmptyNVPTXInst, Requires<[hasPTX60, hasSM70]> {
jlebar wrote:
> Can we make WithStride a bool, or is that not supported?
Alas, there are no bools in tablegen. I can replace it with 'bit', though.


More information about the llvm-commits mailing list