[llvm] 7c594ba - [WebAssembly] Change catch_all's opcode

Heejin Ahn via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 17 10:16:40 PST 2021


Author: Heejin Ahn
Date: 2021-02-17T10:16:23-08:00
New Revision: 7c594bab00ee514417c605710885b21b9635e8d7

URL: https://github.com/llvm/llvm-project/commit/7c594bab00ee514417c605710885b21b9635e8d7
DIFF: https://github.com/llvm/llvm-project/commit/7c594bab00ee514417c605710885b21b9635e8d7.diff

LOG: [WebAssembly] Change catch_all's opcode

We decided to change `catch_all`'s opcode from 0x05, which is the same
as `else`, to 0x19, to avoid some complicated handling in the tools.

See: https://github.com/WebAssembly/exception-handling/issues/147

Reviewed By: sbc100

Differential Revision: https://reviews.llvm.org/D96863

Added: 
    

Modified: 
    llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td
index 48cd03da0e9c..e96ae4fe752f 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td
@@ -153,7 +153,7 @@ defm CATCH : I<(outs I32:$dst), (ins event_op:$tag),
                [(set I32:$dst,
                  (WebAssemblycatch (WebAssemblywrapper texternalsym:$tag)))],
                "catch   \t$dst, $tag", "catch   \t$tag", 0x07>;
-defm CATCH_ALL : NRI<(outs), (ins), [], "catch_all", 0x05>;
+defm CATCH_ALL : NRI<(outs), (ins), [], "catch_all", 0x19>;
 }
 
 // Delegating an exception: delegate


        


More information about the llvm-commits mailing list