/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/llvm-project/llvm/include/llvm/MC/ |
D | MCSymbolXCOFF.h | 53 void setVisibilityType(XCOFF::VisibilityType SVT) { VisibilityType = SVT; }; in setVisibilityType() argument
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | TargetLoweringBase.cpp | 807 MVT SVT = VT.getSimpleVT(); in getTypeConversion() local 808 assert((unsigned)SVT.SimpleTy < array_lengthof(TransformToType)); in getTypeConversion() 809 MVT NVT = TransformToType[SVT.SimpleTy]; in getTypeConversion() 810 LegalizeTypeAction LA = ValueTypeActions.getTypeAction(SVT); in getTypeConversion() 819 EVT::getVectorVT(Context, SVT.getVectorElementType(), in getTypeConversion() 820 SVT.getVectorNumElements() / 2)); in getTypeConversion() 822 return LegalizeKind(LA, SVT.getVectorElementType()); in getTypeConversion() 1258 MVT SVT = (MVT::SimpleValueType) nVT; in computeRegisterProperties() local 1261 if (SVT.getScalarSizeInBits() > EltVT.getSizeInBits() && in computeRegisterProperties() 1262 SVT.getVectorNumElements() == NElts && in computeRegisterProperties() [all …]
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | TargetLoweringBase.cpp | 935 MVT SVT = VT.getSimpleVT(); in getTypeConversion() local 936 assert((unsigned)SVT.SimpleTy < array_lengthof(TransformToType)); in getTypeConversion() 937 MVT NVT = TransformToType[SVT.SimpleTy]; in getTypeConversion() 938 LegalizeTypeAction LA = ValueTypeActions.getTypeAction(SVT); in getTypeConversion() 947 return LegalizeKind(LA, EVT(SVT).getHalfNumVectorElementsVT(Context)); in getTypeConversion() 949 return LegalizeKind(LA, SVT.getVectorElementType()); in getTypeConversion() 1412 MVT SVT = (MVT::SimpleValueType) nVT; in computeRegisterProperties() local 1415 if (SVT.getScalarSizeInBits() > EltVT.getFixedSizeInBits() && in computeRegisterProperties() 1416 SVT.getVectorElementCount() == EC && isTypeLegal(SVT)) { in computeRegisterProperties() 1417 TransformToType[i] = SVT; in computeRegisterProperties() [all …]
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86InstCombineIntrinsic.cpp | 203 auto SVT = VT->getElementType(); in simplifyX86immShift() local 206 unsigned BitWidth = SVT->getPrimitiveSizeInBits(); in simplifyX86immShift() 216 Amt = Builder.CreateZExtOrTrunc(Amt, SVT); in simplifyX86immShift() 225 Amt = ConstantInt::get(SVT, BitWidth - 1); in simplifyX86immShift() 232 cast<VectorType>(AmtVT)->getElementType() == SVT && in simplifyX86immShift() 259 cast<VectorType>(AmtVT)->getElementType() == SVT && in simplifyX86immShift() 286 auto ShiftAmt = ConstantInt::get(SVT, Count.zextOrTrunc(BitWidth)); in simplifyX86immShift() 351 auto SVT = VT->getElementType(); in simplifyX86varShift() local 353 int BitWidth = SVT->getIntegerBitWidth(); in simplifyX86varShift() 406 ConstantVec.push_back(UndefValue::get(SVT)); in simplifyX86varShift() [all …]
|
/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-10.0/llvm/include/llvm/CodeGen/ |
D | ValueTypes.h | 41 constexpr EVT(MVT::SimpleValueType SVT) : V(SVT) {} in EVT()
|
/external/llvm-project/llvm/include/llvm/CodeGen/ |
D | ValueTypes.h | 42 constexpr EVT(MVT::SimpleValueType SVT) : V(SVT) {} in EVT()
|
D | SelectionDAG.h | 1323 MachinePointerInfo PtrInfo, EVT SVT, Align Alignment, 1328 MachinePointerInfo PtrInfo, EVT SVT, 1332 return getTruncStore(Chain, dl, Val, Ptr, PtrInfo, SVT, 1333 Alignment.getValueOr(getEVTAlign(SVT)), MMOFlags, 1339 MachinePointerInfo PtrInfo, EVT SVT, unsigned Alignment, 1342 return getTruncStore(Chain, dl, Val, Ptr, PtrInfo, SVT, 1346 SDValue Ptr, EVT SVT, MachineMemOperand *MMO);
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 283 EVT SVT = Op.getValueType().getScalarType(); in matchUnaryPredicate() local 292 if (!Cst || Cst->getValueType(0) != SVT || !Match(Cst)) in matchUnaryPredicate() 315 EVT SVT = LHS.getValueType().getScalarType(); in matchBinaryPredicate() local 325 if (!AllowTypeMismatch && (LHSOp.getValueType() != SVT || in matchBinaryPredicate() 4332 EVT SVT = VT.getScalarType(); in foldCONCAT_VECTORS() local 4337 Elts.append(OpVT.getVectorNumElements(), DAG.getUNDEF(SVT)); in foldCONCAT_VECTORS() 4347 SVT = (SVT.bitsLT(Op.getValueType()) ? Op.getValueType() : SVT); in foldCONCAT_VECTORS() 4349 if (SVT.bitsGT(VT.getScalarType())) in foldCONCAT_VECTORS() 4351 Op = DAG.getTargetLoweringInfo().isZExtFree(Op.getValueType(), SVT) in foldCONCAT_VECTORS() 4352 ? DAG.getZExtOrTrunc(Op, DL, SVT) in foldCONCAT_VECTORS() [all …]
|
D | LegalizeFloatTypes.cpp | 723 EVT SVT = N->getOperand(IsStrict ? 1 : 0).getValueType(); in SoftenFloatRes_XINT_TO_FP() local 736 if (NVT.bitsGE(SVT)) in SoftenFloatRes_XINT_TO_FP() 747 CallOptions.setTypeListBeforeSoften(SVT, RVT, true); in SoftenFloatRes_XINT_TO_FP() 829 EVT SVT = Op.getValueType(); in SoftenFloatOp_FP_ROUND() local 833 RTLIB::Libcall LC = RTLIB::getFPROUND(SVT, FloatRVT); in SoftenFloatOp_FP_ROUND() 839 CallOptions.setTypeListBeforeSoften(SVT, RVT, true); in SoftenFloatOp_FP_ROUND() 881 EVT SVT = Op.getValueType(); in SoftenFloatOp_FP_TO_XINT() local 897 LC = Signed ? RTLIB::getFPTOSINT(SVT, NVT) : RTLIB::getFPTOUINT(SVT, NVT); in SoftenFloatOp_FP_TO_XINT() 904 CallOptions.setTypeListBeforeSoften(SVT, RVT, true); in SoftenFloatOp_FP_TO_XINT()
|
D | LegalizeIntegerTypes.cpp | 256 EVT SVT = getSetCCResultType(N->getOperand(2).getValueType()); in PromoteIntRes_AtomicCmpSwap() local 261 if (!TLI.isTypeLegal(SVT)) in PromoteIntRes_AtomicCmpSwap() 262 SVT = NVT; in PromoteIntRes_AtomicCmpSwap() 264 SDVTList VTs = DAG.getVTList(N->getValueType(0), SVT, MVT::Other); in PromoteIntRes_AtomicCmpSwap() 498 EVT SVT = In.getValueType().getScalarType(); in PromoteIntRes_EXTRACT_VECTOR_ELT() local 499 if (SVT.bitsGE(NVT)) { in PromoteIntRes_EXTRACT_VECTOR_ELT() 500 SDValue Ext = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, dl, SVT, In, Op1); in PromoteIntRes_EXTRACT_VECTOR_ELT() 646 EVT SVT = getSetCCResultType(VT); in PromoteIntRes_Overflow() local 654 SDValue Res = DAG.getNode(N->getOpcode(), dl, DAG.getVTList(VT, SVT), in PromoteIntRes_Overflow() 907 EVT SVT = getSetCCResultType(InVT); in PromoteIntRes_SETCC() local [all …]
|
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 294 EVT SVT = Op.getValueType().getScalarType(); in matchUnaryPredicate() local 303 if (!Cst || Cst->getValueType(0) != SVT || !Match(Cst)) in matchUnaryPredicate() 326 EVT SVT = LHS.getValueType().getScalarType(); in matchBinaryPredicate() local 336 if (!AllowTypeMismatch && (LHSOp.getValueType() != SVT || in matchBinaryPredicate() 4296 EVT SVT = VT.getScalarType(); in foldCONCAT_VECTORS() local 4301 Elts.append(OpVT.getVectorNumElements(), DAG.getUNDEF(SVT)); in foldCONCAT_VECTORS() 4311 SVT = (SVT.bitsLT(Op.getValueType()) ? Op.getValueType() : SVT); in foldCONCAT_VECTORS() 4313 if (SVT.bitsGT(VT.getScalarType())) { in foldCONCAT_VECTORS() 4316 Op = DAG.getUNDEF(SVT); in foldCONCAT_VECTORS() 4318 Op = DAG.getTargetLoweringInfo().isZExtFree(Op.getValueType(), SVT) in foldCONCAT_VECTORS() [all …]
|
D | LegalizeFloatTypes.cpp | 751 EVT SVT = N->getOperand(IsStrict ? 1 : 0).getValueType(); in SoftenFloatRes_XINT_TO_FP() local 764 if (NVT.bitsGE(SVT)) in SoftenFloatRes_XINT_TO_FP() 775 CallOptions.setTypeListBeforeSoften(SVT, RVT, true); in SoftenFloatRes_XINT_TO_FP() 867 EVT SVT = Op.getValueType(); in SoftenFloatOp_FP_ROUND() local 871 RTLIB::Libcall LC = RTLIB::getFPROUND(SVT, FloatRVT); in SoftenFloatOp_FP_ROUND() 877 CallOptions.setTypeListBeforeSoften(SVT, RVT, true); in SoftenFloatOp_FP_ROUND() 919 EVT SVT = Op.getValueType(); in SoftenFloatOp_FP_TO_XINT() local 935 LC = Signed ? RTLIB::getFPTOSINT(SVT, NVT) : RTLIB::getFPTOUINT(SVT, NVT); in SoftenFloatOp_FP_TO_XINT() 942 CallOptions.setTypeListBeforeSoften(SVT, RVT, true); in SoftenFloatOp_FP_TO_XINT()
|
D | TargetLowering.cpp | 4935 EVT SVT = VT.getScalarType(); in BuildExactSDIV() local 4957 Factors.push_back(DAG.getConstant(Factor, dl, SVT)); in BuildExactSDIV() 5007 EVT SVT = VT.getScalarType(); in BuildSDIV() local 5046 MagicFactors.push_back(DAG.getConstant(magics.m, dl, SVT)); in BuildSDIV() 5047 Factors.push_back(DAG.getConstant(NumeratorFactor, dl, SVT)); in BuildSDIV() 5049 ShiftMasks.push_back(DAG.getConstant(ShiftMask, dl, SVT)); in BuildSDIV() 5116 EVT SVT = VT.getScalarType(); in BuildUDIV() local 5161 MagicFactors.push_back(DAG.getConstant(Magic, dl, SVT)); in BuildUDIV() 5165 dl, SVT)); in BuildUDIV() 5305 EVT SVT = VT.getScalarType(); in prepareUREMEqFold() local [all …]
|
/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 …]
|
/external/llvm/lib/CodeGen/GlobalISel/ |
D | RegisterBankInfo.cpp | 104 for (MVT::SimpleValueType SVT : in addRegBankCoverage() local 106 recordRegBankForType(getRegBank(ID), SVT); in addRegBankCoverage()
|
/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/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()
|