[llvm] r363454 - AMDGPU: Set isTrap on S_TRAP

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 14:01:24 PDT 2019


Author: arsenm
Date: Fri Jun 14 14:01:24 2019
New Revision: 363454

URL: http://llvm.org/viewvc/llvm-project?rev=363454&view=rev
Log:
AMDGPU: Set isTrap on S_TRAP

This seems to only be used for generating some kind
of documentation, but might as well set it.

Modified:
    llvm/trunk/lib/Target/AMDGPU/SOPInstructions.td

Modified: llvm/trunk/lib/Target/AMDGPU/SOPInstructions.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SOPInstructions.td?rev=363454&r1=363453&r2=363454&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SOPInstructions.td (original)
+++ llvm/trunk/lib/Target/AMDGPU/SOPInstructions.td Fri Jun 14 14:01:24 2019
@@ -1072,7 +1072,10 @@ def S_SENDMSGHALT : SOPP <0x00000011, (i
 >;
 } // End Uses = [EXEC, M0]
 
-def S_TRAP : SOPP <0x00000012, (ins i16imm:$simm16), "s_trap $simm16">;
+def S_TRAP : SOPP <0x00000012, (ins i16imm:$simm16), "s_trap $simm16"> {
+  let isTrap = 1;
+}
+
 def S_ICACHE_INV : SOPP <0x00000013, (ins), "s_icache_inv"> {
   let simm16 = 0;
 }




More information about the llvm-commits mailing list