Skip to content

Commit 80733cb

Browse files
committed
nfc cleanup
1 parent 47258ca commit 80733cb

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

llvm/lib/Target/NVPTX/NVPTXIntrinsics.td

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5102,27 +5102,23 @@ defm INT_SET_MAXNREG_DEC : SET_MAXNREG<"dec", int_nvvm_setmaxnreg_dec_sync_align
51025102
//
51035103
// WGMMA fence instructions
51045104
//
5105-
let isConvergent = true in {
5106-
def INT_NVVM_WGMMA_FENCE_SYNC_ALIGNED : BasicNVPTXInst<(outs), (ins), "wgmma.fence.sync.aligned",
5107-
[(int_nvvm_wgmma_fence_sync_aligned)]>, Requires<[hasSM90a, hasPTX<80>]>;
5105+
let isConvergent = true, Predicates = [hasSM90a, hasPTX<80>] in {
5106+
def WGMMA_FENCE_SYNC_ALIGNED : NullaryInst<"wgmma.fence.sync.aligned", int_nvvm_wgmma_fence_sync_aligned>;
51085107

5109-
def INT_NVVM_WGMMA_COMMIT_GROUP_SYNC_ALIGNED : BasicNVPTXInst<(outs), (ins), "wgmma.commit_group.sync.aligned",
5110-
[(int_nvvm_wgmma_commit_group_sync_aligned)]>, Requires<[hasSM90a, hasPTX<80>]>;
5108+
def WGMMA_COMMIT_GROUP_SYNC_ALIGNED : NullaryInst<"wgmma.commit_group.sync.aligned", int_nvvm_wgmma_commit_group_sync_aligned>;
51115109

5112-
def INT_NVVM_WGMMA_WAIT_GROUP_SYNC_ALIGNED : BasicNVPTXInst<(outs), (ins i64imm:$n), "wgmma.wait_group.sync.aligned",
5113-
[(int_nvvm_wgmma_wait_group_sync_aligned timm:$n)]>, Requires<[hasSM90a, hasPTX<80>]>;
5110+
def WGMMA_WAIT_GROUP_SYNC_ALIGNED : BasicNVPTXInst<(outs), (ins i64imm:$n), "wgmma.wait_group.sync.aligned",
5111+
[(int_nvvm_wgmma_wait_group_sync_aligned timm:$n)]>;
51145112
} // isConvergent = true
51155113

51165114
let Predicates = [hasSM<90>, hasPTX<78>] in {
51175115
def GRIDDEPCONTROL_LAUNCH_DEPENDENTS :
5118-
BasicNVPTXInst<(outs), (ins), "griddepcontrol.launch_dependents",
5119-
[(int_nvvm_griddepcontrol_launch_dependents)]>;
5116+
NullaryInst<"griddepcontrol.launch_dependents", int_nvvm_griddepcontrol_launch_dependents>;
51205117
def GRIDDEPCONTROL_WAIT :
5121-
BasicNVPTXInst<(outs), (ins), "griddepcontrol.wait",
5122-
[(int_nvvm_griddepcontrol_wait)]>;
5118+
NullaryInst<"griddepcontrol.wait", int_nvvm_griddepcontrol_wait>;
51235119
}
51245120

5125-
def INT_EXIT : BasicNVPTXInst<(outs), (ins), "exit", [(int_nvvm_exit)]>;
5121+
def EXIT : NullaryInst<"exit", int_nvvm_exit>;
51265122

51275123
// Tcgen05 intrinsics
51285124
let isConvergent = true, Predicates = [hasTcgen05Instructions] in {
@@ -5150,9 +5146,7 @@ defm TCGEN05_DEALLOC_CG1: TCGEN05_DEALLOC_INTR<"1", int_nvvm_tcgen05_dealloc_cg1
51505146
defm TCGEN05_DEALLOC_CG2: TCGEN05_DEALLOC_INTR<"2", int_nvvm_tcgen05_dealloc_cg2>;
51515147

51525148
multiclass TCGEN05_RELINQ_PERMIT_INTR<string num, Intrinsic Intr> {
5153-
def "" : BasicNVPTXInst<(outs), (ins),
5154-
"tcgen05.relinquish_alloc_permit.cta_group::" # num # ".sync.aligned",
5155-
[(Intr)]>;
5149+
def "" : NullaryInst<"tcgen05.relinquish_alloc_permit.cta_group::" # num # ".sync.aligned", Intr>;
51565150
}
51575151
defm TCGEN05_RELINQ_CG1: TCGEN05_RELINQ_PERMIT_INTR<"1", int_nvvm_tcgen05_relinq_alloc_permit_cg1>;
51585152
defm TCGEN05_RELINQ_CG2: TCGEN05_RELINQ_PERMIT_INTR<"2", int_nvvm_tcgen05_relinq_alloc_permit_cg2>;

0 commit comments

Comments
 (0)