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

Karel Gardas
2011-10-14T13:52:36Z

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