Home
last modified time | relevance | path

Searched refs:EVT (Results 1 – 25 of 139) sorted by relevance

123456

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DValueTypes.h34 struct EVT { struct
40 constexpr EVT() = default; argument
41 constexpr EVT(MVT::SimpleValueType SVT) : V(SVT) {} in EVT() argument
42 constexpr EVT(MVT S) : V(S) {} in EVT() function
44 bool operator==(EVT VT) const {
47 bool operator!=(EVT VT) const {
58 static EVT getFloatingPointVT(unsigned BitWidth) { in getFloatingPointVT() argument
64 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getIntegerVT() argument
73 static EVT getVectorVT(LLVMContext &Context, EVT VT, unsigned NumElements,
85 static EVT getVectorVT(LLVMContext &Context, EVT VT, ElementCount EC) { in getVectorVT() argument
[all …]
DSelectionDAG.h95 const EVT *VTs;
102 SDVTListNode(const FoldingSetNodeIDRef ID, const EVT *VT, unsigned int Num) :
378 SDVTList VTs, EVT MemoryVT,
571 SDVTList getVTList(EVT VT);
572 SDVTList getVTList(EVT VT1, EVT VT2);
573 SDVTList getVTList(EVT VT1, EVT VT2, EVT VT3);
574 SDVTList getVTList(EVT VT1, EVT VT2, EVT VT3, EVT VT4);
575 SDVTList getVTList(ArrayRef<EVT> VTs);
586 SDValue getConstant(uint64_t Val, const SDLoc &DL, EVT VT,
588 SDValue getConstant(const APInt &Val, const SDLoc &DL, EVT VT,
[all …]
DRuntimeLibcalls.h37 Libcall getFPEXT(EVT OpVT, EVT RetVT);
41 Libcall getFPROUND(EVT OpVT, EVT RetVT);
45 Libcall getFPTOSINT(EVT OpVT, EVT RetVT);
49 Libcall getFPTOUINT(EVT OpVT, EVT RetVT);
53 Libcall getSINTTOFP(EVT OpVT, EVT RetVT);
57 Libcall getUINTTOFP(EVT OpVT, EVT RetVT);
DTargetLowering.h139 using LegalizeKind = std::pair<LegalizeTypeAction, EVT>;
275 virtual MVT getScalarShiftAmountTy(const DataLayout &, EVT) const;
277 EVT getShiftAmountTy(EVT LHSTy, const DataLayout &DL,
295 virtual bool reduceSelectOfFPConstantLoads(EVT CmpOpVT) const { in reduceSelectOfFPConstantLoads()
330 shouldExpandBuildVectorWithShuffles(EVT /* VT */, in shouldExpandBuildVectorWithShuffles() argument
339 virtual bool isIntDivCheap(EVT VT, AttributeList Attr) const { return false; } in isIntDivCheap()
342 virtual bool hasStandaloneRem(EVT VT) const { in hasStandaloneRem()
363 int getRecipEstimateSqrtEnabled(EVT VT, MachineFunction &MF) const;
369 int getRecipEstimateDivEnabled(EVT VT, MachineFunction &MF) const;
375 int getSqrtRefinementSteps(EVT VT, MachineFunction &MF) const;
[all …]
DTargetCallingConv.h160 EVT ArgVT;
174 InputArg(ArgFlagsTy flags, EVT vt, EVT argvt, bool used, in InputArg()
198 EVT ArgVT;
212 OutputArg(ArgFlagsTy flags, EVT vt, EVT argvt, bool isfixed, in OutputArg()
DSelectionDAGNodes.h79 const EVT *VTs;
166 inline EVT getValueType() const;
296 EVT getValueType() const { return Val.getValueType(); }
626 const EVT *ValueList;
646 static const EVT *getValueTypeList(EVT VT);
1001 EVT getValueType(unsigned ResNo) const {
1020 using value_iterator = const EVT *;
1087 static SDVTList getSDVTList(EVT VT) {
1153 inline EVT SDValue::getValueType() const {
1274 AddrSpaceCastSDNode(unsigned Order, const DebugLoc &dl, EVT VT,
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorTypes.cpp203 EVT VT = N->getValueType(0).getVectorElementType(); in ScalarizeVecRes_StrictFPOp()
206 EVT ValueVTs[] = {VT, MVT::Other}; in ScalarizeVecRes_StrictFPOp()
235 EVT ResVT = N->getValueType(0); in ScalarizeVecRes_OverflowOp()
236 EVT OvVT = N->getValueType(1); in ScalarizeVecRes_OverflowOp()
257 EVT OtherVT = N->getValueType(OtherNo); in ScalarizeVecRes_OverflowOp()
281 EVT NewVT = N->getValueType(0).getVectorElementType(); in ScalarizeVecRes_BITCAST()
287 EVT EltVT = N->getValueType(0).getVectorElementType(); in ScalarizeVecRes_BUILD_VECTOR()
303 EVT NewVT = N->getValueType(0).getVectorElementType(); in ScalarizeVecRes_FP_ROUND()
319 EVT EltVT = N->getValueType(0).getVectorElementType(); in ScalarizeVecRes_INSERT_VECTOR_ELT()
345 EVT DestVT = N->getValueType(0).getVectorElementType(); in ScalarizeVecRes_UnaryOp()
[all …]
DLegalizeTypesGeneric.cpp41 EVT OutVT = N->getValueType(0); in ExpandRes_BITCAST()
42 EVT NOutVT = TLI.getTypeToTransformTo(*DAG.getContext(), OutVT); in ExpandRes_BITCAST()
44 EVT InVT = InOp.getValueType(); in ExpandRes_BITCAST()
88 EVT LoVT, HiVT; in ExpandRes_BITCAST()
103 EVT ElemVT = NOutVT; in ExpandRes_BITCAST()
104 EVT NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST()
113 ElemVT = EVT::getIntegerVT(*DAG.getContext(), NewSizeInBits); in ExpandRes_BITCAST()
114 NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST()
139 EVT::getIntegerVT(*DAG.getContext(), LHS.getValueSizeInBits() << 1), in ExpandRes_BITCAST()
207 EVT OldEltVT = OldVec.getValueType().getVectorElementType(); in ExpandRes_EXTRACT_VECTOR_ELT()
[all …]
DLegalizeFloatTypes.cpp29 static RTLIB::Libcall GetFPLibCall(EVT VT, in GetFPLibCall()
145 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_Unary()
152 EVT OpVT = N->getOperand(0 + Offset).getValueType(); in SoftenFloatRes_Unary()
164 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_Binary()
172 EVT OpsVT[2] = { N->getOperand(0 + Offset).getValueType(), in SoftenFloatRes_Binary()
234 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FABS()
295 EVT LVT = LHS.getValueType(); in SoftenFloatRes_FCOPYSIGN()
296 EVT RVT = RHS.getValueType(); in SoftenFloatRes_FCOPYSIGN()
412 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FMA()
419 EVT OpsVT[3] = { N->getOperand(0 + Offset).getValueType(), in SoftenFloatRes_FMA()
[all …]
DLegalizeIntegerTypes.cpp229 EVT ResVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in PromoteIntRes_Atomic0()
256 EVT SVT = getSetCCResultType(N->getOperand(2).getValueType()); in PromoteIntRes_AtomicCmpSwap()
257 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(1)); in PromoteIntRes_AtomicCmpSwap()
289 EVT InVT = InOp.getValueType(); in PromoteIntRes_BITCAST()
290 EVT NInVT = TLI.getTypeToTransformTo(*DAG.getContext(), InVT); in PromoteIntRes_BITCAST()
291 EVT OutVT = N->getValueType(0); in PromoteIntRes_BITCAST()
292 EVT NOutVT = TLI.getTypeToTransformTo(*DAG.getContext(), OutVT); in PromoteIntRes_BITCAST()
334 EVT::getIntegerVT(*DAG.getContext(), in PromoteIntRes_BITCAST()
353 EVT ShiftAmtTy = TLI.getShiftAmountTy(NOutVT, DAG.getDataLayout()); in PromoteIntRes_BITCAST()
368 EVT WideOutVT = EVT::getVectorVT(*DAG.getContext(), in PromoteIntRes_BITCAST()
[all …]
DSelectionDAG.cpp84 static SDVTList makeVTList(const EVT *VTs, unsigned NumVTs) { in makeVTList()
122 bool ConstantFPSDNode::isValueValidForType(EVT VT, in isValueValidForType()
283 EVT SVT = Op.getValueType().getScalarType(); in matchUnaryPredicate()
315 EVT SVT = LHS.getValueType().getScalarType(); in matchBinaryPredicate()
372 ISD::CondCode ISD::getSetCCInverse(ISD::CondCode Op, EVT Type) { in getSetCCInverse()
401 EVT Type) { in getSetCCOrOperation()
422 EVT Type) { in getSetCCAndOperation()
811 EVT VT = N->getValueType(0); in VerifySDNode()
829 EVT EltVT = N->getValueType(0).getVectorElementType(); in VerifySDNode()
887 EVT VT = cast<VTSDNode>(N)->getVT(); in RemoveNodeFromCSEMaps()
[all …]
DDAGCombiner.cpp233 if (EVT(VT).isSimple() && VT != MVT::Other && in DAGCombiner()
234 TLI.isTypeLegal(EVT(VT)) && in DAGCombiner()
310 EVT VT = Op.getValueType(); in SimplifyDemandedBits()
348 SDValue scalarizeExtractedVectorLoad(SDNode *EVE, EVT InVecVT,
352 SDValue PromoteOperand(SDValue Op, EVT PVT, bool &Replace);
353 SDValue SExtPromoteOperand(SDValue Op, EVT PVT);
354 SDValue ZExtPromoteOperand(SDValue Op, EVT PVT);
520 SDValue SimplifySetCC(EVT VT, SDValue N0, SDValue N1, ISD::CondCode Cond,
531 SDValue CombineConsecutiveLoads(SDNode *N, EVT VT);
536 SDValue ConstantFoldBITCASTofBUILD_VECTOR(SDNode *, EVT);
[all …]
DLegalizeTypes.cpp235 EVT ResultVT = N->getValueType(i); in run()
295 EVT OpVT = Op.getValueType(); in run()
844 EVT::getIntegerVT(*DAG.getContext(), BitWidth), Op); in BitConvertToInteger()
851 EVT EltNVT = EVT::getIntegerVT(*DAG.getContext(), EltWidth); in BitConvertVectorToIntegerVector()
854 EVT::getVectorVT(*DAG.getContext(), EltNVT, EltCnt), Op); in BitConvertVectorToIntegerVector()
858 EVT DestVT) { in CreateStackStoreLoad()
878 bool DAGTypeLegalizer::CustomLowerNode(SDNode *N, EVT VT, bool LegalizeResult) { in CustomLowerNode()
916 bool DAGTypeLegalizer::CustomWidenLowerNode(SDNode *N, EVT VT) { in CustomWidenLowerNode()
953 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), Pair.getValueType()); in GetPairElements()
965 EVT LVT = Lo.getValueType(); in JoinIntegers()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.h78 bool shouldCombineMemoryType(EVT VT) const;
104 static EVT getEquivalentMemType(LLVMContext &Context, EVT VT);
118 std::pair<EVT, EVT> getSplitDestVTs(const EVT &VT, SelectionDAG &DAG) const;
123 const EVT &LoVT, const EVT &HighVT,
166 bool isFAbsFree(EVT VT) const override;
167 bool isFNegFree(EVT VT) const override;
168 bool isTruncateFree(EVT Src, EVT Dest) const override;
172 bool isZExtFree(EVT Src, EVT Dest) const override;
173 bool isZExtFree(SDValue Val, EVT VT2) const override;
175 bool isNarrowingProfitable(EVT VT1, EVT VT2) const override;
[all …]
DSIISelLowering.h30 EVT VT) const override;
33 EVT VT) const override;
36 LLVMContext &Context, CallingConv::ID CC, EVT VT, EVT &IntermediateVT,
43 SDValue lowerKernargMemParameter(SelectionDAG &DAG, EVT VT, EVT MemVT,
53 EVT VT,
62 SDValue lowerSBuffer(EVT VT, SDLoc DL, SDValue Rsrc, SDValue Offset,
103 ArrayRef<SDValue> Ops, EVT MemVT,
113 EVT VT) const;
116 SelectionDAG &DAG, EVT VT, EVT MemVT, const SDLoc &SL, SDValue Val,
141 EVT MemVT,
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86ISelLowering.h736 MVT getScalarShiftAmountTy(const DataLayout &, EVT VT) const override { in getScalarShiftAmountTy()
770 EVT getOptimalMemOpType(uint64_t Size, unsigned DstAlign, unsigned SrcAlign,
784 bool allowsMisalignedMemoryAccesses(EVT VT, unsigned AS, unsigned Align,
819 ArrayRef<int> ShuffleMask, EVT SrcVT, EVT TruncVT) const override;
825 bool isTypeDesirableForOp(unsigned Opc, EVT VT) const override;
831 bool IsDesirableToPromoteOp(SDValue Op, EVT &PVT) const override;
853 bool mergeStoresAfterLegalization(EVT MemVT) const override { in mergeStoresAfterLegalization()
857 bool canMergeStoresTo(unsigned AddressSpace, EVT MemVT,
866 bool hasBitPreservingFPLogic(EVT VT) const override { in hasBitPreservingFPLogic()
870 bool isMultiStoresCheaperThanBitsMerge(EVT LTy, EVT HTy) const override { in isMultiStoresCheaperThanBitsMerge()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DValueTypes.cpp17 EVT EVT::changeExtendedTypeToInteger() const { in changeExtendedTypeToInteger()
22 EVT EVT::changeExtendedVectorElementTypeToInteger() const { in changeExtendedVectorElementTypeToInteger()
24 EVT IntTy = getIntegerVT(Context, getScalarSizeInBits()); in changeExtendedVectorElementTypeToInteger()
28 EVT EVT::getExtendedIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getExtendedIntegerVT()
29 EVT VT; in getExtendedIntegerVT()
35 EVT EVT::getExtendedVectorVT(LLVMContext &Context, EVT VT, in getExtendedVectorVT()
37 EVT ResultVT; in getExtendedVectorVT()
43 bool EVT::isExtendedFloatingPoint() const { in isExtendedFloatingPoint()
48 bool EVT::isExtendedInteger() const { in isExtendedInteger()
53 bool EVT::isExtendedScalarInteger() const { in isExtendedScalarInteger()
[all …]
DTargetLoweringBase.cpp220 RTLIB::Libcall RTLIB::getFPEXT(EVT OpVT, EVT RetVT) { in getFPEXT()
246 RTLIB::Libcall RTLIB::getFPROUND(EVT OpVT, EVT RetVT) { in getFPROUND()
284 RTLIB::Libcall RTLIB::getFPTOSINT(EVT OpVT, EVT RetVT) { in getFPTOSINT()
326 RTLIB::Libcall RTLIB::getFPTOUINT(EVT OpVT, EVT RetVT) { in getFPTOUINT()
368 RTLIB::Libcall RTLIB::getSINTTOFP(EVT OpVT, EVT RetVT) { in getSINTTOFP()
408 RTLIB::Libcall RTLIB::getUINTTOFP(EVT OpVT, EVT RetVT) { in getUINTTOFP()
771 EVT) const { in getScalarShiftAmountTy()
775 EVT TargetLoweringBase::getShiftAmountTy(EVT LHSTy, const DataLayout &DL, in getShiftAmountTy()
784 bool TargetLoweringBase::canOpTrap(unsigned Op, EVT VT) const { in canOpTrap()
804 TargetLoweringBase::getTypeConversion(LLVMContext &Context, EVT VT) const { in getTypeConversion()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64ISelLowering.h331 MVT getScalarShiftAmountTy(const DataLayout &DL, EVT) const override;
336 EVT VT, unsigned AddrSpace = 0, unsigned Align = 1,
364 bool isFPImmLegal(const APFloat &Imm, EVT VT,
369 bool isShuffleMaskLegal(ArrayRef<int> M, EVT VT) const override;
372 EVT getSetCCResultType(const DataLayout &DL, LLVMContext &Context,
373 EVT VT) const override;
395 EVT NewVT) const override;
398 bool isTruncateFree(EVT VT1, EVT VT2) const override;
403 bool isZExtFree(EVT VT1, EVT VT2) const override;
404 bool isZExtFree(SDValue Val, EVT VT2) const override;
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsISelLowering.h278 MVT getScalarShiftAmountTy(const DataLayout &, EVT) const override { in getScalarShiftAmountTy() argument
282 EVT getTypeForExtReturn(LLVMContext &Context, EVT VT,
293 EVT VT) const override;
299 EVT VT) const override;
303 LLVMContext &Context, CallingConv::ID CC, EVT VT, EVT &IntermediateVT,
337 EVT getSetCCResultType(const DataLayout &DL, LLVMContext &Context,
338 EVT VT) const override;
385 SDValue getGlobalReg(SelectionDAG &DAG, EVT Ty) const;
392 SDValue getAddrLocal(NodeTy *N, const SDLoc &DL, EVT Ty, SelectionDAG &DAG, in getAddrLocal()
411 SDValue getAddrGlobal(NodeTy *N, const SDLoc &DL, EVT Ty, SelectionDAG &DAG, in getAddrGlobal()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMISelLowering.h323 EVT getSetCCResultType(const DataLayout &DL, LLVMContext &Context,
324 EVT VT) const override;
338 bool isDesirableToTransformToIntegerOp(unsigned Opc, EVT VT) const override;
343 bool allowsMisalignedMemoryAccesses(EVT VT, unsigned AddrSpace,
348 EVT getOptimalMemOpType(uint64_t Size,
355 bool isTruncateFree(EVT SrcVT, EVT DstVT) const override;
356 bool isZExtFree(SDValue Val, EVT VT2) const override;
360 bool isFNegFree(EVT VT) const override;
380 bool isLegalT2ScaledAddressingMode(const AddrMode &AM, EVT VT) const;
384 bool isLegalT1ScaledAddressingMode(const AddrMode &AM, EVT VT) const;
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/
DRISCVISelLowering.h74 bool isTruncateFree(EVT SrcVT, EVT DstVT) const override;
75 bool isZExtFree(SDValue Val, EVT VT2) const override;
76 bool isSExtCheaperThanZExt(EVT SrcVT, EVT DstVT) const override;
78 bool hasBitPreservingFPLogic(EVT VT) const override;
111 EVT getSetCCResultType(const DataLayout &DL, LLVMContext &Context,
112 EVT VT) const override;
114 bool convertSetCCLogicToBitwiseLogic(EVT VT) const override { in convertSetCCLogicToBitwiseLogic()
148 bool shouldExtendTypeInLibCall(EVT Type) const override;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZISelLowering.h397 MVT getScalarShiftAmountTy(const DataLayout &, EVT) const override { in getScalarShiftAmountTy() argument
423 EVT getSetCCResultType(const DataLayout &DL, LLVMContext &,
424 EVT) const override;
426 EVT VT) const override;
427 bool isFPImmLegal(const APFloat &Imm, EVT VT,
434 bool allowsMisalignedMemoryAccesses(EVT VT, unsigned AS,
439 bool isTruncateFree(EVT, EVT) const override;
551 const SDLoc &DL, EVT VT,
554 EVT VT, ISD::CondCode CC,
603 SDValue buildVector(SelectionDAG &DAG, const SDLoc &DL, EVT VT,
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/MSP430/
DMSP430ISelLowering.h78 MVT getScalarShiftAmountTy(const DataLayout &, EVT) const override { in getScalarShiftAmountTy() argument
113 bool isTruncateFree(EVT VT1, EVT VT2) const override;
124 bool isZExtFree(EVT VT1, EVT VT2) const override;
125 bool isZExtFree(SDValue Val, EVT VT2) const override;
128 bool shouldAvoidTransformToShift(EVT VT, unsigned Amount) const override;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCISelLowering.h649 MVT getScalarShiftAmountTy(const DataLayout &, EVT) const override { in getScalarShiftAmountTy() argument
673 bool preferIncOfAddToSubOfNot(EVT VT) const override;
675 bool convertSetCCLogicToBitwiseLogic(EVT VT) const override { in convertSetCCLogicToBitwiseLogic()
692 EVT getSetCCResultType(const DataLayout &DL, LLVMContext &Context,
693 EVT VT) const override;
698 bool enableAggressiveFMAFusion(EVT VT) const override;
858 bool isTruncateFree(EVT VT1, EVT VT2) const override;
860 bool isZExtFree(SDValue Val, EVT VT2) const override;
862 bool isFPExtFree(EVT DestVT, EVT SrcVT) const override;
869 bool convertSelectOfConstantsToMath(EVT VT) const override { in convertSelectOfConstantsToMath()
[all …]

123456