Linalg Utils: use Doxygen comments where appropriate

PiperOrigin-RevId: 258160982
This commit is contained in:
Alex Zinenko 2019-07-15 07:50:11 -07:00 committed by Mehdi Amini
parent d2246182f0
commit d52b6c94e1
2 changed files with 9 additions and 9 deletions

View File

@ -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<Value *, 8> getViewSizes(LinalgOp &linalgOp);
/// Returns the values obtained by applying `map` to the list of values.
@ -133,9 +133,9 @@ llvm::SmallVector<PromotionInfo, 8> promoteLinalgViews(OpBuilder &b,
ArrayRef<Value *> 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<Value *, 4> getAssumedNonViewOperands(LinalgOp linalgOp);
} // namespace linalg

View File

@ -141,9 +141,9 @@ SmallVector<Value *, 4> 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<Value *, 4>
mlir::linalg::getAssumedNonViewOperands(LinalgOp linalgOp) {
auto *op = linalgOp.getOperation();