Skip to content

Commit 8d65073

Browse files
authored
[AMDGPU] Fix AMDGPUISD::TRAP description (llvm#117453)
Glue operand is only present if there are variadic register operands, which makes it optional. Also, change the number of fixed operands to 1 (the trap ID).
1 parent 215f3dd commit 8d65073

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPUInstrInfo.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def AMDGPUtc_return_chain: SDNode<"AMDGPUISD::TC_RETURN_CHAIN",
100100
>;
101101

102102
def AMDGPUtrap : SDNode<"AMDGPUISD::TRAP",
103-
SDTypeProfile<0, -1, [SDTCisVT<0, i16>]>,
104-
[SDNPHasChain, SDNPVariadic, SDNPSideEffect, SDNPInGlue]
103+
SDTypeProfile<0, 1, [SDTCisVT<0, i16>]>,
104+
[SDNPHasChain, SDNPVariadic, SDNPSideEffect, SDNPOptInGlue]
105105
>;
106106

107107
def AMDGPUconstdata_ptr : SDNode<

0 commit comments

Comments
 (0)