Home
last modified time | relevance | path

Searched refs:hasStaticShape (Results 1 – 25 of 48) sorted by relevance

12

/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/
H A DTosaDecomposeTransposeConv.cpp110 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 DTosaDecomposeDepthwise.cpp36 if (!(inputType.hasStaticShape() && weightType.hasStaticShape() && in matchAndRewrite()
37 resultType.hasStaticShape())) { in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Interfaces/
H A DInferTypeOpInterface.cpp89 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 DBuiltinTypeInterfaces.td143 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 DExpandOps.cpp86 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 DLinalgToSPIRV.cpp80 if (!originalInputType.hasStaticShape() || originalInputType.getRank() != 1) in matchAsPerformingReduction()
83 if (!originalOutputType.hasStaticShape() || in matchAsPerformingReduction()
/llvm-project-15.0.7/mlir/lib/IR/
H A DBuiltinTypeInterfaces.cpp39 assert(hasStaticShape() && in getSizeInBits()
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/
H A DTosaCanonicalizations.cpp306 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 DSPIRVConversion.cpp218 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 DCoversionUtils.h61 if (!paramTy.hasStaticShape()) in checkHasDynamicBatchDims()
/llvm-project-15.0.7/mlir/lib/Dialect/Shape/IR/
H A DShapeCanonicalization.td16 $0.getType().dyn_cast<ShapedType>().hasStaticShape()
/llvm-project-15.0.7/mlir/lib/Conversion/TensorToSPIRV/
H A DTensorToSPIRV.cpp50 if (!tensorType.hasStaticShape()) in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/
H A DVectorTransferOpTransforms.cpp232 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 DTensorOps.cpp634 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 DMemoryPromotion.cpp147 assert(type && type.hasStaticShape() && "can only promote memrefs"); in promoteToWorkgroupMemory()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DTransforms.cpp187 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 DConstantFold.cpp68 if (!outputType || !outputType.hasStaticShape()) in matchAndRewrite()
H A DVectorization.cpp627 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 DGPUOpsLowering.cpp27 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 DInferTypeOpInterface.h71 bool hasStaticShape() const;
/llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/Transforms/
H A DBufferResultsToOutParams.cpp129 if (!memref.getType().cast<MemRefType>().hasStaticShape()) { in updateCalls()
H A DBufferOptimizations.cpp39 if (!type.hasStaticShape()) { in defaultIsSmallAlloc()
/llvm-project-15.0.7/mlir/lib/Conversion/TosaToLinalg/
H A DTosaToLinalgNamed.cpp186 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 DAMDGPUToROCDL.cpp137 if (memrefType.hasStaticShape()) { in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/CAPI/IR/
H A DBuiltinTypes.cpp140 return unwrap(type).cast<ShapedType>().hasStaticShape(); in mlirShapedTypeHasStaticShape()

12