From d52b6c94e16f41cb4b45714cf3951e69d7f52690 Mon Sep 17 00:00:00 2001 From: Alex Zinenko Date: Mon, 15 Jul 2019 07:50:11 -0700 Subject: [PATCH] Linalg Utils: use Doxygen comments where appropriate PiperOrigin-RevId: 258160982 --- mlir/include/mlir/Linalg/Utils/Utils.h | 12 ++++++------ mlir/lib/Linalg/Utils/Utils.cpp | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/mlir/include/mlir/Linalg/Utils/Utils.h b/mlir/include/mlir/Linalg/Utils/Utils.h index 5451afb..53a57fe 100644 --- a/mlir/include/mlir/Linalg/Utils/Utils.h +++ b/mlir/include/mlir/Linalg/Utils/Utils.h @@ -74,9 +74,9 @@ private: namespace linalg { -// Returns the linearized list of all view dimensions in a linalgOp. Applying -// the inverse, concatenated loopToOperandRangeMaps to this list allows the -// derivation of loop ranges for any linalgOp. +/// Returns the linearized list of all view dimensions in a linalgOp. Applying +/// the inverse, concatenated loopToOperandRangeMaps to this list allows the +/// derivation of loop ranges for any linalgOp. SmallVector getViewSizes(LinalgOp &linalgOp); /// Returns the values obtained by applying `map` to the list of values. @@ -133,9 +133,9 @@ llvm::SmallVector promoteLinalgViews(OpBuilder &b, ArrayRef views, OperationFolder &folder); -// Returns all the operands of `linalgOp` that are not views. -// Asserts that these operands are value types to allow transformations like -// tiling to just use the values when cloning `linalgOp`. +/// Returns all the operands of `linalgOp` that are not views. +/// Asserts that these operands are value types to allow transformations like +/// tiling to just use the values when cloning `linalgOp`. llvm::SmallVector getAssumedNonViewOperands(LinalgOp linalgOp); } // namespace linalg diff --git a/mlir/lib/Linalg/Utils/Utils.cpp b/mlir/lib/Linalg/Utils/Utils.cpp index aa39206..1f8187e 100644 --- a/mlir/lib/Linalg/Utils/Utils.cpp +++ b/mlir/lib/Linalg/Utils/Utils.cpp @@ -141,9 +141,9 @@ SmallVector mlir::linalg::applyMapToValues(OpBuilder &b, return res; } -// Returns all the operands of `linalgOp` that are not views. -// Asserts that these operands are value types to allow transformations like -// tiling to just use the values when cloning `linalgOp`. +/// Returns all the operands of `linalgOp` that are not views. +/// Asserts that these operands are value types to allow transformations like +/// tiling to just use the values when cloning `linalgOp`. SmallVector mlir::linalg::getAssumedNonViewOperands(LinalgOp linalgOp) { auto *op = linalgOp.getOperation(); -- 2.7.4