Home
last modified time | relevance | path

Searched refs:isTypeLegal (Results 1 – 25 of 52) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DResourcePriorityQueue.cpp94 if (TLI->isTypeLegal(VT) in numberRCValPredInSU()
132 if (TLI->isTypeLegal(VT) in numberRCValSuccInSU()
327 if (TLI->isTypeLegal(VT) in rawRegPressureDelta()
339 if (TLI->isTypeLegal(VT) && TLI->getRegClassFor(VT) in rawRegPressureDelta()
476 if (TLI->isTypeLegal(VT)) { in scheduledNode()
487 if (TLI->isTypeLegal(VT)) { in scheduledNode()
H A DLegalizeTypesGeneric.cpp110 while (!isTypeLegal(NVT)) { in ExpandRes_BITCAST()
120 if (isTypeLegal(NVT)) { in ExpandRes_BITCAST()
350 if (!isTypeLegal(NVT)) { in ExpandOp_BITCAST()
531 isTypeLegal(CondLHSVT) && in SplitRes_Select()
H A DFastISel.cpp248 if (!TLI.isTypeLegal(VT)) { in getRegForValue()
457 if (!TLI.isTypeLegal(VT)) { in selectBinaryOp()
1511 if (!TLI.isTypeLegal(DstVT)) in selectCast()
1515 if (!TLI.isTypeLegal(SrcVT)) in selectCast()
1536 !TLI.isTypeLegal(SrcEVT) || !TLI.isTypeLegal(DstEVT)) in selectBitCast()
1568 if (ETy == MVT::Other || !TLI.isTypeLegal(ETy)) in selectFreeze()
1743 if (!TLI.isTypeLegal(IntVT)) in selectFNeg()
1777 if (!TLI.isTypeLegal(VT) && VT != MVT::i1) in selectExtractValue()
2290 if (VT == MVT::Other || !TLI.isTypeLegal(VT)) { in handlePHINodesInSuccessorBlocks()
H A DLegalizeTypes.cpp139 } else if (isTypeLegal(Res.getValueType()) || IgnoreNodeResults(&Node)) { in PerformExpensiveChecks()
457 if (!isTypeLegal(Node.getValueType(i))) { in run()
466 !isTypeLegal(Node.getOperand(i).getValueType())) { in run()
H A DDAGCombiner.cpp258 TLI.isTypeLegal(EVT(VT)) && in DAGCombiner()
858 bool isTypeLegal(const EVT &VT) { in isTypeLegal() function in __anon666e37100111::DAGCombiner
860 return TLI.isTypeLegal(VT); in isTypeLegal()
4604 if (!TLI.isTypeLegal(VT) && !TLI.isOperationCustom(DivRemOpc, VT)) in useDivRem()
5824 if (!TLI.isTypeLegal(XVT)) in hoistLogicOpWithSameOpcodeHands()
5877 !(VT.isVector() && TLI.isTypeLegal(VT) && in hoistLogicOpWithSameOpcodeHands()
5878 !XVT.isVector() && !TLI.isTypeLegal(XVT))) { in hoistLogicOpWithSameOpcodeHands()
6794 if (!TLI.isTypeLegal(SrcVT)) in combineShiftAnd1ToBitTest()
7873 if (SV0 && SV1 && TLI.isTypeLegal(VT)) { in visitOR()
8517 if (TLI.isTypeLegal(VT) && LHS.hasOneUse() && RHS.hasOneUse() && in MatchRotate()
[all …]
H A DLegalizeVectorTypes.cpp2588 if (TLI.isTypeLegal(SrcVT) && !TLI.isTypeLegal(SplitSrcVT) && in SplitVecRes_ExtendOp()
2589 TLI.isTypeLegal(NewSrcVT) && TLI.isTypeLegal(SplitLoVT)) { in SplitVecRes_ExtendOp()
4035 if (isTypeLegal(LoOutVT) || in SplitVecOp_TruncateHelper()
4202 if (!isTypeLegal(LHSLoVT) || !isTypeLegal(LHSHiVT)) in SplitVecOp_FPOpDifferentTypes()
4708 } while (!TLI.isTypeLegal(NextVT)); in CollectOpsToWiden()
4765 while (!TLI.isTypeLegal(VT) && NumElts != 1) { in WidenVecRes_BinaryCanTrap()
4812 } while (!TLI.isTypeLegal(V in WidenVecRes_BinaryCanTrap()
[all...]
H A DInstrEmitter.cpp106 if (TLI->isTypeLegal(VT)) in EmitCopyFromReg()
211 if (i < NumResults && TLI->isTypeLegal(Node->getSimpleValueType(i))) { in CreateVirtualRegisters()
418 TLI->isTypeLegal(OpVT) in AddOperand()
H A DLegalizeIntegerTypes.cpp420 if (!TLI.isTypeLegal(SVT)) in PromoteIntRes_AtomicCmpSwap()
550 if (isTypeLegal(WideOutVT)) { in PromoteIntRes_BITCAST()
657 if (!OVT.isVector() && TLI.isTypeLegal(NVT) && in PromoteIntRes_CTLZ()
717 if (N->getOpcode() == ISD::CTPOP && !OVT.isVector() && TLI.isTypeLegal(NVT) && in PromoteIntRes_CTPOP_PARITY()
748 if (!OVT.isVector() && TLI.isTypeLegal(NVT) && in PromoteIntRes_CTTZ()
1242 if (TLI.isTypeLegal(PromotedType)) { in PromoteIntRes_DIVFIX()
2190 assert(!((NumElts & 1) && (!TLI.isTypeLegal(VecVT))) && in PromoteIntOp_BUILD_VECTOR()
4718 (Action == TargetLowering::Legal && TLI.isTypeLegal(NVT)) || in ExpandIntRes_Shift()
5060 if (isTypeLegal(NVT)) { in ExpandIntRes_UDIV()
5103 if (isTypeLegal(NVT)) { in ExpandIntRes_UREM()
[all …]
H A DLegalizeDAG.cpp435 TLI.isTypeLegal(MVT::i32)) { in OptimizeFloatStore()
446 if (TLI.isTypeLegal(MVT::i64)) { in OptimizeFloatStore()
453 if (TLI.isTypeLegal(MVT::i32) && !ST->isVolatile()) { in OptimizeFloatStore()
634 if (TLI.isTypeLegal(StVT)) { in LegalizeStoreOps()
875 (TLI.isTypeLegal(SrcVT) || // Same as SrcVT == LoadVT? in LegalizeLoadOps()
1574 if (TLI.isTypeLegal(IVT)) { in getSignAsIntValue()
2655 if (SrcVT == MVT::i32 && TLI.isTypeLegal(MVT::f64) && in ExpandLegalINT_TO_FP()
3482 if (!TLI.isTypeLegal(EltVT)) { in ExpandNode()
3817 assert(TLI.isTypeLegal(HalfType)); in ExpandNode()
4285 assert(TLI.isTypeLegal(VT.getScalarType())&& "Element type must be legal"); in ExpandNode()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringBase.cpp882 assert(isTypeLegal(VT)); in canOpTrap()
1091 !TLI->isTypeLegal(MVT::getVectorVT(EltTy, EC))) { in getVectorTypeBreakdownMVT()
1099 if (!TLI->isTypeLegal(NewVT)) in getVectorTypeBreakdownMVT()
1123 if (isTypeLegal(*I)) in isLegalRC()
1283 if (isTypeLegal(IVT)) { in computeRegisterProperties()
1293 if (!isTypeLegal(MVT::ppcf128)) { in computeRegisterProperties()
1294 if (isTypeLegal(MVT::f64)) { in computeRegisterProperties()
1309 if (!isTypeLegal(MVT::f128)) { in computeRegisterProperties()
1318 if (!isTypeLegal(MVT::f80)) { in computeRegisterProperties()
1327 if (!isTypeLegal(MVT::f64)) { in computeRegisterProperties()
[all …]
H A DAnalysis.cpp281 TLI.isTypeLegal(EVT::getEVT(T1)) && TLI.isTypeLegal(EVT::getEVT(T2))); in isNoopBitcast()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FastISel.cpp154 bool isTypeLegal(Type *Ty, MVT &VT, bool AllowI1 = false);
239 if (!isTypeLegal(RetTy, RetVT)) in foldX86XALUIntrinsic()
290 bool X86FastISel::isTypeLegal(Type *Ty, MVT &VT, bool AllowI1) { in isTypeLegal() function in X86FastISel
310 return (AllowI1 && VT == MVT::i1) || TLI.isTypeLegal(VT); in isTypeLegal()
1152 if (!isTypeLegal(Val->getType(), VT, /*AllowI1=*/true)) in X86SelectStore()
1340 if (!isTypeLegal(LI->getType(), VT, /*AllowI1=*/true)) in X86SelectLoad()
1440 if (!isTypeLegal(I->getOperand(0)->getType(), VT)) in X86SelectCmp()
1535 if (!TLI.isTypeLegal(DstVT)) in X86SelectZExt()
1593 if (!TLI.isTypeLegal(DstVT)) in X86SelectSExt()
1723 isTypeLegal(TI->getOperand(0)->getType(), SourceVT)) { in X86SelectBranch()
[all …]
H A DX86ISelLowering.cpp770 if (isTypeLegal(MVT::f32)) { in X86TargetLowering()
780 if (isTypeLegal(MVT::f64)) { in X86TargetLowering()
790 if (isTypeLegal(MVT::f16)) in X86TargetLowering()
863 if (isTypeLegal(MVT::f16)) { in X86TargetLowering()
914 if (isTypeLegal(MVT::f32)) { in X86TargetLowering()
918 if (isTypeLegal(MVT::f64)) { in X86TargetLowering()
922 if (isTypeLegal(MVT::f80)) { in X86TargetLowering()
3271 isTypeLegal(LoadVT) && isTypeLegal(BitcastVT)) in isLoadBitCastBeneficial()
3502 return isTypeLegal(VT); in shouldSplatInsEltVarIndex()
3507 if (isTypeLegal(VT)) in hasFastEqualityCompare()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMFastISel.cpp186 bool isTypeLegal(Type *Ty, MVT &VT);
671 bool ARMFastISel::isTypeLegal(Type *Ty, MVT &VT) { in isTypeLegal() function in ARMFastISel
680 return TLI.isTypeLegal(VT); in isTypeLegal()
684 if (isTypeLegal(Ty, VT)) return true; in isLoadTypeLegal()
1530 if (!isTypeLegal(Ty, DstVT)) in SelectIToFP()
1575 if (!isTypeLegal(RetTy, DstVT)) in SelectFPToI()
1604 if (!isTypeLegal(I->getType(), VT)) in SelectSelect()
1681 if (!isTypeLegal(Ty, VT)) in SelectDiv()
1710 if (!isTypeLegal(Ty, VT)) in SelectRem()
2210 else if (!isTypeLegal(RetTy, RetVT)) in ARMEmitLibcall()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetLowering.h766 return isTypeLegal(VT) ? VT : MVT::INVALID_SIMPLE_VALUE_TYPE; in hasFastEqualityCompare()
1077 bool isTypeLegal(EVT VT) const { in isTypeLegal() function
1328 return (VT == MVT::Other || isTypeLegal(VT)) &&
1342 return (VT == MVT::Other || isTypeLegal(VT)) &&
1356 return (VT == MVT::Other || isTypeLegal(VT)) &&
1427 return (!isTypeLegal(VT) || getOperationAction(Op, VT) == Expand); in isOperationExpand()
1432 return (VT == MVT::Other || isTypeLegal(VT)) && in isOperationLegal()
1499 return isTypeLegal(ValVT) && getTruncStoreAction(ValVT, MemVT) == Legal; in isTruncStoreLegal()
1505 return isTypeLegal(ValVT) && in isTruncStoreLegalOrCustom()
1645 } while (VTBits >= NVT.getScalarSizeInBits() || !isTypeLegal(NVT) || in getTypeToPromoteTo()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCFastISel.cpp140 bool isTypeLegal(Type *Ty, MVT &VT);
269 bool PPCFastISel::isTypeLegal(Type *Ty, MVT &VT) { in isTypeLegal() function in PPCFastISel
278 return TLI.isTypeLegal(VT); in isTypeLegal()
284 if (isTypeLegal(Ty, VT)) return true; in isLoadTypeLegal()
1065 if (!isTypeLegal(DstTy, DstVT)) in SelectIToFP()
1190 if (!isTypeLegal(DstTy, DstVT)) in SelectFPToI()
1203 if (!isTypeLegal(SrcTy, SrcVT)) in SelectFPToI()
1574 else if (!isTypeLegal(RetTy, RetVT) && RetVT != MVT::i16 && in fastLowerCall()
1620 if (!isTypeLegal(ArgTy, ArgVT) && ArgVT != MVT::i16 && ArgVT != MVT::i8) in fastLowerCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsFastISel.cpp172 bool isTypeLegal(Type *Ty, MVT &VT);
591 bool MipsFastISel::isTypeLegal(Type *Ty, MVT &VT) { in isTypeLegal() function in MipsFastISel
600 return TLI.isTypeLegal(VT); in isTypeLegal()
607 if (isTypeLegal(Ty, VT)) in isTypeSupported()
619 if (isTypeLegal(Ty, VT)) in isLoadTypeLegal()
1098 if (!isTypeLegal(DstTy, DstVT)) in selectFPToInt()
1106 if (!isTypeLegal(SrcTy, SrcVT)) in selectFPToInt()
1522 if (!isTypeLegal(Val->getType(), VT) && in fastLowerCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64FastISel.cpp185 bool isTypeLegal(Type *Ty, MVT &VT);
566 if (!isTypeLegal(CFP->getType(), VT)) in fastMaterializeFloatZero()
986 bool AArch64FastISel::isTypeLegal(Type *Ty, MVT &VT) { in isTypeLegal() function in AArch64FastISel
1003 return TLI.isTypeLegal(VT); in isTypeLegal()
1014 if (isTypeLegal(Ty, VT)) in isTypeSupported()
2828 if (!isTypeLegal(I->getType(), DestVT) || DestVT.isVector()) in selectFPToInt()
2861 if (!isTypeLegal(I->getType(), DestVT) || DestVT.isVector()) in selectIntToFP()
3203 if (!isTypeLegal(Val->getType(), VT) && in fastLowerCall()
3367 if (!isTypeLegal(RetTy, RetVT)) in foldXALUIntrinsic()
3545 if (!isTypeLegal(II->getType(), RetVT)) in fastLowerIntrinsicCall()
[all …]
H A DAArch64ISelLowering.cpp235 assert(VT.isVector() && DAG.getTargetLoweringInfo().isTypeLegal(VT) && in isPackedVectorType()
4082 if (!DAG.getTargetLoweringInfo().isTypeLegal(Sel->getValueType(0))) in LowerXOR()
4214 if (!DAG.getTargetLoweringInfo().isTypeLegal(Op.getValueType())) in LowerXALUO()
4923 if (isTypeLegal(OpVT) && !isTypeLegal(ArgVT)) { in LowerBITCAST()
5410 assert(VT.isScalableVector() && DAG.getTargetLoweringInfo().isTypeLegal(VT) && in getSVEPredicateBitCast()
5412 DAG.getTargetLoweringInfo().isTypeLegal(InVT) && in getSVEPredicateBitCast()
5634 } else if (Ty.isVector() && Ty.isInteger() && isTypeLegal(Ty)) { in LowerINTRINSIC_WO_CHAIN()
9835 if (!DAG.getTargetLoweringInfo().isTypeLegal(LHS->getValueType(0))) in LowerBR_CC()
10740 if (!DAG.getTargetLoweringInfo().isTypeLegal(CCVal->getValueType(0))) in LowerSELECT()
13060 if (DAG.getTargetLoweringInfo().isTypeLegal(NewVT)) { in tryWidenMaskForShuffle()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp746 if (!isTypeLegal(VT)) in RISCVTargetLowering()
816 if (!isTypeLegal(VT)) in RISCVTargetLowering()
923 if (isTypeLegal(FloatVT)) { in RISCVTargetLowering()
1055 if (!isTypeLegal(VT)) in RISCVTargetLowering()
1061 if (!isTypeLegal(VT)) in RISCVTargetLowering()
1097 if (!isTypeLegal(VT)) in RISCVTargetLowering()
1118 if (!isTypeLegal(VT)) in RISCVTargetLowering()
1127 if (!isTypeLegal(VT)) in RISCVTargetLowering()
1278 if (isTypeLegal(FloatVT)) in RISCVTargetLowering()
1337 if (!isTypeLegal(F32VecV in RISCVTargetLowering()
[all...]
H A DRISCVGatherScatterLowering.cpp498 if (!TLI->isTypeLegal(DataTypeVT)) in tryCreateStridedLoadStore()
H A DRISCVTargetTransformInfo.cpp1033 bool IsTypeLegal = isTypeLegal(Src) && isTypeLegal(Dst) && in getCastInstrCost()
1589 if (!isTypeLegal(Val)) in getVectorInstrCost()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h873 bool isTypeLegal(Type *Ty) const;
1934 virtual bool isTypeLegal(Type *Ty) = 0;
2466 bool isTypeLegal(Type *Ty) override { return Impl.isTypeLegal(Ty); } in isTypeLegal() function
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DVectorUtils.cpp620 !TTI->isTypeLegal(I.getOperand(0)->getType())) in computeMinimumValueSizes()
629 if (TTI && isa<TruncInst>(&I) && TTI->isTypeLegal(I.getType())) in computeMinimumValueSizes()
H A DTargetTransformInfo.cpp569 bool TargetTransformInfo::isTypeLegal(Type *Ty) const { in isTypeLegal() function in TargetTransformInfo
570 return TTIImpl->isTypeLegal(Ty); in isTypeLegal()

123