File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
include/mlir/Dialect/Affine/IR Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,11 @@ Region *getAffineScope(Operation *op);
53
53
// / analysis scope.
54
54
Region *getAffineAnalysisScope (Operation *op);
55
55
56
+ // / Return the product of `terms`, creating an `affine.apply` if any of them are
57
+ // / non-constant values. If any of `terms` is `nullptr`, return `nullptr`.
58
+ OpFoldResult computeProduct (Location loc, OpBuilder &builder,
59
+ ArrayRef<OpFoldResult> terms);
60
+
56
61
// / AffineDmaStartOp starts a non-blocking DMA operation that transfers data
57
62
// / from a source memref to a destination memref. The source and destination
58
63
// / memref need not be of the same dimensionality, but need to have the same
Original file line number Diff line number Diff line change @@ -5081,10 +5081,8 @@ struct DropLinearizeUnitComponentsIfDisjointOrZero final
5081
5081
}
5082
5082
};
5083
5083
5084
- // / Return the product of `terms`, creating an `affine.apply` if any of them are
5085
- // / non-constant values. If any of `terms` is `nullptr`, return `nullptr`.
5086
- static OpFoldResult computeProduct (Location loc, OpBuilder &builder,
5087
- ArrayRef<OpFoldResult> terms) {
5084
+ OpFoldResult computeProduct (Location loc, OpBuilder &builder,
5085
+ ArrayRef<OpFoldResult> terms) {
5088
5086
int64_t nDynamic = 0 ;
5089
5087
SmallVector<Value> dynamicPart;
5090
5088
AffineExpr result = builder.getAffineConstantExpr (1 );
You can’t perform that action at this time.
0 commit comments