Searched refs:VectorType (Results 1 - 25 of 96) sorted by relevance

1234

/external/llvm/lib/VMCore/
H A DValueTypes.cpp38 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements);
80 return EVT::getEVT(cast<VectorType>(LLVMTy)->getElementType());
85 return cast<VectorType>(LLVMTy)->getNumElements();
92 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy))
174 case MVT::v2i8: return VectorType::get(Type::getInt8Ty(Context), 2);
175 case MVT::v4i8: return VectorType::get(Type::getInt8Ty(Context), 4);
176 case MVT::v8i8: return VectorType::get(Type::getInt8Ty(Context), 8);
177 case MVT::v16i8: return VectorType::get(Type::getInt8Ty(Context), 16);
178 case MVT::v32i8: return VectorType
[all...]
H A DPass.cpp250 typedef AnalysisUsage::VectorType VectorType; typedef in struct:__anon9173::GetCFGOnlyPasses
251 VectorType &CFGOnlyList;
252 GetCFGOnlyPasses(VectorType &L) : CFGOnlyList(L) {}
H A DType.cpp45 if (VectorType *VTy = dyn_cast<VectorType>(this))
63 return cast<VectorType>(this)->getElementType()->isIntegerTy();
76 return cast<VectorType>(this)->getElementType()->isFloatingPointTy();
94 if (const VectorType *thisPTy = dyn_cast<VectorType>(this)) {
95 if (const VectorType *thatPTy = dyn_cast<VectorType>(Ty))
103 if (const VectorType *thatPTy = dyn_cast<VectorType>(T
726 VectorType::VectorType(Type *ElType, unsigned NumEl) function in class:VectorType
[all...]
H A DInstructions.cpp65 if (VectorType *VT = dyn_cast<VectorType>(Op0->getType())) {
69 VectorType *ET = dyn_cast<VectorType>(Op1->getType());
1342 cast<VectorType>(Ptr)->getElementType());
1387 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
1436 : Instruction(cast<VectorType>(Val->getType())->getElementType(),
1450 : Instruction(cast<VectorType>(Val->getType())->getElementType(),
1508 if (Elt->getType() != cast<VectorType>(Ve
[all...]
H A DVerifier.cpp967 Assert1(cast<VectorType>(SrcTy)->getNumElements() ==
968 cast<VectorType>(DestTy)->getNumElements(),
990 Assert1(cast<VectorType>(SrcTy)->getNumElements() ==
991 cast<VectorType>(DestTy)->getNumElements(),
1013 Assert1(cast<VectorType>(SrcTy)->getNumElements() ==
1014 cast<VectorType>(DestTy)->getNumElements(),
1036 Assert1(cast<VectorType>(SrcTy)->getNumElements() ==
1037 cast<VectorType>(DestTy)->getNumElements(),
1056 VectorType *VSrc = dyn_cast<VectorType>(SrcT
[all...]
H A DConstants.cpp135 if (VectorType *VTy = dyn_cast<VectorType>(Ty))
152 VectorType *VTy = cast<VectorType>(Ty);
394 VectorType *VTy = dyn_cast<VectorType>(Ty);
406 VectorType *VTy = dyn_cast<VectorType>(Ty);
437 if (VectorType *VTy = dyn_cast<VectorType>(T
[all...]
H A DAutoUpgrade.cpp35 if (Arg0Type != VectorType::get(Type::getFloatTy(F->getContext()), 4))
348 if (Arg0->getType() != VectorType::get(Type::getFloatTy(C), 4))
356 VectorType::get(Type::getInt64Ty(C), 2),
360 VectorType::get(Type::getInt64Ty(C), 2),
H A DPassManager.cpp496 const AnalysisUsage::VectorType &IDs = AnUsage->getRequiredTransitiveSet();
499 for (AnalysisUsage::VectorType::const_iterator I = IDs.begin(),
589 const AnalysisUsage::VectorType &RequiredSet = AnUsage->getRequiredSet();
590 for (AnalysisUsage::VectorType::const_iterator I = RequiredSet.begin(),
602 for (AnalysisUsage::VectorType::const_iterator I2 = RequiredSet.begin(),
816 const AnalysisUsage::VectorType &PreservedSet = AnUsage->getPreservedSet();
837 const AnalysisUsage::VectorType &PreservedSet = AnUsage->getPreservedSet();
840 for (AnalysisUsage::VectorType::const_iterator I = PreservedSet.begin(),
856 const AnalysisUsage::VectorType &PreservedSet = AnUsage->getPreservedSet();
1037 const AnalysisUsage::VectorType
[all...]
H A DFunction.cpp553 return VectorType::get(DecodeFixedType(Infos, Tys, Context),D.Vector_Width);
568 return VectorType::getExtendedElementVectorType(cast<VectorType>(
572 return VectorType::getTruncatedElementVectorType(cast<VectorType>(
/external/llvm/include/llvm/
H A DDerivedTypes.h144 /// and VectorType.
361 /// VectorType - Class to represent vector types.
363 class VectorType : public SequentialType { class in namespace:llvm
366 VectorType(const VectorType &); // Do not implement
367 const VectorType &operator=(const VectorType &); // Do not implement
368 VectorType(Type *ElType, unsigned NumEl);
370 /// VectorType::get - This static method is the primary way to construct an
371 /// VectorType
[all...]
H A DPassAnalysisSupport.h39 typedef SmallVector<AnalysisID, 32> VectorType; typedef in class:llvm::AnalysisUsage
43 VectorType Required, RequiredTransitive, Preserved;
108 const VectorType &getRequiredSet() const { return Required; }
109 const VectorType &getRequiredTransitiveSet() const {
112 const VectorType &getPreservedSet() const { return Preserved; }
H A DConstants.h36 class VectorType;
447 friend struct ConstantArrayCreator<ConstantVector, VectorType>;
450 ConstantVector(VectorType *T, ArrayRef<Constant *> Val);
462 /// getType - Specialize the getType() method to always return a VectorType,
465 inline VectorType *getType() const {
466 return reinterpret_cast<VectorType*>(Value::getType());
743 /// getType - Specialize the getType() method to always return a VectorType,
746 inline VectorType *getType() const {
747 return reinterpret_cast<VectorType*>(Value::getType());
/external/webkit/Source/JavaScriptCore/runtime/
H A DArgList.h38 typedef Vector<Register, inlineCapacity> VectorType; typedef in class:JSC::MarkedArgumentBuffer
42 typedef VectorType::iterator iterator;
43 typedef VectorType::const_iterator const_iterator;
153 VectorType m_vector;
/external/llvm/unittests/VMCore/
H A DInstructionsTest.cpp121 Type* V8x8Ty = VectorType::get(Int8Ty, 8);
122 Type* V8x64Ty = VectorType::get(Int64Ty, 8);
146 VectorType *V2xi8PTy = VectorType::get(Ptri8Ty, 2);
147 VectorType *V2xi32PTy = VectorType::get(Ptri32Ty, 2);
/external/mesa3d/src/pixelflinger2/
H A Dllvm_helper.h49 static VectorType * intVecType(IRBuilder<> & builder)
51 return VectorType::get(Type::getInt32Ty(builder.getContext()), 4);
54 static VectorType * floatVecType(IRBuilder<> & builder)
56 return VectorType::get(Type::getFloatTy(builder.getContext()), 4);
96 const VectorType * type = (const VectorType *)vec->getType();
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp960 if (VectorType *VTy = dyn_cast<VectorType>(CI.getType())) {
1392 static Instruction *OptimizeVectorResize(Value *InVal, VectorType *DestTy,
1397 VectorType *SrcTy = cast<VectorType>(InVal->getType());
1408 SrcTy = VectorType::get(DestTy->getElementType(), SrcTy->getNumElements());
1563 VectorType *DestVecTy = cast<VectorType>(CI.getType());
1597 isa<VectorType>(VecInput->getType())) {
1598 VectorType *VecT
[all...]
H A DInstCombineVectorOps.cpp61 VectorType *VTy = cast<VectorType>(V->getType());
138 if (VectorType *VT = dyn_cast<VectorType>(BCI->getOperand(0)->getType()))
213 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements();
292 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements();
397 unsigned VWidth = cast<VectorType>(VecOp->getType())->getNumElements();
421 unsigned VWidth = cast<VectorType>(SVI.getType())->getNumElements();
433 unsigned LHSWidth = cast<VectorType>(LHS->getType())->getNumElements();
551 LHSOp0Width = cast<VectorType>(LHSOp
[all...]
H A DInstCombineSimplifyDemanded.cpp400 if (VectorType *DstVTy = dyn_cast<VectorType>(I->getType())) {
401 if (VectorType *SrcVTy =
402 dyn_cast<VectorType>(I->getOperand(0)->getType())) {
815 unsigned VWidth = cast<VectorType>(V->getType())->getNumElements();
839 Type *EltTy = cast<VectorType>(V->getType())->getElementType();
930 cast<VectorType>(Shuffle->getOperand(0)->getType())->getNumElements();
1017 VectorType *VTy = dyn_cast<VectorType>(I->getOperand(0)->getType());
/external/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp176 VectorType *VTp = cast<VectorType>(Tp);
238 return VectorType::get(Ty, width);
421 Ran->Rand() % cast<VectorType>(Val0->getType())->getNumElements()),
434 unsigned Width = cast<VectorType>(Val0->getType())->getNumElements();
464 Ran->Rand() % cast<VectorType>(Val0->getType())->getNumElements()),
481 VectorType *VecTy = cast<VectorType>(VTy);
570 unsigned NumElem = cast<VectorType>(Val0->getType())->getNumElements();
571 CondTy = VectorType
[all...]
/external/llvm/lib/CodeGen/
H A DAnalysis.cpp233 if (isa<VectorType>(Op->getType()) && isa<VectorType>(I->getType()) &&
240 if (isa<IntToPtrInst>(I) && !isa<VectorType>(I->getType())) {
249 if (isa<PtrToIntInst>(I) && !isa<VectorType>(I->getType())) {
/external/clang/lib/CodeGen/
H A DCGExprScalar.cpp605 unsigned NumElements = cast<llvm::VectorType>(DstTy)->getNumElements();
613 if (isa<llvm::VectorType>(SrcTy) ||
614 isa<llvm::VectorType>(DstTy))
706 llvm::VectorType *LTy = cast<llvm::VectorType>(LHS->getType());
726 llvm::VectorType *MTy = cast<llvm::VectorType>(Mask->getType());
751 llvm::VectorType *RTy = llvm::VectorType::get(LTy->getElementType(),
777 llvm::VectorType *VT
[all...]
/external/webkit/Source/JavaScriptCore/wtf/
H A DHashCountedSet.h197 template<typename Value, typename HashFunctions, typename Traits, typename VectorType>
198 inline void copyToVector(const HashCountedSet<Value, HashFunctions, Traits>& collection, VectorType& vector)
/external/clang/lib/AST/
H A DType.cpp150 VectorType::VectorType(QualType vecType, unsigned nElements, QualType canonType, function in class:VectorType
162 VectorType::VectorType(TypeClass tc, QualType vecType, unsigned nElements, function in class:VectorType
561 AutoType *VisitVectorType(const VectorType *T) {
581 if (const VectorType *VT = dyn_cast<VectorType>(CanonicalType))
717 if (const VectorType *VT = dyn_cast<VectorType>(CanonicalType))
757 if (const VectorType *V
[all...]
H A DTypePrinter.cpp506 void TypePrinter::printVectorBefore(const VectorType *T, raw_ostream &OS) {
508 case VectorType::AltiVecPixel:
511 case VectorType::AltiVecBool:
515 case VectorType::AltiVecVector:
519 case VectorType::NeonVector:
524 case VectorType::NeonPolyVector:
529 case VectorType::GenericVector: {
542 void TypePrinter::printVectorAfter(const VectorType *T, raw_ostream &OS) {
1090 if (const VectorType *vector =T->getEquivalentType()->getAs<VectorType>()) {
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DScalarReplAggregates.cpp291 VectorType *VectorTy;
315 bool MergeInVectorType(VectorType *VInTy, uint64_t Offset);
408 if (VectorType *VInTy = dyn_cast<VectorType>(In)) {
428 VectorTy = VectorType::get(In, AllocaSize/EltSize);
441 bool ConvertToScalarInfo::MergeInVectorType(VectorType *VInTy,
513 if (!isa<VectorType>(PtrTy->getElementType()))
772 if (VectorType *VTy = dyn_cast<VectorType>(FromType)) {
904 if (VectorType *VT
[all...]

Completed in 441 milliseconds

1234