Skip to content

Commit 1c5a879

Browse files
committed
AMDGPU: Set isTrap on S_TRAP
This seems to only be used for generating some kind of documentation, but might as well set it. llvm-svn: 363454
1 parent 1509fde commit 1c5a879

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/lib/Target/AMDGPU/SOPInstructions.td

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,10 @@ def S_SENDMSGHALT : SOPP <0x00000011, (ins SendMsgImm:$simm16), "s_sendmsghalt $
10721072
>;
10731073
} // End Uses = [EXEC, M0]
10741074

1075-
def S_TRAP : SOPP <0x00000012, (ins i16imm:$simm16), "s_trap $simm16">;
1075+
def S_TRAP : SOPP <0x00000012, (ins i16imm:$simm16), "s_trap $simm16"> {
1076+
let isTrap = 1;
1077+
}
1078+
10761079
def S_ICACHE_INV : SOPP <0x00000013, (ins), "s_icache_inv"> {
10771080
let simm16 = 0;
10781081
}

0 commit comments

Comments
 (0)