[LLVMdev] Explicit register usage in LLVM assembly

Frits van Bommel fvbommel at gmail.com
Fri Jul 8 12:30:22 PDT 2011


On 8 July 2011 21:10, Yiannis Tsiouris <yiannis.tsiouris at gmail.com> wrote:
> The problem with that is the case of an 'invoke' call. According to the
> semantics of the invoke instruction the return value is not available  when
> a stack unwind happens. From the Language Reference Manual:
>  "For the purposes of the SSA form, the definition of the value returned by
> the 'invoke' instruction is deemed to occur on the edge from the current
> block to the "normal" label. If the callee unwinds then no return value is
> available."
>
> In that case, how can i get the values of the pinned registers, i.e. HP, P
> and NSP, needed in the Fail code block?

You could store them in the exception, assuming your compiler is the
one generating the code that throws it...




More information about the llvm-dev mailing list