Home
last modified time | relevance | path

Searched refs:isDynamic (Results 1 – 25 of 53) sorted by relevance

123

/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/
H A DTosaOps.cpp1058 if (!ShapedType::isDynamic(inputHeight) && in inferReturnTypeComponents()
1066 if (!ShapedType::isDynamic(inputWidth) && in inferReturnTypeComponents()
1067 !ShapedType::isDynamic(weightWidth)) { in inferReturnTypeComponents()
1128 if (!ShapedType::isDynamic(inputHeight) && in inferReturnTypeComponents()
1136 if (!ShapedType::isDynamic(inputWidth) && in inferReturnTypeComponents()
1137 !ShapedType::isDynamic(weightWidth)) { in inferReturnTypeComponents()
1144 if (!ShapedType::isDynamic(inputDepth) && in inferReturnTypeComponents()
1145 !ShapedType::isDynamic(weightDepth)) { in inferReturnTypeComponents()
1230 if (!ShapedType::isDynamic(inputHeight) && in inferReturnTypeComponents()
1238 if (!ShapedType::isDynamic(inputWidth) && in inferReturnTypeComponents()
[all …]
/llvm-project-15.0.7/mlir/lib/IR/
H A DTypeUtilities.cpp64 if (!ShapedType::isDynamic(dim1) && !ShapedType::isDynamic(dim2) && in verifyCompatibleShape()
108 return ShapedType::isDynamic(dim) ? fold : dim; in verifyCompatibleDims()
111 return ShapedType::isDynamic(dim) || dim == staticDim; in verifyCompatibleDims()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DBuiltinTypeInterfaces.td95 static constexpr bool isDynamic(int64_t dSize) {
151 return ::mlir::ShapedType::isDynamic($_type.getShape()[idx]);
158 llvm::none_of($_type.getShape(), ::mlir::ShapedType::isDynamic);
170 return llvm::count_if($_type.getShape(), ::mlir::ShapedType::isDynamic);
184 assert(::mlir::ShapedType::isDynamic(getDimSize(index)) && "invalid index");
186 ::mlir::ShapedType::isDynamic);
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Arithmetic/Utils/
H A DUtils.h32 function_ref<bool(int64_t)> isDynamic);
58 canonicalizeSubViewPart(mixedSizes, ShapedType::isDynamic); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Interfaces/
H A DInferTypeOpInterface.cpp98 if (ShapedType::isDynamic(index.getSExtValue())) in hasStaticShape()
103 return llvm::none_of(stc->getDims(), ShapedType::isDynamic); in hasStaticShape()
140 if (ShapedType::isDynamic(dim)) in dump()
H A DViewLikeInterface.cpp22 ValueRange values, llvm::function_ref<bool(int64_t)> isDynamic) { in verifyListOfOperandsOrIntegers() argument
29 return isDynamic(attr.cast<IntegerAttr>().getInt()); in verifyListOfOperandsOrIntegers()
64 ShapedType::isDynamic))) in verifyOffsetSizeAndStrideOp()
/llvm-project-15.0.7/mlir/include/mlir/Interfaces/
H A DViewLikeInterface.td223 return ::mlir::ShapedType::isDynamic(v.getSExtValue());
317 static_sizes().template cast<::mlir::ArrayAttr>(), ::mlir::ShapedType::isDynamic, idx);
344 `idx` using `isDynamic` to determine whether an entry is dynamic.
349 "::llvm::function_ref<bool(int64_t)>":$isDynamic,
356 return isDynamic(attr.cast<::mlir::IntegerAttr>().getInt());
H A DViewLikeInterface.h147 ValueRange values, llvm::function_ref<bool(int64_t)> isDynamic);
H A DInferTypeOpInterface.h67 return ShapedType::isDynamic(getDimSize(index)); in isDynamicDim()
/llvm-project-15.0.7/mlir/lib/Dialect/
H A DTraits.cpp43 if (ShapedType::isDynamic(dim)) { in staticallyKnownBroadcastable()
221 if (ShapedType::isDynamic(dim)) in getShapeString()
/llvm-project-15.0.7/mlir/lib/Dialect/Utils/
H A DReshapeOpsUtils.cpp236 if (ShapedType::isDynamic(dim.value())) { in reshapeLikeShapesAreCompatible()
250 if (!ShapedType::isDynamic(collapsedShape[map.index()])) { in reshapeLikeShapesAreCompatible()
/llvm-project-15.0.7/mlir/lib/Dialect/Tensor/IR/
H A DTensorInferTypeOpInterfaceImpl.cpp78 if (!ShapedType::isDynamic(dstStaticShape[dimIndex])) { in getExpandedOutputDimFromInputShape()
97 assert(!ShapedType::isDynamic(d.value()) && in getExpandedOutputDimFromInputShape()
H A DTensorOps.cpp63 if (!ShapedType::isDynamic(std::get<0>(t)) && in preservesStaticInformation()
64 ShapedType::isDynamic(std::get<1>(t))) in preservesStaticInformation()
268 if (ShapedType::isDynamic(dim)) in matchAndRewrite()
349 assert(ShapedType::isDynamic(resultType.getShape()[index.getInt()])); in fold()
354 if (ShapedType::isDynamic(dim)) in fold()
642 if (!ShapedType::isDynamic(dim)) { in matchAndRewrite()
780 if (ShapedType::isDynamic(shapeSize)) in verify()
1611 canonicalizeSubViewPart(mixedSizes, ShapedType::isDynamic); in matchAndRewrite()
2159 assert(!ShapedType::isDynamic(sourceSize) && in matchAndRewrite()
2317 canonicalizeSubViewPart(mixedSizes, ShapedType::isDynamic); in matchAndRewrite()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Tosa/Utils/
H A DCoversionUtils.h69 if (llvm::any_of(dynTy.getShape().drop_front(), ShapedType::isDynamic)) { in checkHasDynamicBatchDims()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DFusePadOpWithLinalgProducer.cpp98 if (ShapedType::isDynamic(shape.value())) { in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Tensor/Utils/
H A DUtils.cpp47 if (ShapedType::isDynamic(en.value())) in createPadHighOp()
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/
H A DTosaDecomposeConv2D.cpp35 llvm::count_if(inputType.getShape(), ShapedType::isDynamic); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/TosaToLinalg/
H A DTosaToLinalg.cpp862 bool isDynamic) { in findIntermediateShape() argument
863 if (isDynamic) { in findIntermediateShape()
918 if (isDynamic) { in createReassociationMapsForCollapse()
983 bool isDynamic = !operandTy.hasStaticShape(); in matchAndRewrite() local
985 if (isDynamic && resultTy.getRank() != 1) { in matchAndRewrite()
1006 intermediateShape, isDynamic)) { in matchAndRewrite()
1026 bool isDynamic = !operandTy.hasStaticShape(); in matchAndRewrite() local
1033 if (isDynamic && operandTy.getRank() != 1) { in matchAndRewrite()
1049 intermediateShape, isDynamic) || in matchAndRewrite()
1070 bool isDynamic = !operandTy.hasStaticShape(); in matchAndRewrite() local
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Linalg/IR/
H A DLinalgOps.td68 return ShapedType::isDynamic(v.getSExtValue());
89 return ShapedType::isDynamic(attr.cast<IntegerAttr>().getInt());
/llvm-project-15.0.7/mlir/lib/Conversion/MemRefToLLVM/
H A DMemRefToLLVM.cpp124 if (ShapedType::isDynamic(type.getDimSize(i))) in isMemRefSizeMultipleOf()
1182 if (!ShapedType::isDynamic(size)) { in convertSourceMemRefToDescriptor()
1355 if (!ShapedType::isDynamic(outDimSize)) in getExpandedOutputDimSize()
1366 assert(!ShapedType::isDynamic(otherDimSize) && in getExpandedOutputDimSize()
1375 ShapedType::isDynamic(inDimSize) in getExpandedOutputDimSize()
1390 if (!ShapedType::isDynamic(outDimSize)) in getCollapsedOutputDimSize()
1398 ShapedType::isDynamic(inDimSize) in getCollapsedOutputDimSize()
1483 if (!ShapedType::isDynamic(srcShape[ref.back()]) || ref.size() == 1) { in fillInStridesForCollapsedMemDescriptor()
1864 if (!ShapedType::isDynamic(shape[idx])) in getSize()
1868 llvm::count_if(shape.take_front(idx), ShapedType::isDynamic); in getSize()
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/Utils/
H A DUtils.cpp30 llvm::function_ref<bool(int64_t)> isDynamic) { in canonicalizeSubViewPart() argument
/llvm-project-15.0.7/mlir/lib/Dialect/MemRef/IR/
H A DMemRefOps.cpp42 return (ShapedType::isDynamic(v)) ? Wrapper{true, 0} : Wrapper{false, v}; in size()
543 if (ShapedType::isDynamic(ss) && !ShapedType::isDynamic(st)) in canFoldIntoConsumerOp()
1533 if (!ShapedType::isDynamic(resultSize) && in verify()
1534 !ShapedType::isDynamic(expectedSize) && resultSize != expectedSize) in verify()
1639 if (ShapedType::isDynamic(expandedShape[expandedDim])) { in verifyCollapsedShape()
1648 if (ShapedType::isDynamic(collapsedShape[collapsedDim]) != foundDynamic) in verifyCollapsedShape()
1842 if (!ShapedType::isDynamic(srcShape[ref.back()]) || ref.size() == 1) { in computeCollapsedLayoutMap()
2788 if (!ShapedType::isDynamic(dimSize)) { in matchAndRewrite()
/llvm-project-15.0.7/clang/lib/Index/
H A DIndexBody.cpp221 auto isDynamic = [](const ObjCMessageExpr *MsgE)->bool { in VisitObjCMessageExpr() local
264 if (isDynamic(E)) { in VisitObjCMessageExpr()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/IR/
H A DLinalgInterfaces.cpp758 if (llvm::none_of(endLoopRangeValues, ShapedType::isDynamic)) { in verifyStructuredOpInterface()
770 if (ShapedType::isDynamic(shape[dim]) || shape[dim] == 0) in verifyStructuredOpInterface()
H A DLinalgOps.cpp1209 ShapedType::isDynamic))) in verify()
1236 if (!ShapedType::isDynamic(intAttr.getInt())) { in getMixedSizes()
1409 if (ShapedType::isDynamic(newDim) || in matchAndRewrite()
1424 if (!ShapedType::isDynamic(newDim)) { in matchAndRewrite()

123