[LLVMdev] Inserting a branch in PPCTargetLowering::LowerFormalArguments_SVR4
Hal Finkel
hfinkel at anl.gov
Thu May 3 12:49:04 PDT 2012
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