[PATCH] D43740: [WebAssembly] Add IntrNoReturn property to throw/rethrow intrinsics

Heejin Ahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 7 19:50:21 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL326984: [WebAssembly] Add IntrNoReturn property to throw/rethrow intrinsics (authored by aheejin, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D43740

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
@@ -31,8 +31,12 @@
 def int_wasm_current_memory : Intrinsic<[llvm_anyint_ty], [], [IntrReadMem]>;
 def int_wasm_grow_memory : Intrinsic<[llvm_anyint_ty], [LLVMMatchType<0>], []>;
 
+//===----------------------------------------------------------------------===//
 // Exception handling intrinsics
-def int_wasm_throw: Intrinsic<[], [llvm_i32_ty, llvm_ptr_ty], [Throws]>;
-def int_wasm_rethrow: Intrinsic<[], [], [Throws]>;
+//===----------------------------------------------------------------------===//
 
+// throw / rethrow
+def int_wasm_throw : Intrinsic<[], [llvm_i32_ty, llvm_ptr_ty],
+                               [Throws, IntrNoReturn]>;
+def int_wasm_rethrow : Intrinsic<[], [], [Throws, IntrNoReturn]>;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43740.137537.patch
Type: text/x-patch
Size: 957 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180308/8f16e5b1/attachment.bin>


More information about the llvm-commits mailing list