• 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()
904 CallLoweringInfo CLI; in lowerCallTo() local
905 CLI.setCallee(RetTy, FTy, Symbol, std::move(Args), CS, NumArgs); in lowerCallTo()
907 return lowerCallTo(CLI); in lowerCallTo()
910 bool FastISel::lowerCallTo(CallLoweringInfo &CLI) { in lowerCallTo() argument
912 CLI.clearIns(); in lowerCallTo()
914 ComputeValueVTs(TLI, DL, CLI.RetTy, RetTys); in lowerCallTo()
917 GetReturnInfo(CLI.RetTy, getReturnAttrs(CLI), Outs, TLI, DL); in lowerCallTo()
920 CLI.CallConv, *FuncInfo.MF, CLI.IsVarArg, Outs, CLI.RetTy->getContext()); in lowerCallTo()
928 MVT RegisterVT = TLI.getRegisterType(CLI.RetTy->getContext(), VT); in lowerCallTo()
929 unsigned NumRegs = TLI.getNumRegisters(CLI.RetTy->getContext(), VT); in lowerCallTo()
934 MyFlags.Used = CLI.IsReturnValueUsed; in lowerCallTo()
935 if (CLI.RetSExt) in lowerCallTo()
937 if (CLI.RetZExt) in lowerCallTo()
939 if (CLI.IsInReg) in lowerCallTo()
941 CLI.Ins.push_back(MyFlags); in lowerCallTo()
946 CLI.clearOuts(); in lowerCallTo()
947 for (auto &Arg : CLI.getArgs()) { in lowerCallTo()
952 FinalType, CLI.CallConv, CLI.IsVarArg); in lowerCallTo()
993 CLI.OutVals.push_back(Arg.Val); in lowerCallTo()
994 CLI.OutFlags.push_back(Flags); in lowerCallTo()
997 if (!fastLowerCall(CLI)) in lowerCallTo()
1001 assert(CLI.Call && "No call instruction specified."); in lowerCallTo()
1002 CLI.Call->setPhysRegsDeadExcept(CLI.InRegs, TRI); in lowerCallTo()
1004 if (CLI.NumResultRegs && CLI.CS) in lowerCallTo()
1005 updateValueMap(CLI.CS->getInstruction(), CLI.ResultReg, CLI.NumResultRegs); in lowerCallTo()
1043 CallLoweringInfo CLI; in lowerCall() local
1044 CLI.setCallee(RetTy, FuncTy, CI->getCalledValue(), std::move(Args), CS) in lowerCall()
1047 return lowerCallTo(CLI); in lowerCall()