[NFC] Update comments
authorWilliam S. Moses <gh@wsmoses.com>
Fri, 15 Apr 2022 18:32:44 +0000 (14:32 -0400)
committerWilliam S. Moses <gh@wsmoses.com>
Fri, 15 Apr 2022 18:33:13 +0000 (14:33 -0400)
mlir/lib/IR/Operation.cpp
mlir/test/lib/IR/TestClone.cpp

index d7b8125..b6c64ec 100644 (file)
@@ -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;
index 7616655..a978df5 100644 (file)
@@ -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.