• Home
  • Raw
  • Download

Lines Matching refs:CLI

681                                  bool ForceRetVoidTy, CallLoweringInfo &CLI) {  in lowerCallOperands()  argument
703 CLI.setCallee(CI->getCallingConv(), RetTy, Callee, std::move(Args), NumArgs); in lowerCallOperands()
705 return lowerCallTo(CLI); in lowerCallOperands()
744 CallLoweringInfo CLI; in selectPatchpoint() local
745 CLI.setIsPatchPoint(); in selectPatchpoint()
746 if (!lowerCallOperands(I, NumMetaOpers, NumCallArgs, Callee, IsAnyRegCC, CLI)) in selectPatchpoint()
749 assert(CLI.Call && "No call instruction specified."); in selectPatchpoint()
755 assert(CLI.NumResultRegs == 0 && "Unexpected result register."); in selectPatchpoint()
756 CLI.ResultReg = createResultReg(TLI.getRegClassFor(MVT::i64)); in selectPatchpoint()
757 CLI.NumResultRegs = 1; in selectPatchpoint()
758 Ops.push_back(MachineOperand::CreateReg(CLI.ResultReg, /*IsDef=*/true)); in selectPatchpoint()
794 unsigned NumCallRegArgs = IsAnyRegCC ? NumArgs : CLI.OutRegs.size(); in selectPatchpoint()
812 for (auto Reg : CLI.OutRegs) in selectPatchpoint()
831 for (auto Reg : CLI.InRegs) in selectPatchpoint()
836 MachineInstrBuilder MIB = BuildMI(*FuncInfo.MBB, CLI.Call, DbgLoc, in selectPatchpoint()
842 MIB->setPhysRegsDeadExcept(CLI.InRegs, TRI); in selectPatchpoint()
845 CLI.Call->eraseFromParent(); in selectPatchpoint()
850 if (CLI.NumResultRegs) in selectPatchpoint()
851 updateValueMap(I, CLI.ResultReg, CLI.NumResultRegs); in selectPatchpoint()
857 static AttributeSet getReturnAttrs(FastISel::CallLoweringInfo &CLI) { in getReturnAttrs() argument
859 if (CLI.RetSExt) in getReturnAttrs()
861 if (CLI.RetZExt) in getReturnAttrs()
863 if (CLI.IsInReg) in getReturnAttrs()
866 return AttributeSet::get(CLI.RetTy->getContext(), AttributeSet::ReturnIndex, in getReturnAttrs()
903 CallLoweringInfo CLI; in lowerCallTo() local
904 CLI.setCallee(RetTy, FTy, Symbol, std::move(Args), CS, NumArgs); in lowerCallTo()
906 return lowerCallTo(CLI); in lowerCallTo()
909 bool FastISel::lowerCallTo(CallLoweringInfo &CLI) { in lowerCallTo() argument
911 CLI.clearIns(); in lowerCallTo()
913 ComputeValueVTs(TLI, DL, CLI.RetTy, RetTys); in lowerCallTo()
916 GetReturnInfo(CLI.RetTy, getReturnAttrs(CLI), Outs, TLI, DL); in lowerCallTo()
919 CLI.CallConv, *FuncInfo.MF, CLI.IsVarArg, Outs, CLI.RetTy->getContext()); in lowerCallTo()
927 MVT RegisterVT = TLI.getRegisterType(CLI.RetTy->getContext(), VT); in lowerCallTo()
928 unsigned NumRegs = TLI.getNumRegisters(CLI.RetTy->getContext(), VT); in lowerCallTo()
933 MyFlags.Used = CLI.IsReturnValueUsed; in lowerCallTo()
934 if (CLI.RetSExt) in lowerCallTo()
936 if (CLI.RetZExt) in lowerCallTo()
938 if (CLI.IsInReg) in lowerCallTo()
940 CLI.Ins.push_back(MyFlags); in lowerCallTo()
945 CLI.clearOuts(); in lowerCallTo()
946 for (auto &Arg : CLI.getArgs()) { in lowerCallTo()
951 FinalType, CLI.CallConv, CLI.IsVarArg); in lowerCallTo()
996 CLI.OutVals.push_back(Arg.Val); in lowerCallTo()
997 CLI.OutFlags.push_back(Flags); in lowerCallTo()
1000 if (!fastLowerCall(CLI)) in lowerCallTo()
1004 assert(CLI.Call && "No call instruction specified."); in lowerCallTo()
1005 CLI.Call->setPhysRegsDeadExcept(CLI.InRegs, TRI); in lowerCallTo()
1007 if (CLI.NumResultRegs && CLI.CS) in lowerCallTo()
1008 updateValueMap(CLI.CS->getInstruction(), CLI.ResultReg, CLI.NumResultRegs); in lowerCallTo()
1045 CallLoweringInfo CLI; in lowerCall() local
1046 CLI.setCallee(RetTy, FuncTy, CI->getCalledValue(), std::move(Args), CS) in lowerCall()
1049 return lowerCallTo(CLI); in lowerCall()