diff options
author | Heejin Ahn <aheejin@gmail.com> | 2018-03-08 03:47:52 +0000 |
---|---|---|
committer | Heejin Ahn <aheejin@gmail.com> | 2018-03-08 03:47:52 +0000 |
commit | 3f8d38fcf28954bbf3df6a37b180c510d3bebc95 (patch) | |
tree | ae7ba43265719a66cbd1eb7045156f1762f6e0b3 | |
parent | 824189f624497c190a30dff564fba62a2f8e1a18 (diff) | |
download | bcm5719-llvm-3f8d38fcf28954bbf3df6a37b180c510d3bebc95.tar.gz bcm5719-llvm-3f8d38fcf28954bbf3df6a37b180c510d3bebc95.zip |
[WebAssembly] Add IntrNoReturn property to throw/rethrow intrinsics
Reviewers: dschuff
Subscribers: jfb, sbc100, jgravelle-google, sunfish, llvm-commits
Differential Revision: https://reviews.llvm.org/D43740
llvm-svn: 326984
-rw-r--r-- | llvm/include/llvm/IR/IntrinsicsWebAssembly.td | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/include/llvm/IR/IntrinsicsWebAssembly.td b/llvm/include/llvm/IR/IntrinsicsWebAssembly.td index 5c33e5e6706..3c5c167e712 100644 --- a/llvm/include/llvm/IR/IntrinsicsWebAssembly.td +++ b/llvm/include/llvm/IR/IntrinsicsWebAssembly.td @@ -31,8 +31,12 @@ def int_wasm_mem_grow : Intrinsic<[llvm_anyint_ty], 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]>; } |