[PATCH] D44930: [WebAssembly] Add exception and selector intrinsics

Heejin Ahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 27 16:39:59 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL328678: [WebAssembly] Add exception and selector intrinsics (authored by aheejin, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D44930

Files:
  llvm/trunk/include/llvm/IR/IntrinsicsWebAssembly.td


Index: llvm/trunk/include/llvm/IR/IntrinsicsWebAssembly.td
===================================================================
--- llvm/trunk/include/llvm/IR/IntrinsicsWebAssembly.td
+++ llvm/trunk/include/llvm/IR/IntrinsicsWebAssembly.td
@@ -39,4 +39,10 @@
 def int_wasm_throw : Intrinsic<[], [llvm_i32_ty, llvm_ptr_ty],
                                [Throws, IntrNoReturn]>;
 def int_wasm_rethrow : Intrinsic<[], [], [Throws, IntrNoReturn]>;
+
+// Since wasm does not use landingpad instructions, these instructions return
+// exception pointer and selector values until we lower them in WasmEHPrepare.
+def int_wasm_get_exception : Intrinsic<[llvm_ptr_ty], [], [IntrHasSideEffects]>;
+def int_wasm_get_ehselector : Intrinsic<[llvm_i32_ty], [],
+                                        [IntrHasSideEffects]>;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44930.140016.patch
Type: text/x-patch
Size: 816 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180327/9c8cc468/attachment.bin>


More information about the llvm-commits mailing list