[Mlir-commits] [mlir] 9a8bb4b - [NFC] Update comments
William S. Moses
llvmlistbot at llvm.org
Fri Apr 15 11:33:27 PDT 2022
Author: William S. Moses
Date: 2022-04-15T14:33:13-04:00
New Revision: 9a8bb4bc635de9d56706262083c15eb1e0cf3e87
URL: https://github.com/llvm/llvm-project/commit/9a8bb4bc635de9d56706262083c15eb1e0cf3e87
DIFF: https://github.com/llvm/llvm-project/commit/9a8bb4bc635de9d56706262083c15eb1e0cf3e87.diff
LOG: [NFC] Update comments
Added:
Modified:
mlir/lib/IR/Operation.cpp
mlir/test/lib/IR/TestClone.cpp
Removed:
################################################################################
diff --git a/mlir/lib/IR/Operation.cpp b/mlir/lib/IR/Operation.cpp
index d7b8125add6e3..b6c64ec773c05 100644
--- a/mlir/lib/IR/Operation.cpp
+++ b/mlir/lib/IR/Operation.cpp
@@ -525,7 +525,8 @@ InFlightDiagnostic Operation::emitOpError(const Twine &message) {
/// Create a deep copy of this operation but keep the operation regions empty.
/// Operands are remapped using `mapper` (if present), and `mapper` is updated
-/// to contain the results.
+/// to contain the results. The `mapResults` flag specifies whether the results
+/// of the cloned operation should be added to the map.
Operation *Operation::cloneWithoutRegions(BlockAndValueMapping &mapper,
bool mapResults) {
SmallVector<Value, 8> operands;
diff --git a/mlir/test/lib/IR/TestClone.cpp b/mlir/test/lib/IR/TestClone.cpp
index 76166552ffab2..a978df54c1e82 100644
--- a/mlir/test/lib/IR/TestClone.cpp
+++ b/mlir/test/lib/IR/TestClone.cpp
@@ -1,4 +1,4 @@
-//===- TestSymbolUses.cpp - Pass to test symbol uselists ------------------===//
+//===- TestClone.cpp - Pass to test operation cloning --------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
More information about the Mlir-commits
mailing list