llvm.org GIT mirror llvm / ceb2de9
[WebAssembly] Add exception and selector intrinsics Summary: Since wasm EH does not use landingpad instructions, these instructions provide exception pointer and selector values until we lower them in WasmEHPrepare. Reviewers: jgravelle-google Subscribers: jfb, sbc100, jgravelle-google, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D44930 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328678 91177308-0d34-0410-b5e6-96231b3b80d8 Heejin Ahn 2 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3838 def int_wasm_throw : Intrinsic<[], [llvm_i32_ty, llvm_ptr_ty],
3939 [Throws, IntrNoReturn]>;
4040 def int_wasm_rethrow : Intrinsic<[], [], [Throws, IntrNoReturn]>;
41
42 // Since wasm does not use landingpad instructions, these instructions return
43 // exception pointer and selector values until we lower them in WasmEHPrepare.
44 def int_wasm_get_exception : Intrinsic<[llvm_ptr_ty], [], [IntrHasSideEffects]>;
45 def int_wasm_get_ehselector : Intrinsic<[llvm_i32_ty], [],
46 [IntrHasSideEffects]>;
4147 }