Home
last modified time | relevance | path

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

12345678910>>...15

/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DDerivedTypes.h389 class VectorType : public Type {
419 VectorType(const VectorType &) = delete;
420 VectorType &operator=(const VectorType &) = delete;
429 return VectorType::get(ElementType, in get()
433 static VectorType *get(Type *ElementType, const VectorType *Other) { in get()
440 static VectorType *getInteger(VectorType *VTy) { in getInteger()
449 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType()
458 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType()
483 static VectorType *getSubdividedVectorType(VectorType *VTy, int NumSubdivs) { in getSubdividedVectorType()
493 static VectorType *getHalfElementsVectorType(VectorType *VTy) { in getHalfElementsVectorType()
[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()
198 return cast<VectorType>(LHS->getType()) in CreateSub()
[all …]
/llvm-project-15.0.7/clang/lib/Sema/
H A DOpenCLBuiltins.td783 …def : Builtin<name, [VectorType<Float, VSize>, VectorType<Float, VSize>, VectorType<Float, VSize>]…
785 …def : Builtin<name, [VectorType<Half, VSize>, VectorType<Half, VSize>, VectorType<Half, VSize>], A…
1518 …def : Builtin<name, [VectorType<Float, 4>, ImageType<imgTy, aQual>, Sampler, VectorType<Float, 2>,…
1522 …def : Builtin<name, [VectorType<Int, 4>, ImageType<imgTy, aQual>, Sampler, VectorType<Float, 2>, V…
1526 …def : Builtin<name, [VectorType<UInt, 4>, ImageType<imgTy, aQual>, Sampler, VectorType<Float, 2>,
1551 …def : Builtin<name, [VectorType<Float, 4>, ImageType<imgTy, aQual>, Sampler, VectorType<Float, 4>,…
1555 …def : Builtin<name, [VectorType<Int, 4>, ImageType<imgTy, aQual>, Sampler, VectorType<Float, 4>, V…
1559 …def : Builtin<name, [VectorType<UInt, 4>, ImageType<imgTy, aQual>, Sampler, VectorType<Float, 4>,
1580 …def : Builtin<name, [VectorType<Float, 4>, ImageType<imgTy, aQual>, Sampler, VectorType<Float, 4>,…
1584 …def : Builtin<name, [VectorType<Int, 4>, ImageType<imgTy, aQual>, Sampler, VectorType<Float, 4>, V…
[all …]
/llvm-project-15.0.7/llvm/unittests/IR/
H A DVectorTypesTest.cpp67 VectorType::get(Int16Ty, ElementCount::getFixed(8))); in TEST()
97 VectorType::getExtendedElementVectorType(V8Int16Ty)); in TEST()
109 VectorType::getHalfElementsVectorType(V4Int64Ty)); in TEST()
115 VectorType::getDoubleElementsVectorType(V4Int64Ty)); in TEST()
204 VectorType::getHalfElementsVectorType(ScV4Int64Ty)); in TEST()
232 std::array<VectorType *, 8> VTys = { in TEST()
234 VectorType::get(Int16Ty, ElementCount::getFixed(4)), in TEST()
236 VectorType::get(Int16Ty, ElementCount::getFixed(2)), in TEST()
255 VectorType *VI = VTys[I]; in TEST()
261 VectorType *VJ = VTys[J]; in TEST()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/AMX/IR/
H A DAMXDialect.cpp31 static LogicalResult verifyTileSize(Operation *op, VectorType tp) { in verifyTileSize()
43 static LogicalResult verifyMultShape(Operation *op, VectorType atp, in verifyMultShape()
44 VectorType btp, VectorType ctp, in verifyMultShape()
74 VectorType aType = getLhsVectorType(); in verify()
75 VectorType bType = getRhsVectorType(); in verify()
76 VectorType cType = getVectorType(); in verify()
91 VectorType aType = getLhsVectorType(); in verify()
92 VectorType bType = getRhsVectorType(); in verify()
93 VectorType cType = getVectorType(); in verify()
/llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/
H A DVectorDropLeadUnitDim.cpp24 static VectorType trimLeadingOneDims(VectorType oldType) { in trimLeadingOneDims()
51 VectorType oldSrcType = extractOp.getVectorType(); in matchAndRewrite()
59 VectorType oldDstType = extractOp.getType(); in matchAndRewrite()
60 VectorType newDstType = in matchAndRewrite()
98 VectorType oldDstType = insertOp.getDestVectorType(); in matchAndRewrite()
139 if (auto type = oldSrcType.dyn_cast<VectorType>()) { in matchAndRewrite()
204 VectorType oldType = read.getVectorType(); in matchAndRewrite()
205 VectorType newType = trimLeadingOneDims(oldType); in matchAndRewrite()
252 VectorType oldType = write.getVectorType(); in matchAndRewrite()
253 VectorType newType = trimLeadingOneDims(oldType); in matchAndRewrite()
[all …]
H A DVectorTransforms.cpp98 VectorType vType = lowType.cast<VectorType>(); in reshapeLoad()
128 VectorType vType = lowType.cast<VectorType>(); in reshapeStore()
259 VectorType srcType = op.getSourceType().dyn_cast<VectorType>(); in matchAndRewrite()
544 VectorType rhsType = op.getOperandTypeRHS().dyn_cast<VectorType>(); in matchAndRewrite()
1403 VectorType lhsType = lhs.getType().cast<VectorType>(); in matchAndRewrite()
1404 VectorType rhsType = rhs.getType().cast<VectorType>(); in matchAndRewrite()
1721 VectorType dstType = op.getResultType().cast<VectorType>(); in matchAndRewrite()
1869 VectorType resType = op.getResultType().cast<VectorType>(); in lowerParallel()
2006 VectorType type = op->getResult(0).getType().dyn_cast<VectorType>(); in distributPointwiseVectorOp()
2071 VectorType unbroadcastedVectorType = VectorType::get( in matchAndRewrite()
[all …]
H A DVectorTransferOpTransforms.cpp266 VectorType vectorType = vector.getType().cast<VectorType>(); in matchAndRewrite()
309 VectorType vectorType = vector.getType().cast<VectorType>(); in matchAndRewrite()
421 VectorType vectorType = vector.getType().cast<VectorType>(); in matchAndRewrite()
456 VectorType flatVectorType = VectorType::get({vectorType.getNumElements()}, in matchAndRewrite()
462 transferReadOp, vector.getType().cast<VectorType>(), flatRead); in matchAndRewrite()
479 VectorType vectorType = vector.getType().cast<VectorType>(); in matchAndRewrite()
514 VectorType flatVectorType = VectorType::get({vectorType.getNumElements()}, in matchAndRewrite()
/llvm-project-15.0.7/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;
/llvm-project-15.0.7/mlir/include/mlir/Dialect/AMX/
H A DAMX.td99 VectorType getVectorType() {
100 return getRes().getType().cast<VectorType>();
133 VectorType getVectorType() {
134 return getRes().getType().cast<VectorType>();
163 VectorType getVectorType() {
196 VectorType getLhsVectorType() {
199 VectorType getRhsVectorType() {
202 VectorType getVectorType() {
237 VectorType getLhsVectorType() {
240 VectorType getRhsVectorType() {
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Vector/IR/
H A DVectorOps.cpp623 static bool verifyDimMap(VectorType lhsType, VectorType rhsType, in verifyDimMap()
667 if (resType.isa<VectorType>() || accType.isa<VectorType>()) in verifyOutputShape()
1608 VectorType type = vector.getType().cast<VectorType>(); in build()
1692 VectorType srcVectorType = srcType.dyn_cast<VectorType>(); in isBroadcastableTo()
2330 VectorType vLHS = tLHS.dyn_cast<VectorType>(); in parse()
2331 VectorType vRHS = tRHS.dyn_cast<VectorType>(); in parse()
2852 VectorType vectorType, VectorType maskType, in verifyTransferOp()
2991 VectorType vectorType = types[1].dyn_cast<VectorType>(); in parse()
3356 VectorType broadcastedType = VectorType::get( in matchAndRewrite()
3444 VectorType vectorType = types[0].dyn_cast<VectorType>(); in parse()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h40 unsigned getMaxVLFor(VectorType *Ty);
86 InstructionCost getSpliceCost(VectorType *Tp, int Index);
87 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
89 VectorType *SubTp,
106 InstructionCost getMinMaxReductionCost(VectorType *Ty, VectorType *CondTy,
110 InstructionCost getArithmeticReductionCost(unsigned Opcode, VectorType *Ty,
174 bool forceScalarizeMaskedGather(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedGather()
179 bool forceScalarizeMaskedScatter(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedScatter()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstants.cpp389 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getIntegerValue()
405 VectorType *VTy = cast<VectorType>(Ty); in getAllOnesValue()
883 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
907 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
936 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
961 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
972 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getNaN()
983 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getQNaN()
994 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getSNaN()
1005 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getZero()
[all …]
H A DFunction.cpp849 } else if (VectorType *VTy = dyn_cast<VectorType>(Ty)) { in getMangledTypeStr()
1311 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
1318 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
1328 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType()
1334 return VectorType::getHalfElementsVectorType(cast<VectorType>( in DecodeFixedType()
1349 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType()
1357 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
1363 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType()
1480 VectorType *VT = dyn_cast<VectorType>(Ty); in matchIntrinsicType()
1559 if (VectorType *VTy = dyn_cast<VectorType>(NewTy)) in matchIntrinsicType()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp506 VectorType *VT = dyn_cast<VectorType>(I.getType()); in splitUnary()
526 VectorType *VT = dyn_cast<VectorType>(I.getType()); in splitBinary()
561 VectorType *VT = dyn_cast<VectorType>(CI.getType()); in splitCall()
626 VectorType *VT = dyn_cast<VectorType>(SI.getType()); in visitSelectInst()
679 VectorType *VT = dyn_cast<VectorType>(GEPI.getType()); in visitGetElementPtrInst()
725 VectorType *VT = dyn_cast<VectorType>(CI.getDestTy()); in visitCastInst()
743 VectorType *DstVT = dyn_cast<VectorType>(BCI.getDestTy()); in visitBitCastInst()
744 VectorType *SrcVT = dyn_cast<VectorType>(BCI.getSrcTy()); in visitBitCastInst()
798 VectorType *VT = dyn_cast<VectorType>(IEI.getType()); in visitInsertElementInst()
865 VectorType *VT = dyn_cast<VectorType>(SVI.getType()); in visitShuffleVectorInst()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/AMX/Transforms/
H A DLegalizeForLLVMExport.cpp28 VectorType vType, Location loc) { in getTileSizes()
88 VectorType vType = op.getVectorType(); in matchAndRewrite()
107 VectorType vType = op.getVectorType(); in matchAndRewrite()
134 VectorType vType = op.getVectorType(); in matchAndRewrite()
158 VectorType aType = op.getLhsVectorType(); in matchAndRewrite()
159 VectorType bType = op.getRhsVectorType(); in matchAndRewrite()
160 VectorType cType = op.getVectorType(); in matchAndRewrite()
180 VectorType aType = op.getLhsVectorType(); in matchAndRewrite()
181 VectorType bType = op.getRhsVectorType(); in matchAndRewrite()
182 VectorType cType = op.getVectorType(); in matchAndRewrite()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h39 class VectorType; variable
171 VectorType *VecTy, unsigned Index);
179 InstructionCost getMinMaxReductionCost(VectorType *Ty, VectorType *CondTy,
184 VectorType *ValTy,
187 InstructionCost getSpliceCost(VectorType *Tp, int Index);
310 if (auto *DataTypeVTy = dyn_cast<VectorType>(DataType)) { in isLegalNTStore()
364 InstructionCost getArithmeticReductionCost(unsigned Opcode, VectorType *Ty,
368 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
370 VectorType *SubTp,
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Vector/Utils/
H A DVectorUtils.h30 class VectorType; variable
73 Optional<SmallVector<int64_t, 4>> shapeRatio(VectorType superVectorType,
74 VectorType subVectorType);
160 bool operatesOnSuperVectorsOf(Operation &op, VectorType subVectorType);
/llvm-project-15.0.7/mlir/lib/Conversion/ArmNeon2dToIntr/
H A DArmNeon2dToIntr.cpp31 Type elemType = op.getB().getType().cast<VectorType>().getElementType(); in matchAndRewrite()
32 int length = op.getB().getType().cast<VectorType>().getShape()[0] * in matchAndRewrite()
34 VectorType flattenedVectorType = VectorType::get({length}, elemType); in matchAndRewrite()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/mlir/lib/Interfaces/
H A DVectorInterfaces.cpp13 VectorType mlir::vector::detail::transferMaskType(VectorType vecType, in transferMaskType()
23 return VectorType::get(shape, i1Type); in transferMaskType()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.h121 VectorType *VecTy) const;
124 VectorType *VecTy) const;
198 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
200 VectorType *SubTp,
212 unsigned Opcode, VectorType *Ty, Optional<FastMathFlags> FMF,
218 VectorType *Ty, VectorType *CondTy, bool IsUnsigned,
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h137 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
139 VectorType *SubTp,
151 InstructionCost getScalarizationOverhead(VectorType *Ty,
193 InstructionCost getArithmeticReductionCost(unsigned Opcode, VectorType *Ty,
199 InstructionCost getMinMaxReductionCost(VectorType *Ty, VectorType *CondTy,
236 bool forceScalarizeMaskedGather(VectorType *VTy, Align Alignment);
237 bool forceScalarizeMaskedScatter(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedScatter()
244 bool isLegalAltInstr(VectorType *VecTy, unsigned Opcode0, unsigned Opcode1,
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Vector/IR/
H A DVectorOps.td216 VectorType getLhsType() {
219 VectorType getRhsType() {
296 VectorType getVectorType() {
422 VectorType getVectorType() {
483 VectorType getVectorType() {
532 VectorType getVectorType() {
567 VectorType getVectorType() {
672 VectorType getVectorType() { return getLhs().getType().cast<VectorType>(); }
964 ? VectorType()
1143 VectorType getVectorType(){ return getVector().getType().cast<VectorType>(); }
[all …]

12345678910>>...15