Home
last modified time | relevance | path

Searched refs:VectorType (Results 1 – 25 of 164) sorted by relevance

1234567

/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DValueTypes.cpp38 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements); in getExtendedVectorVT()
97 return EVT::getEVT(cast<VectorType>(LLVMTy)->getElementType()); in getExtendedVectorElementType()
102 return cast<VectorType>(LLVMTy)->getNumElements(); in getExtendedVectorNumElements()
109 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits()
221 case MVT::v1i1: return VectorType::get(Type::getInt1Ty(Context), 1); in getTypeForEVT()
222 case MVT::v2i1: return VectorType::get(Type::getInt1Ty(Context), 2); in getTypeForEVT()
223 case MVT::v4i1: return VectorType::get(Type::getInt1Ty(Context), 4); in getTypeForEVT()
224 case MVT::v8i1: return VectorType::get(Type::getInt1Ty(Context), 8); in getTypeForEVT()
231 case MVT::v1i8: return VectorType::get(Type::getInt8Ty(Context), 1); in getTypeForEVT()
299 VectorType *VTy = cast<VectorType>(Ty); in getVT()
[all …]
H A DScalarizeMaskedMemIntrin.cpp134 VectorType *VecType = cast<VectorType>(CI->getType()); in scalarizeMaskedLoad()
260 VectorType *VecType = cast<VectorType>(Src->getType()); in scalarizeMaskedStore()
369 VectorType *VecType = cast<VectorType>(CI->getType()); in scalarizeMaskedGather()
478 assert(isa<VectorType>(Src->getType()) && in scalarizeMaskedScatter()
480 assert(isa<VectorType>(Ptrs->getType()) && in scalarizeMaskedScatter()
H A DInterleavedLoadCombinePass.cpp676 VectorType *const VTy;
678 VectorInfo(VectorType *VTy) in VectorInfo()
738 VectorType *VTy = dyn_cast<VectorType>(Op->getType()); in computeFromBCI()
788 VectorType *ArgTy = dyn_cast<VectorType>(SVI->getOperand(0)->getType()); in computeFromSVI()
1203 VectorType *ILTy = VectorType::get(ETy, Factor * ElementsPerSVI); in combine()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DDerivedTypes.h393 class VectorType : public SequentialType {
394 VectorType(Type *ElType, unsigned NumEl);
397 VectorType(const VectorType &) = delete;
398 VectorType &operator=(const VectorType &) = delete;
406 static VectorType *getInteger(VectorType *VTy) { in getInteger()
410 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger()
415 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType()
423 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType()
433 static VectorType *getHalfElementsVectorType(VectorType *VTy) { in getHalfElementsVectorType()
442 static VectorType *getDoubleElementsVectorType(VectorType *VTy) { in getDoubleElementsVectorType()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/ADT/
H A DMapVector.h37 typename VectorType = std::vector<std::pair<KeyT, ValueT>>>
40 VectorType Vector;
47 using value_type = typename VectorType::value_type;
48 using size_type = typename VectorType::size_type;
50 using iterator = typename VectorType::iterator;
51 using const_iterator = typename VectorType::const_iterator;
52 using reverse_iterator = typename VectorType::reverse_iterator;
53 using const_reverse_iterator = typename VectorType::const_reverse_iterator;
56 VectorType takeVector() { in takeVector()
174 typename VectorType::iterator erase(typename VectorType::iterator Iterator) { in erase()
[all …]
H A DUniqueVector.h27 using VectorType = typename std::vector<T>;
28 using iterator = typename VectorType::iterator;
29 using const_iterator = typename VectorType::const_iterator;
36 VectorType Vector;
/freebsd-12.1/contrib/llvm/lib/IR/
H A DFunction.cpp932 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
939 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
947 return VectorType::getHalfElementsVectorType(cast<VectorType>( in DecodeFixedType()
952 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) { in DecodeFixedType()
963 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType()
1059 VectorType *VT = dyn_cast<VectorType>(Ty); in matchIntrinsicType()
1106 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in matchIntrinsicType()
1121 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in matchIntrinsicType()
1141 VectorType *ThisArgType = dyn_cast<VectorType>(Ty); in matchIntrinsicType()
1181 VectorType *ReferenceType = dyn_cast<VectorType>(ArgTys[RefArgNumber]); in matchIntrinsicType()
[all …]
H A DConstants.cpp313 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getIntegerValue()
330 VectorType *VTy = cast<VectorType>(Ty); in getAllOnesValue()
626 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
650 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
695 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
720 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
731 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getNaN()
742 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getQNaN()
753 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getSNaN()
764 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getNegativeZero()
[all …]
H A DType.cpp73 if (auto *thisPTy = dyn_cast<VectorType>(this)) { in canLosslesslyBitCastTo()
74 if (auto *thatPTy = dyn_cast<VectorType>(Ty)) in canLosslesslyBitCastTo()
82 if (auto *thatPTy = dyn_cast<VectorType>(Ty)) in canLosslesslyBitCastTo()
125 case Type::VectorTyID: return cast<VectorType>(this)->getBitWidth(); in getPrimitiveSizeInBits()
135 if (auto *VTy = dyn_cast<VectorType>(this)) in getFPMantissaWidth()
151 if (auto *VTy = dyn_cast<VectorType>(this)) in isSizedDerivedType()
603 VectorType::VectorType(Type *ElType, unsigned NumEl) in VectorType() function in VectorType
606 VectorType *VectorType::get(Type *ElementType, unsigned NumElements) { in get()
613 VectorType *&Entry = ElementType->getContext().pImpl in get()
617 Entry = new (pImpl->TypeAllocator) VectorType(ElementType, NumElements); in get()
[all …]
H A DPass.cpp264 using VectorType = AnalysisUsage::VectorType; typedef
266 VectorType &CFGOnlyList;
268 GetCFGOnlyPasses(VectorType &L) : CFGOnlyList(L) {} in GetCFGOnlyPasses()
H A DInstructions.cpp85 if (VectorType *VT = dyn_cast<VectorType>(Op0->getType())) { in areInvalidOperands()
89 VectorType *ET = dyn_cast<VectorType>(Op1->getType()); in areInvalidOperands()
2800 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy)) in isCastable()
2855 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy)) { in isBitCastable()
2922 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy)) in getCastOpcode()
3061 if (isa<VectorType>(SrcTy) != isa<VectorType>(DstTy)) in castIsValid()
3063 if (VectorType *VT = dyn_cast<VectorType>(SrcTy)) in castIsValid()
3068 if (isa<VectorType>(SrcTy) != isa<VectorType>(DstTy)) in castIsValid()
3070 if (VectorType *VT = dyn_cast<VectorType>(SrcTy)) in castIsValid()
3093 VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy); in castIsValid()
[all …]
H A DAutoUpgrade.cpp1558 VectorType *VTy = cast<VectorType>(Arg1->getType()); in UpgradeIntrinsicCall()
2089 VectorType *DstTy = cast<VectorType>(CI->getType()); in UpgradeIntrinsicCall()
2510 VectorType *FTy = cast<VectorType>(CI->getType()); in UpgradeIntrinsicCall()
2511 VectorType *ITy = VectorType::getInteger(FTy); in UpgradeIntrinsicCall()
2519 VectorType *FTy = cast<VectorType>(CI->getType()); in UpgradeIntrinsicCall()
2520 VectorType *ITy = VectorType::getInteger(FTy); in UpgradeIntrinsicCall()
2529 VectorType *FTy = cast<VectorType>(CI->getType()); in UpgradeIntrinsicCall()
2530 VectorType *ITy = VectorType::getInteger(FTy); in UpgradeIntrinsicCall()
2538 VectorType *FTy = cast<VectorType>(CI->getType()); in UpgradeIntrinsicCall()
2539 VectorType *ITy = VectorType::getInteger(FTy); in UpgradeIntrinsicCall()
[all …]
H A DDataLayout.cpp536 unsigned Align = getTypeAllocSize(cast<VectorType>(Ty)->getElementType()); in getAlignmentInfo()
537 Align *= cast<VectorType>(Ty)->getNumElements(); in getAlignmentInfo()
760 if (VectorType *VecTy = dyn_cast<VectorType>(Ty)) in getIntPtrType()
761 return VectorType::get(IntTy, VecTy->getNumElements()); in getIntPtrType()
782 if (VectorType *VecTy = dyn_cast<VectorType>(Ty)) in getIndexType()
783 return VectorType::get(IntTy, VecTy->getNumElements()); in getIndexType()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp151 VectorType *VecTy = nullptr;
407 Layout.VecTy = dyn_cast<VectorType>(Ty); in getVectorLayout()
429 VectorType *VT = dyn_cast<VectorType>(I.getType()); in splitBinary()
462 VectorType *VT = dyn_cast<VectorType>(CI.getType()); in splitCall()
520 VectorType *VT = dyn_cast<VectorType>(SI.getType()); in visitSelectInst()
562 VectorType *VT = dyn_cast<VectorType>(GEPI.getType()); in visitGetElementPtrInst()
608 VectorType *VT = dyn_cast<VectorType>(CI.getDestTy()); in visitCastInst()
626 VectorType *DstVT = dyn_cast<VectorType>(BCI.getDestTy()); in visitBitCastInst()
627 VectorType *SrcVT = dyn_cast<VectorType>(BCI.getSrcTy()); in visitBitCastInst()
681 VectorType *VT = dyn_cast<VectorType>(SVI.getType()); in visitShuffleVectorInst()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/
H A DPassAnalysisSupport.h45 using VectorType = SmallVectorImpl<AnalysisID>;
135 const VectorType &getRequiredSet() const { return Required; } in getRequiredSet()
136 const VectorType &getRequiredTransitiveSet() const { in getRequiredTransitiveSet()
139 const VectorType &getPreservedSet() const { return Preserved; } in getPreservedSet()
140 const VectorType &getUsedSet() const { return Used; } in getUsedSet()
/freebsd-12.1/contrib/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp744 if (!VectorType::isValidElementType(Ty->getScalarType())) in collectInstructions()
765 VectorType *VecTy = dyn_cast<VectorType>(Ty); in collectInstructions()
812 VectorType *VecTy = dyn_cast<VectorType>(Ty); in collectInstructions()
976 VectorType *VecTy; in vectorizeStoreChain()
977 VectorType *VecStoreTy = dyn_cast<VectorType>(StoreTy); in vectorizeStoreChain()
979 VecTy = VectorType::get(StoreTy->getScalarType(), in vectorizeStoreChain()
982 VecTy = VectorType::get(StoreTy, Chain.size()); in vectorizeStoreChain()
1125 VectorType *VecTy; in vectorizeLoadChain()
1126 VectorType *VecLoadTy = dyn_cast<VectorType>(LoadTy); in vectorizeLoadChain()
1128 VecTy = VectorType::get(LoadTy->getScalarType(), in vectorizeLoadChain()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/CodeGen/
H A DSwiftCallingConv.h27 class VectorType; variable
141 llvm::VectorType *vectorTy);
148 llvm::VectorType *vectorTy);
155 llvm::VectorType *vectorTy,
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DSwiftCallingConv.cpp44 } else if (auto firstVecTy = dyn_cast<llvm::VectorType>(first)) { in getCommonType()
45 if (auto secondVecTy = dyn_cast<llvm::VectorType>(second)) { in getCommonType()
205 if (auto vecTy = dyn_cast<llvm::VectorType>(type)) { in addTypedData()
238 if (auto vecTy = dyn_cast<llvm::VectorType>(type)) { in addLegalTypedData()
322 if (auto vecTy = dyn_cast_or_null<llvm::VectorType>(type)) { in addEntry()
385 auto vecTy = cast<llvm::VectorType>(Entries[index].Type); in splitVectorEntry()
677 llvm::VectorType *vectorTy) { in isLegalVectorType()
691 llvm::VectorType *vectorTy) { in splitLegalVectorType()
698 return {llvm::VectorType::get(eltTy, numElts / 2), 2}; in splitLegalVectorType()
705 llvm::VectorType *origVectorTy, in legalizeVectorType()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelArguments.cpp123 VectorType *VT = dyn_cast<VectorType>(ArgTy); in runOnFunction()
127 VectorType *V4Ty = nullptr; in runOnFunction()
160 V4Ty = VectorType::get(VT->getVectorElementType(), 4); in runOnFunction()
H A DAMDGPUTargetTransformInfo.cpp235 VectorType *VecTy) const { in getLoadVectorFactor()
246 VectorType *VecTy) const { in getStoreVectorFactor()
495 = DL.getTypeSizeInBits(cast<VectorType>(ValTy)->getElementType()); in getVectorInstrCost()
591 VectorType *VT = cast<VectorType>(Tp); in getShuffleCost()
710 = DL.getTypeSizeInBits(cast<VectorType>(ValTy)->getElementType()); in getVectorInstrCost()
/freebsd-12.1/contrib/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h540 VecTy = VectorType::get(A->getType(), VF); in getOperandsScalarizationOverhead()
856 VectorType *VT = dyn_cast<VectorType>(VecTy);
863 VectorType *SubVT = VectorType::get(VT->getElementType(), NumSubElts);
972 VectorType *MaskVT = VectorType::get(I8Type, NumElts);
973 SubVT = VectorType::get(I8Type, NumSubElts);
1020 Types.push_back(VF == 1 ? OpTy : VectorType::get(OpTy, VF));
1024 RetTy = VectorType::get(RetTy, VF);
1101 CondTy = VectorType::get(CondTy, RetVF);
1429 Type *SubTy = VectorType::get(ScalarTy, NumVecElts); in getArithmeticReductionCost()
1488 Type *SubTy = VectorType::get(ScalarTy, NumVecElts); in getMinMaxReductionCost()
[all …]
/freebsd-12.1/contrib/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp242 VectorType *VTp = cast<VectorType>(Tp); in getRandomValue()
304 return VectorType::get(Ty, width); in pickVectorType()
487 getRandom() % cast<VectorType>(Val0->getType())->getNumElements()), in Act()
501 unsigned Width = cast<VectorType>(Val0->getType())->getNumElements(); in Act()
531 getRandom() % cast<VectorType>(Val0->getType())->getNumElements()), in Act()
548 VectorType *VecTy = cast<VectorType>(VTy); in Act()
631 unsigned NumElem = cast<VectorType>(Val0->getType())->getNumElements(); in Act()
632 CondTy = VectorType::get(CondTy, NumElem); in Act()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp468 !isa<VectorType>(VecInput->getType())) in foldVecTruncToExtElt()
471 VectorType *VecType = cast<VectorType>(VecInput->getType()); in foldVecTruncToExtElt()
483 VecType = VectorType::get(DestType, NumVecElts); in foldVecTruncToExtElt()
497 assert((isa<VectorType>(Trunc.getSrcTy()) || in narrowRotate()
1503 return VectorType::get(MinType, NumElts); in shrinkFPConstantVector()
1827 VectorType *SrcTy = cast<VectorType>(InVal->getType()); in optimizeVectorResize()
2003 VectorType *DestVecTy = cast<VectorType>(CI.getType()); in optimizeIntegerToVectorInsertions()
2040 if (!VectorType::isValidElementType(DestType)) in canonicalizeBitCastExtElt()
2317 if (VectorType *DestVTy = dyn_cast<VectorType>(DestTy)) { in visitBitCast()
2346 if (VectorType *SrcVTy = dyn_cast<VectorType>(SrcTy)) { in visitBitCast()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetTransformInfo.cpp54 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) { in getArithmeticInstrCost()
/freebsd-12.1/contrib/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp50 if (!cast<VectorType>(VecTy)->getElementType()->isIntegerTy()) in isTypeForHVX()
160 VectorType *VecTy = cast<VectorType>(Src); in getMemoryOpCost()
256 Type *ElemTy = Val->isVectorTy() ? cast<VectorType>(Val)->getElementType() in getVectorInstrCost()

1234567