mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[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
This commit is contained in:
parent
82e836ee7f
commit
c9e222b2d7
@ -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_current_memory : Intrinsic<[llvm_anyint_ty], [], [IntrReadMem]>;
|
||||||
def int_wasm_grow_memory : Intrinsic<[llvm_anyint_ty], [LLVMMatchType<0>], []>;
|
def int_wasm_grow_memory : Intrinsic<[llvm_anyint_ty], [LLVMMatchType<0>], []>;
|
||||||
|
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
// Exception handling intrinsics
|
// 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]>;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user