diff --git a/mlir/include/mlir/Dialect/Linalg/Utils/Utils.h b/mlir/include/mlir/Dialect/Linalg/Utils/Utils.h index 5fd3d97711b9..7e04aab2589c 100644 --- a/mlir/include/mlir/Dialect/Linalg/Utils/Utils.h +++ b/mlir/include/mlir/Dialect/Linalg/Utils/Utils.h @@ -170,13 +170,14 @@ struct PromotionInfo { /// 2. Take a full view on the buffer and `linalg.fill` it with zeros (use /// float zero for now). /// 3. Take a partial slice of the full view in step 2. and copy into it. +/// Infers statically sized buffers from subViews unless `dynamicBuffers` is +/// true. /// /// Returns a list of PromotionInfo which hold the promoted buffer and the /// full and partial views indexing into the buffer. llvm::SmallVector promoteSubViews(OpBuilder &b, Location loc, ArrayRef subViews, - bool promoteSubViews = false, - OperationFolder *folder = nullptr); + bool dynamicBuffers = false, OperationFolder *folder = nullptr); /// Returns all the operands of `linalgOp` that are not views. /// Asserts that these operands are value types to allow transformations like