| /llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/ |
| H A D | TosaDecomposeTransposeConv.cpp | 110 if (!inputTy.hasStaticShape() || !weightTy.hasStaticShape() || in matchAndRewrite() 111 !biasTy.hasStaticShape() || !resultTy.hasStaticShape()) in matchAndRewrite() 181 if (!inputTy.hasStaticShape() || !weightTy.hasStaticShape() || in matchAndRewrite() 182 !biasTy.hasStaticShape() || !resultTy.hasStaticShape()) in matchAndRewrite()
|
| H A D | TosaDecomposeDepthwise.cpp | 36 if (!(inputType.hasStaticShape() && weightType.hasStaticShape() && in matchAndRewrite() 37 resultType.hasStaticShape())) { in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Interfaces/ |
| H A D | InferTypeOpInterface.cpp | 89 bool ShapeAdaptor::hasStaticShape() const { in hasStaticShape() function in ShapeAdaptor 94 return t.cast<ShapedType>().hasStaticShape(); in hasStaticShape() 107 assert(hasStaticShape() && "cannot get element count of dynamic shaped type"); in getNumElements()
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | BuiltinTypeInterfaces.td | 143 assert(hasStaticShape() && "cannot get element count of dynamic shaped type"); 156 bool hasStaticShape() const { 163 bool hasStaticShape(::llvm::ArrayRef<int64_t> shape) const { 164 return hasStaticShape() && $_type.getShape() == shape;
|
| /llvm-project-15.0.7/mlir/lib/Dialect/MemRef/Transforms/ |
| H A D | ExpandOps.cpp | 86 if (!shapeType.hasStaticShape()) in matchAndRewrite() 137 return !op.getShape().getType().cast<MemRefType>().hasStaticShape(); in runOnOperation()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/LinalgToSPIRV/ |
| H A D | LinalgToSPIRV.cpp | 80 if (!originalInputType.hasStaticShape() || originalInputType.getRank() != 1) in matchAsPerformingReduction() 83 if (!originalOutputType.hasStaticShape() || in matchAsPerformingReduction()
|
| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | BuiltinTypeInterfaces.cpp | 39 assert(hasStaticShape() && in getSizeInBits()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/ |
| H A D | TosaCanonicalizations.cpp | 306 if (!inputType.hasStaticShape() || !outputType.hasStaticShape()) { in matchAndRewrite() 341 if (!inputType.hasStaticShape()) { in matchAndRewrite() 496 if (inputTy.hasStaticShape()) in fold()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/ |
| H A D | SPIRVConversion.cpp | 218 if (!memRefType.hasStaticShape() || in getTypeNumBytes() 246 if (!tensorType.hasStaticShape()) in getTypeNumBytes() 341 if (!type.hasStaticShape()) { in convertTensorType() 409 if (!type.hasStaticShape()) { in convertBoolMemrefType() 465 if (!type.hasStaticShape()) { in convertMemrefType()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/Tosa/Utils/ |
| H A D | CoversionUtils.h | 61 if (!paramTy.hasStaticShape()) in checkHasDynamicBatchDims()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Shape/IR/ |
| H A D | ShapeCanonicalization.td | 16 $0.getType().dyn_cast<ShapedType>().hasStaticShape()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/TensorToSPIRV/ |
| H A D | TensorToSPIRV.cpp | 50 if (!tensorType.hasStaticShape()) in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/ |
| H A D | VectorTransferOpTransforms.cpp | 232 assert(inputType.hasStaticShape()); in rankReducingSubviewDroppingUnitDims() 270 if (!sourceType || !sourceType.hasStaticShape()) in matchAndRewrite() 313 if (!sourceType || !sourceType.hasStaticShape()) in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tensor/IR/ |
| H A D | TensorOps.cpp | 634 if (resultType.hasStaticShape()) in matchAndRewrite() 774 if (operandRankedType && resultRankedType.hasStaticShape() && in verify() 775 operandRankedType.hasStaticShape()) { in verify() 922 if (!shapedTy.hasStaticShape()) in matchAndRewrite() 1280 if (!sourceType.hasStaticShape() || !resultType.hasStaticShape()) in matchAndRewrite() 1420 if (resultType.hasStaticShape()) in fold() 1554 if (insertOp.getSourceType().hasStaticShape() && in foldInsertOp() 1555 insertOp.getDestType().hasStaticShape() && in foldInsertOp() 2226 if (getResultType().hasStaticShape() && getResultType() == getSourceType() && in fold()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/GPU/Transforms/ |
| H A D | MemoryPromotion.cpp | 147 assert(type && type.hasStaticShape() && "can only promote memrefs"); in promoteToWorkgroupMemory()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/ |
| H A D | Transforms.cpp | 187 bool hasStaticShape = llvm::none_of(shapeDimsToPad, [&](int64_t dim) { in padOperandToSmallestStaticBoundingBox() local 190 if (!nofold && hasStaticShape) in padOperandToSmallestStaticBoundingBox() 679 if (!inputShapedType.hasStaticShape()) in matchAndRewrite() 681 if (!resultShapedType.hasStaticShape()) in matchAndRewrite()
|
| H A D | ConstantFold.cpp | 68 if (!outputType || !outputType.hasStaticShape()) in matchAndRewrite()
|
| H A D | Vectorization.cpp | 627 if (!srcType.hasStaticShape() || !dstType.hasStaticShape()) in vectorizeCopy() 700 if (!sourceType.hasStaticShape()) in tryVectorizeCopy() 1037 if (!padOp.getResult().getType().cast<ShapedType>().hasStaticShape()) in rewriteUser()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/ |
| H A D | GPUOpsLowering.cpp | 27 assert(type && type.hasStaticShape() && "unexpected type in attribution"); in matchAndRewrite() 117 assert(type && type.hasStaticShape() && "unexpected type in attribution"); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/include/mlir/Interfaces/ |
| H A D | InferTypeOpInterface.h | 71 bool hasStaticShape() const;
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/Transforms/ |
| H A D | BufferResultsToOutParams.cpp | 129 if (!memref.getType().cast<MemRefType>().hasStaticShape()) { in updateCalls()
|
| H A D | BufferOptimizations.cpp | 39 if (!type.hasStaticShape()) { in defaultIsSmallAlloc()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/TosaToLinalg/ |
| H A D | TosaToLinalgNamed.cpp | 186 if (!weightTy.hasStaticShape() || !biasTy.hasStaticShape()) in matchAndRewrite() 354 if (!weightTy.hasStaticShape() || !biasTy.hasStaticShape()) in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/AMDGPUToROCDL/ |
| H A D | AMDGPUToROCDL.cpp | 137 if (memrefType.hasStaticShape()) { in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/CAPI/IR/ |
| H A D | BuiltinTypes.cpp | 140 return unwrap(type).cast<ShapedType>().hasStaticShape(); in mlirShapedTypeHasStaticShape()
|