llvm.org GIT mirror llvm / d712f93
Add an implementation of the CanLowerReturn function to the PPC backend git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141981 91177308-0d34-0410-b5e6-96231b3b80d8 Hal Finkel 8 years ago
2 changed file(s) with 17 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
34153415 Ins, InVals);
34163416 }
34173417
3418 bool
3419 PPCTargetLowering::CanLowerReturn(CallingConv::ID CallConv,
3420 MachineFunction &MF, bool isVarArg,
3421 const SmallVectorImpl &Outs,
3422 LLVMContext &Context) const {
3423 SmallVector RVLocs;
3424 CCState CCInfo(CallConv, isVarArg, MF, getTargetMachine(),
3425 RVLocs, Context);
3426 return CCInfo.CheckReturn(Outs, RetCC_PPC);
3427 }
3428
34183429 SDValue
34193430 PPCTargetLowering::LowerReturn(SDValue Chain,
34203431 CallingConv::ID CallConv, bool isVarArg,
444444 DebugLoc dl, SelectionDAG &DAG,
445445 SmallVectorImpl &InVals) const;
446446
447 virtual bool
448 CanLowerReturn(CallingConv::ID CallConv, MachineFunction &MF,
449 bool isVarArg,
450 const SmallVectorImpl &Outs,
451 LLVMContext &Context) const;
452
447453 virtual SDValue
448454 LowerReturn(SDValue Chain,
449455 CallingConv::ID CallConv, bool isVarArg,