/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 227 if (isOperationLegalOrCustom(ISD::STORE, NewVT) && in findOptimalMemOpLowering() 231 isOperationLegalOrCustom(ISD::STORE, MVT::f64) && in findOptimalMemOpLowering() 2092 bool OpVTLegal = isOperationLegalOrCustom(ISD::FGETSIGN, VT); in SimplifyDemandedBits() 2093 bool i32Legal = isOperationLegalOrCustom(ISD::FGETSIGN, MVT::i32); in SimplifyDemandedBits() 3428 if (!VT.isVector() && TLI.isOperationLegalOrCustom(ISD::CTPOP, CTVT)) in simplifySetCCWithCTPOP() 5077 : isOperationLegalOrCustom(ISD::MULHS, VT)) in BuildSDIV() 5080 : isOperationLegalOrCustom(ISD::SMUL_LOHI, VT)) { in BuildSDIV() 5197 : isOperationLegalOrCustom(ISD::MULHU, VT)) in BuildUDIV() 5200 : isOperationLegalOrCustom(ISD::UMUL_LOHI, VT)) { in BuildUDIV() 5310 if (!isOperationLegalOrCustom(ISD::MUL, VT)) in prepareUREMEqFold() [all …]
|
D | LegalizeVectorOps.cpp | 678 TLI.isOperationLegalOrCustom(ISD::FP_TO_SINT, NVT)) in PromoteFP_TO_INT() 682 TLI.isOperationLegalOrCustom(ISD::STRICT_FP_TO_SINT, NVT)) in PromoteFP_TO_INT() 1103 if (TLI.isOperationLegalOrCustom(ISD::BITREVERSE, VT.getScalarType())) { in ExpandBITREVERSE() 1119 (TLI.isOperationLegalOrCustom(ISD::BITREVERSE, ByteVT) || in ExpandBITREVERSE() 1120 (TLI.isOperationLegalOrCustom(ISD::SHL, ByteVT) && in ExpandBITREVERSE() 1121 TLI.isOperationLegalOrCustom(ISD::SRL, ByteVT) && in ExpandBITREVERSE() 1137 if (TLI.isOperationLegalOrCustom(ISD::SHL, VT) && in ExpandBITREVERSE() 1138 TLI.isOperationLegalOrCustom(ISD::SRL, VT) && in ExpandBITREVERSE() 1308 if (TLI.isOperationLegalOrCustom(ISD::FSUB, Node->getValueType(0))) { in ExpandFNEG() 1324 if (TLI.isOperationLegalOrCustom(ISD::FNEG, VT) && in ExpandFSUB() [all …]
|
D | LegalizeDAG.cpp | 1554 if (TLI.isOperationLegalOrCustom(ISD::FABS, FloatVT) && in ExpandFCOPYSIGN() 1555 TLI.isOperationLegalOrCustom(ISD::FNEG, FloatVT)) { in ExpandFCOPYSIGN() 1618 if (TLI.isOperationLegalOrCustom(ISD::FCOPYSIGN, FloatVT)) { in ExpandFABS() 2629 if (TLI.isOperationLegalOrCustom(SIntOp, NewInTy)) { in PromoteLegalINT_TO_FP() 2637 if (TLI.isOperationLegalOrCustom(UIntOp, NewInTy)) { in PromoteLegalINT_TO_FP() 2689 if (TLI.isOperationLegalOrCustom(OpToUse, NewOutTy)) in PromoteLegalFP_TO_INT() 2694 if (!IsSigned && TLI.isOperationLegalOrCustom(OpToUse, NewOutTy)) in PromoteLegalFP_TO_INT() 3331 if ((TLI.isOperationLegalOrCustom(ISD::FSINCOS, VT) || in ExpandNode() 3377 TLI.isOperationLegalOrCustom(ISD::FP_TO_FP16, MVT::f32)) { in ExpandNode() 3403 if (TLI.isOperationLegalOrCustom(ISD::FADD, VT) && in ExpandNode() [all …]
|
D | DAGCombiner.cpp | 765 return TLI.isOperationLegalOrCustom(Opcode, VT, LegalOperations); in hasOperation() 2597 if (!TLI.isOperationLegalOrCustom(V.getOpcode(), VT)) in getAsCarry() 2699 if (TLI.isOperationLegalOrCustom(ISD::ADDCARRY, VT)) in visitADDLikeCommutative() 2843 if (TLI.isOperationLegalOrCustom(ISD::ADDCARRY, VT)) in visitUADDOLike() 2885 TLI.isOperationLegalOrCustom(ISD::UADDO, N->getValueType(0))) in visitADDCARRY() 2924 TLI.isOperationLegalOrCustom(ISD::SADDO, N->getValueType(0))) in visitSADDO_CARRY() 3073 if (!TLI.isOperationLegalOrCustom(NewOp, Carry0.getValue(0).getValueType())) in combineCarryDiamond() 3226 !TLI.isOperationLegalOrCustom(ISD::ABS, VT) && in visitSUB() 3420 if (TLI.isOperationLegalOrCustom(ISD::ABS, VT)) { in visitSUB() 3474 if (TLI.isOperationLegalOrCustom(ISD::ADDCARRY, VT)) { in visitSUB() [all …]
|
D | LegalizeIntegerTypes.cpp | 568 TLI.isOperationLegalOrCustom(ISD::FP_TO_SINT, NVT)) in PromoteIntRes_FP_TO_XINT() 573 TLI.isOperationLegalOrCustom(ISD::STRICT_FP_TO_SINT, NVT)) in PromoteIntRes_FP_TO_XINT() 756 if (IsShift || TLI.isOperationLegalOrCustom(Opcode, PromotedType)) { in PromoteIntRes_ADDSUBSHLSAT() 1167 !TLI.isOperationLegalOrCustom(Opcode, VT)) { in PromoteIntRes_FunnelShift() 2521 bool HasOpCarry = TLI.isOperationLegalOrCustom( in ExpandIntRes_ADDSUB() 2544 TLI.isOperationLegalOrCustom(N->getOpcode() == ISD::ADD ? in ExpandIntRes_ADDSUB() 2563 TLI.isOperationLegalOrCustom(N->getOpcode() == ISD::ADD ? in ExpandIntRes_ADDSUB() 2707 bool HasCarryOp = TLI.isOperationLegalOrCustom( in ExpandIntRes_UADDSUBO() 2899 bool HasAddCarry = TLI.isOperationLegalOrCustom( in ExpandIntRes_ABS() 3594 bool HasCarryOp = TLI.isOperationLegalOrCustom( in ExpandIntRes_SADDSUBO() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 236 if (isOperationLegalOrCustom(ISD::STORE, NewVT) && in findOptimalMemOpLowering() 240 isOperationLegalOrCustom(ISD::STORE, MVT::f64) && in findOptimalMemOpLowering() 1902 bool OpVTLegal = isOperationLegalOrCustom(ISD::FGETSIGN, VT); in SimplifyDemandedBits() 1903 bool i32Legal = isOperationLegalOrCustom(ISD::FGETSIGN, MVT::i32); in SimplifyDemandedBits() 3198 if (C1 == 1 && !isOperationLegalOrCustom(ISD::CTPOP, CTVT) && in SimplifySetCC() 4783 : isOperationLegalOrCustom(ISD::MULHS, VT)) in BuildSDIV() 4786 : isOperationLegalOrCustom(ISD::SMUL_LOHI, VT)) { in BuildSDIV() 4903 : isOperationLegalOrCustom(ISD::MULHU, VT)) in BuildUDIV() 4906 : isOperationLegalOrCustom(ISD::UMUL_LOHI, VT)) { in BuildUDIV() 5016 if (!isOperationLegalOrCustom(ISD::MUL, VT)) in prepareUREMEqFold() [all …]
|
D | LegalizeVectorOps.cpp | 672 TLI.isOperationLegalOrCustom(ISD::FP_TO_SINT, NVT)) in PromoteFP_TO_INT() 676 TLI.isOperationLegalOrCustom(ISD::STRICT_FP_TO_SINT, NVT)) in PromoteFP_TO_INT() 1204 if (TLI.isOperationLegalOrCustom(ISD::BITREVERSE, VT.getScalarType())) { in ExpandBITREVERSE() 1220 (TLI.isOperationLegalOrCustom(ISD::BITREVERSE, ByteVT) || in ExpandBITREVERSE() 1221 (TLI.isOperationLegalOrCustom(ISD::SHL, ByteVT) && in ExpandBITREVERSE() 1222 TLI.isOperationLegalOrCustom(ISD::SRL, ByteVT) && in ExpandBITREVERSE() 1238 if (TLI.isOperationLegalOrCustom(ISD::SHL, VT) && in ExpandBITREVERSE() 1239 TLI.isOperationLegalOrCustom(ISD::SRL, VT) && in ExpandBITREVERSE() 1409 if (TLI.isOperationLegalOrCustom(ISD::FSUB, Node->getValueType(0))) { in ExpandFNEG() 1425 if (TLI.isOperationLegalOrCustom(ISD::FNEG, VT) && in ExpandFSUB() [all …]
|
D | LegalizeDAG.cpp | 1523 if (TLI.isOperationLegalOrCustom(ISD::FABS, FloatVT) && in ExpandFCOPYSIGN() 1524 TLI.isOperationLegalOrCustom(ISD::FNEG, FloatVT)) { in ExpandFCOPYSIGN() 1569 if (TLI.isOperationLegalOrCustom(ISD::FCOPYSIGN, FloatVT)) { in ExpandFABS() 2512 if (TLI.isOperationLegalOrCustom(SIntOp, NewInTy)) { in PromoteLegalINT_TO_FP() 2520 if (TLI.isOperationLegalOrCustom(UIntOp, NewInTy)) { in PromoteLegalINT_TO_FP() 2572 if (TLI.isOperationLegalOrCustom(OpToUse, NewOutTy)) in PromoteLegalFP_TO_INT() 2577 if (!IsSigned && TLI.isOperationLegalOrCustom(OpToUse, NewOutTy)) in PromoteLegalFP_TO_INT() 3197 if ((TLI.isOperationLegalOrCustom(ISD::FSINCOS, VT) || in ExpandNode() 3228 TLI.isOperationLegalOrCustom(ISD::FP_TO_FP16, MVT::f32)) { in ExpandNode() 3254 if (TLI.isOperationLegalOrCustom(ISD::FADD, VT) && in ExpandNode() [all …]
|
D | DAGCombiner.cpp | 689 return TLI.isOperationLegalOrCustom(Opcode, VT); in hasOperation() 2394 if (!TLI.isOperationLegalOrCustom(V.getOpcode(), VT)) in getAsCarry() 2496 if (TLI.isOperationLegalOrCustom(ISD::ADDCARRY, VT)) in visitADDLikeCommutative() 2658 if (TLI.isOperationLegalOrCustom(ISD::ADDCARRY, VT)) in visitUADDOLike() 2700 TLI.isOperationLegalOrCustom(ISD::UADDO, N->getValueType(0))) in visitADDCARRY() 2866 if (!TLI.isOperationLegalOrCustom(NewOp, Carry0.getValue(0).getValueType())) in combineCarryDiamond() 3209 if (TLI.isOperationLegalOrCustom(ISD::ABS, VT)) { in visitSUB() 3259 if (TLI.isOperationLegalOrCustom(ISD::ADDCARRY, VT)) { in visitSUB() 3398 TLI.isOperationLegalOrCustom(ISD::USUBO, N->getValueType(0))) in visitSUBCARRY() 3637 if (!TLI.isOperationLegalOrCustom(DivRemOpc, VT) && in useDivRem() [all …]
|
D | LegalizeIntegerTypes.cpp | 519 TLI.isOperationLegalOrCustom(ISD::FP_TO_SINT, NVT)) in PromoteIntRes_FP_TO_XINT() 524 TLI.isOperationLegalOrCustom(ISD::STRICT_FP_TO_SINT, NVT)) in PromoteIntRes_FP_TO_XINT() 691 if (TLI.isOperationLegalOrCustom(Opcode, PromotedType)) { in PromoteIntRes_ADDSUBSAT() 2264 bool HasOpCarry = TLI.isOperationLegalOrCustom( in ExpandIntRes_ADDSUB() 2287 TLI.isOperationLegalOrCustom(N->getOpcode() == ISD::ADD ? in ExpandIntRes_ADDSUB() 2306 TLI.isOperationLegalOrCustom(N->getOpcode() == ISD::ADD ? in ExpandIntRes_ADDSUB() 2450 bool HasCarryOp = TLI.isOperationLegalOrCustom( in ExpandIntRes_UADDSUBO() 3907 bool HasSETCCCARRY = TLI.isOperationLegalOrCustom(ISD::SETCCCARRY, ExpandVT); in IntegerExpandSetCCOperands()
|
D | SelectionDAGBuilder.cpp | 3320 !TLI.isOperationLegalOrCustom(ISD::VSELECT, VT); in visitSelect() 3336 if (TLI.isOperationLegalOrCustom(ISD::FMINNUM, VT)) in visitSelect() 3338 else if (TLI.isOperationLegalOrCustom(ISD::FMINIMUM, VT)) in visitSelect() 3341 Opc = TLI.isOperationLegalOrCustom(ISD::FMINNUM, VT.getScalarType()) ? in visitSelect() 3354 if (TLI.isOperationLegalOrCustom(ISD::FMAXNUM, VT)) in visitSelect() 3356 else if (TLI.isOperationLegalOrCustom(ISD::FMAXIMUM, VT)) in visitSelect() 3359 Opc = TLI.isOperationLegalOrCustom(ISD::FMAXNUM, VT.getScalarType()) ? in visitSelect() 3374 (TLI.isOperationLegalOrCustom(Opc, VT) || in visitSelect() 3376 TLI.isOperationLegalOrCustom(Opc, VT.getScalarType()))) && in visitSelect() 6354 if (TLI.isOperationLegalOrCustom(FunnelOpcode, VT)) { in visitIntrinsicCall() [all …]
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeVectorOps.cpp | 478 if (TLI.isOperationLegalOrCustom(ISD::FP_TO_SINT, NewVT)) { in PromoteFP_TO_INT() 482 if (!isSigned && TLI.isOperationLegalOrCustom(ISD::FP_TO_UINT, NewVT)) { in PromoteFP_TO_INT() 892 if (TLI.isOperationLegalOrCustom(ISD::BITREVERSE, VT.getScalarType())) in ExpandBITREVERSE() 905 (TLI.isOperationLegalOrCustom(ISD::BITREVERSE, ByteVT) || in ExpandBITREVERSE() 906 (TLI.isOperationLegalOrCustom(ISD::SHL, ByteVT) && in ExpandBITREVERSE() 907 TLI.isOperationLegalOrCustom(ISD::SRL, ByteVT) && in ExpandBITREVERSE() 921 if (!TLI.isOperationLegalOrCustom(ISD::SHL, VT) || in ExpandBITREVERSE() 922 !TLI.isOperationLegalOrCustom(ISD::SRL, VT) || in ExpandBITREVERSE() 1020 if (TLI.isOperationLegalOrCustom(ISD::FSUB, Op.getValueType())) { in ExpandFNEG() 1033 if (TLI.isOperationLegalOrCustom(Opc, Op.getValueType())) { in ExpandCTLZ_CTTZ_ZERO_UNDEF()
|
D | LegalizeDAG.cpp | 1449 if (TLI.isOperationLegalOrCustom(ISD::FABS, FloatVT) && in ExpandFCOPYSIGN() 1450 TLI.isOperationLegalOrCustom(ISD::FNEG, FloatVT)) { in ExpandFCOPYSIGN() 1499 if (TLI.isOperationLegalOrCustom(ISD::FCOPYSIGN, FloatVT)) { in ExpandFABS() 2489 if (TLI.isOperationLegalOrCustom(ISD::SINT_TO_FP, NewInTy)) { in PromoteLegalINT_TO_FP() 2496 if (TLI.isOperationLegalOrCustom(ISD::UINT_TO_FP, NewInTy)) { in PromoteLegalINT_TO_FP() 2531 if (TLI.isOperationLegalOrCustom(ISD::FP_TO_SINT, NewOutTy)) { in PromoteLegalFP_TO_INT() 2537 if (!isSigned && TLI.isOperationLegalOrCustom(ISD::FP_TO_UINT, NewOutTy)) { in PromoteLegalFP_TO_INT() 2690 if (TLI.isOperationLegalOrCustom(ISD::CTLZ_ZERO_UNDEF, VT)) { in ExpandBitCount() 2731 if (!TLI.isOperationLegalOrCustom(ISD::CTPOP, VT) && in ExpandBitCount() 2732 TLI.isOperationLegalOrCustom(ISD::CTLZ, VT)) in ExpandBitCount() [all …]
|
D | TargetLowering.cpp | 1114 bool OpVTLegal = isOperationLegalOrCustom(ISD::FGETSIGN, Op.getValueType()); in SimplifyDemandedBits() 1115 bool i32Legal = isOperationLegalOrCustom(ISD::FGETSIGN, MVT::i32); in SimplifyDemandedBits() 2854 isOperationLegalOrCustom(ISD::MULHS, VT)) in BuildSDIV() 2858 isOperationLegalOrCustom(ISD::SMUL_LOHI, VT)) in BuildSDIV() 2932 isOperationLegalOrCustom(ISD::MULHU, VT)) in BuildUDIV() 2935 isOperationLegalOrCustom(ISD::UMUL_LOHI, VT)) in BuildUDIV() 2986 bool HasMULHS = isOperationLegalOrCustom(ISD::MULHS, HiLoVT); in expandMUL() 2987 bool HasMULHU = isOperationLegalOrCustom(ISD::MULHU, HiLoVT); in expandMUL() 2988 bool HasSMUL_LOHI = isOperationLegalOrCustom(ISD::SMUL_LOHI, HiLoVT); in expandMUL() 2989 bool HasUMUL_LOHI = isOperationLegalOrCustom(ISD::UMUL_LOHI, HiLoVT); in expandMUL() [all …]
|
D | DAGCombiner.cpp | 611 !TLI.isOperationLegalOrCustom(ISD::FSUB, Op.getValueType())) in isNegatibleForFree() 2171 if (!TLI.isOperationLegalOrCustom(DivRemOpc, VT) && in useDivRem() 2179 if (TLI.isOperationLegalOrCustom(Opcode, VT)) in useDivRem() 2183 if (TLI.isOperationLegalOrCustom(OtherOpcode, VT)) in useDivRem() 2553 TLI.isOperationLegalOrCustom(LoOp, N->getValueType(0)))) { in SimplifyNodeWithTwoResults() 3602 if (TLI.isOperationLegalOrCustom(ISD::ROTL, VT)) in MatchBSwapHWord() 3604 if (TLI.isOperationLegalOrCustom(ISD::ROTR, VT)) in MatchBSwapHWord() 4008 bool HasPos = TLI.isOperationLegalOrCustom(PosOpcode, VT); in MatchRotatePosNeg() 4025 bool HasROTL = TLI.isOperationLegalOrCustom(ISD::ROTL, VT); in MatchRotate() 4026 bool HasROTR = TLI.isOperationLegalOrCustom(ISD::ROTR, VT); in MatchRotate() [all …]
|
D | SelectionDAGBuilder.cpp | 2771 !TLI.isOperationLegalOrCustom(ISD::VSELECT, VT); in visitSelect() 2787 if (TLI.isOperationLegalOrCustom(ISD::FMINNUM, VT)) in visitSelect() 2789 else if (TLI.isOperationLegalOrCustom(ISD::FMINNAN, VT)) in visitSelect() 2792 Opc = TLI.isOperationLegalOrCustom(ISD::FMINNUM, VT.getScalarType()) ? in visitSelect() 2805 if (TLI.isOperationLegalOrCustom(ISD::FMAXNUM, VT)) in visitSelect() 2807 else if (TLI.isOperationLegalOrCustom(ISD::FMAXNAN, VT)) in visitSelect() 2810 Opc = TLI.isOperationLegalOrCustom(ISD::FMAXNUM, VT.getScalarType()) ? in visitSelect() 2819 (TLI.isOperationLegalOrCustom(Opc, VT) || in visitSelect() 2821 TLI.isOperationLegalOrCustom(Opc, VT.getScalarType()))) && in visitSelect() 5209 I.hasNoNaNs() && TLI.isOperationLegalOrCustom(ISD::FMINNAN, VT) in visitIntrinsicCall() [all …]
|
/external/llvm/include/llvm/CodeGen/ |
D | BasicTTIImpl.h | 193 return TLI->isOperationLegalOrCustom(ISD::BR_JT, MVT::Other) || in shouldBuildLookupTables() 194 TLI->isOperationLegalOrCustom(ISD::BRIND, MVT::Other); in shouldBuildLookupTables() 201 TLI->isOperationLegalOrCustom(ISD::FSQRT, VT); in haveFastSqrt()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCCTRLoops.cpp | 387 if (TLI->isOperationLegalOrCustom(Opcode, VTy)) in mightUseCTR() 390 TLI->isOperationLegalOrCustom(Opcode, VTy.getScalarType())) in mightUseCTR()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/ |
D | PPCTargetTransformInfo.cpp | 403 if (TLI->isOperationLegalOrCustom(Opcode, EVTy)) in mightUseCTR() 406 TLI->isOperationLegalOrCustom(Opcode, EVTy.getScalarType())) in mightUseCTR()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
D | BasicTTIImpl.h | 389 return TLI->isOperationLegalOrCustom(ISD::BR_JT, MVT::Other) || in shouldBuildLookupTables() 390 TLI->isOperationLegalOrCustom(ISD::BRIND, MVT::Other); in shouldBuildLookupTables() 397 TLI->isOperationLegalOrCustom(ISD::FSQRT, VT); in haveFastSqrt()
|
D | TargetLowering.h | 966 bool isOperationLegalOrCustom(unsigned Op, EVT VT) const { in isOperationLegalOrCustom() function 1002 return isOperationLegalOrCustom(ISD::BR_JT, MVT::Other) || in areJTsAllowed() 1003 isOperationLegalOrCustom(ISD::BRIND, MVT::Other); in areJTsAllowed()
|
/external/llvm-project/llvm/lib/Target/PowerPC/ |
D | PPCTargetTransformInfo.cpp | 610 if (TLI->isOperationLegalOrCustom(Opcode, EVTy)) in mightUseCTR() 613 TLI->isOperationLegalOrCustom(Opcode, EVTy.getScalarType())) in mightUseCTR()
|
/external/llvm-project/llvm/include/llvm/CodeGen/ |
D | BasicTTIImpl.h | 374 return TLI->isOperationLegalOrCustom(ISD::BR_JT, MVT::Other) || in shouldBuildLookupTables() 375 TLI->isOperationLegalOrCustom(ISD::BRIND, MVT::Other); in shouldBuildLookupTables() 382 TLI->isOperationLegalOrCustom(ISD::FSQRT, VT); in haveFastSqrt()
|
D | TargetLowering.h | 1104 bool isOperationLegalOrCustom(unsigned Op, EVT VT, 1154 return isOperationLegalOrCustom(ISD::BR_JT, MVT::Other) || in areJTsAllowed() 1155 isOperationLegalOrCustom(ISD::BRIND, MVT::Other); in areJTsAllowed()
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 1003 if (TLI.isOperationLegalOrCustom( in SinkShiftAndTruncate() 2761 return TLI.isOperationLegalOrCustom( in isPromotedInstructionLegal() 5042 TLI.isOperationLegalOrCustom( in shouldPromote() 5303 !TLI.isOperationLegalOrCustom(ISD::BITREVERSE, in makeBitReverse()
|