Home
last modified time | relevance | path

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

12345

/minix3/external/bsd/llvm/dist/llvm/lib/IR/
H A DValueTypes.cpp38 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements); in getExtendedVectorVT()
88 return EVT::getEVT(cast<VectorType>(LLVMTy)->getElementType()); in getExtendedVectorElementType()
93 return cast<VectorType>(LLVMTy)->getNumElements(); in getExtendedVectorNumElements()
100 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits()
199 case MVT::v2i1: return VectorType::get(Type::getInt1Ty(Context), 2); in getTypeForEVT()
200 case MVT::v4i1: return VectorType::get(Type::getInt1Ty(Context), 4); in getTypeForEVT()
201 case MVT::v8i1: return VectorType::get(Type::getInt1Ty(Context), 8); in getTypeForEVT()
202 case MVT::v16i1: return VectorType::get(Type::getInt1Ty(Context), 16); in getTypeForEVT()
203 case MVT::v32i1: return VectorType::get(Type::getInt1Ty(Context), 32); in getTypeForEVT()
204 case MVT::v64i1: return VectorType::get(Type::getInt1Ty(Context), 64); in getTypeForEVT()
[all …]
H A DType.cpp46 if (VectorType *VTy = dyn_cast<VectorType>(this)) in getScalarType()
52 if (const VectorType *VTy = dyn_cast<VectorType>(this)) in getScalarType()
77 if (const VectorType *thisPTy = dyn_cast<VectorType>(this)) { in canLosslesslyBitCastTo()
78 if (const VectorType *thatPTy = dyn_cast<VectorType>(Ty)) in canLosslesslyBitCastTo()
86 if (const VectorType *thatPTy = dyn_cast<VectorType>(Ty)) in canLosslesslyBitCastTo()
131 case Type::VectorTyID: return cast<VectorType>(this)->getBitWidth(); in getPrimitiveSizeInBits()
147 if (const VectorType *VTy = dyn_cast<VectorType>(this)) in getFPMantissaWidth()
166 if (const VectorType *VTy = dyn_cast<VectorType>(this)) in isSizedDerivedType()
213 return cast<VectorType>(this)->getNumElements(); in getVectorNumElements()
703 VectorType::VectorType(Type *ElType, unsigned NumEl) in VectorType() function in VectorType
[all …]
H A DPass.cpp243 typedef AnalysisUsage::VectorType VectorType; typedef
244 VectorType &CFGOnlyList;
245 GetCFGOnlyPasses(VectorType &L) : CFGOnlyList(L) {} in GetCFGOnlyPasses()
H A DConstants.cpp224 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getIntegerValue()
241 VectorType *VTy = cast<VectorType>(Ty); in getAllOnesValue()
534 VectorType *VTy = dyn_cast<VectorType>(Ty); in getTrue()
546 VectorType *VTy = dyn_cast<VectorType>(Ty); in getFalse()
575 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
600 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
646 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
660 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
671 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getNegativeZero()
719 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getInfinity()
[all …]
H A DInstructions.cpp66 if (VectorType *VT = dyn_cast<VectorType>(Op0->getType())) { in areInvalidOperands()
70 VectorType *ET = dyn_cast<VectorType>(Op1->getType()); in areInvalidOperands()
1454 : Instruction(cast<VectorType>(Val->getType())->getElementType(), in ExtractElementInst()
1468 : Instruction(cast<VectorType>(Val->getType())->getElementType(), in ExtractElementInst()
1526 if (Elt->getType() != cast<VectorType>(Vec->getType())->getElementType()) in isValidOperands()
1542 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(), in ShuffleVectorInst()
1543 cast<VectorType>(Mask->getType())->getNumElements()), in ShuffleVectorInst()
1559 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(), in ShuffleVectorInst()
1560 cast<VectorType>(Mask->getType())->getNumElements()), in ShuffleVectorInst()
1581 VectorType *MaskTy = dyn_cast<VectorType>(Mask->getType()); in isValidOperands()
[all …]
H A DFunction.cpp735 return VectorType::get(DecodeFixedType(Infos, Tys, Context),D.Vector_Width); in DecodeFixedType()
751 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
752 return VectorType::getExtendedElementVectorType(VTy); in DecodeFixedType()
758 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
759 return VectorType::getTruncatedElementVectorType(VTy); in DecodeFixedType()
766 return VectorType::getHalfElementsVectorType(cast<VectorType>( in DecodeFixedType()
771 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) { in DecodeFixedType()
772 return VectorType::get(EltTy, VTy->getNumElements()); in DecodeFixedType()
H A DVerifier.cpp1393 Assert1(cast<VectorType>(SrcTy)->getNumElements() == in visitUIToFPInst()
1394 cast<VectorType>(DestTy)->getNumElements(), in visitUIToFPInst()
1416 Assert1(cast<VectorType>(SrcTy)->getNumElements() == in visitSIToFPInst()
1417 cast<VectorType>(DestTy)->getNumElements(), in visitSIToFPInst()
1439 Assert1(cast<VectorType>(SrcTy)->getNumElements() == in visitFPToUIInst()
1440 cast<VectorType>(DestTy)->getNumElements(), in visitFPToUIInst()
1462 Assert1(cast<VectorType>(SrcTy)->getNumElements() == in visitFPToSIInst()
1463 cast<VectorType>(DestTy)->getNumElements(), in visitFPToSIInst()
1482 VectorType *VSrc = dyn_cast<VectorType>(SrcTy); in visitPtrToIntInst()
1483 VectorType *VDest = dyn_cast<VectorType>(DestTy); in visitPtrToIntInst()
[all …]
H A DLegacyPassManager.cpp524 const AnalysisUsage::VectorType &IDs = AnUsage->getRequiredTransitiveSet(); in setLastUser()
527 for (AnalysisUsage::VectorType::const_iterator I = IDs.begin(), in setLastUser()
615 const AnalysisUsage::VectorType &RequiredSet = AnUsage->getRequiredSet(); in schedulePass()
616 for (AnalysisUsage::VectorType::const_iterator I = RequiredSet.begin(), in schedulePass()
628 for (AnalysisUsage::VectorType::const_iterator I2 = RequiredSet.begin(), in schedulePass()
849 const AnalysisUsage::VectorType &PreservedSet = AnUsage->getPreservedSet(); in preserveHigherLevelAnalysis()
870 const AnalysisUsage::VectorType &PreservedSet = AnUsage->getPreservedSet(); in verifyPreservedAnalysis()
873 for (AnalysisUsage::VectorType::const_iterator I = PreservedSet.begin(), in verifyPreservedAnalysis()
889 const AnalysisUsage::VectorType &PreservedSet = AnUsage->getPreservedSet(); in removeNotPreservedAnalysis()
1070 const AnalysisUsage::VectorType &RequiredSet = AnUsage->getRequiredSet(); in collectRequiredAnalysis()
[all …]
H A DDataLayout.cpp471 unsigned Align = getTypeAllocSize(cast<VectorType>(Ty)->getElementType()); in getAlignmentInfo()
472 Align *= cast<VectorType>(Ty)->getNumElements(); in getAlignmentInfo()
736 if (VectorType *VecTy = dyn_cast<VectorType>(Ty)) in getIntPtrType()
737 return VectorType::get(IntTy, VecTy->getNumElements()); in getIntPtrType()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/
H A DDerivedTypes.h361 class VectorType : public SequentialType {
364 VectorType(const VectorType &) LLVM_DELETED_FUNCTION;
365 const VectorType &operator=(const VectorType &) LLVM_DELETED_FUNCTION;
366 VectorType(Type *ElType, unsigned NumEl);
371 static VectorType *get(Type *ElementType, unsigned NumElements);
377 static VectorType *getInteger(VectorType *VTy) { in getInteger()
381 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger()
388 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType()
391 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType()
398 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType()
[all …]
/minix3/external/bsd/llvm/dist/llvm/include/llvm/ADT/
H A DMapVector.h31 typename VectorType = std::vector<std::pair<KeyT, ValueT> > >
33 typedef typename VectorType::size_type size_type;
36 VectorType Vector;
39 typedef typename VectorType::iterator iterator;
40 typedef typename VectorType::const_iterator const_iterator;
41 typedef typename VectorType::reverse_iterator reverse_iterator;
42 typedef typename VectorType::const_reverse_iterator const_reverse_iterator;
129 typename VectorType::iterator erase(typename VectorType::iterator Iterator) { in erase()
163 template <typename KeyT, typename ValueT, typename MapType, typename VectorType>
165 void MapVector<KeyT, ValueT, MapType, VectorType>::remove_if(Function Pred) { in remove_if()
H A DUniqueVector.h26 typedef typename std::vector<T> VectorType; typedef
27 typedef typename VectorType::iterator iterator;
28 typedef typename VectorType::const_iterator const_iterator;
36 VectorType Vector;
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp113 VectorType *VecTy;
353 Layout.VecTy = dyn_cast<VectorType>(Ty); in getVectorLayout()
375 VectorType *VT = dyn_cast<VectorType>(I.getType()); in splitBinary()
395 VectorType *VT = dyn_cast<VectorType>(SI.getType()); in visitSelectInst()
437 VectorType *VT = dyn_cast<VectorType>(GEPI.getType()); in visitGetElementPtrInst()
470 VectorType *VT = dyn_cast<VectorType>(CI.getDestTy()); in visitCastInst()
488 VectorType *DstVT = dyn_cast<VectorType>(BCI.getDestTy()); in visitBitCastInst()
489 VectorType *SrcVT = dyn_cast<VectorType>(BCI.getSrcTy()); in visitBitCastInst()
508 Type *MidTy = VectorType::get(DstVT->getElementType(), FanOut); in visitBitCastInst()
526 Type *MidTy = VectorType::get(SrcVT->getElementType(), FanIn); in visitBitCastInst()
[all …]
H A DSROA.cpp1583 } else if (VectorType *VectorTy = dyn_cast<VectorType>(ElementTy)) { in getNaturalGEPWithType()
1622 if (VectorType *VecTy = dyn_cast<VectorType>(Ty)) { in getNaturalGEPRecursively()
1928 const Slice &S, VectorType *Ty, in isVectorPromotionViableForSlice()
1948 : VectorType::get(Ty->getElementType(), NumElements); in isVectorPromotionViableForSlice()
2003 static VectorType *isVectorPromotionViable(AllocaSlices::Partition &P, in isVectorPromotionViable()
2007 SmallVector<VectorType *, 4> CandidateTys; in isVectorPromotionViable()
2011 if (auto *VTy = dyn_cast<VectorType>(Ty)) { in isVectorPromotionViable()
2039 [](VectorType *VTy) { in isVectorPromotionViable()
2050 auto RankVectorTypes = [&DL](VectorType *RHSTy, VectorType *LHSTy) { in isVectorPromotionViable()
2067 for (VectorType *VTy : CandidateTys) { in isVectorPromotionViable()
[all …]
/minix3/external/bsd/llvm/dist/llvm/include/llvm/
H A DPassAnalysisSupport.h39 typedef SmallVector<AnalysisID, 32> VectorType; typedef
43 VectorType Required, RequiredTransitive, Preserved;
108 const VectorType &getRequiredSet() const { return Required; } in getRequiredSet()
109 const VectorType &getRequiredTransitiveSet() const { in getRequiredTransitiveSet()
112 const VectorType &getPreservedSet() const { return Preserved; } in getPreservedSet()
/minix3/external/bsd/llvm/dist/llvm/unittests/IR/
H A DInstructionsTest.cpp178 Type *V8x8Ty = VectorType::get(Int8Ty, 8); in TEST()
179 Type *V8x64Ty = VectorType::get(Int64Ty, 8); in TEST()
186 Type *V2Int32Ty = VectorType::get(Int32Ty, 2); in TEST()
187 Type *V2Int64Ty = VectorType::get(Int64Ty, 2); in TEST()
188 Type *V4Int16Ty = VectorType::get(Int16Ty, 4); in TEST()
196 Type *V2Int32PtrAS1Ty = VectorType::get(Int32PtrAS1Ty, 2); in TEST()
197 Type *V2Int64PtrAS1Ty = VectorType::get(Int64PtrAS1Ty, 2); in TEST()
198 Type *V4Int32PtrAS1Ty = VectorType::get(Int32PtrAS1Ty, 4); in TEST()
199 Type *V4Int64PtrAS1Ty = VectorType::get(Int64PtrAS1Ty, 4); in TEST()
201 Type *V2Int64PtrTy = VectorType::get(Int64PtrTy, 2); in TEST()
[all …]
H A DConstantsTest.cpp129 VectorType *Int8PtrVecTy = VectorType::get(Int8PtrTy, 4); in TEST()
130 VectorType *Int32PtrVecTy = VectorType::get(Int32PtrTy, 4); in TEST()
131 VectorType *Int64VecTy = VectorType::get(Int64Ty, 4); in TEST()
185 Constant *P6 = ConstantExpr::getBitCast(P4, VectorType::get(Int16Ty, 2)); in TEST()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1394 Ty = VectorType::get(Ty, CI.getType()->getVectorNumElements()); in visitIntToPtr()
1483 PtrTy = VectorType::get(PtrTy, Ty->getVectorNumElements()); in visitPtrToInt()
1494 static Instruction *OptimizeVectorResize(Value *InVal, VectorType *DestTy, in OptimizeVectorResize()
1499 VectorType *SrcTy = cast<VectorType>(InVal->getType()); in OptimizeVectorResize()
1510 SrcTy = VectorType::get(DestTy->getElementType(), SrcTy->getNumElements()); in OptimizeVectorResize()
1677 VectorType *DestVecTy = cast<VectorType>(CI.getType()); in OptimizeIntegerToVectorInsertions()
1714 isa<VectorType>(VecInput->getType())) { in OptimizeIntToFloatBitCast()
1715 VectorType *VecTy = cast<VectorType>(VecInput->getType()); in OptimizeIntToFloatBitCast()
1722 VecTy = VectorType::get(DestTy, in OptimizeIntToFloatBitCast()
1738 isa<VectorType>(VecInput->getType())) { in OptimizeIntToFloatBitCast()
[all …]
H A DInstCombineVectorOps.cpp67 VectorType *VTy = cast<VectorType>(V->getType()); in FindScalarElement()
218 if (VectorType *VT = dyn_cast<VectorType>(BCI->getOperand(0)->getType())) in visitExtractElementInst()
418 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements(); in CollectShuffleElements()
578 unsigned VWidth = cast<VectorType>(VecOp->getType())->getNumElements(); in visitInsertElementInst()
726 VectorType::get(I->getType()->getScalarType(), in BuildNew()
749 return UndefValue::get(VectorType::get(V->getType()->getScalarType(), in EvaluateInDifferentElementOrder()
754 VectorType::get(V->getType()->getScalarType(), in EvaluateInDifferentElementOrder()
867 unsigned VWidth = cast<VectorType>(SVI.getType())->getNumElements(); in visitShuffleVectorInst()
879 unsigned LHSWidth = cast<VectorType>(LHS->getType())->getNumElements(); in visitShuffleVectorInst()
994 LHSOp0Width = cast<VectorType>(LHSOp0->getType())->getNumElements(); in visitShuffleVectorInst()
[all …]
/minix3/external/bsd/llvm/dist/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp182 VectorType *VTp = cast<VectorType>(Tp); in getRandomValue()
244 return VectorType::get(Ty, width); in pickVectorType()
425 Ran->Rand() % cast<VectorType>(Val0->getType())->getNumElements()), in Act()
438 unsigned Width = cast<VectorType>(Val0->getType())->getNumElements(); in Act()
468 Ran->Rand() % cast<VectorType>(Val0->getType())->getNumElements()), in Act()
485 VectorType *VecTy = cast<VectorType>(VTy); in Act()
574 unsigned NumElem = cast<VectorType>(Val0->getType())->getNumElements(); in Act()
575 CondTy = VectorType::get(CondTy, NumElem); in Act()
/minix3/external/bsd/llvm/dist/clang/lib/CodeGen/
H A DCGBuiltin.cpp1772 static llvm::VectorType *GetNeonType(CodeGenFunction *CGF, in GetNeonType()
1779 return llvm::VectorType::get(CGF->Int8Ty, V1Ty ? 1 : (8 << IsQuad)); in GetNeonType()
1783 return llvm::VectorType::get(CGF->Int16Ty, V1Ty ? 1 : (4 << IsQuad)); in GetNeonType()
1785 return llvm::VectorType::get(CGF->Int32Ty, V1Ty ? 1 : (2 << IsQuad)); in GetNeonType()
1788 return llvm::VectorType::get(CGF->Int64Ty, V1Ty ? 1 : (1 << IsQuad)); in GetNeonType()
1793 return llvm::VectorType::get(CGF->Int8Ty, 16); in GetNeonType()
1795 return llvm::VectorType::get(CGF->FloatTy, V1Ty ? 1 : (2 << IsQuad)); in GetNeonType()
1797 return llvm::VectorType::get(CGF->DoubleTy, V1Ty ? 1 : (1 << IsQuad)); in GetNeonType()
1803 unsigned nElts = cast<llvm::VectorType>(V->getType())->getNumElements(); in EmitNeonSplat()
1826 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty); in EmitNeonShiftVector()
[all …]
H A DCGExprScalar.cpp801 unsigned NumElements = cast<llvm::VectorType>(DstTy)->getNumElements(); in EmitScalarConversion()
806 if (isa<llvm::VectorType>(SrcTy) || in EmitScalarConversion()
807 isa<llvm::VectorType>(DstTy)) in EmitScalarConversion()
957 llvm::VectorType *LTy = cast<llvm::VectorType>(LHS->getType()); in VisitShuffleVectorExpr()
977 llvm::VectorType *MTy = cast<llvm::VectorType>(Mask->getType()); in VisitShuffleVectorExpr()
994 llvm::VectorType *RTy = llvm::VectorType::get(LTy->getElementType(), in VisitShuffleVectorExpr()
1046 QualType SrcEltType = SrcType->getAs<VectorType>()->getElementType(), in VisitConvertVectorExpr()
1047 DstEltType = DstType->getAs<VectorType>()->getElementType(); in VisitConvertVectorExpr()
1150 llvm::VectorType *VType = in VisitInitListExpr()
1151 dyn_cast<llvm::VectorType>(ConvertType(E->getType())); in VisitInitListExpr()
[all …]
/minix3/external/bsd/llvm/dist/clang/lib/AST/
H A DTypePrinter.cpp533 void TypePrinter::printVectorBefore(const VectorType *T, raw_ostream &OS) { in printVectorBefore()
535 case VectorType::AltiVecPixel: in printVectorBefore()
538 case VectorType::AltiVecBool: in printVectorBefore()
542 case VectorType::AltiVecVector: in printVectorBefore()
546 case VectorType::NeonVector: in printVectorBefore()
551 case VectorType::NeonPolyVector: in printVectorBefore()
556 case VectorType::GenericVector: { in printVectorBefore()
569 void TypePrinter::printVectorAfter(const VectorType *T, raw_ostream &OS) { in printVectorAfter()
1169 if (const VectorType *vector =T->getEquivalentType()->getAs<VectorType>()) { in printAttributedAfter()
1185 const VectorType *vector = T->getEquivalentType()->getAs<VectorType>(); in printAttributedAfter()
H A DType.cpp171 VectorType::VectorType(QualType vecType, unsigned nElements, QualType canonType, in VectorType() function in VectorType
183 VectorType::VectorType(TypeClass tc, QualType vecType, unsigned nElements, in VectorType() function in VectorType
592 AutoType *VisitVectorType(const VectorType *T) { in VisitVectorType()
615 if (const VectorType *VT = dyn_cast<VectorType>(CanonicalType)) in hasIntegerRepresentation()
751 if (const VectorType *VT = dyn_cast<VectorType>(CanonicalType)) in hasSignedIntegerRepresentation()
791 if (const VectorType *VT = dyn_cast<VectorType>(CanonicalType)) in hasUnsignedIntegerRepresentation()
807 if (const VectorType *VT = dyn_cast<VectorType>(CanonicalType)) in hasFloatingRepresentation()
2222 return Cache::get(cast<VectorType>(T)->getElementType()); in computeCachedProperties()
2306 return computeLinkageInfo(cast<VectorType>(T)->getElementType()); in computeLinkageInfo()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/R600/
H A DSITypeRewriter.cpp58 v16i8 = VectorType::get(Type::getInt8Ty(M.getContext()), 16); in doInitialization()
59 v4i32 = VectorType::get(Type::getInt32Ty(M.getContext()), 4); in doInitialization()

12345