Lines Matching refs:CLI
5060 TargetLowering::CallLoweringInfo CLI(DAG); in visitIntrinsicCall() local
5061 CLI.setDebugLoc(sdl).setChain(getRoot()).setCallee( in visitIntrinsicCall()
5067 std::pair<SDValue, SDValue> Result = TLI.LowerCallTo(CLI); in visitIntrinsicCall()
5274 SelectionDAGBuilder::lowerInvokable(TargetLowering::CallLoweringInfo &CLI, in lowerInvokable() argument
5300 CLI.setChain(getRoot()); in lowerInvokable()
5303 std::pair<SDValue, SDValue> Result = TLI.LowerCallTo(CLI); in lowerInvokable()
5305 assert((CLI.IsTailCall || Result.second.getNode()) && in lowerInvokable()
5330 assert(CLI.CS); in lowerInvokable()
5332 EHInfo->addIPToStateRange(cast<InvokeInst>(CLI.CS->getInstruction()), in lowerInvokable()
5379 TargetLowering::CallLoweringInfo CLI(DAG); in LowerCallTo() local
5380 CLI.setDebugLoc(getCurSDLoc()).setChain(getRoot()) in LowerCallTo()
5383 std::pair<SDValue, SDValue> Result = lowerInvokable(CLI, EHPadBB); in LowerCallTo()
6710 TargetLowering::CallLoweringInfo CLI(DAG); in lowerCallOperands() local
6711 CLI.setDebugLoc(getCurSDLoc()).setChain(getRoot()) in lowerCallOperands()
6715 return lowerInvokable(CLI, EHPadBB); in lowerCallOperands()
6967 static AttributeSet getReturnAttrs(TargetLowering::CallLoweringInfo &CLI) { in getReturnAttrs() argument
6969 if (CLI.RetSExt) in getReturnAttrs()
6971 if (CLI.RetZExt) in getReturnAttrs()
6973 if (CLI.IsInReg) in getReturnAttrs()
6976 return AttributeSet::get(CLI.RetTy->getContext(), AttributeSet::ReturnIndex, in getReturnAttrs()
6985 TargetLowering::LowerCallTo(TargetLowering::CallLoweringInfo &CLI) const { in LowerCallTo()
6987 CLI.Ins.clear(); in LowerCallTo()
6988 Type *OrigRetTy = CLI.RetTy; in LowerCallTo()
6991 auto &DL = CLI.DAG.getDataLayout(); in LowerCallTo()
6992 ComputeValueVTs(*this, DL, CLI.RetTy, RetTys, &Offsets); in LowerCallTo()
6995 GetReturnInfo(CLI.RetTy, getReturnAttrs(CLI), Outs, *this, DL); in LowerCallTo()
6998 this->CanLowerReturn(CLI.CallConv, CLI.DAG.getMachineFunction(), in LowerCallTo()
6999 CLI.IsVarArg, Outs, CLI.RetTy->getContext()); in LowerCallTo()
7007 uint64_t TySize = DL.getTypeAllocSize(CLI.RetTy); in LowerCallTo()
7008 unsigned Align = DL.getPrefTypeAlignment(CLI.RetTy); in LowerCallTo()
7009 MachineFunction &MF = CLI.DAG.getMachineFunction(); in LowerCallTo()
7011 Type *StackSlotPtrType = PointerType::getUnqual(CLI.RetTy); in LowerCallTo()
7013 DemoteStackSlot = CLI.DAG.getFrameIndex(DemoteStackIdx, getPointerTy(DL)); in LowerCallTo()
7025 CLI.getArgs().insert(CLI.getArgs().begin(), Entry); in LowerCallTo()
7026 CLI.RetTy = Type::getVoidTy(CLI.RetTy->getContext()); in LowerCallTo()
7030 CLI.IsTailCall = false; in LowerCallTo()
7034 MVT RegisterVT = getRegisterType(CLI.RetTy->getContext(), VT); in LowerCallTo()
7035 unsigned NumRegs = getNumRegisters(CLI.RetTy->getContext(), VT); in LowerCallTo()
7040 MyFlags.Used = CLI.IsReturnValueUsed; in LowerCallTo()
7041 if (CLI.RetSExt) in LowerCallTo()
7043 if (CLI.RetZExt) in LowerCallTo()
7045 if (CLI.IsInReg) in LowerCallTo()
7047 CLI.Ins.push_back(MyFlags); in LowerCallTo()
7053 CLI.Outs.clear(); in LowerCallTo()
7054 CLI.OutVals.clear(); in LowerCallTo()
7055 ArgListTy &Args = CLI.getArgs(); in LowerCallTo()
7063 FinalType, CLI.CallConv, CLI.IsVarArg); in LowerCallTo()
7067 Type *ArgTy = VT.getTypeForEVT(CLI.RetTy->getContext()); in LowerCallTo()
7111 MVT PartVT = getRegisterType(CLI.RetTy->getContext(), VT); in LowerCallTo()
7112 unsigned NumParts = getNumRegisters(CLI.RetTy->getContext(), VT); in LowerCallTo()
7123 assert(CLI.RetTy == Args[i].Ty && RetTys.size() == NumValues && in LowerCallTo()
7137 CLI.RetSExt == Args[i].isSExt && CLI.RetZExt == Args[i].isZExt)) in LowerCallTo()
7141 getCopyToParts(CLI.DAG, CLI.DL, Op, &Parts[0], NumParts, PartVT, in LowerCallTo()
7142 CLI.CS ? CLI.CS->getInstruction() : nullptr, ExtendKind); in LowerCallTo()
7147 i < CLI.NumFixedArgs, in LowerCallTo()
7154 CLI.Outs.push_back(MyFlags); in LowerCallTo()
7155 CLI.OutVals.push_back(Parts[j]); in LowerCallTo()
7159 CLI.Outs[CLI.Outs.size() - 1].Flags.setInConsecutiveRegsLast(); in LowerCallTo()
7164 CLI.Chain = LowerCall(CLI, InVals); in LowerCallTo()
7167 assert(CLI.Chain.getNode() && CLI.Chain.getValueType() == MVT::Other && in LowerCallTo()
7169 assert((!CLI.IsTailCall || InVals.empty()) && in LowerCallTo()
7171 assert((CLI.IsTailCall || InVals.size() == CLI.Ins.size()) && in LowerCallTo()
7178 if (CLI.IsTailCall) { in LowerCallTo()
7179 CLI.DAG.setRoot(CLI.Chain); in LowerCallTo()
7183 DEBUG(for (unsigned i = 0, e = CLI.Ins.size(); i != e; ++i) { in LowerCallTo()
7186 assert(EVT(CLI.Ins[i].VT) == InVals[i].getValueType() && in LowerCallTo()
7206 SDValue Add = CLI.DAG.getNode(ISD::ADD, CLI.DL, PtrVT, DemoteStackSlot, in LowerCallTo()
7207 CLI.DAG.getConstant(Offsets[i], CLI.DL, in LowerCallTo()
7209 SDValue L = CLI.DAG.getLoad( in LowerCallTo()
7210 RetTys[i], CLI.DL, CLI.Chain, Add, in LowerCallTo()
7211 MachinePointerInfo::getFixedStack(CLI.DAG.getMachineFunction(), in LowerCallTo()
7218 CLI.Chain = CLI.DAG.getNode(ISD::TokenFactor, CLI.DL, MVT::Other, Chains); in LowerCallTo()
7223 if (CLI.RetSExt) in LowerCallTo()
7225 else if (CLI.RetZExt) in LowerCallTo()
7230 MVT RegisterVT = getRegisterType(CLI.RetTy->getContext(), VT); in LowerCallTo()
7231 unsigned NumRegs = getNumRegisters(CLI.RetTy->getContext(), VT); in LowerCallTo()
7233 ReturnValues.push_back(getCopyFromParts(CLI.DAG, CLI.DL, &InVals[CurReg], in LowerCallTo()
7243 return std::make_pair(SDValue(), CLI.Chain); in LowerCallTo()
7246 SDValue Res = CLI.DAG.getNode(ISD::MERGE_VALUES, CLI.DL, in LowerCallTo()
7247 CLI.DAG.getVTList(RetTys), ReturnValues); in LowerCallTo()
7248 return std::make_pair(Res, CLI.Chain); in LowerCallTo()