/external/llvm/include/llvm/CodeGen/GlobalISel/ |
D | RegisterBankInfo.h | 356 const RegisterBank *getRegBankForType(MVT::SimpleValueType SVT) const { in getRegBankForType() argument 359 assert(SVT < MVT::SimpleValueType::LAST_VALUETYPE && "Out-of-bound access"); in getRegBankForType() 360 return VTToRegBank.get()[SVT]; in getRegBankForType() 371 MVT::SimpleValueType SVT, bool Force = false) { 378 assert(SVT < MVT::SimpleValueType::LAST_VALUETYPE && "Out-of-bound access"); 381 if (Force || !getRegBankForType(SVT)) 382 VTToRegBank.get()[SVT] = &RegBank;
|
/external/llvm/lib/CodeGen/ |
D | TargetRegisterInfo.cpp | 181 const MVT::SimpleValueType SVT = in firstCommonClass() argument 183 const MVT VT(SVT); in firstCommonClass() 188 if (SVT == MVT::SimpleValueType::Any || RC->hasType(VT)) in firstCommonClass() 197 const MVT::SimpleValueType SVT) const { in getCommonSubClass() 206 return firstCommonClass(A->getSubClassMask(), B->getSubClassMask(), this, SVT); in getCommonSubClass()
|
D | TargetLoweringBase.cpp | 986 MVT SVT = VT.getSimpleVT(); in getTypeConversion() local 987 assert((unsigned)SVT.SimpleTy < array_lengthof(TransformToType)); in getTypeConversion() 988 MVT NVT = TransformToType[SVT.SimpleTy]; in getTypeConversion() 989 LegalizeTypeAction LA = ValueTypeActions.getTypeAction(SVT); in getTypeConversion() 997 EVT::getVectorVT(Context, SVT.getVectorElementType(), in getTypeConversion() 998 SVT.getVectorNumElements() / 2)); in getTypeConversion() 1000 return LegalizeKind(LA, SVT.getVectorElementType()); in getTypeConversion() 1402 MVT SVT = (MVT::SimpleValueType) nVT; in computeRegisterProperties() local 1405 if (SVT.getVectorElementType().getSizeInBits() > EltVT.getSizeInBits() && in computeRegisterProperties() 1406 SVT.getVectorNumElements() == NElts && isTypeLegal(SVT)) { in computeRegisterProperties() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | TargetLoweringBase.cpp | 727 MVT SVT = VT.getSimpleVT(); in getTypeConversion() local 728 assert((unsigned)SVT.SimpleTy < array_lengthof(TransformToType)); in getTypeConversion() 729 MVT NVT = TransformToType[SVT.SimpleTy]; in getTypeConversion() 730 LegalizeTypeAction LA = ValueTypeActions.getTypeAction(SVT); in getTypeConversion() 738 EVT::getVectorVT(Context, SVT.getVectorElementType(), in getTypeConversion() 739 SVT.getVectorNumElements() / 2)); in getTypeConversion() 741 return LegalizeKind(LA, SVT.getVectorElementType()); in getTypeConversion() 1172 MVT SVT = (MVT::SimpleValueType) nVT; in computeRegisterProperties() local 1175 if (SVT.getScalarSizeInBits() > EltVT.getSizeInBits() && in computeRegisterProperties() 1176 SVT.getVectorNumElements() == NElts && isTypeLegal(SVT)) { in computeRegisterProperties() [all …]
|
D | TargetRegisterInfo.cpp | 242 const MVT::SimpleValueType SVT = in firstCommonClass() argument 244 const MVT VT(SVT); in firstCommonClass() 249 if (SVT == MVT::SimpleValueType::Any || TRI->isTypeLegalForClass(*RC, VT)) in firstCommonClass() 258 const MVT::SimpleValueType SVT) const { in getCommonSubClass() 267 return firstCommonClass(A->getSubClassMask(), B->getSubClassMask(), this, SVT); in getCommonSubClass()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | LegalizeVectorOps.cpp | 308 EVT SVT = VT.getScalarType(); in ExpandUINT_TO_FLOAT() local 309 assert((SVT.getSizeInBits() == 64 || SVT.getSizeInBits() == 32) && in ExpandUINT_TO_FLOAT() 312 unsigned BW = SVT.getSizeInBits(); in ExpandUINT_TO_FLOAT() 318 uint64_t HWMask = (SVT.getSizeInBits()==64)?0x00000000FFFFFFFF:0x0000FFFF; in ExpandUINT_TO_FLOAT()
|
D | TargetLowering.cpp | 845 EVT SVT = (MVT::SimpleValueType)nVT; in computeRegisterProperties() local 848 if (SVT.getVectorElementType().getSizeInBits() > EltVT.getSizeInBits() in computeRegisterProperties() 849 && SVT.getVectorNumElements() == NElts && in computeRegisterProperties() 850 isTypeLegal(SVT) && SVT.getScalarType().isInteger()) { in computeRegisterProperties() 851 TransformToType[i] = SVT; in computeRegisterProperties() 852 RegisterTypeForVT[i] = SVT; in computeRegisterProperties() 864 EVT SVT = (MVT::SimpleValueType)nVT; in computeRegisterProperties() local 865 if (SVT.getVectorElementType() == EltVT && in computeRegisterProperties() 866 SVT.getVectorNumElements() > NElts && in computeRegisterProperties() 867 isTypeLegal(SVT)) { in computeRegisterProperties() [all …]
|
D | LegalizeIntegerTypes.cpp | 505 EVT SVT = TLI.getSetCCResultType(N->getOperand(0).getValueType()); in PromoteIntRes_SETCC() local 511 if (!TLI.isTypeLegal(SVT)) in PromoteIntRes_SETCC() 512 SVT = NVT; in PromoteIntRes_SETCC() 515 assert(SVT.isVector() == N->getOperand(0).getValueType().isVector() && in PromoteIntRes_SETCC() 519 SDValue SetCC = DAG.getNode(N->getOpcode(), dl, SVT, N->getOperand(0), in PromoteIntRes_SETCC() 522 assert(NVT.bitsLE(SVT) && "Integer type overpromoted?"); in PromoteIntRes_SETCC() 873 EVT SVT = TLI.getSetCCResultType(MVT::Other); in PromoteIntOp_BRCOND() local 874 SDValue Cond = PromoteTargetBoolean(N->getOperand(1), SVT); in PromoteIntOp_BRCOND() 976 EVT SVT = TLI.getSetCCResultType(N->getOpcode() == ISD::SELECT ? in PromoteIntOp_SELECT() local 978 Cond = PromoteTargetBoolean(Cond, SVT); in PromoteIntOp_SELECT()
|
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
D | ValueTypes.h | 135 MVT(SimpleValueType SVT) : SimpleTy(SVT) { } in MVT() argument 388 EVT(MVT::SimpleValueType SVT) : V(SVT), LLVMTy(0) { } in EVT()
|
/external/llvm/include/llvm/CodeGen/ |
D | ValueTypes.h | 38 LLVM_CONSTEXPR EVT(MVT::SimpleValueType SVT) : V(SVT), LLVMTy(nullptr) {} in EVT()
|
D | MachineValueType.h | 182 LLVM_CONSTEXPR MVT(SimpleValueType SVT) : SimpleTy(SVT) { } in MVT() argument
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/ |
D | ValueTypes.h | 41 constexpr EVT(MVT::SimpleValueType SVT) : V(SVT) {} in EVT()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 279 EVT SVT = Op.getValueType().getScalarType(); in matchUnaryPredicate() local 282 if (!Cst || Cst->getValueType(0) != SVT || !Match(Cst)) in matchUnaryPredicate() 302 EVT SVT = LHS.getValueType().getScalarType(); in matchBinaryPredicate() local 308 if (LHSCst->getValueType(0) != SVT || in matchBinaryPredicate() 3722 EVT SVT = VT.getScalarType(); in FoldCONCAT_VECTORS() local 3727 Elts.append(OpVT.getVectorNumElements(), DAG.getUNDEF(SVT)); in FoldCONCAT_VECTORS() 3737 SVT = (SVT.bitsLT(Op.getValueType()) ? Op.getValueType() : SVT); in FoldCONCAT_VECTORS() 3739 if (SVT.bitsGT(VT.getScalarType())) in FoldCONCAT_VECTORS() 3741 Op = DAG.getTargetLoweringInfo().isZExtFree(Op.getValueType(), SVT) in FoldCONCAT_VECTORS() 3742 ? DAG.getZExtOrTrunc(Op, DL, SVT) in FoldCONCAT_VECTORS() [all …]
|
D | LegalizeFloatTypes.cpp | 709 EVT SVT = N->getOperand(0).getValueType(); in SoftenFloatRes_XINT_TO_FP() local 722 if (NVT.bitsGE(SVT)) in SoftenFloatRes_XINT_TO_FP() 848 EVT SVT = N->getOperand(0).getValueType(); in SoftenFloatOp_FP_EXTEND() local 852 if (SVT == MVT::f16) in SoftenFloatOp_FP_EXTEND() 855 RTLIB::Libcall LC = RTLIB::getFPEXT(SVT, RVT); in SoftenFloatOp_FP_EXTEND() 867 EVT SVT = N->getOperand(0).getValueType(); in SoftenFloatOp_FP_ROUND() local 871 RTLIB::Libcall LC = RTLIB::getFPROUND(SVT, FloatRVT); in SoftenFloatOp_FP_ROUND() 931 EVT SVT = N->getOperand(0).getValueType(); in SoftenFloatOp_FP_TO_XINT() local 947 LC = Signed ? RTLIB::getFPTOSINT(SVT, NVT):RTLIB::getFPTOUINT(SVT, NVT); in SoftenFloatOp_FP_TO_XINT()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeVectorOps.cpp | 987 EVT SVT = VT.getScalarType(); in ExpandUINT_TO_FLOAT() local 988 assert((SVT.getSizeInBits() == 64 || SVT.getSizeInBits() == 32) && in ExpandUINT_TO_FLOAT() 991 unsigned BW = SVT.getSizeInBits(); in ExpandUINT_TO_FLOAT() 997 uint64_t HWMask = (SVT.getSizeInBits()==64)?0x00000000FFFFFFFF:0x0000FFFF; in ExpandUINT_TO_FLOAT()
|
D | SelectionDAG.cpp | 2857 EVT SVT = VT.getScalarType(); in FoldCONCAT_VECTORS() local 2862 Elts.append(OpVT.getVectorNumElements(), DAG.getUNDEF(SVT)); in FoldCONCAT_VECTORS() 2872 SVT = (SVT.bitsLT(Op.getValueType()) ? Op.getValueType() : SVT); in FoldCONCAT_VECTORS() 2874 if (SVT.bitsGT(VT.getScalarType())) in FoldCONCAT_VECTORS() 2876 Op = DAG.getTargetLoweringInfo().isZExtFree(Op.getValueType(), SVT) in FoldCONCAT_VECTORS() 2877 ? DAG.getZExtOrTrunc(Op, DL, SVT) in FoldCONCAT_VECTORS() 2878 : DAG.getSExtOrTrunc(Op, DL, SVT); in FoldCONCAT_VECTORS() 3335 EVT SVT = VT.getScalarType(); in FoldConstantArithmetic() local 3348 if (V1->getValueType(0) != SVT || V2->getValueType(0) != SVT) in FoldConstantArithmetic() 3356 Outputs.push_back(getConstant(Folded.first, DL, SVT)); in FoldConstantArithmetic() [all …]
|
D | LegalizeFloatTypes.cpp | 708 EVT SVT = N->getOperand(0).getValueType(); in SoftenFloatRes_XINT_TO_FP() local 721 if (NVT.bitsGE(SVT)) in SoftenFloatRes_XINT_TO_FP() 833 EVT SVT = N->getOperand(0).getValueType(); in SoftenFloatOp_FP_EXTEND() local 837 if (SVT == MVT::f16) in SoftenFloatOp_FP_EXTEND() 840 RTLIB::Libcall LC = RTLIB::getFPEXT(SVT, RVT); in SoftenFloatOp_FP_EXTEND() 852 EVT SVT = N->getOperand(0).getValueType(); in SoftenFloatOp_FP_ROUND() local 856 RTLIB::Libcall LC = RTLIB::getFPROUND(SVT, FloatRVT); in SoftenFloatOp_FP_ROUND() 888 EVT SVT = N->getOperand(0).getValueType(); in SoftenFloatOp_FP_TO_XINT() local 904 LC = Signed ? RTLIB::getFPTOSINT(SVT, NVT):RTLIB::getFPTOUINT(SVT, NVT); in SoftenFloatOp_FP_TO_XINT()
|
D | DAGCombiner.cpp | 5800 EVT SVT = VT.getScalarType(); in tryToFoldExtendOfConstant() local 5802 (!LegalTypes || (!LegalOperations && TLI.isTypeLegal(SVT))) && in tryToFoldExtendOfConstant() 5807 unsigned VTBits = SVT.getSizeInBits(); in tryToFoldExtendOfConstant() 5816 Elts.push_back(DAG.getUNDEF(SVT)); in tryToFoldExtendOfConstant() 5825 Elts.push_back(DAG.getConstant(C.sext(VTBits), DL, SVT)); in tryToFoldExtendOfConstant() 5827 Elts.push_back(DAG.getConstant(C.zext(VTBits), DL, SVT)); in tryToFoldExtendOfConstant() 6180 EVT SVT = getSetCCResultType(N0VT); in visitSIGN_EXTEND() local 6187 if (VT.getSizeInBits() == SVT.getSizeInBits()) in visitSIGN_EXTEND() 6196 if (SVT == MatchingVectorType) { in visitSIGN_EXTEND() 12023 EVT SVT = Value.getOperand(0).getValueType(); in visitSTORE() local [all …]
|
D | LegalizeDAG.cpp | 263 EVT SVT = VT; in ExpandConstantFP() local 264 while (SVT != MVT::f32 && SVT != MVT::f16) { in ExpandConstantFP() 265 SVT = (MVT::SimpleValueType)(SVT.getSimpleVT().SimpleTy - 1); in ExpandConstantFP() 266 if (ConstantFPSDNode::isValueValidForType(SVT, CFP->getValueAPF()) && in ExpandConstantFP() 269 TLI.isLoadExtLegal(ISD::EXTLOAD, OrigVT, SVT) && in ExpandConstantFP() 271 Type *SType = SVT.getTypeForEVT(*DAG.getContext()); in ExpandConstantFP() 273 VT = SVT; in ExpandConstantFP() 3182 MVT SVT = Op.getSimpleValueType(); in ExpandNode() local 3183 if ((SVT == MVT::f64 || SVT == MVT::f80) && in ExpandNode()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 297 auto SVT = VT->getElementType(); in simplifyX86immShift() local 299 unsigned BitWidth = SVT->getPrimitiveSizeInBits(); in simplifyX86immShift() 316 auto ShiftAmt = ConstantInt::get(SVT, Count.zextOrTrunc(BitWidth)); in simplifyX86immShift() 368 auto SVT = VT->getVectorElementType(); in simplifyX86varShift() local 370 int BitWidth = SVT->getIntegerBitWidth(); in simplifyX86varShift() 407 ConstantVec.push_back(UndefValue::get(SVT)); in simplifyX86varShift() 410 ConstantVec.push_back(ConstantInt::getNullValue(SVT)); in simplifyX86varShift() 424 ShiftVecAmts.push_back(UndefValue::get(SVT)); in simplifyX86varShift() 426 ShiftVecAmts.push_back(ConstantInt::get(SVT, Idx)); in simplifyX86varShift()
|
/external/llvm/lib/CodeGen/GlobalISel/ |
D | RegisterBankInfo.cpp | 104 for (MVT::SimpleValueType SVT : in addRegBankCoverage() local 106 recordRegBankForType(getRegBank(ID), SVT); in addRegBankCoverage()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | MachineValueType.h | 277 constexpr MVT(SimpleValueType SVT) : SimpleTy(SVT) {} in MVT() argument
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonISelDAGToDAG.cpp | 1170 EVT SVT = N->getOperand(0).getValueType(); in SelectBitcast() local 1172 if (!SVT.isVector() || !DVT.isVector() || in SelectBitcast() 1173 SVT.getVectorElementType() == MVT::i1 || in SelectBitcast() 1175 SVT.getSizeInBits() != DVT.getSizeInBits()) { in SelectBitcast()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 346 auto SVT = VT->getElementType(); in simplifyX86immShift() local 348 unsigned BitWidth = SVT->getPrimitiveSizeInBits(); in simplifyX86immShift() 365 auto ShiftAmt = ConstantInt::get(SVT, Count.zextOrTrunc(BitWidth)); in simplifyX86immShift() 433 auto SVT = VT->getVectorElementType(); in simplifyX86varShift() local 435 int BitWidth = SVT->getIntegerBitWidth(); in simplifyX86varShift() 472 ConstantVec.push_back(UndefValue::get(SVT)); in simplifyX86varShift() 475 ConstantVec.push_back(ConstantInt::getNullValue(SVT)); in simplifyX86varShift() 489 ShiftVecAmts.push_back(UndefValue::get(SVT)); in simplifyX86varShift() 491 ShiftVecAmts.push_back(ConstantInt::get(SVT, Idx)); in simplifyX86varShift()
|
/external/swiftshader/third_party/LLVM/lib/Target/X86/ |
D | X86ISelLowering.cpp | 881 MVT::SimpleValueType SVT = (MVT::SimpleValueType)i; in X86TargetLowering() local 882 EVT VT = SVT; in X86TargetLowering() 888 setOperationAction(ISD::AND, SVT, Promote); in X86TargetLowering() 889 AddPromotedToType (ISD::AND, SVT, MVT::v2i64); in X86TargetLowering() 890 setOperationAction(ISD::OR, SVT, Promote); in X86TargetLowering() 891 AddPromotedToType (ISD::OR, SVT, MVT::v2i64); in X86TargetLowering() 892 setOperationAction(ISD::XOR, SVT, Promote); in X86TargetLowering() 893 AddPromotedToType (ISD::XOR, SVT, MVT::v2i64); in X86TargetLowering() 894 setOperationAction(ISD::LOAD, SVT, Promote); in X86TargetLowering() 895 AddPromotedToType (ISD::LOAD, SVT, MVT::v2i64); in X86TargetLowering() [all …]
|