Lines Matching refs:isOperationLegal
988 if (!TLI.isOperationLegal(ISD::ANY_EXTEND, PVT)) in PromoteOperand()
994 if (!TLI.isOperationLegal(ISD::SIGN_EXTEND_INREG, PVT)) in SExtPromoteOperand()
1726 if ((!LegalOperations || TLI.isOperationLegal(ISD::OR, VT)) && in visitADD()
1760 !TLI.isOperationLegal(ISD::SIGN_EXTEND, MVT::i1)) { in visitADD()
1847 if (!LegalOperations || TLI.isOperationLegal(ISD::BUILD_VECTOR, VT)) in tryFoldToZero()
2494 if (TLI.isOperationLegal(ISD::MUL, NewVT)) { in visitMULHS()
2530 if (TLI.isOperationLegal(ISD::MUL, NewVT)) { in visitMULHU()
2562 TLI.isOperationLegal(HiOp, N->getValueType(1)))) { in SimplifyNodeWithTwoResults()
2578 TLI.isOperationLegal(LoOpt.getOpcode(), LoOpt.getValueType()))) in SimplifyNodeWithTwoResults()
2588 TLI.isOperationLegal(HiOpt.getOpcode(), HiOpt.getValueType()))) in SimplifyNodeWithTwoResults()
2608 if (TLI.isOperationLegal(ISD::MUL, NewVT)) { in visitSMUL_LOHI()
2639 if (TLI.isOperationLegal(ISD::MUL, NewVT)) { in visitUMUL_LOHI()
2733 (!LegalOperations || TLI.isOperationLegal(N->getOpcode(), Op0VT))) { in SimplifyBinOpWithSameOpcodeHands()
2922 TLI.isOperationLegal(ISD::SETCC, LL.getValueType())))) { in visitANDLike()
3362 if (!TLI.isOperationLegal(ISD::BSWAP, VT)) in MatchBSwapHWordLow()
3547 if (!TLI.isOperationLegal(ISD::BSWAP, VT)) in MatchBSwapHWord()
3657 TLI.isOperationLegal(ISD::SETCC, LL.getValueType())))) { in visitORLike()
4654 TLI.isOperationLegal(ISD::SIGN_EXTEND_INREG, ExtVT))) in visitSRA()
5050 if (TLI.isOperationLegal(Opcode, VT)) in combineMinNumMaxNum()
5061 if (TLI.isOperationLegal(Opcode, VT)) in combineMinNumMaxNum()
5244 TLI.isOperationLegal(ISD::SELECT_CC, VT)) in visitSELECT()
6067 if (!LegalOperations || TLI.isOperationLegal(ISD::SIGN_EXTEND_INREG, in visitSIGN_EXTEND()
6140 (!LegalOperations && TLI.isOperationLegal(N0.getOpcode(), VT))) { in visitSIGN_EXTEND()
6218 TLI.isOperationLegal(ISD::SETCC, N0.getOperand(0).getValueType())) { in visitSIGN_EXTEND()
6230 if ((!LegalOperations || TLI.isOperationLegal(ISD::ZERO_EXTEND, VT)) && in visitSIGN_EXTEND()
6345 if (!LegalOperations || (TLI.isOperationLegal(ISD::AND, SrcVT) && in visitZERO_EXTEND()
6346 TLI.isOperationLegal(ISD::ZERO_EXTEND, VT))) { in visitZERO_EXTEND()
6354 if (!LegalOperations || TLI.isOperationLegal(ISD::AND, VT)) { in visitZERO_EXTEND()
6432 (!LegalOperations && TLI.isOperationLegal(N0.getOpcode(), VT))) { in visitZERO_EXTEND()
6971 (!LegalOperations || TLI.isOperationLegal(ISD::SIGN_EXTEND, VT))) in visitSIGN_EXTEND_INREG()
7143 if ((!LegalOperations || TLI.isOperationLegal(ISD::SELECT, SrcVT)) && in visitTRUNCATE()
7286 TLI.isOperationLegal(ISD::EXTRACT_VECTOR_ELT, SrcVT))) { in visitTRUNCATE()
7329 (!LegalOperations || TLI.isOperationLegal(ISD::LOAD, VT))) in CombineConsecutiveLoads()
7414 TLI.isOperationLegal(ISD::ConstantFP, VT)) || in visitBITCAST()
7416 TLI.isOperationLegal(ISD::Constant, VT))) in visitBITCAST()
7432 (!LegalOperations || TLI.isOperationLegal(ISD::LOAD, VT)) && in visitBITCAST()
7772 bool HasFMAD = (LegalOperations && TLI.isOperationLegal(ISD::FMAD, VT)); in visitFADDForFMACombine()
7960 bool HasFMAD = (LegalOperations && TLI.isOperationLegal(ISD::FMAD, VT)); in visitFSUBForFMACombine()
8230 bool HasFMAD = (LegalOperations && TLI.isOperationLegal(ISD::FMAD, VT)); in visitFMULForFMACombine()
8480 if (!LegalOperations || TLI.isOperationLegal(ISD::FNEG, VT)) in visitFSUB()
8589 if (!LegalOperations || TLI.isOperationLegal(ISD::FNEG, VT)) in visitFMUL()
8683 (!LegalOperations || TLI.isOperationLegal(ISD::FNEG, VT))) { in visitFMA()
8809 TLI.isOperationLegal(llvm::ISD::ConstantFP, VT) || in visitFDIV()
8944 if (!LegalOperations || TLI.isOperationLegal(ISD::FABS, VT)) in visitFCOPYSIGN()
8947 if (!LegalOperations || TLI.isOperationLegal(ISD::FNEG, VT)) in visitFCOPYSIGN()
9337 TLI.isOperationLegal(ISD::ConstantFP, VT))) in visitFNEG()
10346 if (!TLI.isOperationLegal(ISD::LOAD, SliceType)) in isLegal()
10360 if (!TLI.isOperationLegal(ISD::ADD, PtrType)) in isLegal()
10366 !TLI.isOperationLegal(ISD::ZERO_EXTEND, TruncateType)) in isLegal()
10447 if (ArgRC == ResRC || !TLI.isOperationLegal(ISD::LOAD, ResVT)) in canMergeExpensiveCrossRegisterBankCopy()
10467 if (!TLI.isOperationLegal(ISD::LOAD, ResVT)) in canMergeExpensiveCrossRegisterBankCopy()
11001 if (!TLI.isOperationLegal(ISD::LOAD, IntVT) || in TransformFPLoadStorePair()
11002 !TLI.isOperationLegal(ISD::STORE, IntVT) || in TransformFPLoadStorePair()
12194 if (LegalOperations && !TLI.isOperationLegal(ISD::BUILD_VECTOR, VT)) in visitINSERT_VECTOR_ELT()
12747 if (LegalOperations && !TLI.isOperationLegal(ISD::VECTOR_SHUFFLE, VT)) in visitBUILD_VECTOR()
14339 TLI.isOperationLegal(ISD::SETCC, N0.getValueType())) { in SimplifySelectCC()
14425 (!LegalOperations || TLI.isOperationLegal(ISD::CTTZ, VT))) in SimplifySelectCC()
14432 (!LegalOperations || TLI.isOperationLegal(ISD::CTLZ, VT))) in SimplifySelectCC()