search for: _unwind_resumeorrethrow

Displaying 2 results from an estimated 2 matches for "_unwind_resumeorrethrow".

2013 Mar 29
0
[LLVMdev] How to initiate/throw an exception (resume just continues)
...tion is passed the thrown object and also a reference to the language-specific data area. This area is filled in by LLVM via landingpad instructions. The resume instruction is just a convenience. It will be expanded to a call to another library function (_Unwind_Resume(), I think, but possible _Unwind_ResumeOrRethrow()), and it exists so that the IR doesn't have to have hard-coded knowledge of the semantics of one these functions. The exact implementation of the personality function differs slightly between ARM and pretty much everything else for *NIX platforms. Win64 also has a very similar mechanism f...
2013 Mar 29
2
[LLVMdev] How to initiate/throw an exception (resume just continues)
I'm trying to add some basic exception handling to my language now and I'm uncertain of how I actually start the exception propagation. It appears that "resume" will continue the exception, but I see no mention of how the exception actually starts. If I look at the IR output of a simple C++ program I see that it calls @__cxa_throw, but that is a library function. Somehow I must