Home
last modified time | relevance | path

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

1234

/external/llvm/lib/VMCore/
DValueTypes.cpp32 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements); in getExtendedVectorVT()
70 return EVT::getEVT(cast<VectorType>(LLVMTy)->getElementType()); in getExtendedVectorElementType()
75 return cast<VectorType>(LLVMTy)->getNumElements(); in getExtendedVectorNumElements()
82 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits()
161 case MVT::v2i8: return VectorType::get(Type::getInt8Ty(Context), 2); in getTypeForEVT()
162 case MVT::v4i8: return VectorType::get(Type::getInt8Ty(Context), 4); in getTypeForEVT()
163 case MVT::v8i8: return VectorType::get(Type::getInt8Ty(Context), 8); in getTypeForEVT()
164 case MVT::v16i8: return VectorType::get(Type::getInt8Ty(Context), 16); in getTypeForEVT()
165 case MVT::v32i8: return VectorType::get(Type::getInt8Ty(Context), 32); in getTypeForEVT()
166 case MVT::v2i16: return VectorType::get(Type::getInt16Ty(Context), 2); in getTypeForEVT()
[all …]
DType.cpp44 if (VectorType *VTy = dyn_cast<VectorType>(this)) in getScalarType()
62 return cast<VectorType>(this)->getElementType()->isIntegerTy(); in isIntOrIntVectorTy()
74 return cast<VectorType>(this)->getElementType()->isFloatingPointTy(); in isFPOrFPVectorTy()
92 if (const VectorType *thisPTy = dyn_cast<VectorType>(this)) { in canLosslesslyBitCastTo()
93 if (const VectorType *thatPTy = dyn_cast<VectorType>(Ty)) in canLosslesslyBitCastTo()
101 if (const VectorType *thatPTy = dyn_cast<VectorType>(Ty)) in canLosslesslyBitCastTo()
141 case Type::VectorTyID: return cast<VectorType>(this)->getBitWidth(); in getPrimitiveSizeInBits()
157 if (const VectorType *VTy = dyn_cast<VectorType>(this)) in getFPMantissaWidth()
178 if (const VectorType *VTy = dyn_cast<VectorType>(this)) in isSizedDerivedType()
630 VectorType::VectorType(Type *ElType, unsigned NumEl) in VectorType() function in VectorType
[all …]
DPass.cpp246 typedef AnalysisUsage::VectorType VectorType; typedef
247 VectorType &CFGOnlyList;
248 GetCFGOnlyPasses(VectorType &L) : CFGOnlyList(L) {} in GetCFGOnlyPasses()
DConstants.cpp109 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getIntegerValue()
127 VectorType *VTy = cast<VectorType>(Ty); in getAllOnesValue()
272 VectorType *VT = cast<VectorType>(getType()); in getVectorElements()
366 VectorType *VTy = dyn_cast<VectorType>(Ty); in getTrue()
379 VectorType *VTy = dyn_cast<VectorType>(Ty); in getFalse()
411 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
437 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
480 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
495 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
512 if (VectorType *PTy = dyn_cast<VectorType>(Ty)) in getZeroValueForNegation()
[all …]
DInstructions.cpp65 if (VectorType *VT = dyn_cast<VectorType>(Op0->getType())) { in areInvalidOperands()
69 VectorType *ET = dyn_cast<VectorType>(Op1->getType()); in areInvalidOperands()
1164 : Instruction(cast<VectorType>(Val->getType())->getElementType(), in ExtractElementInst()
1178 : Instruction(cast<VectorType>(Val->getType())->getElementType(), in ExtractElementInst()
1236 if (Elt->getType() != cast<VectorType>(Vec->getType())->getElementType()) in isValidOperands()
1252 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(), in ShuffleVectorInst()
1253 cast<VectorType>(Mask->getType())->getNumElements()), in ShuffleVectorInst()
1269 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(), in ShuffleVectorInst()
1270 cast<VectorType>(Mask->getType())->getNumElements()), in ShuffleVectorInst()
1289 VectorType *MaskTy = dyn_cast<VectorType>(Mask->getType()); in isValidOperands()
[all …]
DPassManager.cpp535 const AnalysisUsage::VectorType &IDs = AnUsage->getRequiredTransitiveSet(); in setLastUser()
538 for (AnalysisUsage::VectorType::const_iterator I = IDs.begin(), in setLastUser()
628 const AnalysisUsage::VectorType &RequiredSet = AnUsage->getRequiredSet(); in schedulePass()
629 for (AnalysisUsage::VectorType::const_iterator I = RequiredSet.begin(), in schedulePass()
810 const AnalysisUsage::VectorType &PreservedSet = AnUsage->getPreservedSet(); in preserveHigherLevelAnalysis()
831 const AnalysisUsage::VectorType &PreservedSet = AnUsage->getPreservedSet(); in verifyPreservedAnalysis()
834 for (AnalysisUsage::VectorType::const_iterator I = PreservedSet.begin(), in verifyPreservedAnalysis()
850 const AnalysisUsage::VectorType &PreservedSet = AnUsage->getPreservedSet(); in removeNotPreservedAnalysis()
1031 const AnalysisUsage::VectorType &RequiredSet = AnUsage->getRequiredSet(); in collectRequiredAnalysis()
1032 for (AnalysisUsage::VectorType::const_iterator in collectRequiredAnalysis()
[all …]
DConstantFold.cpp45 VectorType *DstTy) { in BitCastConstantVector()
136 if (VectorType *DestPTy = dyn_cast<VectorType>(DestTy)) { in FoldBitCast()
137 if (VectorType *SrcTy = dyn_cast<VectorType>(V->getType())) { in FoldBitCast()
554 cast<VectorType>(DestTy)->getNumElements() == in ConstantFoldCastInstruction()
557 VectorType *DestVecTy = cast<VectorType>(DestTy); in ConstantFoldCastInstruction()
704 VectorType *VTy = cast<VectorType>(V1->getType()); in ConstantFoldSelectInstruction()
758 return UndefValue::get(cast<VectorType>(Val->getType())->getElementType()); in ConstantFoldExtractElementInstruction()
761 cast<VectorType>(Val->getType())->getElementType()); in ConstantFoldExtractElementInstruction()
788 cast<VectorType>(Val->getType())->getNumElements(); in ConstantFoldInsertElementInstruction()
806 cast<VectorType>(Val->getType())->getNumElements(); in ConstantFoldInsertElementInstruction()
[all …]
DVerifier.cpp942 Assert1(cast<VectorType>(SrcTy)->getNumElements() == in visitUIToFPInst()
943 cast<VectorType>(DestTy)->getNumElements(), in visitUIToFPInst()
965 Assert1(cast<VectorType>(SrcTy)->getNumElements() == in visitSIToFPInst()
966 cast<VectorType>(DestTy)->getNumElements(), in visitSIToFPInst()
988 Assert1(cast<VectorType>(SrcTy)->getNumElements() == in visitFPToUIInst()
989 cast<VectorType>(DestTy)->getNumElements(), in visitFPToUIInst()
1011 Assert1(cast<VectorType>(SrcTy)->getNumElements() == in visitFPToSIInst()
1012 cast<VectorType>(DestTy)->getNumElements(), in visitFPToSIInst()
1597 VectorType *VTy = dyn_cast<VectorType>(Ty); in PerformTypeCheck()
1635 Ty = VectorType::getTruncatedElementVectorType(VTy); in PerformTypeCheck()
[all …]
DLLVMContextImpl.h152 VectorType, ConstantVector> VectorConstantsTy;
190 DenseMap<std::pair<Type *, unsigned>, VectorType*> VectorTypes;
/external/llvm/include/llvm/
DDerivedTypes.h341 class VectorType : public SequentialType {
344 VectorType(const VectorType &); // Do not implement
345 const VectorType &operator=(const VectorType &); // Do not implement
346 VectorType(Type *ElType, unsigned NumEl);
351 static VectorType *get(Type *ElementType, unsigned NumElements);
357 static VectorType *getInteger(VectorType *VTy) { in getInteger()
360 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger()
367 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType()
370 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType()
377 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType()
[all …]
DPassAnalysisSupport.h38 typedef SmallVector<AnalysisID, 32> VectorType; typedef
42 VectorType Required, RequiredTransitive, Preserved;
107 const VectorType &getRequiredSet() const { return Required; } in getRequiredSet()
108 const VectorType &getRequiredTransitiveSet() const { in getRequiredTransitiveSet()
111 const VectorType &getPreservedSet() const { return Preserved; } in getPreservedSet()
DConstants.h36 class VectorType; variable
460 friend struct ConstantCreator<ConstantVector, VectorType,
464 ConstantVector(VectorType *T, const std::vector<Constant*> &Val);
475 inline VectorType *getType() const {
476 return reinterpret_cast<VectorType*>(Value::getType());
/external/llvm/unittests/ADT/
DSmallVectorTest.cpp93 typedef SmallVector<Constructable, 4> VectorType; typedef in __anon9c5302450111::SmallVectorTest
95 VectorType theVector;
96 VectorType otherVector;
102 void assertEmpty(VectorType & v) { in assertEmpty()
112 void assertValuesInOrder(VectorType & v, size_t size, ...) { in assertValuesInOrder()
126 void makeSequence(VectorType & v, int start, int end) { in makeSequence()
247 VectorType::iterator it = theVector.begin(); in TEST_F()
265 VectorType::reverse_iterator rit = theVector.rbegin(); in TEST_F()
386 VectorType constVector; in TEST_F()
/external/webkit/Source/JavaScriptCore/runtime/
DArgList.h38 typedef Vector<Register, inlineCapacity> VectorType; typedef
42 typedef VectorType::iterator iterator;
43 typedef VectorType::const_iterator const_iterator;
153 VectorType m_vector;
/external/mesa3d/src/pixelflinger2/
Dllvm_helper.h49 static VectorType * intVecType(IRBuilder<> & builder) in intVecType()
51 return VectorType::get(Type::getInt32Ty(builder.getContext()), 4); in intVecType()
54 static VectorType * floatVecType(IRBuilder<> & builder) in floatVecType()
56 return VectorType::get(Type::getFloatTy(builder.getContext()), 4); in floatVecType()
96 const VectorType * type = (const VectorType *)vec->getType(); in extractVector()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp80 VectorType *PTy = cast<VectorType>(V->getType()); in FindScalarElement()
110 cast<VectorType>(SVI->getOperand(0)->getType())->getNumElements(); in FindScalarElement()
178 if (VectorType *VT = in visitExtractElementInst()
179 dyn_cast<VectorType>(BCI->getOperand(0)->getType())) in visitExtractElementInst()
218 cast<VectorType>(SVI->getOperand(0)->getType())->getNumElements(); in visitExtractElementInst()
254 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements(); in CollectSingleShuffleElements()
333 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements(); in CollectShuffleElements()
434 unsigned VWidth = cast<VectorType>(VecOp->getType())->getNumElements(); in visitInsertElementInst()
458 unsigned VWidth = cast<VectorType>(SVI.getType())->getNumElements(); in visitShuffleVectorInst()
460 if (VWidth != cast<VectorType>(LHS->getType())->getNumElements()) in visitShuffleVectorInst()
DInstCombineCasts.cpp968 if (VectorType *VTy = dyn_cast<VectorType>(CI.getType())) { in transformSExtICmp()
1405 static Instruction *OptimizeVectorResize(Value *InVal, VectorType *DestTy, in OptimizeVectorResize()
1410 VectorType *SrcTy = cast<VectorType>(InVal->getType()); in OptimizeVectorResize()
1421 SrcTy = VectorType::get(DestTy->getElementType(), SrcTy->getNumElements()); in OptimizeVectorResize()
1575 VectorType *DestVecTy = cast<VectorType>(CI.getType()); in OptimizeIntegerToVectorInsertions()
1609 isa<VectorType>(VecInput->getType())) { in OptimizeIntToFloatBitCast()
1610 VectorType *VecTy = cast<VectorType>(VecInput->getType()); in OptimizeIntToFloatBitCast()
1617 VecTy = VectorType::get(DestTy, in OptimizeIntToFloatBitCast()
1630 isa<VectorType>(VecInput->getType())) { in OptimizeIntToFloatBitCast()
1631 VectorType *VecTy = cast<VectorType>(VecInput->getType()); in OptimizeIntToFloatBitCast()
[all …]
DInstCombineSimplifyDemanded.cpp407 if (VectorType *DstVTy = dyn_cast<VectorType>(I->getType())) { in SimplifyDemandedUseBits()
408 if (VectorType *SrcVTy = in SimplifyDemandedUseBits()
409 dyn_cast<VectorType>(I->getOperand(0)->getType())) { in SimplifyDemandedUseBits()
812 unsigned VWidth = cast<VectorType>(V->getType())->getNumElements(); in SimplifyDemandedVectorElts()
829 Type *EltTy = cast<VectorType>(V->getType())->getElementType(); in SimplifyDemandedVectorElts()
858 Type *EltTy = cast<VectorType>(V->getType())->getElementType(); in SimplifyDemandedVectorElts()
934 cast<VectorType>(Shuffle->getOperand(0)->getType())->getNumElements(); in SimplifyDemandedVectorElts()
995 VectorType *VTy = dyn_cast<VectorType>(I->getOperand(0)->getType()); in SimplifyDemandedVectorElts()
/external/clang/lib/CodeGen/
DCGExprScalar.cpp599 unsigned NumElements = cast<llvm::VectorType>(DstTy)->getNumElements(); in EmitScalarConversion()
609 if (isa<llvm::VectorType>(Src->getType()) || in EmitScalarConversion()
610 isa<llvm::VectorType>(DstTy)) in EmitScalarConversion()
689 llvm::VectorType *LTy = cast<llvm::VectorType>(LHS->getType()); in VisitShuffleVectorExpr()
709 llvm::VectorType *MTy = cast<llvm::VectorType>(Mask->getType()); in VisitShuffleVectorExpr()
737 llvm::VectorType *RTy = llvm::VectorType::get(LTy->getElementType(), in VisitShuffleVectorExpr()
763 llvm::VectorType *VTy = cast<llvm::VectorType>(V1->getType()); in VisitShuffleVectorExpr()
834 llvm::VectorType *VType = in VisitInitListExpr()
835 dyn_cast<llvm::VectorType>(ConvertType(E->getType())); in VisitInitListExpr()
856 llvm::VectorType *VVT = dyn_cast<llvm::VectorType>(Init->getType()); in VisitInitListExpr()
[all …]
/external/clang/lib/AST/
DTypePrinter.cpp354 void TypePrinter::printVector(const VectorType *T, std::string &S) { in printVector()
356 case VectorType::AltiVecPixel: in printVector()
359 case VectorType::AltiVecBool: in printVector()
363 case VectorType::AltiVecVector: in printVector()
367 case VectorType::NeonVector: in printVector()
372 case VectorType::NeonPolyVector: in printVector()
377 case VectorType::GenericVector: { in printVector()
866 if (const VectorType *vector =T->getEquivalentType()->getAs<VectorType>()) { in printAttributed()
885 const VectorType *vector = T->getEquivalentType()->getAs<VectorType>(); in printAttributed()
DType.cpp130 VectorType::VectorType(QualType vecType, unsigned nElements, QualType canonType, in VectorType() function in VectorType
142 VectorType::VectorType(TypeClass tc, QualType vecType, unsigned nElements, in VectorType() function in VectorType
519 AutoType *VisitVectorType(const VectorType *T) { in VisitVectorType()
550 if (const VectorType *VT = dyn_cast<VectorType>(CanonicalType)) in hasIntegerRepresentation()
691 if (const VectorType *VT = dyn_cast<VectorType>(CanonicalType)) in hasSignedIntegerRepresentation()
731 if (const VectorType *VT = dyn_cast<VectorType>(CanonicalType)) in hasUnsignedIntegerRepresentation()
747 if (const VectorType *VT = dyn_cast<VectorType>(CanonicalType)) in hasFloatingRepresentation()
2065 return Cache::get(cast<VectorType>(T)->getElementType()); in computeCachedProperties()
/external/llvm/unittests/VMCore/
DInstructionsTest.cpp116 Type* V8x8Ty = VectorType::get(Int8Ty, 8); in TEST()
117 Type* V8x64Ty = VectorType::get(Int64Ty, 8); in TEST()
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp256 VectorType *VectorTy;
273 bool MergeInVectorType(VectorType *VInTy, uint64_t Offset);
358 if (VectorType *VInTy = dyn_cast<VectorType>(In)) { in MergeInTypeForLoadOrStore()
377 VectorTy = VectorType::get(In, AllocaSize/EltSize); in MergeInTypeForLoadOrStore()
398 bool ConvertToScalarInfo::MergeInVectorType(VectorType *VInTy, in MergeInVectorType()
718 cast<VectorType>(Ty1)->getElementType()->isFloatingPointTy()); in getScaledElementType()
721 cast<VectorType>(Ty2)->getElementType()->isFloatingPointTy()); in getScaledElementType()
743 VectorType *FromVTy = cast<VectorType>(FromType); in CreateShuffleVectorCast()
744 VectorType *ToVTy = cast<VectorType>(ToType); in CreateShuffleVectorCast()
787 if (VectorType *VTy = dyn_cast<VectorType>(FromType)) { in ConvertScalar_ExtractValue()
[all …]
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp679 ResultTy = VectorType::get(ResultTy, Record[0]); in ParseTypeTableBody()
864 ResultTy = VectorType::get(ResultTy, Record[0]); in ParseOldTypeTable()
1263 } else if (VectorType *VTy = dyn_cast<VectorType>(CurTy)) { in ParseConstants()
1371 VectorType *OpTy = in ParseConstants()
1372 dyn_cast_or_null<VectorType>(getTypeByID(Record[0])); in ParseConstants()
1380 VectorType *OpTy = dyn_cast<VectorType>(CurTy); in ParseConstants()
1391 VectorType *OpTy = dyn_cast<VectorType>(CurTy); in ParseConstants()
1396 Type *ShufTy = VectorType::get(Type::getInt32Ty(Context), in ParseConstants()
1403 VectorType *RTy = dyn_cast<VectorType>(CurTy); in ParseConstants()
1404 VectorType *OpTy = in ParseConstants()
[all …]
/external/mesa3d/src/glsl/
Dir_to_llvm.cpp111 …llvm::PointerType * const floatVecPtrType = llvm::PointerType::get(llvm::VectorType::get(bld.getFl… in ir_to_llvm_visitor()
165 return llvm::VectorType::get(base_type, type->vector_elements); in llvm_vec_type()
292 …llvm::PointerType * vecPtrTy = llvm::PointerType::get(llvm::VectorType::get(bld.getFloatTy(), 4), … in llvm_function()
427 values.push_back(llvm_imm(((llvm::VectorType*)type)->getElementType(), v)); in llvm_imm()
428 for(unsigned i = 1; i < ((llvm::VectorType*)type)->getNumElements(); ++i) in llvm_imm()
627 …llvm::VectorType * vectorType = llvm::VectorType::get(llvm_base_type(ir->operands[1]->type->base_t… in llvm_expression()
925 unsigned width = ((llvm::VectorType*)coordinate->getType())->getNumElements(); in visit()
1191 val_width = ((llvm::VectorType*)val->getType())->getNumElements(); in llvm_shuffle()
1192 elem_type = ((llvm::VectorType*)val->getType())->getElementType(); in llvm_shuffle()
1195 res_type = llvm::VectorType::get(elem_type, res_width); in llvm_shuffle()

1234