Skip to content

Commit ebff5ad

Browse files
committed
[AMDGPU] Fix AMDGPUISD::TRAP description
* the node always has one *fixed* argument, which is the trap id * glue operand is only present if there are variadic register operands
1 parent a5af621 commit ebff5ad

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)