Home
last modified time | relevance | path

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

12345678

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DDerivedTypes.h391 class VectorType : public Type {
418 VectorType(Type *ElType, unsigned EQ, Type::TypeID TID);
421 VectorType(const VectorType &) = delete;
422 VectorType &operator=(const VectorType &) = delete;
427 static VectorType *get(Type *ElementType, ElementCount EC);
429 static VectorType *get(Type *ElementType, unsigned NumElements, in get()
431 return VectorType::get(ElementType, in get()
435 static VectorType *get(Type *ElementType, const VectorType *Other) { in get()
436 return VectorType::get(ElementType, Other->getElementCount()); in get()
442 static VectorType *getInteger(VectorType *VTy) { in getInteger()
[all …]
H A DMatrixBuilder.h45 cast<VectorType>(LHS->getType())->getElementCount(), RHS, in splatScalarOperandIfNeeded()
51 cast<VectorType>(RHS->getType())->getElementCount(), LHS, in splatScalarOperandIfNeeded()
116 auto *OpType = cast<VectorType>(Matrix->getType());
133 auto *LHSType = cast<VectorType>(LHS->getType());
134 auto *RHSType = cast<VectorType>(RHS->getType());
167 cast<VectorType>(LHS->getType())->getElementCount(), RHS, in CreateAdd()
173 cast<VectorType>(RHS->getType())->getElementCount(), LHS, in CreateAdd()
177 return cast<VectorType>(LHS->getType()) in CreateAdd()
192 cast<VectorType>(LHS->getType())->getElementCount(), RHS, in CreateSub()
198 cast<VectorType>(RHS->getType())->getElementCount(), LHS, in CreateSub()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DOpenCLBuiltins.td118 // Its child classes can represent concrete types (e.g. VectorType) or
142 class VectorType<Type _Ty, int _VecWidth> : Type<_Ty.Name, _Ty.QTExpr> {
455 [VectorType<RType, v>, VectorType<IType, v>],
721 …def : Builtin<name, [VectorType<Float, VSize>, VectorType<Float, VSize>, VectorType<Float, VSize>]…
722 …def : Builtin<name, [VectorType<Double, VSize>, VectorType<Double, VSize>, VectorType<Double, VSiz…
723 …def : Builtin<name, [VectorType<Half, VSize>, VectorType<Half, VSize>, VectorType<Half, VSize>], A…
791 def : Builtin<name, [VectorType<Char, VSize>, Size, PointerType<ConstType<Char>, AS>]>;
792 def : Builtin<name, [VectorType<UChar, VSize>, Size, PointerType<ConstType<UChar>, AS>]>;
793 def : Builtin<name, [VectorType<Short, VSize>, Size, PointerType<ConstType<Short>, AS>]>;
794 def : Builtin<name, [VectorType<UShort, VSize>, Size, PointerType<ConstType<UShort>, AS>]>;
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DMapVector.h36 typename VectorType = std::vector<std::pair<KeyT, ValueT>>>
39 VectorType Vector;
46 using value_type = typename VectorType::value_type;
47 using size_type = typename VectorType::size_type;
49 using iterator = typename VectorType::iterator;
50 using const_iterator = typename VectorType::const_iterator;
51 using reverse_iterator = typename VectorType::reverse_iterator;
52 using const_reverse_iterator = typename VectorType::const_reverse_iterator;
55 VectorType takeVector() { in takeVector()
173 typename VectorType::iterator erase(typename VectorType::iterator Iterator) { in erase()
[all …]
H A DUniqueVector.h26 using VectorType = typename std::vector<T>;
27 using iterator = typename VectorType::iterator;
28 using const_iterator = typename VectorType::const_iterator;
35 VectorType Vector;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp170 VectorType *VecTy = nullptr;
282 Type *ElTy = cast<VectorType>(PtrTy->getElementType())->getElementType(); in operator []()
449 Layout.VecTy = dyn_cast<VectorType>(Ty); in getVectorLayout()
465 VectorType *VT = dyn_cast<VectorType>(I.getType()); in splitUnary()
485 VectorType *VT = dyn_cast<VectorType>(I.getType()); in splitBinary()
513 VectorType *Ty) { in getScalarIntrinsicDeclaration()
520 VectorType *VT = dyn_cast<VectorType>(CI.getType()); in splitCall()
578 VectorType *VT = dyn_cast<VectorType>(SI.getType()); in visitSelectInst()
631 VectorType *VT = dyn_cast<VectorType>(GEPI.getType()); in visitGetElementPtrInst()
677 VectorType *VT = dyn_cast<VectorType>(CI.getDestTy()); in visitCastInst()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DFunction.cpp807 } else if (VectorType* VTy = dyn_cast<VectorType>(Ty)) { in getMangledTypeStr()
1202 return VectorType::get(DecodeFixedType(Infos, Tys, Context), in DecodeFixedType()
1217 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
1218 return VectorType::getExtendedElementVectorType(VTy); in DecodeFixedType()
1224 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
1225 return VectorType::getTruncatedElementVectorType(VTy); in DecodeFixedType()
1234 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType()
1237 return VectorType::getSubdividedVectorType(VTy, SubDivs); in DecodeFixedType()
1240 return VectorType::getHalfElementsVectorType(cast<VectorType>( in DecodeFixedType()
1245 if (auto *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
[all …]
H A DConstants.cpp163 if (auto *VTy = dyn_cast<VectorType>(this->getType())) { in isNotOneValue()
213 if (auto *VTy = dyn_cast<VectorType>(this->getType())) { in isNotMinSignedValue()
289 auto *VTy = dyn_cast<VectorType>(getType()); in isElementWiseEqual()
300 Type *IntTy = VectorType::getInteger(VTy); in isElementWiseEqual()
310 if (auto *VTy = dyn_cast<VectorType>(C->getType())) { in containsUndefinedElement()
399 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getIntegerValue()
416 VectorType *VTy = cast<VectorType>(Ty); in getAllOnesValue()
868 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getTrue()
876 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getFalse()
903 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
[all …]
H A DType.cpp74 if (isa<VectorType>(this) && isa<VectorType>(Ty)) in canLosslesslyBitCastTo()
137 const VectorType *VTy = cast<VectorType>(this); in getPrimitiveSizeInBits()
153 if (auto *VTy = dyn_cast<VectorType>(this)) in getFPMantissaWidth()
170 if (auto *VTy = dyn_cast<VectorType>(this)) in isSizedDerivedType()
621 VectorType::VectorType(Type *ElType, unsigned EQ, Type::TypeID TID) in VectorType() function in VectorType
628 VectorType *VectorType::get(Type *ElementType, ElementCount EC) { in get()
635 bool VectorType::isValidElementType(Type *ElemTy) { in isValidElementType()
653 VectorType *&Entry = ElementType->getContext() in get()
675 VectorType *&Entry = ElementType->getContext() in get()
H A DPass.cpp231 using VectorType = AnalysisUsage::VectorType; typedef
233 VectorType &CFGOnlyList;
235 GetCFGOnlyPasses(VectorType &L) : CFGOnlyList(L) {} in GetCFGOnlyPasses()
H A DInstructions.cpp78 if (VectorType *VT = dyn_cast<VectorType>(Op0->getType())) { in areInvalidOperands()
82 VectorType *ET = dyn_cast<VectorType>(Op1->getType()); in areInvalidOperands()
1719 if (auto *Vector = dyn_cast<VectorType>(Ty)) in getTypeAtIndex()
1732 if (auto *Vector = dyn_cast<VectorType>(Ty)) in getTypeAtIndex()
1817 : Instruction(cast<VectorType>(Val->getType())->getElementType(), in ExtractElementInst()
1831 : Instruction(cast<VectorType>(Val->getType())->getElementType(), in ExtractElementInst()
1887 if (Elt->getType() != cast<VectorType>(Vec->getType())->getElementType()) in isValidOperands()
1903 VectorType::get(cast<VectorType>(V1->getType())->getElementType(), in ShuffleVectorInst()
1904 cast<VectorType>(Mask->getType())->getElementCount()), in ShuffleVectorInst()
1921 VectorType::get(cast<VectorType>(V1->getType())->getElementType(), in ShuffleVectorInst()
[all …]
H A DDataLayout.cpp805 getTypeAllocSize(cast<VectorType>(Ty)->getElementType()); in getAlignment()
809 Alignment *= cast<VectorType>(Ty)->getElementCount().getKnownMinValue(); in getAlignment()
848 if (VectorType *VecTy = dyn_cast<VectorType>(Ty)) in getIntPtrType()
849 return VectorType::get(IntTy, VecTy); in getIntPtrType()
870 if (VectorType *VecTy = dyn_cast<VectorType>(Ty)) in getIndexType()
871 return VectorType::get(IntTy, VecTy); in getIndexType()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h39 class VectorType; variable
152 VectorType *VecTy, unsigned Index);
160 InstructionCost getMinMaxReductionCost(VectorType *Ty, VectorType *CondTy,
165 VectorType *ValTy,
267 if (auto *DataTypeVTy = dyn_cast<VectorType>(DataType)) { in isLegalNTStore()
299 unsigned Opcode, VectorType *Ty, bool IsPairwiseForm,
302 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
304 VectorType *SubTp);
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/
H A DPassAnalysisSupport.h49 using VectorType = SmallVectorImpl<AnalysisID>;
62 void pushUnique(VectorType &Set, AnalysisID ID) { in pushUnique()
144 const VectorType &getRequiredSet() const { return Required; } in getRequiredSet()
145 const VectorType &getRequiredTransitiveSet() const { in getRequiredTransitiveSet()
148 const VectorType &getPreservedSet() const { return Preserved; } in getPreservedSet()
149 const VectorType &getUsedSet() const { return Used; } in getUsedSet()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h118 InstructionCost getExtractSubvectorOverhead(VectorType *VTy, int Index, in getExtractSubvectorOverhead()
143 InstructionCost getInsertSubvectorOverhead(VectorType *VTy, int Index, in getInsertSubvectorOverhead()
660 InstructionCost getScalarizationOverhead(VectorType *InTy, in getScalarizationOverhead()
685 InstructionCost getScalarizationOverhead(VectorType *InTy, bool Insert, in getScalarizationOverhead()
711 if (auto *VecTy = dyn_cast<VectorType>(Ty)) in getOperandsScalarizationOverhead()
723 InstructionCost getScalarizationOverhead(VectorType *RetTy, in getScalarizationOverhead()
782 if (auto *VTy = dyn_cast<VectorType>(Ty)) {
829 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp, in getShuffleCost()
831 VectorType *SubTp) { in getShuffleCost()
918 auto *SrcVTy = dyn_cast<VectorType>(Src);
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.h129 VectorType *VecTy) const;
132 VectorType *VecTy) const;
202 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
204 VectorType *SubTp);
215 unsigned Opcode, VectorType *Ty, bool IsPairwise,
221 VectorType *Ty, VectorType *CondTy, bool IsPairwiseForm, bool IsUnsigned,
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h732 InstructionCost getScalarizationOverhead(VectorType *Ty,
890 const ExtractElementInst *ReduxRoot, unsigned &Opcode, VectorType *&Ty);
893 const ExtractElementInst *ReduxRoot, unsigned &Opcode, VectorType *&Ty);
896 unsigned &Opcode, VectorType *&Ty,
1060 InstructionCost getShuffleCost(ShuffleKind Kind, VectorType *Tp,
1062 VectorType *SubTp = nullptr) const;
1112 VectorType *VecTy,
1194 unsigned Opcode, VectorType *Ty, bool IsPairwiseForm,
1198 VectorType *Ty, VectorType *CondTy, bool IsPairwiseForm, bool IsUnsigned,
1208 bool IsMLA, bool IsUnsigned, Type *ResTy, VectorType *Ty,
[all …]
H A DTargetTransformInfoImpl.h304 InstructionCost getScalarizationOverhead(VectorType *Ty, in getScalarizationOverhead()
471 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Ty, in getShuffleCost()
473 VectorType *SubTp) const { in getShuffleCost()
516 VectorType *VecTy, in getExtractWithExtendCost()
623 InstructionCost getArithmeticReductionCost(unsigned, VectorType *, bool, in getArithmeticReductionCost() argument
628 InstructionCost getMinMaxReductionCost(VectorType *, VectorType *, bool, bool, in getMinMaxReductionCost() argument
634 bool IsMLA, bool IsUnsigned, Type *ResTy, VectorType *Ty,
725 VectorType *VecTy) const { in getLoadVectorFactor()
731 VectorType *VecTy) const { in getStoreVectorFactor()
1071 auto *VecTy = cast<VectorType>(U->getType()); in getUserCost()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/CodeGen/
H A DSwiftCallingConv.h26 class VectorType; variable
140 llvm::VectorType *vectorTy);
147 llvm::VectorType *vectorTy);
154 llvm::VectorType *vectorTy,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h130 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
132 VectorType *SubTp);
143 InstructionCost getScalarizationOverhead(VectorType *Ty,
183 unsigned Opcode, VectorType *Ty, bool IsPairwiseForm,
188 InstructionCost getMinMaxReductionCost(VectorType *Ty, VectorType *CondTy,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DVFABIDemangling.cpp281 SmallVector<VectorType *, 2> VecTys; in verifyAllVectorsHaveSameWidth()
282 if (auto *RetTy = dyn_cast<VectorType>(Signature->getReturnType())) in verifyAllVectorsHaveSameWidth()
285 if (auto *VTy = dyn_cast<VectorType>(Ty)) in verifyAllVectorsHaveSameWidth()
293 return llvm::all_of(llvm::drop_begin(VecTys), [&EC](VectorType *VTy) { in verifyAllVectorsHaveSameWidth()
307 if (auto *RetTy = dyn_cast<VectorType>(Signature->getReturnType())) in getECFromSignature()
310 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getECFromSignature()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DValueTypes.cpp48 VectorType::get(VT.getTypeForEVT(Context), NumElements, IsScalable); in getExtendedVectorVT()
55 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), EC); in getExtendedVectorVT()
122 return EVT::getEVT(cast<VectorType>(LLVMTy)->getElementType()); in getExtendedVectorElementType()
127 ElementCount EC = cast<VectorType>(LLVMTy)->getElementCount(); in getExtendedVectorNumElements()
139 return cast<VectorType>(LLVMTy)->getElementCount(); in getExtendedVectorElementCount()
146 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits()
522 VectorType *VTy = cast<VectorType>(Ty); in getVT()
541 VectorType *VTy = cast<VectorType>(Ty); in getEVT()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp87 VectorType *getByteVectorTy(int ScLen) const;
423 if (auto *VecTy = dyn_cast<VectorType>(ValTy)) { in getMask()
835 auto *VecTy = VectorType::get(Ty, 1, /*Scalable*/ false); in realignGroup()
937 return VectorType::get(ByteTy, ElemCount, /*Scalable*/ false); in getByteTy()
945 return VectorType::get(BoolTy, ElemCount, /*Scalable*/ false); in getBoolTy()
988 if (auto *VecTy = dyn_cast<VectorType>(Ty)) in getNullValue()
996 if (auto *VecTy = dyn_cast<VectorType>(Ty)) in getFullValue()
1109 auto *Ty = cast<VectorType>(Work[ThisW].front()->getType()); in concat()
1136 assert(isa<VectorType>(Val->getType())); in vresize()
1137 auto *ValTy = cast<VectorType>(Val->getType()); in vresize()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DSwiftCallingConv.cpp43 } else if (auto firstVecTy = dyn_cast<llvm::VectorType>(first)) { in getCommonType()
44 if (auto secondVecTy = dyn_cast<llvm::VectorType>(second)) { in getCommonType()
217 if (auto vecTy = dyn_cast<llvm::VectorType>(type)) { in addTypedData()
250 if (auto vecTy = dyn_cast<llvm::VectorType>(type)) { in addLegalTypedData()
334 if (auto vecTy = dyn_cast_or_null<llvm::VectorType>(type)) { in addEntry()
400 auto vecTy = cast<llvm::VectorType>(Entries[index].Type); in splitVectorEntry()
692 llvm::VectorType *vectorTy) { in isLegalVectorType()
707 llvm::VectorType *vectorTy) { in splitLegalVectorType()
721 llvm::VectorType *origVectorTy, in legalizeVectorType()
838 if (isa<VectorType>(type)) { in classifyType()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DTypePrinter.cpp628 void TypePrinter::printVectorBefore(const VectorType *T, raw_ostream &OS) { in printVectorBefore()
630 case VectorType::AltiVecPixel: in printVectorBefore()
633 case VectorType::AltiVecBool: in printVectorBefore()
637 case VectorType::AltiVecVector: in printVectorBefore()
641 case VectorType::NeonVector: in printVectorBefore()
646 case VectorType::NeonPolyVector: in printVectorBefore()
651 case VectorType::GenericVector: { in printVectorBefore()
662 case VectorType::SveFixedLengthDataVector: in printVectorBefore()
663 case VectorType::SveFixedLengthPredicateVector: in printVectorBefore()
668 if (T->getVectorKind() == VectorType::SveFixedLengthPredicateVector) in printVectorBefore()
[all …]

12345678