[llvm-dev] Exception handling support for a target
陳韋任 via llvm-dev
llvm-dev at lists.llvm.org
Mon Jan 15 04:49:17 PST 2018
I would like to know in order to support exception handling for
particular target, what need to be done. After doing some investigation, I
can think of the following items with questions:
- CFI directives:
This is for .eh_frame section. Basically all the targets insert CFI
directives in FrameLowering, but I am not sure exactly when/where I should
- getExceptionPointerRegister and getExceptionSelectorRegister:
TargetLowering subclass should implement both functions. The former
specifies the register used to pass the exception object to the landing pad
(or catch clause), and the latter specifies the register used to pass the
typeid object to the landing pad. Where can I know what registers should be
used? Or it's just the same as those specified in calling convention?
I see some targets define their own EH_RETURN SDNode, others don't.
What is EH_RETURN, and under what circumstances I should define my own
Is the above list complete? Do I understand their purpose correctly (sort
Wei-Ren Chen (陳韋任)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev