[LLVMdev] Request for merge: GHC/ARM calling convention.

Karel Gardas karel.gardas at centrum.cz
Fri Oct 14 06:52:36 PDT 2011


Hi Duncan,

 >  const unsigned*
 >  ARMBaseRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) 
const {
 > +  bool ghcCall = false;
 > +
 > +  if (MF) {
 > +    const Function *F = MF->getFunction();
 > +    ghcCall = (F ? F->getCallingConv() == CallingConv::GHC : false);
 > +  }

 > This bit looks dubious.  Why do you need to do it?

What exactly? We need to test if this is GHC calling convention or not 
and if its, then return different set of callee saved regs. What exactly 
don't you like on this piece?

Thanks!
Karel



More information about the llvm-dev mailing list