Lines Matching defs:TLI

175   const TargetLowering &TLI = DAG.getTargetLoweringInfo();
176 if (SDValue Val = TLI.joinRegisterPartsIntoValue(DAG, DL, Parts, NumParts,
232 TLI.getShiftAmountTy(
244 if (TLI.hasBigEndianPartOrdering(ValueVT, DAG.getDataLayout()))
296 DAG.getTargetConstant(1, DL, TLI.getPointerTy(DAG.getDataLayout()));
350 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
361 NumRegs = TLI.getVectorTypeBreakdownForCallingConv(
366 TLI.getVectorTypeBreakdown(*DAG.getContext(), ValueVT, IntermediateVT,
453 TLI.isTypeLegal(ValueVT))
512 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
513 if (TLI.splitValueIntoRegisterParts(DAG, DL, Val, Parts, NumParts, PartVT,
696 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
719 TLI.getTypeAction(*DAG.getContext(), ValueVT) ==
765 NumRegs = TLI.getVectorTypeBreakdownForCallingConv(
770 TLI.getVectorTypeBreakdown(*DAG.getContext(), ValueVT, IntermediateVT,
853 RegsForValue::RegsForValue(LLVMContext &Context, const TargetLowering &TLI,
856 ComputeValueVTs(TLI, DL, Ty, ValueVTs);
863 ? TLI.getNumRegistersForCallingConv(Context, *CC, ValueVT)
864 : TLI.getNumRegisters(Context, ValueVT);
867 ? TLI.getRegisterTypeForCallingConv(Context, *CC, ValueVT)
868 : TLI.getRegisterType(Context, ValueVT);
885 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
895 ? TLI.getRegisterTypeForCallingConv(
968 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
978 ? TLI.getRegisterTypeForCallingConv(
982 if (ExtendKind == ISD::ANY_EXTEND && TLI.isZExtFree(Val, RegisterVT))
1024 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
1049 Register SP = TLI.getStackPointerRegisterToSaveRestore();
1063 unsigned NumRegs = TLI.getNumRegisters(*DAG.getContext(), ValueVTs[Value],
1653 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
1671 RegsForValue RFV(V->getContext(), TLI, DAG.getDataLayout(), Reg,
1795 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
1798 EVT VT = TLI.getValueType(DAG.getDataLayout(), V->getType(), true);
1816 TLI.getPointerTy(DAG.getDataLayout(), AS));
1871 ComputeValueVTs(TLI, DAG.getDataLayout(), C->getType(), ValueVTs);
1919 TLI.getValueType(DAG.getDataLayout(), VecTy->getElementType());
1940 SI->second, TLI.getValueType(DAG.getDataLayout(), AI->getType()));
1947 RegsForValue RFV(*DAG.getContext(), TLI, DAG.getDataLayout(), InReg,
2170 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
2196 ComputeValueVTs(TLI, DL,
2207 ComputeValueVTs(TLI, DL, I.getOperand(0)->getType(), ValueVTs, &MemVTs,
2233 ComputeValueVTs(TLI, DL, I.getOperand(0)->getType(), ValueVTs);
2240 bool NeedsRegBlock = TLI.functionArgumentNeedsConsecutiveRegisters(
2257 VT = TLI.getTypeForExtReturn(Context, VT, ExtendKind);
2261 unsigned NumParts = TLI.getNumRegistersForCallingConv(Context, CC, VT);
2262 MVT PartVT = TLI.getRegisterTypeForCallingConv(Context, CC, VT);
2305 if (TLI.supportSwiftError() &&
2311 Flags, /*vt=*/TLI.getPointerTy(DL), /*argvt=*/EVT(TLI.getPointerTy(DL)),
2317 EVT(TLI.getPointerTy(DL))));
2570 const auto &TLI = DAG.getTargetLoweringInfo();
2572 TLI.getTargetMachine().getTargetTransformInfo(*I.getFunction());
2902 auto &TLI = DAG.getTargetLoweringInfo();
2903 EVT MemVT = TLI.getMemValueType(DAG.getDataLayout(), CB.CmpLHS->getType());
3011 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
3012 SwitchOp = DAG.getZExtOrTrunc(Sub, dl, TLI.getPointerTy(DAG.getDataLayout()));
3015 FuncInfo.CreateReg(TLI.getPointerTy(DAG.getDataLayout()));
3025 dl, TLI.getSetCCResultType(DAG.getDataLayout(), *DAG.getContext(),
3053 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
3054 EVT PtrTy = TLI.getPointerTy(DAG.getDataLayout());
3055 EVT PtrMemTy = TLI.getPointerMemTy(DAG.getDataLayout());
3057 Value *Global = TLI.getSDagStackGuard(*MF.getFunction().getParent());
3084 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
3085 EVT PtrTy = TLI.getPointerTy(DAG.getDataLayout());
3086 EVT PtrMemTy = TLI.getPointerMemTy(DAG.getDataLayout());
3104 if (TLI.useStackGuardXorFP())
3105 GuardVal = TLI.emitStackGuardXorFP(DAG, GuardVal, dl);
3108 if (const Function *GuardCheckFn = TLI.getSSPStackGuardCheck(M)) {
3129 std::pair<SDValue, SDValue> Result = TLI.LowerCallTo(CLI);
3137 if (TLI.useLoadStackGuardNode()) {
3140 const Value *IRGuard = TLI.getSDagStackGuard(M);
3149 SDValue Cmp = DAG.getSetCC(dl, TLI.getSetCCResultType(DAG.getDataLayout(),
3176 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
3180 TLI.makeLibCall(DAG, RTLIB::STACKPROTECTOR_CHECK_FAIL, MVT::isVoid,
3210 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
3212 if (!TLI.isTypeLegal(VT)) {
3225 VT = TLI.getPointerTy(DAG.getDataLayout());
3244 TLI.getSetCCResultType(DAG.getDataLayout(), *DAG.getContext(),
3272 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
3277 dl, TLI.getSetCCResultType(DAG.getDataLayout(), *DAG.getContext(), VT),
3283 dl, TLI.getSetCCResultType(DAG.getDataLayout(), *DAG.getContext(), VT),
3294 dl, TLI.getSetCCResultType(DAG.getDataLayout(), *DAG.getContext(), VT),
3369 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
3372 TLI.getPointerTy(DAG.getDataLayout())));
3466 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
3468 if (TLI.getExceptionPointerRegister(PersonalityFn) == 0 &&
3469 TLI.getExceptionSelectorRegister(PersonalityFn) == 0)
3481 ComputeValueVTs(TLI, DAG.getDataLayout(), LP.getType(), ValueVTs);
3491 TLI.getPointerTy(DAG.getDataLayout())),
3494 Ops[0] = DAG.getConstant(0, dl, TLI.getPointerTy(DAG.getDataLayout()));
3499 TLI.getPointerTy(DAG.getDataLayout())),
3646 auto &TLI = DAG.getTargetLoweringInfo();
3648 TLI.getMemValueType(DAG.getDataLayout(), I.getOperand(0)->getType());
3719 auto &TLI = DAG.getTargetLoweringInfo();
3723 while (TLI.getTypeAction(Ctx, VT) != TargetLoweringBase::TypeLegal)
3724 VT = TLI.getTypeToTransformTo(Ctx, VT);
3730 !TLI.isOperationLegalOrCustom(ISD::VSELECT, VT);
3749 if (TLI.isOperationLegalOrCustom(ISD::FMINNUM, VT) ||
3751 TLI.isOperationLegalOrCustom(ISD::FMINNUM, VT.getScalarType())))
3762 if (TLI.isOperationLegalOrCustom(ISD::FMAXNUM, VT) ||
3764 TLI.isOperationLegalOrCustom(ISD::FMAXNUM, VT.getScalarType())))
3780 (TLI.isOperationLegalOrCustomOrPromote(Opc, VT) ||
3782 TLI.isOperationLegalOrCustom(Opc, VT.getScalarType()))) &&
3836 auto &TLI = DAG.getTargetLoweringInfo();
3837 EVT DestVT = TLI.getValueType(DAG.getDataLayout(), I.getType());
3847 TLI.isSExtCheaperThanZExt(N.getValueType(), DestVT)) {
3868 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
3869 EVT DestVT = TLI.getValueType(DAG.getDataLayout(), I.getType());
3872 0, dl, TLI.getPointerTy(DAG.getDataLayout()))));
3923 auto &TLI = DAG.getTargetLoweringInfo();
3927 TLI.getMemValueType(DAG.getDataLayout(), I.getOperand(0)->getType());
3937 auto &TLI = DAG.getTargetLoweringInfo();
3938 EVT DestVT = TLI.getValueType(DAG.getDataLayout(), I.getType());
3939 EVT PtrMemVT = TLI.getMemValueType(DAG.getDataLayout(), I.getType());
3968 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
3971 EVT DestVT = TLI.getValueType(DAG.getDataLayout(), I.getType());
3983 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
3987 TLI.getVectorIdxTy(DAG.getDataLayout()));
3989 TLI.getValueType(DAG.getDataLayout(), I.getType()),
3994 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
3997 TLI.getVectorIdxTy(DAG.getDataLayout()));
3999 TLI.getValueType(DAG.getDataLayout(), I.getType()),
4012 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
4013 EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
4213 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
4215 ComputeValueVTs(TLI, DAG.getDataLayout(), AggTy, AggValueVTs);
4217 ComputeValueVTs(TLI, DAG.getDataLayout(), ValTy, ValValueVTs);
4260 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
4262 ComputeValueVTs(TLI, DAG.getDataLayout(), ValTy, ValValueVTs);
4293 auto &TLI = DAG.getTargetLoweringInfo();
4415 MVT PtrTy = TLI.getPointerTy(DAG.getDataLayout(), AS);
4416 MVT PtrMemTy = TLI.getPointerMemTy(DAG.getDataLayout(), AS);
4436 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
4443 EVT IntPtr = TLI.getPointerTy(DL, I.getAddressSpace());
4517 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
4519 if (TLI.supportSwiftError()) {
4538 ComputeValueVTs(TLI, DAG.getDataLayout(), Ty, ValueVTs, &MemVTs, &Offsets);
4548 TLI.getLoadMemOperandFlags(I, DAG.getDataLayout(), AC, LibInfo);
4574 Root = TLI.prepareVolatileOrAtomicLoad(Root, dl, DAG);
4688 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
4689 if (TLI.supportSwiftError()) {
4723 auto MMOFlags = TLI.getStoreMemOperandFlags(I, DAG.getDataLayout());
4799 const auto &TLI = DAG.getTargetLoweringInfo();
4801 TLI.getTargetMachine().getTargetTransformInfo(*I.getFunction());
4805 ? TLI.visitMaskedStore(DAG, sdl, getMemoryRoot(), MMO, Ptr, Src0,
4834 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
4848 EVT VT = EVT::getVectorVT(*DAG.getContext(), TLI.getPointerTy(DL), NumElts);
4851 Scale = DAG.getTargetConstant(1, SDB->getCurSDLoc(), TLI.getPointerTy(DL));
4875 !TLI.isLegalScaleForGatherScatter(ScaleVal.getFixedValue(), ElemSize))
4883 DAG.getTargetConstant(ScaleVal, SDB->getCurSDLoc(), TLI.getPointerTy(DL));
4898 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
4912 Base = DAG.getConstant(0, sdl, TLI.getPointerTy(DAG.getDataLayout()));
4915 Scale = DAG.getTargetConstant(1, sdl, TLI.getPointerTy(DAG.getDataLayout()));
4920 if (TLI.shouldExtendGSIndex(IdxVT, EltTy)) {
4982 const auto &TLI = DAG.getTargetLoweringInfo();
4984 TLI.getTargetMachine().getTargetTransformInfo(*I.getFunction());
4991 Res = TLI.visitMaskedLoad(DAG, sdl, InChain, MMO, Load, Ptr, Src0, Mask);
5009 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
5010 EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
5031 Base = DAG.getConstant(0, sdl, TLI.getPointerTy(DAG.getDataLayout()));
5034 Scale = DAG.getTargetConstant(1, sdl, TLI.getPointerTy(DAG.getDataLayout()));
5039 if (TLI.shouldExtendGSIndex(IdxVT, EltTy)) {
5063 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
5064 auto Flags = TLI.getAtomicMemOperandFlags(I, DAG.getDataLayout());
5117 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
5118 auto Flags = TLI.getAtomicMemOperandFlags(I, DAG.getDataLayout());
5139 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
5143 TLI.getFenceOperandTy(DAG.getDataLayout()));
5145 TLI.getFenceOperandTy(DAG.getDataLayout()));
5158 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
5159 EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
5160 EVT MemVT = TLI.getMemValueType(DAG.getDataLayout(), I.getType());
5162 if (!TLI.supportsUnalignedAtomics() &&
5166 auto Flags = TLI.getLoadMemOperandFlags(I, DAG.getDataLayout(), AC, LibInfo);
5173 InChain = TLI.prepareVolatileOrAtomicLoad(InChain, dl, DAG);
5195 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
5197 TLI.getMemValueType(DAG.getDataLayout(), I.getValueOperand()->getType());
5199 if (!TLI.supportsUnalignedAtomics() &&
5203 auto Flags = TLI.getStoreMemOperandFlags(I, DAG.getDataLayout());
5247 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
5248 bool IsTgtIntrinsic = TLI.getTgtMemIntrinsic(Info, I,
5256 TLI.getPointerTy(DAG.getDataLayout())));
5267 EVT VT = TLI.getValueType(DAG.getDataLayout(), Arg->getType(), true);
5279 ComputeValueVTs(TLI, DAG.getDataLayout(), I.getType(), ValueVTs);
5306 TLI.CollectTargetIntrinsicOperands(I, Ops, DAG);
5372 const TargetLowering &TLI, const SDLoc &dl) {
5378 TLI.getShiftAmountTy(MVT::i32, DAG.getDataLayout())));
5485 const TargetLowering &TLI, SDNodeFlags Flags) {
5507 const TargetLowering &TLI, SDNodeFlags Flags) {
5515 SDValue Exp = GetExponent(DAG, Op1, TLI, dl);
5606 const TargetLowering &TLI, SDNodeFlags Flags) {
5614 SDValue LogOfExponent = GetExponent(DAG, Op1, TLI, dl);
5703 const TargetLowering &TLI, SDNodeFlags Flags) {
5711 SDValue Exp = GetExponent(DAG, Op1, TLI, dl);
5793 const TargetLowering &TLI, SDNodeFlags Flags) {
5805 SelectionDAG &DAG, const TargetLowering &TLI,
5886 SelectionDAG &DAG, const TargetLowering &TLI) {
5911 (TLI.isTypeLegal(VT) ||
5912 (VT.isVector() && TLI.isTypeLegal(VT.getVectorElementType())))) {
5913 TargetLowering::LegalizeAction Action = TLI.getFixedPointOperationAction(
5927 EVT ShiftTy = TLI.getShiftAmountTy(PromVT, DAG.getDataLayout());
6165 const auto &TLI = DAG.getTargetLoweringInfo();
6166 RegsForValue RFV(V->getContext(), TLI, DAG.getDataLayout(), VMI->second,
6340 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
6363 Base = DAG.getConstant(0, sdl, TLI.getPointerTy(DAG.getDataLayout()));
6367 DAG.getTargetConstant(1, sdl, TLI.getPointerTy(DAG.getDataLayout()));
6372 if (TLI.shouldExtendGSIndex(IdxVT, EltTy)) {
6390 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
6405 EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
6414 TLI.getValueType(DAG.getDataLayout(), I.getType()),
6420 TLI.getValueType(DAG.getDataLayout(), I.getType())));
6425 TLI.getValueType(DAG.getDataLayout(), I.getType())));
6429 TLI.getFrameIndexTy(DAG.getDataLayout()),
6438 EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
6616 DAG.getVTList(TLI.getPointerTy(DAG.getDataLayout()), MVT::Other), Ops);
6708 TLI.getPointerTy(DAG.getDataLayout()),
6769 setValue(&I, expandLog(sdl, getValue(I.getArgOperand(0)), DAG, TLI, Flags));
6773 expandLog2(sdl, getValue(I.getArgOperand(0)), DAG, TLI, Flags));
6777 expandLog10(sdl, getValue(I.getArgOperand(0)), DAG, TLI, Flags));
6780 setValue(&I, expandExp(sdl, getValue(I.getArgOperand(0)), DAG, TLI, Flags));
6784 expandExp2(sdl, getValue(I.getArgOperand(0)), DAG, TLI, Flags));
6788 getValue(I.getArgOperand(1)), DAG, TLI, Flags));
6857 EVT RetVT = TLI.getValueType(DAG.getDataLayout(), I.getType());
6900 ComputeValueVTs(TLI, DAG.getDataLayout(), I.getType(), ValueVTs);
6934 EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
6945 TLI.getPointerTy(DAG.getDataLayout())));
6951 EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
6953 TLI.isFMAFasterThanFMulAndFAdd(DAG.getMachineFunction(), VT)) {
6980 TLI.getValueType(DAG.getDataLayout(), I.getType()),
6985 EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
6992 EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
7006 EVT DestVT = TLI.getValueType(DLayout, I.getType());
7007 EVT ArgVT = TLI.getValueType(DLayout, I.getArgOperand(0)->getType());
7019 if (!TLI.isOperationLegalOrCustom(ISD::IS_FPCLASS, ArgVT)) {
7020 SDValue Result = TLI.expandIS_FPCLASS(DestVT, Op, Test, Flags, sdl, DAG);
7032 EVT EnvVT = TLI.getValueType(DLayout, I.getType());
7037 if (TLI.isOperationLegalOrCustom(ISD::GET_FPENV, EnvVT)) {
7040 DAG.getVTList(TLI.getValueType(DAG.getDataLayout(), I.getType()),
7066 if (TLI.isOperationLegalOrCustom(ISD::SET_FPENV, EnvVT)) {
7091 DAG.getVTList(TLI.getValueType(DAG.getDataLayout(), I.getType()),
7232 Op1, Op2, Op3, DAG, TLI));
7268 EVT DestVT = TLI.getValueType(DAG.getDataLayout(), I.getType());
7275 EVT DestVT = TLI.getValueType(DAG.getDataLayout(), I.getType());
7281 EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
7293 EVT PtrTy = TLI.getFrameIndexTy(DAG.getDataLayout());
7294 EVT ResTy = TLI.getValueType(DAG.getDataLayout(), I.getType());
7309 EVT PtrTy = TLI.getValueType(DAG.getDataLayout(), I.getType());
7311 if (TLI.useLoadStackGuardNode()) {
7315 const Value *Global = TLI.getSDagStackGuard(M);
7321 if (TLI.useStackGuardXorFP())
7322 Res = TLI.emitStackGuardXorFP(DAG, Res, sdl);
7333 if (TLI.useLoadStackGuardNode())
7342 EVT PtrTy = TLI.getFrameIndexTy(DAG.getDataLayout());
7406 TLI.getPointerTy(DAG.getDataLayout()),
7470 TLI.getPointerTy(DAG.getDataLayout())),
7473 std::pair<SDValue, SDValue> Result = TLI.LowerCallTo(CLI);
7584 DAG.getUNDEF(TLI.getValueType(DAG.getDataLayout(), I.getType())));
7692 MVT PtrVT = TLI.getPointerTy(DAG.getDataLayout());
7693 const TargetRegisterClass *PtrRC = TLI.getRegClassFor(PtrVT);
7916 TLI.getValueType(DAG.getDataLayout(), I.getOperand(0)->getType());
7918 TLI.getMemValueType(DAG.getDataLayout(), I.getOperand(0)->getType());
7932 EVT CCVT = TLI.getValueType(DAG.getDataLayout(), I.getType());
7936 if (!TLI.shouldExpandGetActiveLaneMask(CCVT, ElementVT)) {
7964 if (!TLI.shouldExpandGetVectorLength(CountVT, VF, IsScalable)) {
7971 EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
8025 if (!TLI.shouldExpandCttzElements(OpVT)) {
8045 unsigned EltWidth = TLI.getBitWidthForCttzElements(
8065 EVT RetTy = TLI.getValueType(DAG.getDataLayout(), I.getType());
8078 MVT VectorIdxTy = TLI.getVectorIdxTy(DAG.getDataLayout());
8082 EVT ResultVT = TLI.getValueType(DAG.getDataLayout(), I.getType());
8090 EVT ResultVT = TLI.getValueType(DAG.getDataLayout(), I.getType());
8094 MVT VectorIdxTy = TLI.getVectorIdxTy(DAG.getDataLayout());
8175 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
8176 EVT VT = TLI.getValueType(DAG.getDataLayout(), FPI.getType());
8199 !TLI.isFMAFasterThanFMulAndFAdd(DAG.getMachineFunction(), VT)) {
8219 DAG.getTargetConstant(0, sdl, TLI.getPointerTy(DAG.getDataLayout())));
8308 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
8327 Base = DAG.getConstant(0, DL, TLI.getPointerTy(DAG.getDataLayout()));
8330 Scale = DAG.getTargetConstant(1, DL, TLI.getPointerTy(DAG.getDataLayout()));
8334 if (TLI.shouldExtendGSIndex(IdxVT, EltTy)) {
8371 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
8390 Base = DAG.getConstant(0, DL, TLI.getPointerTy(DAG.getDataLayout()));
8394 DAG.getTargetConstant(1, DL, TLI.getPointerTy(DAG.getDataLayout()));
8398 if (TLI.shouldExtendGSIndex(IdxVT, EltTy)) {
8462 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
8484 MVT EVLParamVT = TLI.getVPExplicitVectorLengthTy();
8506 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
8507 ComputeValueVTs(TLI, DAG.getDataLayout(), VPIntrin.getType(), ValueVTs);
8512 MVT EVLParamVT = TLI.getVPExplicitVectorLengthTy();
8558 TLI.isFMAFasterThanFMulAndFAdd(DAG.getMachineFunction(), ValueVTs[0])) {
8573 EVT DestVT = TLI.getValueType(DLayout, VPIntrin.getType());
8583 EVT DestVT = TLI.getValueType(DAG.getDataLayout(), VPIntrin.getType());
8584 EVT PtrMemVT = TLI.getMemValueType(DAG.getDataLayout(), VPIntrin.getType());
8596 EVT PtrMemVT = TLI.getMemValueType(DAG.getDataLayout(),
8685 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
8686 std::pair<SDValue, SDValue> Result = TLI.LowerCallTo(CLI);
8726 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
8739 if (TLI.supportSwiftError() &&
8758 if (Entry.IsSwiftError && TLI.supportSwiftError()) {
8764 EVT(TLI.getPointerTy(DL)));
8788 // Target-dependent constraints are checked within TLI->LowerCallTo.
8794 if (TLI.supportSwiftError() && SwiftErrorVal)
8800 if (!TLI.supportKCFIBundles())
8827 if (!TLI.supportPtrAuthBundles())
8843 if (SwiftErrorVal && TLI.supportSwiftError()) {
8944 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
8945 MVT LVT = TLI.hasFastEqualityCompare(NumBits);
8952 if (!TLI.isTypeLegal(LVT) ||
8953 !TLI.allowsMisalignedMemoryAccesses(LVT, SrcAS) ||
8954 !TLI.allowsMisalignedMemoryAccesses(LVT, DstAS))
9498 bool hasMemory(const TargetLowering &TLI) const {
9504 if (TLI.getConstraintType(Code) == TargetLowering::C_Memory)
9524 const auto &TLI = DAG.getTargetLoweringInfo();
9527 TLI.getRegForInlineAsmConstraint(TRI, OpInfo.ConstraintCode,
9530 TLI.getRegForInlineAsmConstraint(TRI, MatchingOpInfo.ConstraintCode,
9549 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
9564 cast<Constant>(OpVal), TLI.getPointerTy(DAG.getDataLayout()));
9580 SDValue StackSlot = DAG.getFrameIndex(SSFI, TLI.getFrameIndexTy(DL));
9583 TLI.getMemValueType(DL, Ty));
9602 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
9617 std::tie(AssignedReg, RC) = TLI.getRegForInlineAsmConstraint(
9675 NumRegs = TLI.getNumRegisters(Context, OpInfo.ConstraintVT, RegVT);
9787 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
9788 TargetLowering::AsmOperandInfoVector TargetConstraints = TLI.ParseConstraints(
9804 HasSideEffect = OpInfo.hasMemory(TLI);
9810 TLI.ComputeConstraintToUse(T, SDValue());
9864 TLI.ComputeConstraintToUse(OpInfo, OpInfo.CallOperand, &DAG);
9891 TLI.isInlineAsmTargetBranch(AsmStrs, OpNo) &&
9921 IA->getAsmString().c_str(), TLI.getProgramPointerTy(DAG.getDataLayout())));
9932 ExtraInfo.get(), getCurSDLoc(), TLI.getPointerTy(DAG.getDataLayout())));
9978 TLI.getInlineAsmMemConstraint(OpInfo.ConstraintCode);
10039 : RegVT != MVT::Untyped ? TLI.getRegClassFor(RegVT)
10063 Flag, getCurSDLoc(), TLI.getPointerTy(DAG.getDataLayout())));
10076 TLI.LowerAsmOperandForConstraint(InOperandVal, OpInfo.ConstraintCode,
10095 ResOpType, getCurSDLoc(), TLI.getPointerTy(DAG.getDataLayout())));
10105 TLI.getPointerTy(DAG.getDataLayout()) &&
10109 TLI.getInlineAsmMemConstraint(OpInfo.ConstraintCode);
10125 TLI.getInlineAsmMemConstraint(OpInfo.ConstraintCode);
10223 EVT ResultVT = TLI.getValueType(DAG.getDataLayout(), *CurResultType);
10266 Val = TLI.LowerAsmOutputForConstraint(Chain, Glue, getCurSDLoc(),
10328 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
10330 ComputeValueVTs(TLI, DAG.getDataLayout(), Call.getType(), ValueVTs);
10350 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
10353 TLI.getMemValueType(DAG.getDataLayout(), I.getType()), getCurSDLoc(),
10360 V, getCurSDLoc(), TLI.getValueType(DAG.getDataLayout(), I.getType()));
10662 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
10664 ComputeValueVTs(TLI, DAG.getDataLayout(), CB.getType(), ValueVTs);
10703 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
10709 EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
11231 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
11235 RegsForValue RFV(V->getContext(), TLI, DAG.getDataLayout(), Reg, V->getType(),
11452 ComputeValueVTs(*TLI, DAG.getDataLayout(),
11461 MVT RegisterVT = TLI->getRegisterType(*DAG.getContext(), ValueVTs[0]);
11478 ComputeValueVTs(*TLI, DAG.getDataLayout(), Arg.getType(), ValueVTs);
11484 bool NeedsRegBlock = TLI->functionArgumentNeedsConsecutiveRegisters(
11550 TLI->getABIAlignmentForCallingConv(ArgTy, DL));
11570 MemAlign = Align(TLI->getByValTypeAlignment(ArgMemTy, DL));
11591 MVT RegisterVT = TLI->getRegisterTypeForCallingConv(
11593 unsigned NumRegs = TLI->getNumRegistersForCallingConv(
11620 SDValue NewRoot = TLI->LowerFormalArguments(
11646 ComputeValueVTs(*TLI, DAG.getDataLayout(),
11651 MVT RegVT = TLI->getRegisterType(*CurDAG->getContext(), VT);
11660 RegInfo.createVirtualRegister(TLI->getRegClassFor(RegVT));
11675 ComputeValueVTs(*TLI, DAG.getDataLayout(), Arg.getType(), ValueVTs);
11687 NumParts += TLI->getNumRegistersForCallingConv(*CurDAG->getContext(),
11698 TLI->supportSwiftError() &&
11711 MVT PartVT = TLI->getRegisterTypeForCallingConv(*CurDAG->getContext(),
11713 unsigned NumParts = TLI->getNumRegistersForCallingConv(
11825 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
11865 ExtendType = TLI.signExtendConstant(CI) ? ISD::SIGN_EXTEND
11887 ComputeValueVTs(TLI, DAG.getDataLayout(), PN.getType(), ValueVTs);
11889 const unsigned NumRegisters = TLI.getNumRegisters(*DAG.getContext(), VT);
12396 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
12398 EVT ResultVT = TLI.getValueType(DAG.getDataLayout(), I.getType());
12403 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
12404 EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
12461 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
12462 EVT OutVT = TLI.getValueType(DAG.getDataLayout(), I.getType());
12500 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
12501 EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
12577 const TargetLowering &TLI = DAG.getTargetLoweringInfo();
12586 TLI.ParseConstraints(DAG.getDataLayout(), TRI, *CBR);
12594 TLI.ComputeConstraintToUse(OpInfo, OpInfo.CallOperand, &DAG);
12620 SDValue V = TLI.LowerAsmOutputForConstraint(Chain, Flag, getCurSDLoc(),