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

Heejin Ahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 25 05:55:58 PST 2018


aheejin created this revision.
aheejin added a reviewer: dschuff.
Herald added subscribers: llvm-commits, sunfish, jgravelle-google, sbc100, jfb.

Repository:
  rL LLVM

https://reviews.llvm.org/D43740

Files:
  include/llvm/IR/IntrinsicsWebAssembly.td


Index: include/llvm/IR/IntrinsicsWebAssembly.td
===================================================================
--- include/llvm/IR/IntrinsicsWebAssembly.td
+++ include/llvm/IR/IntrinsicsWebAssembly.td
@@ -32,7 +32,8 @@
 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]>;
 
+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.135818.patch
Type: text/x-patch
Size: 637 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180225/047a0be6/attachment-0001.bin>


More information about the llvm-commits mailing list