Home
last modified time | relevance | path

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

1234

/external/llvm/lib/VMCore/
DValueTypes.cpp38 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements); in getExtendedVectorVT()
76 return EVT::getEVT(cast<VectorType>(LLVMTy)->getElementType()); in getExtendedVectorElementType()
81 return cast<VectorType>(LLVMTy)->getNumElements(); in getExtendedVectorNumElements()
88 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits()
168 case MVT::v2i8: return VectorType::get(Type::getInt8Ty(Context), 2); in getTypeForEVT()
169 case MVT::v4i8: return VectorType::get(Type::getInt8Ty(Context), 4); in getTypeForEVT()
170 case MVT::v8i8: return VectorType::get(Type::getInt8Ty(Context), 8); in getTypeForEVT()
171 case MVT::v16i8: return VectorType::get(Type::getInt8Ty(Context), 16); in getTypeForEVT()
172 case MVT::v32i8: return VectorType::get(Type::getInt8Ty(Context), 32); in getTypeForEVT()
173 case MVT::v2i16: return VectorType::get(Type::getInt16Ty(Context), 2); in getTypeForEVT()
[all …]
DType.cpp45 if (VectorType *VTy = dyn_cast<VectorType>(this)) in getScalarType()
63 return cast<VectorType>(this)->getElementType()->isIntegerTy(); in isIntOrIntVectorTy()
76 return cast<VectorType>(this)->getElementType()->isFloatingPointTy(); in isFPOrFPVectorTy()
94 if (const VectorType *thisPTy = dyn_cast<VectorType>(this)) { in canLosslesslyBitCastTo()
95 if (const VectorType *thatPTy = dyn_cast<VectorType>(Ty)) in canLosslesslyBitCastTo()
103 if (const VectorType *thatPTy = dyn_cast<VectorType>(Ty)) in canLosslesslyBitCastTo()
144 case Type::VectorTyID: return cast<VectorType>(this)->getBitWidth(); in getPrimitiveSizeInBits()
160 if (const VectorType *VTy = dyn_cast<VectorType>(this)) in getFPMantissaWidth()
182 if (const VectorType *VTy = dyn_cast<VectorType>(this)) in isSizedDerivedType()
234 return cast<VectorType>(this)->getNumElements(); in getVectorNumElements()
[all …]
DPass.cpp250 typedef AnalysisUsage::VectorType VectorType; typedef
251 VectorType &CFGOnlyList;
252 GetCFGOnlyPasses(VectorType &L) : CFGOnlyList(L) {} in GetCFGOnlyPasses()
DConstants.cpp135 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getIntegerValue()
152 VectorType *VTy = cast<VectorType>(Ty); in getAllOnesValue()
394 VectorType *VTy = dyn_cast<VectorType>(Ty); in getTrue()
406 VectorType *VTy = dyn_cast<VectorType>(Ty); in getFalse()
437 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
462 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
508 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
522 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
541 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getZeroValueForNegation()
855 ConstantVector::ConstantVector(VectorType *T, ArrayRef<Constant *> V) in ConstantVector()
[all …]
DInstructions.cpp65 if (VectorType *VT = dyn_cast<VectorType>(Op0->getType())) { in areInvalidOperands()
69 VectorType *ET = dyn_cast<VectorType>(Op1->getType()); in areInvalidOperands()
1336 cast<VectorType>(Ptr)->getElementType()); in getIndexedTypeInternal()
1381 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getAddressSpace()
1430 : Instruction(cast<VectorType>(Val->getType())->getElementType(), in ExtractElementInst()
1444 : Instruction(cast<VectorType>(Val->getType())->getElementType(), in ExtractElementInst()
1502 if (Elt->getType() != cast<VectorType>(Vec->getType())->getElementType()) in isValidOperands()
1518 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(), in ShuffleVectorInst()
1519 cast<VectorType>(Mask->getType())->getNumElements()), in ShuffleVectorInst()
1535 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(), in ShuffleVectorInst()
[all …]
DVerifier.cpp950 Assert1(cast<VectorType>(SrcTy)->getNumElements() == in visitUIToFPInst()
951 cast<VectorType>(DestTy)->getNumElements(), in visitUIToFPInst()
973 Assert1(cast<VectorType>(SrcTy)->getNumElements() == in visitSIToFPInst()
974 cast<VectorType>(DestTy)->getNumElements(), in visitSIToFPInst()
996 Assert1(cast<VectorType>(SrcTy)->getNumElements() == in visitFPToUIInst()
997 cast<VectorType>(DestTy)->getNumElements(), in visitFPToUIInst()
1019 Assert1(cast<VectorType>(SrcTy)->getNumElements() == in visitFPToSIInst()
1020 cast<VectorType>(DestTy)->getNumElements(), in visitFPToSIInst()
1039 VectorType *VSrc = dyn_cast<VectorType>(SrcTy); in visitPtrToIntInst()
1040 VectorType *VDest = dyn_cast<VectorType>(DestTy); in visitPtrToIntInst()
[all …]
DPassManager.cpp497 const AnalysisUsage::VectorType &IDs = AnUsage->getRequiredTransitiveSet(); in setLastUser()
500 for (AnalysisUsage::VectorType::const_iterator I = IDs.begin(), in setLastUser()
590 const AnalysisUsage::VectorType &RequiredSet = AnUsage->getRequiredSet(); in schedulePass()
591 for (AnalysisUsage::VectorType::const_iterator I = RequiredSet.begin(), in schedulePass()
797 const AnalysisUsage::VectorType &PreservedSet = AnUsage->getPreservedSet(); in preserveHigherLevelAnalysis()
818 const AnalysisUsage::VectorType &PreservedSet = AnUsage->getPreservedSet(); in verifyPreservedAnalysis()
821 for (AnalysisUsage::VectorType::const_iterator I = PreservedSet.begin(), in verifyPreservedAnalysis()
837 const AnalysisUsage::VectorType &PreservedSet = AnUsage->getPreservedSet(); in removeNotPreservedAnalysis()
1018 const AnalysisUsage::VectorType &RequiredSet = AnUsage->getRequiredSet(); in collectRequiredAnalysis()
1019 for (AnalysisUsage::VectorType::const_iterator in collectRequiredAnalysis()
[all …]
DConstantFold.cpp44 static Constant *BitCastConstantVector(Constant *CV, VectorType *DstTy) { in BitCastConstantVector()
134 if (VectorType *DestPTy = dyn_cast<VectorType>(DestTy)) { in FoldBitCast()
135 if (VectorType *SrcTy = dyn_cast<VectorType>(V->getType())) { in FoldBitCast()
554 VectorType *DestVecTy = cast<VectorType>(DestTy); in ConstantFoldCastInstruction()
786 return UndefValue::get(VectorType::get(EltTy, MaskNumElts)); in ConstantFoldShuffleVectorInstruction()
1130 } else if (VectorType *VTy = dyn_cast<VectorType>(C1->getType())) { in ConstantFoldBinaryInstruction()
1571 if (VectorType *VT = dyn_cast<VectorType>(C1->getType())) in ConstantFoldCompareInstruction()
1572 ResultTy = VectorType::get(Type::getInt1Ty(C1->getContext()), in ConstantFoldCompareInstruction()
/external/llvm/include/llvm/
DDerivedTypes.h363 class VectorType : public SequentialType {
366 VectorType(const VectorType &); // Do not implement
367 const VectorType &operator=(const VectorType &); // Do not implement
368 VectorType(Type *ElType, unsigned NumEl);
373 static VectorType *get(Type *ElementType, unsigned NumElements);
379 static VectorType *getInteger(VectorType *VTy) { in getInteger()
383 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger()
390 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType()
393 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType()
400 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType()
[all …]
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()
DConstants.h36 class VectorType; variable
447 friend struct ConstantArrayCreator<ConstantVector, VectorType>;
450 ConstantVector(VectorType *T, ArrayRef<Constant *> Val);
465 inline VectorType *getType() const {
466 return reinterpret_cast<VectorType*>(Value::getType());
746 inline VectorType *getType() const {
747 return reinterpret_cast<VectorType*>(Value::getType());
/external/llvm/unittests/ADT/
DSmallVectorTest.cpp93 typedef SmallVector<Constructable, 4> VectorType; typedef in __anonb1b990e60111::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/unittests/VMCore/
DInstructionsTest.cpp121 Type* V8x8Ty = VectorType::get(Int8Ty, 8); in TEST()
122 Type* V8x64Ty = VectorType::get(Int64Ty, 8); in TEST()
146 VectorType *V2xi8PTy = VectorType::get(Ptri8Ty, 2); in TEST()
147 VectorType *V2xi32PTy = VectorType::get(Ptri32Ty, 2); in TEST()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp61 VectorType *VTy = cast<VectorType>(V->getType()); in FindScalarElement()
138 if (VectorType *VT = dyn_cast<VectorType>(BCI->getOperand(0)->getType())) in visitExtractElementInst()
213 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements(); in CollectSingleShuffleElements()
292 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements(); in CollectShuffleElements()
397 unsigned VWidth = cast<VectorType>(VecOp->getType())->getNumElements(); in visitInsertElementInst()
421 unsigned VWidth = cast<VectorType>(SVI.getType())->getNumElements(); in visitShuffleVectorInst()
433 unsigned LHSWidth = cast<VectorType>(LHS->getType())->getNumElements(); in visitShuffleVectorInst()
551 LHSOp0Width = cast<VectorType>(LHSOp0->getType())->getNumElements(); in visitShuffleVectorInst()
555 RHSOp0Width = cast<VectorType>(RHSOp0->getType())->getNumElements(); in visitShuffleVectorInst()
DInstCombineCasts.cpp962 if (VectorType *VTy = dyn_cast<VectorType>(CI.getType())) { in transformSExtICmp()
1398 static Instruction *OptimizeVectorResize(Value *InVal, VectorType *DestTy, in OptimizeVectorResize()
1403 VectorType *SrcTy = cast<VectorType>(InVal->getType()); in OptimizeVectorResize()
1414 SrcTy = VectorType::get(DestTy->getElementType(), SrcTy->getNumElements()); in OptimizeVectorResize()
1569 VectorType *DestVecTy = cast<VectorType>(CI.getType()); in OptimizeIntegerToVectorInsertions()
1603 isa<VectorType>(VecInput->getType())) { in OptimizeIntToFloatBitCast()
1604 VectorType *VecTy = cast<VectorType>(VecInput->getType()); in OptimizeIntToFloatBitCast()
1611 VecTy = VectorType::get(DestTy, in OptimizeIntToFloatBitCast()
1624 isa<VectorType>(VecInput->getType())) { in OptimizeIntToFloatBitCast()
1625 VectorType *VecTy = cast<VectorType>(VecInput->getType()); in OptimizeIntToFloatBitCast()
[all …]
DInstCombineSimplifyDemanded.cpp400 if (VectorType *DstVTy = dyn_cast<VectorType>(I->getType())) { in SimplifyDemandedUseBits()
401 if (VectorType *SrcVTy = in SimplifyDemandedUseBits()
402 dyn_cast<VectorType>(I->getOperand(0)->getType())) { in SimplifyDemandedUseBits()
815 unsigned VWidth = cast<VectorType>(V->getType())->getNumElements(); in SimplifyDemandedVectorElts()
839 Type *EltTy = cast<VectorType>(V->getType())->getElementType(); in SimplifyDemandedVectorElts()
930 cast<VectorType>(Shuffle->getOperand(0)->getType())->getNumElements(); in SimplifyDemandedVectorElts()
994 VectorType *VTy = dyn_cast<VectorType>(I->getOperand(0)->getType()); in SimplifyDemandedVectorElts()
/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp170 VectorType *VTp = cast<VectorType>(Tp); in getRandomValue()
232 return VectorType::get(Ty, width); in pickVectorType()
415 Ran->Rand() % cast<VectorType>(Val0->getType())->getNumElements()), in Act()
428 unsigned Width = cast<VectorType>(Val0->getType())->getNumElements(); in Act()
458 Ran->Rand() % cast<VectorType>(Val0->getType())->getNumElements()), in Act()
475 VectorType *VecTy = cast<VectorType>(VTy); in Act()
564 unsigned NumElem = cast<VectorType>(Val0->getType())->getNumElements(); in Act()
565 CondTy = VectorType::get(CondTy, NumElem); in Act()
/external/clang/lib/CodeGen/
DCGExprScalar.cpp607 unsigned NumElements = cast<llvm::VectorType>(DstTy)->getNumElements(); in EmitScalarConversion()
615 if (isa<llvm::VectorType>(SrcTy) || in EmitScalarConversion()
616 isa<llvm::VectorType>(DstTy)) in EmitScalarConversion()
708 llvm::VectorType *LTy = cast<llvm::VectorType>(LHS->getType()); in VisitShuffleVectorExpr()
728 llvm::VectorType *MTy = cast<llvm::VectorType>(Mask->getType()); in VisitShuffleVectorExpr()
753 llvm::VectorType *RTy = llvm::VectorType::get(LTy->getElementType(), in VisitShuffleVectorExpr()
779 llvm::VectorType *VTy = cast<llvm::VectorType>(V1->getType()); in VisitShuffleVectorExpr()
850 llvm::VectorType *VType = in VisitInitListExpr()
851 dyn_cast<llvm::VectorType>(ConvertType(E->getType())); in VisitInitListExpr()
877 llvm::VectorType *VVT = dyn_cast<llvm::VectorType>(Init->getType()); in VisitInitListExpr()
[all …]
/external/clang/lib/AST/
DTypePrinter.cpp356 void TypePrinter::printVector(const VectorType *T, std::string &S) { in printVector()
358 case VectorType::AltiVecPixel: in printVector()
361 case VectorType::AltiVecBool: in printVector()
365 case VectorType::AltiVecVector: in printVector()
369 case VectorType::NeonVector: in printVector()
374 case VectorType::NeonPolyVector: in printVector()
379 case VectorType::GenericVector: { in printVector()
896 if (const VectorType *vector =T->getEquivalentType()->getAs<VectorType>()) { in printAttributed()
915 const VectorType *vector = T->getEquivalentType()->getAs<VectorType>(); in printAttributed()
DType.cpp150 VectorType::VectorType(QualType vecType, unsigned nElements, QualType canonType, in VectorType() function in VectorType
162 VectorType::VectorType(TypeClass tc, QualType vecType, unsigned nElements, in VectorType() function in VectorType
533 AutoType *VisitVectorType(const VectorType *T) { in VisitVectorType()
553 if (const VectorType *VT = dyn_cast<VectorType>(CanonicalType)) in hasIntegerRepresentation()
689 if (const VectorType *VT = dyn_cast<VectorType>(CanonicalType)) in hasSignedIntegerRepresentation()
729 if (const VectorType *VT = dyn_cast<VectorType>(CanonicalType)) in hasUnsignedIntegerRepresentation()
745 if (const VectorType *VT = dyn_cast<VectorType>(CanonicalType)) in hasFloatingRepresentation()
2062 return Cache::get(cast<VectorType>(T)->getElementType()); in computeCachedProperties()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp741 ResultTy = VectorType::get(ResultTy, Record[0]); in ParseTypeTableBody()
1086 } else if (VectorType *VTy = dyn_cast<VectorType>(CurTy)) { in ParseConstants()
1118 if (isa<VectorType>(CurTy)) in ParseConstants()
1124 if (isa<VectorType>(CurTy)) in ParseConstants()
1130 if (isa<VectorType>(CurTy)) in ParseConstants()
1136 if (isa<VectorType>(CurTy)) in ParseConstants()
1147 if (isa<VectorType>(CurTy)) in ParseConstants()
1158 if (isa<VectorType>(CurTy)) in ParseConstants()
1235 VectorType *OpTy = in ParseConstants()
1236 dyn_cast_or_null<VectorType>(getTypeByID(Record[0])); 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()
1203 val_width = ((llvm::VectorType*)val->getType())->getNumElements(); in llvm_shuffle()
1204 elem_type = ((llvm::VectorType*)val->getType())->getElementType(); in llvm_shuffle()
1207 res_type = llvm::VectorType::get(elem_type, res_width); in llvm_shuffle()
/external/llvm/lib/Transforms/Vectorize/
DBBVectorize.cpp346 static inline VectorType *getVecTypeForPair(Type *ElemTy) { in getVecTypeForPair()
347 if (VectorType *VTy = dyn_cast<VectorType>(ElemTy)) { in getVecTypeForPair()
349 return VectorType::get(ElemTy->getScalarType(), numElem*2); in getVecTypeForPair()
352 return VectorType::get(ElemTy, 2); in getVecTypeForPair()
603 if (!(VectorType::isValidElementType(T1) || T1->isVectorTy()) || in isInstVectorizable()
604 !(VectorType::isValidElementType(T2) || T2->isVectorTy())) in isInstVectorizable()
1488 unsigned NumElem = cast<VectorType>(VArgType)->getNumElements(); in getReplacementShuffleMask()
1492 unsigned NumInElem = cast<VectorType>(OpType)->getNumElements(); in getReplacementShuffleMask()
1513 VectorType *VArgType = getVecTypeForPair(ArgType); in getReplacementInput()
1522 unsigned numElem = cast<VectorType>(VArgType)->getNumElements(); in getReplacementInput()
[all …]

1234