Home
last modified time | relevance | path

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

12345

/external/llvm/include/llvm/CodeGen/
DValueTypes.h31 struct EVT { struct
37 LLVM_CONSTEXPR EVT() : V(MVT::INVALID_SIMPLE_VALUE_TYPE), LLVMTy(nullptr) {} in EVT() argument
38 LLVM_CONSTEXPR EVT(MVT::SimpleValueType SVT) : V(SVT), LLVMTy(nullptr) {} in EVT() function
39 LLVM_CONSTEXPR EVT(MVT S) : V(S), LLVMTy(nullptr) {} in EVT() function
41 bool operator==(EVT VT) const {
44 bool operator!=(EVT VT) const {
55 static EVT getFloatingPointVT(unsigned BitWidth) { in getFloatingPointVT() argument
61 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getIntegerVT() argument
70 static EVT getVectorVT(LLVMContext &Context, EVT VT, unsigned NumElements) { in getVectorVT() argument
80 EVT changeVectorElementTypeToInteger() const { in changeVectorElementTypeToInteger() argument
[all …]
DSelectionDAG.h50 const EVT *VTs;
56 SDVTListNode(const FoldingSetNodeIDRef ID, const EVT *VT, unsigned int Num) :
407 SDVTList getVTList(EVT VT);
408 SDVTList getVTList(EVT VT1, EVT VT2);
409 SDVTList getVTList(EVT VT1, EVT VT2, EVT VT3);
410 SDVTList getVTList(EVT VT1, EVT VT2, EVT VT3, EVT VT4);
411 SDVTList getVTList(ArrayRef<EVT> VTs);
416 SDValue getConstant(uint64_t Val, EVT VT, bool isTarget = false,
418 SDValue getConstant(const APInt &Val, EVT VT, bool isTarget = false,
420 SDValue getConstant(const ConstantInt &Val, EVT VT, bool isTarget = false,
[all …]
DRuntimeLibcalls.h407 Libcall getFPEXT(EVT OpVT, EVT RetVT);
411 Libcall getFPROUND(EVT OpVT, EVT RetVT);
415 Libcall getFPTOSINT(EVT OpVT, EVT RetVT);
419 Libcall getFPTOUINT(EVT OpVT, EVT RetVT);
423 Libcall getSINTTOFP(EVT OpVT, EVT RetVT);
427 Libcall getUINTTOFP(EVT OpVT, EVT RetVT);
DSelectionDAGNodes.h61 const EVT *VTs;
146 inline EVT getValueType() const;
266 EVT getValueType() const { return Val.getValueType(); }
352 const EVT *ValueList;
371 static const EVT *getValueTypeList(EVT VT);
625 EVT getValueType(unsigned ResNo) const {
640 typedef const EVT* value_iterator;
707 static SDVTList getSDVTList(EVT VT) {
871 inline EVT SDValue::getValueType() const {
1033 AddrSpaceCastSDNode(unsigned Order, DebugLoc dl, EVT VT, SDValue X,
[all …]
/external/llvm/include/llvm/Target/
DTargetLowering.h109 typedef std::pair<LegalizeTypeAction, EVT> LegalizeKind;
175 virtual MVT getScalarShiftAmountTy(EVT LHSTy) const;
177 EVT getShiftAmountTy(EVT LHSTy) const;
203 getPreferredVectorAction(EVT VT) const { in getPreferredVectorAction()
221 shouldExpandBuildVectorWithShuffles(EVT /* VT */, in shouldExpandBuildVectorWithShuffles() argument
264 virtual bool isLoadBitCastBeneficial(EVT /* Load */, EVT /* Bitcast */) const { in isLoadBitCastBeneficial() argument
314 virtual bool enableAggressiveFMAFusion(EVT VT) const { in enableAggressiveFMAFusion()
319 virtual EVT getSetCCResultType(LLVMContext &Context, EVT VT) const;
346 BooleanContent getBooleanContents(EVT Type) const { in getBooleanContents()
391 bool isTypeLegal(EVT VT) const { in isTypeLegal()
[all …]
DTargetCallingConv.h132 EVT ArgVT;
146 InputArg(ArgFlagsTy flags, EVT vt, EVT argvt, bool used, in InputArg()
170 EVT ArgVT;
184 OutputArg(ArgFlagsTy flags, EVT vt, EVT argvt, bool isfixed, in OutputArg()
/external/llvm/lib/IR/
DValueTypes.cpp22 EVT EVT::changeExtendedVectorElementTypeToInteger() const { in changeExtendedVectorElementTypeToInteger()
24 EVT IntTy = getIntegerVT(Context, getVectorElementType().getSizeInBits()); 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::isExtendedVector() const { in isExtendedVector()
58 bool EVT::isExtended16BitVector() const { in isExtended16BitVector()
[all …]
/external/llvm/lib/Target/R600/
DAMDGPUISelLowering.h71 static EVT getEquivalentMemType(LLVMContext &Context, EVT VT);
72 static EVT getEquivalentLoadRegType(LLVMContext &Context, EVT VT);
115 bool isFAbsFree(EVT VT) const override;
116 bool isFNegFree(EVT VT) const override;
117 bool isTruncateFree(EVT Src, EVT Dest) const override;
121 bool isZExtFree(EVT Src, EVT Dest) const override;
122 bool isZExtFree(SDValue Val, EVT VT2) const override;
124 bool isNarrowingProfitable(EVT VT1, EVT VT2) const override;
129 bool isFPImmLegal(const APFloat &Imm, EVT VT) const override;
130 bool ShouldShrinkFPConstant(EVT VT) const override;
[all …]
DSIISelLowering.h24 SDValue LowerParameter(SelectionDAG &DAG, EVT VT, EVT MemVT, SDLoc DL,
63 EVT /*VT*/) const override;
68 bool allowsMisalignedMemoryAccesses(EVT VT, unsigned AS,
72 EVT getOptimalMemOpType(uint64_t Size, unsigned DstAlign,
79 getPreferredVectorAction(EVT VT) const override;
92 bool enableAggressiveFMAFusion(EVT VT) const override;
93 EVT getSetCCResultType(LLVMContext &Context, EVT VT) const override;
94 MVT getScalarShiftAmountTy(EVT VT) const override;
95 bool isFMAFasterThanFMulAndFAdd(EVT VT) const override;
104 unsigned Reg, EVT VT) const override;
DAMDGPUISelLowering.cpp87 EVT AMDGPUTargetLowering::getEquivalentMemType(LLVMContext &Ctx, EVT VT) { in getEquivalentMemType()
90 return EVT::getIntegerVT(Ctx, StoreSize); in getEquivalentMemType()
93 return EVT::getVectorVT(Ctx, MVT::i32, StoreSize / 32); in getEquivalentMemType()
97 EVT AMDGPUTargetLowering::getEquivalentLoadRegType(LLVMContext &Ctx, EVT VT) { in getEquivalentLoadRegType()
100 return EVT::getIntegerVT(Ctx, 32); in getEquivalentLoadRegType()
102 return EVT::getVectorVT(Ctx, MVT::i32, StoreSize / 32); in getEquivalentLoadRegType()
439 bool AMDGPUTargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT) const { in isFPImmLegal()
440 EVT ScalarVT = VT.getScalarType(); in isFPImmLegal()
445 bool AMDGPUTargetLowering::ShouldShrinkFPConstant(EVT VT) const { in ShouldShrinkFPConstant()
446 EVT ScalarVT = VT.getScalarType(); in ShouldShrinkFPConstant()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorTypes.cpp160 EVT NewVT = N->getValueType(0).getVectorElementType(); in ScalarizeVecRes_BITCAST()
166 EVT EltVT = N->getValueType(0).getVectorElementType(); in ScalarizeVecRes_BUILD_VECTOR()
176 EVT NewVT = N->getValueType(0).getVectorElementType(); in ScalarizeVecRes_CONVERT_RNDSAT()
193 EVT NewVT = N->getValueType(0).getVectorElementType(); in ScalarizeVecRes_FP_ROUND()
209 EVT EltVT = N->getValueType(0).getVectorElementType(); in ScalarizeVecRes_INSERT_VECTOR_ELT()
239 EVT DestVT = N->getValueType(0).getVectorElementType(); in ScalarizeVecRes_UnaryOp()
241 EVT OpVT = Op.getValueType(); in ScalarizeVecRes_UnaryOp()
253 EVT VT = OpVT.getVectorElementType(); in ScalarizeVecRes_UnaryOp()
261 EVT EltVT = N->getValueType(0).getVectorElementType(); in ScalarizeVecRes_InregOp()
262 EVT ExtVT = cast<VTSDNode>(N->getOperand(1))->getVT().getVectorElementType(); in ScalarizeVecRes_InregOp()
[all …]
DLegalizeTypesGeneric.cpp42 EVT OutVT = N->getValueType(0); in ExpandRes_BITCAST()
43 EVT NOutVT = TLI.getTypeToTransformTo(*DAG.getContext(), OutVT); in ExpandRes_BITCAST()
45 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()
138 EVT::getIntegerVT( in ExpandRes_BITCAST()
212 EVT OldEltVT = OldVec.getValueType().getVectorElementType(); in ExpandRes_EXTRACT_VECTOR_ELT()
[all …]
DLegalizeFloatTypes.cpp30 static RTLIB::Libcall GetFPLibCall(EVT VT, in GetFPLibCall()
147 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FABS()
159 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FMINNUM()
172 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FMAXNUM()
185 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FADD()
198 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FCEIL()
214 EVT LVT = LHS.getValueType(); in SoftenFloatRes_FCOPYSIGN()
215 EVT RVT = RHS.getValueType(); in SoftenFloatRes_FCOPYSIGN()
252 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FCOS()
264 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FDIV()
[all …]
DLegalizeIntegerTypes.cpp173 EVT ResVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in PromoteIntRes_Atomic0()
202 EVT SVT = getSetCCResultType(N->getOperand(2).getValueType()); in PromoteIntRes_AtomicCmpSwap()
203 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(1)); in PromoteIntRes_AtomicCmpSwap()
237 EVT InVT = InOp.getValueType(); in PromoteIntRes_BITCAST()
238 EVT NInVT = TLI.getTypeToTransformTo(*DAG.getContext(), InVT); in PromoteIntRes_BITCAST()
239 EVT OutVT = N->getValueType(0); in PromoteIntRes_BITCAST()
240 EVT NOutVT = TLI.getTypeToTransformTo(*DAG.getContext(), OutVT); in PromoteIntRes_BITCAST()
285 EVT::getIntegerVT(*DAG.getContext(), in PromoteIntRes_BITCAST()
304 EVT OVT = N->getValueType(0); in PromoteIntRes_BSWAP()
305 EVT NVT = Op.getValueType(); in PromoteIntRes_BSWAP()
[all …]
DSelectionDAG.cpp57 static SDVTList makeVTList(const EVT *VTs, unsigned NumVTs) { in makeVTList()
78 bool ConstantFPSDNode::isValueValidForType(EVT VT, in isValueValidForType()
737 EVT VT = N->getValueType(0); in VerifySDNode()
755 EVT EltVT = N->getValueType(0).getVectorElementType(); in VerifySDNode()
806 EVT VT = cast<VTSDNode>(N)->getVT(); in RemoveNodeFromCSEMaps()
921 unsigned SelectionDAG::getEVTAlignment(EVT VT) const { in getEVTAlignment()
997 SDValue SelectionDAG::getAnyExtOrTrunc(SDValue Op, SDLoc DL, EVT VT) { in getAnyExtOrTrunc()
1003 SDValue SelectionDAG::getSExtOrTrunc(SDValue Op, SDLoc DL, EVT VT) { in getSExtOrTrunc()
1009 SDValue SelectionDAG::getZExtOrTrunc(SDValue Op, SDLoc DL, EVT VT) { in getZExtOrTrunc()
1015 SDValue SelectionDAG::getBoolExtOrTrunc(SDValue Op, SDLoc SL, EVT VT, in getBoolExtOrTrunc()
[all …]
DLegalizeVectorOps.cpp230 EVT StVT = ST->getMemoryVT(); in LegalizeOp()
256 EVT QueryType; in LegalizeOp()
418 EVT VT = Op.getOperand(0).getValueType(); in PromoteINT_TO_FP()
430 EVT NVT = VT.widenIntegerVectorElementType(*DAG.getContext()); in PromoteINT_TO_FP()
454 EVT VT = Op.getValueType(); in PromoteFP_TO_INT()
456 EVT NewVT; in PromoteFP_TO_INT()
482 EVT SrcVT = LD->getMemoryVT(); in ExpandLoad()
489 EVT SrcEltVT = SrcVT.getScalarType(); in ExpandLoad()
490 EVT DstEltVT = Op.getNode()->getValueType(0).getScalarType(); in ExpandLoad()
498 EVT WideVT = TLI.getPointerTy(); in ExpandLoad()
[all …]
DDAGCombiner.cpp201 SDNode *EVE, EVT InVecVT, SDValue EltNo, LoadSDNode *OriginalLoad);
203 SDValue PromoteOperand(SDValue Op, EVT PVT, bool &Replace);
204 SDValue SExtPromoteOperand(SDValue Op, EVT PVT);
205 SDValue ZExtPromoteOperand(SDValue Op, EVT PVT);
323 SDValue SimplifySetCC(EVT VT, SDValue N0, SDValue N1, ISD::CondCode Cond,
332 SDValue CombineConsecutiveLoads(SDNode *N, EVT VT);
334 SDValue ConstantFoldBITCASTofBUILD_VECTOR(SDNode *, EVT);
389 EVT MemVT, unsigned NumElem,
421 EVT getShiftAmountTy(EVT LHSTy) { in getShiftAmountTy()
431 bool isTypeLegal(const EVT &VT) { in isTypeLegal()
[all …]
DLegalizeDAG.cpp67 EVT getSetCCResultType(EVT VT) const { in getSetCCResultType()
102 SDValue ShuffleWithNarrowerEltType(EVT NVT, EVT VT, SDLoc dl,
106 bool LegalizeSetCCCondCode(EVT VT, SDValue &LHS, SDValue &RHS, SDValue &CC,
110 SDValue ExpandLibCall(RTLIB::Libcall LC, EVT RetVT, const SDValue *Ops,
128 SDValue EmitStackConvert(SDValue SrcOp, EVT SlotVT, EVT DestVT, SDLoc dl);
134 SDValue ExpandLegalINT_TO_FP(bool isSigned, SDValue LegalOp, EVT DestVT,
136 SDValue PromoteLegalINT_TO_FP(SDValue LegalOp, EVT DestVT, bool isSigned,
138 SDValue PromoteLegalFP_TO_INT(SDValue LegalOp, EVT DestVT, bool isSigned,
208 SelectionDAGLegalize::ShuffleWithNarrowerEltType(EVT NVT, EVT VT, SDLoc dl, in ShuffleWithNarrowerEltType()
248 EVT VT = CFP->getValueType(0); in ExpandConstantFP()
[all …]
/external/llvm/lib/Target/X86/
DX86ISelLowering.h570 MVT getScalarShiftAmountTy(EVT LHSTy) const override { return MVT::i8; } in getScalarShiftAmountTy()
601 EVT getOptimalMemOpType(uint64_t Size, unsigned DstAlign, unsigned SrcAlign,
616 bool allowsMisalignedMemoryAccesses(EVT VT, unsigned AS, unsigned Align,
636 bool isTypeDesirableForOp(unsigned Opc, EVT VT) const override;
642 bool IsDesirableToPromoteOp(SDValue Op, EVT &PVT) const override;
657 EVT getSetCCResultType(LLVMContext &Context, EVT VT) const override;
688 const char *LowerXConstraint(EVT ConstraintVT) const override;
742 bool isTruncateFree(EVT VT1, EVT VT2) const override;
755 bool isZExtFree(EVT VT1, EVT VT2) const override;
756 bool isZExtFree(SDValue Val, EVT VT2) const override;
[all …]
/external/clang/test/CodeGenCXX/
Ddebug-info-byval.cpp11 class EVT { class
23 void foo(EVT e);
24 EVT bar();
26 void get(int *i, unsigned dl, VAL v, VAL *p, unsigned n, EVT missing_arg) { in get()
28 EVT e = bar(); in get()
/external/llvm/lib/Target/AArch64/
DAArch64ISelLowering.h236 MVT getScalarShiftAmountTy(EVT LHSTy) const override;
240 bool allowsMisalignedMemoryAccesses(EVT VT, unsigned AddrSpace = 0,
274 bool isFPImmLegal(const APFloat &Imm, EVT VT) const override;
278 bool isShuffleMaskLegal(const SmallVectorImpl<int> &M, EVT VT) const override;
281 EVT getSetCCResultType(LLVMContext &Context, EVT VT) const override;
296 bool isTruncateFree(EVT VT1, EVT VT2) const override;
301 bool isZExtFree(EVT VT1, EVT VT2) const override;
302 bool isZExtFree(SDValue Val, EVT VT2) const override;
306 bool hasPairedLoad(EVT LoadedType, unsigned &RequiredAligment) const override;
311 EVT getOptimalMemOpType(uint64_t Size, unsigned DstAlign, unsigned SrcAlign,
[all …]
/external/llvm/lib/Target/Mips/
DMipsISelLowering.h230 MVT getScalarShiftAmountTy(EVT LHSTy) const override { return MVT::i32; } in getScalarShiftAmountTy()
250 EVT getSetCCResultType(LLVMContext &Context, EVT VT) const override;
266 unsigned getRegisterByName(const char* RegName, EVT VT) const override;
269 SDValue getGlobalReg(SelectionDAG &DAG, EVT Ty) const;
276 SDValue getAddrLocal(NodeTy *N, SDLoc DL, EVT Ty, SelectionDAG &DAG, in getAddrLocal()
295 SDValue getAddrGlobal(NodeTy *N, SDLoc DL, EVT Ty, SelectionDAG &DAG, in getAddrGlobal()
308 SDValue getAddrGlobalLargeGOT(NodeTy *N, SDLoc DL, EVT Ty, in getAddrGlobalLargeGOT()
326 SDValue getAddrNonPIC(NodeTy *N, SDLoc DL, EVT Ty, in getAddrNonPIC()
340 SDValue getAddrGPRel(NodeTy *N, SDLoc DL, EVT Ty, SelectionDAG &DAG) const { in getAddrGPRel()
370 SDValue getTargetNode(GlobalAddressSDNode *N, EVT Ty, SelectionDAG &DAG,
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonISelLowering.h113 void promoteLdStType(EVT VT, EVT PromotedLdStVT);
136 bool isTruncateFree(EVT VT1, EVT VT2) const override;
141 bool shouldExpandBuildVectorWithShuffles(EVT VT,
194 EVT getSetCCResultType(LLVMContext &C, EVT VT) const override { in getSetCCResultType()
198 return EVT::getVectorVT(C, MVT::i1, VT.getVectorNumElements()); in getSetCCResultType()
228 bool isFPImmLegal(const APFloat &Imm, EVT VT) const override;
/external/llvm/lib/CodeGen/
DTargetLoweringBase.cpp435 RTLIB::Libcall RTLIB::getFPEXT(EVT OpVT, EVT RetVT) { in getFPEXT()
454 RTLIB::Libcall RTLIB::getFPROUND(EVT OpVT, EVT RetVT) { in getFPROUND()
489 RTLIB::Libcall RTLIB::getFPTOSINT(EVT OpVT, EVT RetVT) { in getFPTOSINT()
539 RTLIB::Libcall RTLIB::getFPTOUINT(EVT OpVT, EVT RetVT) { in getFPTOUINT()
589 RTLIB::Libcall RTLIB::getSINTTOFP(EVT OpVT, EVT RetVT) { in getSINTTOFP()
629 RTLIB::Libcall RTLIB::getUINTTOFP(EVT OpVT, EVT RetVT) { in getUINTTOFP()
870 MVT TargetLoweringBase::getScalarShiftAmountTy(EVT LHSTy) const { in getScalarShiftAmountTy()
874 EVT TargetLoweringBase::getShiftAmountTy(EVT LHSTy) const { in getShiftAmountTy()
883 bool TargetLoweringBase::canOpTrap(unsigned Op, EVT VT) const { in canOpTrap()
899 TargetLoweringBase::getTypeConversion(LLVMContext &Context, EVT VT) const { in getTypeConversion()
[all …]
/external/llvm/lib/Target/MSP430/
DMSP430ISelLowering.h75 MVT getScalarShiftAmountTy(EVT LHSTy) const override { return MVT::i8; } in getScalarShiftAmountTy()
109 bool isTruncateFree(EVT VT1, EVT VT2) const override;
120 bool isZExtFree(EVT VT1, EVT VT2) const override;
121 bool isZExtFree(SDValue Val, EVT VT2) const override;

12345