[LLVMdev] Is LLVM expressive enough to represent asynchronous exceptions?

Andrew Trick atrick at apple.com
Mon Jun 13 15:17:36 PDT 2011


On Jun 13, 2011, at 3:15 PM, Jakob Stoklund Olesen wrote:

> 
> On Jun 13, 2011, at 2:52 PM, Chris Lattner wrote:
> 
>> Synchronous exceptions like divide by zero or null pointer derefs are another thing entirely though.
> 
> When runtimes support this, do they preserve all registers or just the non-volatile registers, like a normal unwinder? How is information about the exception passed to the landing pad?
> 
> /jakob
> 


Anything is possible. In my experience, all registers are preserved by the runtime, and the compiler has to describe each trapping instruction in a lookup table.

-Andy



More information about the llvm-dev mailing list