/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | LegalizeVectorOps.cpp | 277 if (!TLI.isOperationLegalOrCustom(ISD::AND, VT) || in ExpandVSELECT() 278 !TLI.isOperationLegalOrCustom(ISD::XOR, VT) || in ExpandVSELECT() 279 !TLI.isOperationLegalOrCustom(ISD::OR, VT)) in ExpandVSELECT() 304 if (!TLI.isOperationLegalOrCustom(ISD::SINT_TO_FP, VT) || in ExpandUINT_TO_FLOAT() 305 !TLI.isOperationLegalOrCustom(ISD::SRL, VT)) in ExpandUINT_TO_FLOAT() 340 if (TLI.isOperationLegalOrCustom(ISD::FSUB, Op.getValueType())) { in ExpandFNEG()
|
D | LegalizeDAG.cpp | 2664 if (TLI.isOperationLegalOrCustom(ISD::SINT_TO_FP, NewInTy)) { in PromoteLegalINT_TO_FP() 2671 if (TLI.isOperationLegalOrCustom(ISD::UINT_TO_FP, NewInTy)) { in PromoteLegalINT_TO_FP() 2705 if (TLI.isOperationLegalOrCustom(ISD::FP_TO_SINT, NewOutTy)) { in PromoteLegalFP_TO_INT() 2710 if (TLI.isOperationLegalOrCustom(ISD::FP_TO_UINT, NewOutTy)) { in PromoteLegalFP_TO_INT() 2866 if (!TLI.isOperationLegalOrCustom(ISD::CTPOP, VT) && in ExpandBitCount() 2867 TLI.isOperationLegalOrCustom(ISD::CTLZ, VT)) in ExpandBitCount() 3435 assert(TLI.isOperationLegalOrCustom(ISD::ADD, VT) && in ExpandNode() 3436 TLI.isOperationLegalOrCustom(ISD::XOR, VT) && in ExpandNode() 3453 if (TLI.isOperationLegalOrCustom(DivRemOpc, VT) || in ExpandNode() 3457 } else if (TLI.isOperationLegalOrCustom(DivOpc, VT)) { in ExpandNode() [all …]
|
D | DAGCombiner.cpp | 2719 if (TLI.isOperationLegalOrCustom(ISD::ROTL, VT)) in MatchBSwapHWord() 2721 else if (TLI.isOperationLegalOrCustom(ISD::ROTR, VT)) in MatchBSwapHWord() 2897 bool HasROTL = TLI.isOperationLegalOrCustom(ISD::ROTL, VT); in MatchRotate() 2898 bool HasROTR = TLI.isOperationLegalOrCustom(ISD::ROTR, VT); in MatchRotate() 3435 TLI.isOperationLegalOrCustom(ISD::SIGN_EXTEND, TruncVT) && in visitSRA() 3436 TLI.isOperationLegalOrCustom(ISD::TRUNCATE, VT) && in visitSRA() 3809 if (TLI.isOperationLegalOrCustom(ISD::SELECT_CC, MVT::Other) && in visitSELECT() 3810 TLI.isOperationLegalOrCustom(ISD::SELECT_CC, VT)) in visitSELECT() 5467 TLI.isOperationLegalOrCustom(llvm::ISD::ConstantFP, VT))) in visitSINT_TO_FP() 5472 if (!TLI.isOperationLegalOrCustom(ISD::SINT_TO_FP, OpVT) && in visitSINT_TO_FP() [all …]
|
D | LegalizeIntegerTypes.cpp | 360 TLI.isOperationLegalOrCustom(ISD::FP_TO_SINT, NVT)) in PromoteIntRes_FP_TO_XINT() 1277 TLI.isOperationLegalOrCustom(ISD::ADDC, in ExpandShiftByConstant() 1518 TLI.isOperationLegalOrCustom(N->getOpcode() == ISD::ADD ? in ExpandIntRes_ADDSUB() 1894 bool HasMULHS = TLI.isOperationLegalOrCustom(ISD::MULHS, NVT); in ExpandIntRes_MUL() 1895 bool HasMULHU = TLI.isOperationLegalOrCustom(ISD::MULHU, NVT); in ExpandIntRes_MUL() 1896 bool HasSMUL_LOHI = TLI.isOperationLegalOrCustom(ISD::SMUL_LOHI, NVT); in ExpandIntRes_MUL() 1897 bool HasUMUL_LOHI = TLI.isOperationLegalOrCustom(ISD::UMUL_LOHI, NVT); in ExpandIntRes_MUL()
|
D | TargetLowering.cpp | 1789 bool OpVTLegal = isOperationLegalOrCustom(ISD::FGETSIGN, Op.getValueType()); in SimplifyDemandedBits() 1790 bool i32Legal = isOperationLegalOrCustom(ISD::FGETSIGN, MVT::i32); in SimplifyDemandedBits() 3261 if (isOperationLegalOrCustom(ISD::MULHS, VT)) in BuildSDIV() 3264 else if (isOperationLegalOrCustom(ISD::SMUL_LOHI, VT)) in BuildSDIV() 3335 if (isOperationLegalOrCustom(ISD::MULHU, VT)) in BuildUDIV() 3337 else if (isOperationLegalOrCustom(ISD::UMUL_LOHI, VT)) in BuildUDIV()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeVectorOps.cpp | 541 TLI.isOperationLegalOrCustom(ISD::FP_TO_SINT, NVT)) in PromoteFP_TO_INT() 941 if (TLI.isOperationLegalOrCustom(ISD::BITREVERSE, VT.getScalarType())) in ExpandBITREVERSE() 954 (TLI.isOperationLegalOrCustom(ISD::BITREVERSE, ByteVT) || in ExpandBITREVERSE() 955 (TLI.isOperationLegalOrCustom(ISD::SHL, ByteVT) && in ExpandBITREVERSE() 956 TLI.isOperationLegalOrCustom(ISD::SRL, ByteVT) && in ExpandBITREVERSE() 970 if (!TLI.isOperationLegalOrCustom(ISD::SHL, VT) || in ExpandBITREVERSE() 971 !TLI.isOperationLegalOrCustom(ISD::SRL, VT) || in ExpandBITREVERSE() 1067 if (TLI.isOperationLegalOrCustom(ISD::FSUB, Op.getValueType())) { in ExpandFNEG() 1082 if (TLI.isOperationLegalOrCustom(ISD::FNEG, VT) && in ExpandFSUB() 1083 TLI.isOperationLegalOrCustom(ISD::FADD, VT)) in ExpandFSUB() [all …]
|
D | LegalizeDAG.cpp | 1473 if (TLI.isOperationLegalOrCustom(ISD::FABS, FloatVT) && in ExpandFCOPYSIGN() 1474 TLI.isOperationLegalOrCustom(ISD::FNEG, FloatVT)) { in ExpandFCOPYSIGN() 1519 if (TLI.isOperationLegalOrCustom(ISD::FCOPYSIGN, FloatVT)) { in ExpandFABS() 2523 if (TLI.isOperationLegalOrCustom(ISD::SINT_TO_FP, NewInTy)) { in PromoteLegalINT_TO_FP() 2530 if (TLI.isOperationLegalOrCustom(ISD::UINT_TO_FP, NewInTy)) { in PromoteLegalINT_TO_FP() 2565 if (TLI.isOperationLegalOrCustom(ISD::FP_TO_SINT, NewOutTy)) { in PromoteLegalFP_TO_INT() 2571 if (!isSigned && TLI.isOperationLegalOrCustom(ISD::FP_TO_UINT, NewOutTy)) { in PromoteLegalFP_TO_INT() 2766 if (TLI.isOperationLegalOrCustom(ISD::CTLZ_ZERO_UNDEF, VT)) { in ExpandBitCount() 2800 if (TLI.isOperationLegalOrCustom(ISD::CTTZ_ZERO_UNDEF, VT)) { in ExpandBitCount() 2818 if (!TLI.isOperationLegalOrCustom(ISD::CTPOP, VT) && in ExpandBitCount() [all …]
|
D | TargetLowering.cpp | 1187 bool OpVTLegal = isOperationLegalOrCustom(ISD::FGETSIGN, VT); in SimplifyDemandedBits() 1188 bool i32Legal = isOperationLegalOrCustom(ISD::FGETSIGN, MVT::i32); in SimplifyDemandedBits() 3487 isOperationLegalOrCustom(ISD::MULHS, VT)) in BuildSDIV() 3491 isOperationLegalOrCustom(ISD::SMUL_LOHI, VT)) in BuildSDIV() 3566 isOperationLegalOrCustom(ISD::MULHU, VT)) in BuildUDIV() 3569 isOperationLegalOrCustom(ISD::UMUL_LOHI, VT)) in BuildUDIV() 3624 isOperationLegalOrCustom(ISD::MULHS, HiLoVT); in expandMUL_LOHI() 3626 isOperationLegalOrCustom(ISD::MULHU, HiLoVT); in expandMUL_LOHI() 3628 isOperationLegalOrCustom(ISD::SMUL_LOHI, HiLoVT); in expandMUL_LOHI() 3630 isOperationLegalOrCustom(ISD::UMUL_LOHI, HiLoVT); in expandMUL_LOHI() [all …]
|
D | DAGCombiner.cpp | 578 return TLI.isOperationLegalOrCustom(Opcode, VT); in hasOperation() 711 if (LegalOperations && !TLI.isOperationLegalOrCustom(ISD::FSUB, VT)) in isNegatibleForFree() 2281 if (TLI.isOperationLegalOrCustom(ISD::ADDCARRY, VT)) in visitADDLike() 2414 if (TLI.isOperationLegalOrCustom(ISD::ADDCARRY, VT)) in visitUADDOLike() 2456 TLI.isOperationLegalOrCustom(ISD::UADDO, N->getValueType(0))) in visitADDCARRY() 2707 if (TLI.isOperationLegalOrCustom(ISD::ABS, VT)) { in visitSUB() 2839 TLI.isOperationLegalOrCustom(ISD::USUBO, N->getValueType(0))) in visitSUBCARRY() 3021 if (!TLI.isOperationLegalOrCustom(DivRemOpc, VT) && in useDivRem() 3029 if (TLI.isOperationLegalOrCustom(Opcode, VT)) in useDivRem() 3033 if (TLI.isOperationLegalOrCustom(OtherOpcode, VT)) in useDivRem() [all …]
|
D | LegalizeIntegerTypes.cpp | 417 TLI.isOperationLegalOrCustom(ISD::FP_TO_SINT, NVT)) in PromoteIntRes_FP_TO_XINT() 1811 bool HasOpCarry = TLI.isOperationLegalOrCustom( in ExpandIntRes_ADDSUB() 1834 TLI.isOperationLegalOrCustom(N->getOpcode() == ISD::ADD ? in ExpandIntRes_ADDSUB() 1853 TLI.isOperationLegalOrCustom(N->getOpcode() == ISD::ADD ? in ExpandIntRes_ADDSUB() 1980 bool HasOpCarry = TLI.isOperationLegalOrCustom( in ExpandIntRes_UADDSUBO() 3054 bool HasSETCCCARRY = TLI.isOperationLegalOrCustom(ISD::SETCCCARRY, ExpandVT); in IntegerExpandSetCCOperands()
|
D | SelectionDAGBuilder.cpp | 2950 !TLI.isOperationLegalOrCustom(ISD::VSELECT, VT); in visitSelect() 2966 if (TLI.isOperationLegalOrCustom(ISD::FMINNUM, VT)) in visitSelect() 2968 else if (TLI.isOperationLegalOrCustom(ISD::FMINNAN, VT)) in visitSelect() 2971 Opc = TLI.isOperationLegalOrCustom(ISD::FMINNUM, VT.getScalarType()) ? in visitSelect() 2984 if (TLI.isOperationLegalOrCustom(ISD::FMAXNUM, VT)) in visitSelect() 2986 else if (TLI.isOperationLegalOrCustom(ISD::FMAXNAN, VT)) in visitSelect() 2989 Opc = TLI.isOperationLegalOrCustom(ISD::FMAXNUM, VT.getScalarType()) ? in visitSelect() 2998 (TLI.isOperationLegalOrCustom(Opc, VT) || in visitSelect() 3000 TLI.isOperationLegalOrCustom(Opc, VT.getScalarType()))) && in visitSelect() 5556 I.hasNoNaNs() && TLI.isOperationLegalOrCustom(ISD::FMINNAN, 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/ |
D | PPCCTRLoops.cpp | 415 if (TLI->isOperationLegalOrCustom(Opcode, EVTy)) in mightUseCTR() 418 TLI->isOperationLegalOrCustom(Opcode, EVTy.getScalarType())) in mightUseCTR()
|
/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-7.0/llvm/include/llvm/CodeGen/ |
D | BasicTTIImpl.h | 319 return TLI->isOperationLegalOrCustom(ISD::BR_JT, MVT::Other) || in shouldBuildLookupTables() 320 TLI->isOperationLegalOrCustom(ISD::BRIND, MVT::Other); in shouldBuildLookupTables() 327 TLI->isOperationLegalOrCustom(ISD::FSQRT, VT); in haveFastSqrt()
|
D | TargetLowering.h | 829 bool isOperationLegalOrCustom(unsigned Op, EVT VT) const { in isOperationLegalOrCustom() function 865 return isOperationLegalOrCustom(ISD::BR_JT, MVT::Other) || in areJTsAllowed() 866 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()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/ |
D | AArch64TargetTransformInfo.cpp | 525 if (TLI->isOperationLegalOrCustom(ISD::MULHU, VT)) { in getArithmeticInstrCost()
|
/external/swiftshader/third_party/LLVM/include/llvm/Target/ |
D | TargetLowering.h | 380 bool isOperationLegalOrCustom(unsigned Op, EVT VT) const { in isOperationLegalOrCustom() function
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 1379 if (TLI.isOperationLegalOrCustom( in SinkShiftAndTruncate() 3281 return TLI.isOperationLegalOrCustom( in isPromotedInstructionLegal() 6088 TLI.isOperationLegalOrCustom( in shouldPromote() 6648 !TLI.isOperationLegalOrCustom(ISD::BITREVERSE, in makeBitReverse()
|