XCore target: Fix llvm.eh.return and EH info register handling
Robert Lytton
robert at xmos.com
Mon Jan 6 07:11:29 PST 2014
Hi,
Here is a patch for handling the exception unwind on the XCore target.
XCore target: Fix llvm.eh.return and EH info register handling
For functions which call callsUnwindInit() and callsEHReturn()
spill slots for R0 & R1 (exception info regs) are added without spilling R0 & R1.
The EH unwinder will write the exception info to these spill slots.
The exception info registers are only restored during an llv.eh.return() to a landing pad.
Under normal return, R0 holds the function's return code and must not be overwritten.
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140106/696d6650/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PatchEHReturn
Type: application/octet-stream
Size: 22249 bytes
Desc: PatchEHReturn
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140106/696d6650/attachment.obj>
More information about the llvm-commits
mailing list