| /llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/ |
| H A D | TosaOps.cpp | 411 concatDimSize = ShapedType::kDynamicSize; in inferReturnTypeComponents() 434 outShape.resize(2, ShapedType::kDynamicSize); in inferReturnTypeComponents() 465 outShape.resize(3, ShapedType::kDynamicSize); in inferReturnTypeComponents() 595 if (dim != ShapedType::kDynamicSize) in inferReturnTypeComponents() 628 if (val != ShapedType::kDynamicSize) { in inferReturnTypeComponents() 635 if (val == ShapedType::kDynamicSize) in inferReturnTypeComponents() 743 int32_t inHeight = ShapedType::kDynamicSize; in inferReturnTypeComponents() 744 int32_t inWidth = ShapedType::kDynamicSize; in inferReturnTypeComponents() 1020 int32_t inputWidth = ShapedType::kDynamicSize; in inferReturnTypeComponents() 1087 int32_t inputWidth = ShapedType::kDynamicSize; in inferReturnTypeComponents() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Utils/ |
| H A D | ReshapeOpsUtils.cpp | 49 while (sourceShape[sourceDim] != ShapedType::kDynamicSize && in getReassociationIndicesForCollapse() 59 if (sourceShape[sourceDim] == ShapedType::kDynamicSize && in getReassociationIndicesForCollapse() 60 (currTargetShape != ShapedType::kDynamicSize || in getReassociationIndicesForCollapse() 66 if (currTargetShape == ShapedType::kDynamicSize && in getReassociationIndicesForCollapse() 67 sourceShape[sourceDim] != ShapedType::kDynamicSize) in getReassociationIndicesForCollapse() 86 if (sourceShape[sourceDim] != ShapedType::kDynamicSize && in getReassociationIndicesForCollapse()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/Tosa/Utils/ |
| H A D | ShapeUtils.h | 114 result.sizes.resize(lhs.sizes.size(), ShapedType::kDynamicSize); in join() 119 if (lhsSize == ShapedType::kDynamicSize) { in join() 121 } else if (rhsSize == ShapedType::kDynamicSize) { in join() 158 result.sizes.resize(lhs.sizes.size(), ShapedType::kDynamicSize); in meet()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/ |
| H A D | Pattern.cpp | 126 assert(count(memRefType.getShape(), ShapedType::kDynamicSize) == in getMemRefDescriptorSizes() 133 sizes.push_back(size == ShapedType::kDynamicSize in getMemRefDescriptorSizes() 149 if (size == ShapedType::kDynamicSize) in getMemRefDescriptorSizes() 150 stride = ShapedType::kDynamicSize; in getMemRefDescriptorSizes() 151 if (stride != ShapedType::kDynamicSize) in getMemRefDescriptorSizes() 156 else if (stride == ShapedType::kDynamicSize) in getMemRefDescriptorSizes()
|
| /llvm-project-15.0.7/mlir/lib/Interfaces/ |
| H A D | ViewLikeInterface.cpp | 103 return printOperandsOrIntegersListImpl<ShapedType::kDynamicSize>(p, values, in printOperandsOrIntegersSizesList() 157 return parseOperandsOrIntegersImpl<ShapedType::kDynamicSize>(parser, values, in parseOperandsOrIntegersSizesList() 252 return decomposeMixedImpl(b, mixedValues, ShapedType::kDynamicSize); in decomposeMixedSizes()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/Shape/IR/ |
| H A D | Shape.h | 38 int64_t rank = ShapedType::kDynamicSize);
|
| H A D | ShapeBase.td | 95 BuildableType<"::mlir::RankedTensorType::get({ShapedType::kDynamicSize}, "
|
| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | BuiltinTypeInterfaces.cpp | 26 constexpr int64_t ShapedType::kDynamicSize; member in ShapedType
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tensor/IR/ |
| H A D | TensorOps.cpp | 648 newShape.push_back(ShapedType::kDynamicSize); in matchAndRewrite() 827 size = ShapedType::kDynamicSize; in computeTensorReshapeCollapsedType() 984 ShapedType::kDynamicSize); in inferResultType() 1032 ShapedType::kDynamicSize); in inferCanonicalRankReducedResultType() 1053 ShapedType::kDynamicSize); in build() 1468 ShapedType::kDynamicSize); in build() 1878 staticLow[i] == ShapedType::kDynamicSize || in inferResultType() 1879 staticHigh[i] == ShapedType::kDynamicSize) { in inferResultType() 1928 ShapedType::kDynamicSize); in build() 1930 ShapedType::kDynamicSize); in build() [all …]
|
| H A D | TensorTilingInterfaceImpl.cpp | 119 staticIndices.push_back(ShapedType::kDynamicSize); in bubbleUpPadSlice() 222 dispatchIndexOpFoldResults(sizes, dynDims, shape, ShapedType::kDynamicSize); in bubbleUpPadSlice()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/TosaToTensor/ |
| H A D | TosaToTensor.cpp | 42 if (size != ShapedType::kDynamicSize) in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | BuiltinTypeInterfaces.td | 57 dimensions of the shape must be positive, or kDynamicSize (in which case the 90 static constexpr int64_t kDynamicSize = -1; 96 return dSize == kDynamicSize;
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tensor/Utils/ |
| H A D | Utils.cpp | 65 if (en.value() == ShapedType::kDynamicSize) in createDynamicDimValues()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/ |
| H A D | TosaDecomposeConv2D.cpp | 57 combined = ShapedType::kDynamicSize; in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Linalg/TransformOps/ |
| H A D | LinalgTransformOps.cpp | 788 parser.getBuilder().getI64IntegerAttr(ShapedType::kDynamicSize); in parse() 804 if (staticSplitSize != ShapedType::kDynamicSize) in print() 815 ShapedType::kDynamicSize) ^ in verify() 951 if (size == ShapedType::kDynamicSize) { in getMixedSizes()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/Transforms/ |
| H A D | SparseTensorConversion.cpp | 125 uint64_t s = shape[i] == ShapedType::kDynamicSize ? 0 : shape[i]; in sizesFromType() 146 if (shape[i] == ShapedType::kDynamicSize) in sizesFromPtr() 156 auto memTp = MemRefType::get({ShapedType::kDynamicSize}, tp); in genAlloca() 165 auto memTp = MemRefType::get({ShapedType::kDynamicSize}, tp); in genAlloc() 335 if (shape[i] == ShapedType::kDynamicSize) in allocDenseTensor()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/ |
| H A D | SplitReduction.cpp | 99 if (reductionDimSize == ShapedType::kDynamicSize || in splitReduction() 292 if (reductionDimSize == ShapedType::kDynamicSize || in splitReductionByScaling()
|
| H A D | Fusion.cpp | 159 SmallVector<int64_t, 4> staticSizesVector(rank, ShapedType::kDynamicSize); in fuse()
|
| H A D | Promotion.cpp | 96 ShapedType::kDynamicSize); in defaultAllocBufferCallBack()
|
| H A D | HoistPadding.cpp | 428 SmallVector<int64_t> packedShape(nPackedLoops, ShapedType::kDynamicSize); in hoistPaddingOnTensors()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Affine/Transforms/ |
| H A D | PipelineDataTransfer.cpp | 88 if (dim.value() == ShapedType::kDynamicSize) in doubleBuffer()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/IR/ |
| H A D | SparseTensorDialect.cpp | 222 if (shape1[d] != shape2[d] && shape2[d] != ShapedType::kDynamicSize) in verify()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/MemRef/IR/ |
| H A D | MemRefOps.cpp | 47 int64_t asSize() { return saturated ? ShapedType::kDynamicSize : v; } in asSize() 1478 ShapedType::kDynamicSize); in build() 2052 if (shapeSize == ShapedType::kDynamicSize) in verify() 2144 ShapedType::kDynamicSize); in inferResultType() 2189 ShapedType::kDynamicSize); in inferRankReducedResultType() 2210 ShapedType::kDynamicSize); in build()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/Linalg/IR/ |
| H A D | LinalgOps.td | 114 shape.size(), ShapedType::kDynamicSize);
|
| /llvm-project-15.0.7/mlir/lib/CAPI/IR/ |
| H A D | BuiltinTypes.cpp | 152 int64_t mlirShapedTypeGetDynamicSize() { return ShapedType::kDynamicSize; } in mlirShapedTypeGetDynamicSize()
|