[LLVMdev] Inserting a branch in PPCTargetLowering::LowerFormalArguments_SVR4

Hal Finkel hfinkel at anl.gov
Thu May 10 11:25:32 PDT 2012


I hate to be bothersome, but can someone please comment on this?

Thanks again,
Hal

On Thu, 3 May 2012 14:49:04 -0500
Hal Finkel <hfinkel at anl.gov> wrote:

> Hello,
> 
> The current code in PPCTargetLowering::LowerFormalArguments_SVR4
> contains a FIXME over the code which saves the live floating-point
> registers to the stack. The FIXME states that this should only be done
> if CR bit 6 is set. I've been told that the lack of this check is
> preventing clang/LLVM from compiling a functional FreeBSD kernel on
> PPC.
> 
> Is is possible to insert another branch in LowerFormalArguments? Some
> of the atomic instructions insert branches, but those are handled in
> EmitInstrWithCustomInserter. Can branches be inserted inside
> LowerFormalArguments in the same way?
> 
> Thanks in advance,
> Hal
> 



-- 
Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory



More information about the llvm-dev mailing list