Home
last modified time | relevance | path

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

123456789

/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DDerivedTypes.h389 class VectorType : public Type {
416 VectorType(Type *ElType, unsigned EQ, Type::TypeID TID);
419 VectorType(const VectorType &) = delete;
420 VectorType &operator=(const VectorType &) = delete;
425 static VectorType *get(Type *ElementType, ElementCount EC);
427 static VectorType *get(Type *ElementType, unsigned NumElements, in get()
429 return VectorType::get(ElementType, in get()
433 static VectorType *get(Type *ElementType, const VectorType *Other) { in get()
434 return VectorType::get(ElementType, Other->getElementCount()); in get()
440 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()
112 auto *OpType = cast<VectorType>(Matrix->getType());
129 auto *LHSType = cast<VectorType>(LHS->getType());
130 auto *RHSType = cast<VectorType>(RHS->getType());
163 cast<VectorType>(LHS->getType())->getElementCount(), RHS, in CreateAdd()
169 cast<VectorType>(RHS->getType())->getElementCount(), LHS, in CreateAdd()
173 return cast<VectorType>(LHS->getType()) in CreateAdd()
188 cast<VectorType>(LHS->getType())->getElementCount(), RHS, in CreateSub()
194 cast<VectorType>(RHS->getType())->getElementCount(), LHS, in CreateSub()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DOpenCLBuiltins.td163 // Its child classes can represent concrete types (e.g. VectorType) or
187 class VectorType<Type _Ty, int _VecWidth> : Type<_Ty.Name, _Ty.QTExpr> {
524 [VectorType<RType, v>, VectorType<IType, v>],
784 …def : Builtin<name, [VectorType<Float, VSize>, VectorType<Float, VSize>, VectorType<Float, VSize>]…
785 …def : Builtin<name, [VectorType<Double, VSize>, VectorType<Double, VSize>, VectorType<Double, VSiz…
786 …def : Builtin<name, [VectorType<Half, VSize>, VectorType<Half, VSize>, VectorType<Half, VSize>], A…
852 … def : Builtin<name, [VectorType<Char, VSize>, Size, PointerType<ConstType<Char>, AS>], Attr.Pure>;
853 …def : Builtin<name, [VectorType<UChar, VSize>, Size, PointerType<ConstType<UChar>, AS>], Attr.Pure…
854 …def : Builtin<name, [VectorType<Short, VSize>, Size, PointerType<ConstType<Short>, AS>], Attr.Pure…
855 …def : Builtin<name, [VectorType<UShort, VSize>, Size, PointerType<ConstType<UShort>, AS>], Attr.Pu…
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/
H A DMapVector.h36 typename VectorType = std::vector<std::pair<KeyT, ValueT>>>
39 VectorType Vector;
47 using value_type = typename VectorType::value_type;
48 using size_type = typename VectorType::size_type;
50 using iterator = typename VectorType::iterator;
51 using const_iterator = typename VectorType::const_iterator;
52 using reverse_iterator = typename VectorType::reverse_iterator;
53 using const_reverse_iterator = typename VectorType::const_reverse_iterator;
56 VectorType takeVector() { in takeVector()
174 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;
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h49 unsigned getEstimatedVLFor(VectorType *Ty);
114 InstructionCost getSpliceCost(VectorType *Tp, int Index);
115 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
118 VectorType *SubTp,
135 InstructionCost getMinMaxReductionCost(VectorType *Ty, VectorType *CondTy,
139 InstructionCost getArithmeticReductionCost(unsigned Opcode, VectorType *Ty,
144 Type *ResTy, VectorType *ValTy,
231 bool forceScalarizeMaskedGather(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedGather()
236 bool forceScalarizeMaskedScatter(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedScatter()
248 cast<VectorType>(PI.getArgOperand(1)->getType()) in getVPLegalizationStrategy()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DConstants.cpp290 auto *VTy = dyn_cast<VectorType>(getType()); in isElementWiseEqual()
301 Type *IntTy = VectorType::getInteger(VTy); in isElementWiseEqual()
311 if (auto *VTy = dyn_cast<VectorType>(C->getType())) { in containsUndefinedElement()
397 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getIntegerValue()
413 VectorType *VTy = cast<VectorType>(Ty); in getAllOnesValue()
856 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getTrue()
864 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getFalse()
891 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
915 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
944 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
[all …]
H A DFunction.cpp933 } else if (VectorType *VTy = dyn_cast<VectorType>(Ty)) { in getMangledTypeStr()
1389 return VectorType::get(DecodeFixedType(Infos, Tys, Context), in DecodeFixedType()
1404 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
1405 return VectorType::getExtendedElementVectorType(VTy); in DecodeFixedType()
1411 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
1412 return VectorType::getTruncatedElementVectorType(VTy); in DecodeFixedType()
1421 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType()
1424 return VectorType::getSubdividedVectorType(VTy, SubDivs); in DecodeFixedType()
1427 return VectorType::getHalfElementsVectorType(cast<VectorType>( in DecodeFixedType()
1432 if (auto *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
[all …]
H A DPass.cpp243 using VectorType = AnalysisUsage::VectorType; typedef
245 VectorType &CFGOnlyList;
247 GetCFGOnlyPasses(VectorType &L) : CFGOnlyList(L) {} in GetCFGOnlyPasses()
H A DType.cpp115 if (isa<VectorType>(this) && isa<VectorType>(Ty)) in canLosslesslyBitCastTo()
178 const VectorType *VTy = cast<VectorType>(this); in getPrimitiveSizeInBits()
194 if (auto *VTy = dyn_cast<VectorType>(this)) in getFPMantissaWidth()
211 if (auto *VTy = dyn_cast<VectorType>(this)) in isSizedDerivedType()
663 VectorType::VectorType(Type *ElType, unsigned EQ, Type::TypeID TID) in VectorType() function in VectorType
670 VectorType *VectorType::get(Type *ElementType, ElementCount EC) { in get()
677 bool VectorType::isValidElementType(Type *ElemTy) { in isValidElementType()
695 VectorType *&Entry = ElementType->getContext() in get()
717 VectorType *&Entry = ElementType->getContext() in get()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h137 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
140 VectorType *SubTp,
154 InstructionCost getScalarizationOverhead(VectorType *Ty,
195 InstructionCost getArithmeticReductionCost(unsigned Opcode, VectorType *Ty,
201 InstructionCost getMinMaxReductionCost(VectorType *Ty, VectorType *CondTy,
247 bool forceScalarizeMaskedGather(VectorType *VTy, Align Alignment);
248 bool forceScalarizeMaskedScatter(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedScatter()
255 bool isLegalAltInstr(VectorType *VecTy, unsigned Opcode0, unsigned Opcode1,
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.h124 VectorType *VecTy) const;
127 VectorType *VecTy) const;
203 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
206 VectorType *SubTp,
218 unsigned Opcode, VectorType *Ty, std::optional<FastMathFlags> FMF,
224 VectorType *Ty, VectorType *CondTy, bool IsUnsigned,
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h40 class VectorType; variable
167 VectorType *VecTy, unsigned Index);
179 InstructionCost getMinMaxReductionCost(VectorType *Ty, VectorType *CondTy,
184 VectorType *ValTy,
187 InstructionCost getSpliceCost(VectorType *Tp, int Index);
374 InstructionCost getArithmeticReductionCost(unsigned Opcode, VectorType *Ty,
378 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
381 VectorType *SubTp,
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h127 InstructionCost getExtractSubvectorOverhead(VectorType *VTy, in getExtractSubvectorOverhead()
155 InstructionCost getInsertSubvectorOverhead(VectorType *VTy, in getInsertSubvectorOverhead()
720 InstructionCost getScalarizationOverhead(VectorType *InTy, in getScalarizationOverhead()
750 InstructionCost getScalarizationOverhead(VectorType *InTy, bool Insert, in getScalarizationOverhead()
782 if (auto *VecTy = dyn_cast<VectorType>(Ty)) in getOperandsScalarizationOverhead()
795 InstructionCost getScalarizationOverhead(VectorType *RetTy, in getScalarizationOverhead()
963 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
966 VectorType *SubTp,
1057 auto *SrcVTy = dyn_cast<VectorType>(Src);
1058 auto *DstVTy = dyn_cast<VectorType>(Dst);
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h661 bool forceScalarizeMaskedGather(VectorType *Type, Align Alignment) const;
664 bool forceScalarizeMaskedScatter(VectorType *Type, Align Alignment) const;
678 bool isLegalAltInstr(VectorType *VecTy, unsigned Opcode0, unsigned Opcode1,
753 InstructionCost getScalarizationOverhead(VectorType *Ty,
1118 getShuffleCost(ShuffleKind Kind, VectorType *Tp,
1121 int Index = 0, VectorType *SubTp = nullptr,
1172 VectorType *VecTy,
1304 unsigned Opcode, VectorType *Ty, std::optional<FastMathFlags> FMF,
1308 VectorType *Ty, VectorType *CondTy, bool IsUnsigned,
1317 bool IsUnsigned, Type *ResTy, VectorType *Ty,
[all …]
H A DTargetTransformInfoImpl.h275 bool forceScalarizeMaskedGather(VectorType *DataType, Align Alignment) const { in forceScalarizeMaskedGather()
279 bool forceScalarizeMaskedScatter(VectorType *DataType, in forceScalarizeMaskedScatter()
286 bool isLegalAltInstr(VectorType *VecTy, unsigned Opcode0, unsigned Opcode1, in isLegalAltInstr()
334 InstructionCost getScalarizationOverhead(VectorType *Ty, in getScalarizationOverhead()
525 getShuffleCost(TTI::ShuffleKind Kind, VectorType *Ty, ArrayRef<int> Mask,
526 TTI::TargetCostKind CostKind, int Index, VectorType *SubTp,
570 VectorType *VecTy, in getExtractWithExtendCost()
702 InstructionCost getArithmeticReductionCost(unsigned, VectorType *, in getArithmeticReductionCost() argument
708 InstructionCost getMinMaxReductionCost(VectorType *, VectorType *, bool, in getMinMaxReductionCost() argument
714 Type *ResTy, VectorType *Ty, in getExtendedReductionCost()
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/CodeGen/
H A DSwiftCallingConv.h27 class VectorType; variable
140 llvm::VectorType *vectorTy);
147 llvm::VectorType *vectorTy);
154 llvm::VectorType *vectorTy,
/openbsd-src/gnu/llvm/llvm/tools/llvm-reduce/deltas/
H A DReduceOperands.cpp103 if (VectorType *VT = dyn_cast<VectorType>(Ty)) { in reduceOperandsOneDeltaPass()
161 if (VectorType *VT = dyn_cast<VectorType>(Ty)) { in reduceOperandsNaNDeltaPass()
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.h193 bool forceScalarizeMaskedGather(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedGather()
201 bool forceScalarizeMaskedScatter(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedScatter()
215 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
218 VectorType *SubTp,
278 InstructionCost getArithmeticReductionCost(unsigned Opcode, VectorType *ValTy,
282 Type *ResTy, VectorType *ValTy,
286 VectorType *ValTy,
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DVFABIDemangling.cpp280 SmallVector<VectorType *, 2> VecTys; in verifyAllVectorsHaveSameWidth()
281 if (auto *RetTy = dyn_cast<VectorType>(Signature->getReturnType())) in verifyAllVectorsHaveSameWidth()
284 if (auto *VTy = dyn_cast<VectorType>(Ty)) in verifyAllVectorsHaveSameWidth()
292 return llvm::all_of(llvm::drop_begin(VecTys), [&EC](VectorType *VTy) { in verifyAllVectorsHaveSameWidth()
305 if (auto *RetTy = dyn_cast<VectorType>(Signature->getReturnType())) in getECFromSignature()
308 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getECFromSignature()
H A DTargetTransformInfo.cpp423 VectorType *VecTy, unsigned Opcode0, unsigned Opcode1, in isLegalAltInstr()
433 bool TargetTransformInfo::forceScalarizeMaskedGather(VectorType *DataType, in forceScalarizeMaskedGather()
438 bool TargetTransformInfo::forceScalarizeMaskedScatter(VectorType *DataType, in forceScalarizeMaskedScatter()
517 VectorType *Ty, const APInt &DemandedElts, bool Insert, bool Extract, in getScalarizationOverhead()
809 ShuffleKind Kind, VectorType *Ty, ArrayRef<int> Mask, in getShuffleCost()
810 TTI::TargetCostKind CostKind, int Index, VectorType *SubTp, in getShuffleCost()
874 unsigned Opcode, Type *Dst, VectorType *VecTy, unsigned Index) const { in getExtractWithExtendCost()
1011 unsigned Opcode, VectorType *Ty, std::optional<FastMathFlags> FMF, in getArithmeticReductionCost()
1020 VectorType *Ty, VectorType *CondTy, bool IsUnsigned, in getMinMaxReductionCost()
1029 unsigned Opcode, bool IsUnsigned, Type *ResTy, VectorType *Ty, in getExtendedReductionCost()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp88 VectorType *getHvxTy(Type *ElemTy, bool Pair = false) const;
132 VectorType *ToType) const;
360 VectorType *ResTy;
391 VectorType *HvxI32Ty;
392 VectorType *HvxP32Ty;
553 if (auto *VecTy = dyn_cast<VectorType>(ValTy)) in getMask()
999 auto *VecTy = VectorType::get(Ty, 1, /*Scalable=*/false); in realignStoreGroup()
1296 Op.ResTy = cast<VectorType>(Ty); in matchFxpMul()
1307 auto *VecTy = dyn_cast<VectorType>(Op.X.Val->getType()); in processFxpMul()
1357 auto *ResizeTy = VectorType::get(HVC.getIntTy(Width), VecTy); in processFxpMul()
[all …]
/openbsd-src/gnu/llvm/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()
584 VectorType *VTy = cast<VectorType>(Ty); in getVT()
603 VectorType *VTy = cast<VectorType>(Ty); in getEVT()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DSwiftCallingConv.cpp45 } else if (auto firstVecTy = dyn_cast<llvm::VectorType>(first)) { in getCommonType()
46 if (auto secondVecTy = dyn_cast<llvm::VectorType>(second)) { in getCommonType()
219 if (auto vecTy = dyn_cast<llvm::VectorType>(type)) { in addTypedData()
252 if (auto vecTy = dyn_cast<llvm::VectorType>(type)) { in addLegalTypedData()
336 if (auto vecTy = dyn_cast_or_null<llvm::VectorType>(type)) { in addEntry()
402 auto vecTy = cast<llvm::VectorType>(Entries[index].Type); in splitVectorEntry()
688 llvm::VectorType *vectorTy) { in isLegalVectorType()
702 llvm::VectorType *vectorTy) { in splitLegalVectorType()
716 llvm::VectorType *origVectorTy, in legalizeVectorType()
833 if (isa<VectorType>(type)) { in classifyType()

123456789