Home
last modified time | relevance | path

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

123456789

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DValueTypes.h35 struct EVT { struct
41 constexpr EVT() = default; argument
42 constexpr EVT(MVT::SimpleValueType SVT) : V(SVT) {} in EVT() argument
43 constexpr EVT(MVT S) : V(S) {} in EVT() function
45 bool operator==(EVT VT) const {
48 bool operator!=(EVT VT) const {
59 static EVT getFloatingPointVT(unsigned BitWidth) { in getFloatingPointVT() argument
65 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getIntegerVT() argument
74 static EVT getVectorVT(LLVMContext &Context, EVT VT, unsigned NumElements,
84 static EVT getVectorVT(LLVMContext &Context, EVT VT, ElementCount EC) { in getVectorVT() argument
[all …]
H A DSelectionDAG.h96 const EVT *VTs;
103 SDVTListNode(const FoldingSetNodeIDRef ID, const EVT *VT, unsigned int Num) :
395 SDVTList VTs, EVT MemoryVT,
602 SDVTList getVTList(EVT VT);
603 SDVTList getVTList(EVT VT1, EVT VT2);
604 SDVTList getVTList(EVT VT1, EVT VT2, EVT VT3);
605 SDVTList getVTList(EVT VT1, EVT VT2, EVT VT3, EVT VT4);
606 SDVTList getVTList(ArrayRef<EVT> VTs);
617 SDValue getConstant(uint64_t Val, const SDLoc &DL, EVT VT,
619 SDValue getConstant(const APInt &Val, const SDLoc &DL, EVT VT,
[all …]
H A DTargetLowering.h227 using LegalizeKind = std::pair<LegalizeTypeAction, EVT>;
377 virtual MVT getScalarShiftAmountTy(const DataLayout &, EVT) const;
379 EVT getShiftAmountTy(EVT LHSTy, const DataLayout &DL,
418 virtual bool reduceSelectOfFPConstantLoads(EVT CmpOpVT) const { in reduceSelectOfFPConstantLoads()
459 shouldExpandBuildVectorWithShuffles(EVT /* VT */, in shouldExpandBuildVectorWithShuffles() argument
468 virtual bool isIntDivCheap(EVT VT, AttributeList Attr) const { return false; } in isIntDivCheap()
471 virtual bool hasStandaloneRem(EVT VT) const { in hasStandaloneRem()
492 int getRecipEstimateSqrtEnabled(EVT VT, MachineFunction &MF) const;
498 int getRecipEstimateDivEnabled(EVT VT, MachineFunction &MF) const;
504 int getSqrtRefinementSteps(EVT VT, MachineFunction &MF) const;
[all …]
H A DRuntimeLibcalls.h38 Libcall getFPEXT(EVT OpVT, EVT RetVT);
42 Libcall getFPROUND(EVT OpVT, EVT RetVT);
46 Libcall getFPTOSINT(EVT OpVT, EVT RetVT);
50 Libcall getFPTOUINT(EVT OpVT, EVT RetVT);
54 Libcall getSINTTOFP(EVT OpVT, EVT RetVT);
58 Libcall getUINTTOFP(EVT OpVT, EVT RetVT);
H A DSelectionDAGNodes.h80 const EVT *VTs;
180 inline EVT getValueType() const;
310 EVT getValueType() const { return Val.getValueType(); }
584 const EVT *ValueList;
604 static const EVT *getValueTypeList(EVT VT);
958 EVT getValueType(unsigned ResNo) const {
977 using value_iterator = const EVT *;
1047 static SDVTList getSDVTList(EVT VT) {
1113 inline EVT SDValue::getValueType() const {
1234 AddrSpaceCastSDNode(unsigned Order, const DebugLoc &dl, EVT VT,
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.h74 bool shouldCombineMemoryType(EVT VT) const;
99 static EVT getEquivalentMemType(LLVMContext &Context, EVT VT);
113 std::pair<EVT, EVT> getSplitDestVTs(const EVT &VT, SelectionDAG &DAG) const;
118 const EVT &LoVT, const EVT &HighVT,
153 bool isFAbsFree(EVT VT) const override;
154 bool isFNegFree(EVT VT) const override;
155 bool isTruncateFree(EVT Src, EVT Dest) const override;
159 bool isZExtFree(EVT Src, EVT Dest) const override;
160 bool isZExtFree(SDValue Val, EVT VT2) const override;
167 bool isNarrowingProfitable(EVT VT1, EVT VT2) const override;
[all …]
H A DSIISelLowering.h37 EVT VT) const override;
40 EVT VT) const override;
43 LLVMContext &Context, CallingConv::ID CC, EVT VT, EVT &IntermediateVT,
50 SDValue lowerKernargMemParameter(SelectionDAG &DAG, EVT VT, EVT MemVT,
61 EVT VT,
70 SDValue lowerSBuffer(EVT VT, SDLoc DL, SDValue Rsrc, SDValue Offset,
116 ArrayRef<SDValue> Ops, EVT MemVT,
127 EVT VT) const;
130 SelectionDAG &DAG, EVT VT, EVT MemVT, const SDLoc &SL, SDValue Val,
160 EVT MemVT,
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DValueTypes.cpp17 EVT EVT::changeExtendedTypeToInteger() const { in changeExtendedTypeToInteger()
23 EVT EVT::changeExtendedVectorElementTypeToInteger() const { in changeExtendedVectorElementTypeToInteger()
26 EVT IntTy = getIntegerVT(Context, getScalarSizeInBits()); in changeExtendedVectorElementTypeToInteger()
31 EVT EVT::changeExtendedVectorElementType(EVT EltVT) const { in changeExtendedVectorElementType()
37 EVT EVT::getExtendedIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getExtendedIntegerVT()
38 EVT VT; in getExtendedIntegerVT()
44 EVT EVT::getExtendedVectorVT(LLVMContext &Context, EVT VT, unsigned NumElements, in getExtendedVectorVT()
46 EVT ResultVT; in getExtendedVectorVT()
53 EVT EVT::getExtendedVectorVT(LLVMContext &Context, EVT VT, ElementCount EC) { in getExtendedVectorVT()
54 EVT ResultVT; in getExtendedVectorVT()
[all …]
H A DTargetLoweringBase.cpp216 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()
333 RTLIB::Libcall RTLIB::getFPTOUINT(EVT OpVT, EVT RetVT) { in getFPTOUINT()
382 RTLIB::Libcall RTLIB::getSINTTOFP(EVT OpVT, EVT RetVT) { in getSINTTOFP()
428 RTLIB::Libcall RTLIB::getUINTTOFP(EVT OpVT, EVT RetVT) { in getUINTTOFP()
892 EVT) const { in getScalarShiftAmountTy()
896 EVT TargetLoweringBase::getShiftAmountTy(EVT LHSTy, const DataLayout &DL, in getShiftAmountTy()
905 bool TargetLoweringBase::canOpTrap(unsigned Op, EVT VT) const { in canOpTrap()
930 TargetLoweringBase::getTypeConversion(LLVMContext &Context, EVT VT) const { in getTypeConversion()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeVectorTypes.cpp219 EVT VT = N->getValueType(0).getVectorElementType(); in ScalarizeVecRes_StrictFPOp()
222 EVT ValueVTs[] = {VT, MVT::Other}; in ScalarizeVecRes_StrictFPOp()
252 EVT ResVT = N->getValueType(0); in ScalarizeVecRes_OverflowOp()
253 EVT OvVT = N->getValueType(1); in ScalarizeVecRes_OverflowOp()
275 EVT OtherVT = N->getValueType(OtherNo); in ScalarizeVecRes_OverflowOp()
299 EVT NewVT = N->getValueType(0).getVectorElementType(); in ScalarizeVecRes_BITCAST()
305 EVT EltVT = N->getValueType(0).getVectorElementType(); in ScalarizeVecRes_BUILD_VECTOR()
323 EVT OpVT = Op.getValueType(); in ScalarizeVecRes_FP_ROUND()
329 EVT VT = OpVT.getVectorElementType(); in ScalarizeVecRes_FP_ROUND()
348 EVT EltVT = N->getValueType(0).getVectorElementType(); in ScalarizeVecRes_INSERT_VECTOR_ELT()
[all …]
H A 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()
91 EVT LoVT, HiVT; in ExpandRes_BITCAST()
106 EVT ElemVT = NOutVT; in ExpandRes_BITCAST()
107 EVT NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST()
116 ElemVT = EVT::getIntegerVT(*DAG.getContext(), NewSizeInBits); in ExpandRes_BITCAST()
117 NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST()
141 EVT::getIntegerVT(*DAG.getContext(), LHS.getValueSizeInBits() << 1), in ExpandRes_BITCAST()
213 EVT OldEltVT = OldVec.getValueType().getVectorElementType(); in ExpandRes_EXTRACT_VECTOR_ELT()
[all …]
H A DLegalizeFloatTypes.cpp29 static RTLIB::Libcall GetFPLibCall(EVT VT, in GetFPLibCall()
158 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_Unary()
165 EVT OpVT = N->getOperand(0 + Offset).getValueType(); in SoftenFloatRes_Unary()
177 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_Binary()
185 EVT OpsVT[2] = { N->getOperand(0 + Offset).getValueType(), in SoftenFloatRes_Binary()
201 EVT Ty = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FREEZE()
253 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FABS()
314 EVT LVT = LHS.getValueType(); in SoftenFloatRes_FCOPYSIGN()
315 EVT RVT = RHS.getValueType(); in SoftenFloatRes_FCOPYSIGN()
431 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in SoftenFloatRes_FMA()
[all …]
H A DLegalizeIntegerTypes.cpp261 EVT ResVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0)); in PromoteIntRes_Atomic0()
288 EVT SVT = getSetCCResultType(N->getOperand(2).getValueType()); in PromoteIntRes_AtomicCmpSwap()
289 EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(1)); in PromoteIntRes_AtomicCmpSwap()
337 EVT InVT = InOp.getValueType(); in PromoteIntRes_BITCAST()
338 EVT NInVT = TLI.getTypeToTransformTo(*DAG.getContext(), InVT); in PromoteIntRes_BITCAST()
339 EVT OutVT = N->getValueType(0); in PromoteIntRes_BITCAST()
340 EVT NOutVT = TLI.getTypeToTransformTo(*DAG.getContext(), OutVT); in PromoteIntRes_BITCAST()
387 EVT::getIntegerVT(*DAG.getContext(), in PromoteIntRes_BITCAST()
406 EVT ShiftAmtTy = TLI.getShiftAmountTy(NOutVT, DAG.getDataLayout()); in PromoteIntRes_BITCAST()
421 EVT WideOutVT = EVT::getVectorVT(*DAG.getContext(), in PromoteIntRes_BITCAST()
[all …]
H A DSelectionDAG.cpp86 static SDVTList makeVTList(const EVT *VTs, unsigned NumVTs) { in makeVTList()
124 bool ConstantFPSDNode::isValueValidForType(EVT VT, in isValueValidForType()
317 EVT SVT = Op.getValueType().getScalarType(); in matchUnaryPredicate()
349 EVT SVT = LHS.getValueType().getScalarType(); in matchBinaryPredicate()
476 ISD::CondCode ISD::getSetCCInverse(ISD::CondCode Op, EVT Type) { in getSetCCInverse()
505 EVT Type) { in getSetCCOrOperation()
526 EVT Type) { in getSetCCAndOperation()
931 EVT VT = N->getValueType(0); in VerifySDNode()
949 EVT EltVT = N->getValueType(0).getVectorElementType(); in VerifySDNode()
1007 EVT VT = cast<VTSDNode>(N)->getVT(); in RemoveNodeFromCSEMaps()
[all …]
H A DDAGCombiner.cpp250 if (EVT(VT).isSimple() && VT != MVT::Other && in DAGCombiner()
251 TLI.isTypeLegal(EVT(VT)) && in DAGCombiner()
376 SDValue scalarizeExtractedVectorLoad(SDNode *EVE, EVT InVecVT,
380 SDValue PromoteOperand(SDValue Op, EVT PVT, bool &Replace);
381 SDValue SExtPromoteOperand(SDValue Op, EVT PVT);
382 SDValue ZExtPromoteOperand(SDValue Op, EVT PVT);
551 SDValue foldSubToUSubSat(EVT DstVT, SDNode *N);
554 SDValue SimplifySetCC(EVT VT, SDValue N0, SDValue N1, ISD::CondCode Cond,
564 SDValue CombineConsecutiveLoads(SDNode *N, EVT VT);
569 SDValue ConstantFoldBITCASTofBUILD_VECTOR(SDNode *, EVT);
[all …]
H A DLegalizeDAG.cpp63 EVT FloatVT;
97 EVT getSetCCResultType(EVT VT) const { in getSetCCResultType()
132 SDValue ShuffleWithNarrowerEltType(EVT NVT, EVT VT, const SDLoc &dl,
157 SDValue EmitStackConvert(SDValue SrcOp, EVT SlotVT, EVT DestVT,
159 SDValue EmitStackConvert(SDValue SrcOp, EVT SlotVT, EVT DestVT,
257 EVT NVT, EVT VT, const SDLoc &dl, SDValue N1, SDValue N2, in ShuffleWithNarrowerEltType()
296 EVT VT = CFP->getValueType(0); in ExpandConstantFP()
305 EVT OrigVT = VT; in ExpandConstantFP()
306 EVT SVT = VT; in ExpandConstantFP()
345 EVT VT = CP->getValueType(0); in ExpandConstant()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86ISelLowering.h906 MVT getScalarShiftAmountTy(const DataLayout &, EVT VT) const override { in getScalarShiftAmountTy()
929 EVT getOptimalMemOpType(const MemOp &Op,
942 bool allowsMisalignedMemoryAccesses(EVT VT, unsigned AS, Align Alignment,
962 bool isTypeDesirableForOp(unsigned Opc, EVT VT) const override;
968 bool IsDesirableToPromoteOp(SDValue Op, EVT &PVT) const override;
987 bool mergeStoresAfterLegalization(EVT MemVT) const override { in mergeStoresAfterLegalization()
991 bool canMergeStoresTo(unsigned AddressSpace, EVT MemVT,
1000 bool hasBitPreservingFPLogic(EVT VT) const override { in hasBitPreservingFPLogic()
1004 bool isMultiStoresCheaperThanBitsMerge(EVT LTy, EVT HTy) const override { in isMultiStoresCheaperThanBitsMerge()
1039 shouldTransformSignedTruncationCheck(EVT XVT, in shouldTransformSignedTruncationCheck()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/BPF/
H A DBPFISelLowering.h64 EVT getSetCCResultType(const DataLayout &DL, LLVMContext &Context,
65 EVT VT) const override;
67 MVT getScalarShiftAmountTy(const DataLayout &, EVT) const override;
108 EVT getOptimalMemOpType(const MemOp &Op, in getOptimalMemOpType()
113 bool isIntDivCheap(EVT VT, AttributeList Attr) const override { return true; } in isIntDivCheap()
129 EVT NewVT) const override { in shouldReduceLoadWidth()
137 bool isTruncateFree(EVT VT1, EVT VT2) const override;
141 bool isZExtFree(EVT VT1, EVT VT2) const override;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.h513 MVT getScalarShiftAmountTy(const DataLayout &DL, EVT) const override;
518 EVT VT, unsigned AddrSpace = 0, Align Alignment = Align(1),
541 bool isFPImmLegal(const APFloat &Imm, EVT VT,
546 bool isShuffleMaskLegal(ArrayRef<int> M, EVT VT) const override;
549 EVT getSetCCResultType(const DataLayout &DL, LLVMContext &Context,
550 EVT VT) const override;
569 EVT NewVT) const override;
572 bool isTruncateFree(EVT VT1, EVT VT2) const override;
577 bool isZExtFree(EVT VT1, EVT VT2) const override;
578 bool isZExtFree(SDValue Val, EVT VT2) const override;
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.h287 bool isTruncateFree(EVT SrcVT, EVT DstVT) const override;
288 bool isZExtFree(SDValue Val, EVT VT2) const override;
289 bool isSExtCheaperThanZExt(EVT SrcVT, EVT DstVT) const override;
292 bool isFPImmLegal(const APFloat &Imm, EVT VT,
300 EVT VT) const override;
306 EVT VT) const override;
310 bool isShuffleMaskLegal(ArrayRef<int> M, EVT VT) const override;
312 bool hasBitPreservingFPLogic(EVT VT) const override;
314 shouldExpandBuildVectorWithShuffles(EVT VT,
357 EVT getSetCCResultType(const DataLayout &DL, LLVMContext &Context,
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Mips/
H A DMipsISelLowering.h276 MVT getScalarShiftAmountTy(const DataLayout &, EVT) const override { in getScalarShiftAmountTy() argument
280 EVT getTypeForExtReturn(LLVMContext &Context, EVT VT,
291 EVT VT) const override;
297 EVT VT) const override;
301 LLVMContext &Context, CallingConv::ID CC, EVT VT, EVT &IntermediateVT,
331 EVT getSetCCResultType(const DataLayout &DL, LLVMContext &Context,
332 EVT VT) const override;
371 SDValue getGlobalReg(SelectionDAG &DAG, EVT Ty) const;
378 SDValue getAddrLocal(NodeTy *N, const SDLoc &DL, EVT Ty, SelectionDAG &DAG, in getAddrLocal()
397 SDValue getAddrGlobal(NodeTy *N, const SDLoc &DL, EVT Ty, SelectionDAG &DAG, in getAddrGlobal()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/
H A DARMISelLowering.h403 EVT getSetCCResultType(const DataLayout &DL, LLVMContext &Context,
404 EVT VT) const override;
426 bool isDesirableToTransformToIntegerOp(unsigned Opc, EVT VT) const override;
431 bool allowsMisalignedMemoryAccesses(EVT VT, unsigned AddrSpace,
436 EVT getOptimalMemOpType(const MemOp &Op,
440 bool isTruncateFree(EVT SrcVT, EVT DstVT) const override;
441 bool isZExtFree(SDValue Val, EVT VT2) const override;
446 bool isFNegFree(EVT VT) const override;
467 bool isLegalT2ScaledAddressingMode(const AddrMode &AM, EVT VT) const;
471 bool isLegalT1ScaledAddressingMode(const AddrMode &AM, EVT VT) const;
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.h400 MVT getScalarShiftAmountTy(const DataLayout &, EVT) const override { in getScalarShiftAmountTy() argument
426 EVT getSetCCResultType(const DataLayout &DL, LLVMContext &,
427 EVT) const override;
429 EVT VT) const override;
430 bool isFPImmLegal(const APFloat &Imm, EVT VT,
438 bool allowsMisalignedMemoryAccesses(EVT VT, unsigned AS, Align Alignment,
442 bool isTruncateFree(EVT, EVT) const override; in isTruncateFree() argument
444 bool shouldFormOverflowOp(unsigned Opcode, EVT VT,
570 const SDLoc &DL, EVT VT,
573 EVT VT, ISD::CondCode CC,
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/MSP430/
H A DMSP430ISelLowering.h78 MVT getScalarShiftAmountTy(const DataLayout &, EVT) const override { in getScalarShiftAmountTy() argument
117 bool isTruncateFree(EVT VT1, EVT VT2) const override;
128 bool isZExtFree(EVT VT1, EVT VT2) const override;
129 bool isZExtFree(SDValue Val, EVT VT2) const override;
132 bool shouldAvoidTransformToShift(EVT VT, unsigned Amount) const override;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.h755 MVT getScalarShiftAmountTy(const DataLayout &, EVT) const override { in getScalarShiftAmountTy() argument
779 bool preferIncOfAddToSubOfNot(EVT VT) const override;
781 bool convertSetCCLogicToBitwiseLogic(EVT VT) const override { in convertSetCCLogicToBitwiseLogic()
790 EVT getSetCCResultType(const DataLayout &DL, LLVMContext &Context,
791 EVT VT) const override;
796 bool enableAggressiveFMAFusion(EVT VT) const override;
967 bool isTruncateFree(EVT VT1, EVT VT2) const override;
969 bool isZExtFree(SDValue Val, EVT VT2) const override;
971 bool isFPExtFree(EVT DestVT, EVT SrcVT) const override;
978 bool convertSelectOfConstantsToMath(EVT VT) const override { in convertSelectOfConstantsToMath()
[all …]

123456789