diff options
| author | Sean Silva <silvasean@google.com> | 2019-11-06 16:08:51 -0800 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-11-06 16:09:23 -0800 |
| commit | f6188b5b07418dda04743a51f0ddcbca30c7a196 (patch) | |
| tree | b79dba9d95434e1f89a416a978ee04dc3267d6e9 /mlir/lib/IR/Operation.cpp | |
| parent | ffebc8ce1d876837c706a17d2ccb7a597d93dd74 (diff) | |
| download | bcm5719-llvm-f6188b5b07418dda04743a51f0ddcbca30c7a196.tar.gz bcm5719-llvm-f6188b5b07418dda04743a51f0ddcbca30c7a196.zip | |
Replace some remnant uses of "inst" with "op".
PiperOrigin-RevId: 278961676
Diffstat (limited to 'mlir/lib/IR/Operation.cpp')
| -rw-r--r-- | mlir/lib/IR/Operation.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mlir/lib/IR/Operation.cpp b/mlir/lib/IR/Operation.cpp index a712e427c99..96c488cbefe 100644 --- a/mlir/lib/IR/Operation.cpp +++ b/mlir/lib/IR/Operation.cpp @@ -332,8 +332,8 @@ bool Operation::isBeforeInBlock(Operation *other) { assert(other && other->block == block && "Expected other operation to have the same parent block."); // Recompute the parent ordering if necessary. - if (!block->isInstOrderValid()) - block->recomputeInstOrder(); + if (!block->isOpOrderValid()) + block->recomputeOpOrder(); return orderIndex < other->orderIndex; } @@ -384,7 +384,7 @@ void llvm::ilist_traits<::mlir::Operation>::addNodeToList(Operation *op) { op->block = getContainingBlock(); // Invalidate the block ordering. - op->block->invalidateInstOrder(); + op->block->invalidateOpOrder(); } /// This is a trait method invoked when a operation is removed from a block. @@ -401,7 +401,7 @@ void llvm::ilist_traits<::mlir::Operation>::transferNodesFromList( Block *curParent = getContainingBlock(); // Invalidate the ordering of the parent block. - curParent->invalidateInstOrder(); + curParent->invalidateOpOrder(); // If we are transferring operations within the same block, the block // pointer doesn't need to be updated. @@ -423,10 +423,10 @@ void Operation::erase() { } /// Unlink this operation from its current block and insert it right before -/// `existingInst` which may be in the same or another block in the same +/// `existingOp` which may be in the same or another block in the same /// function. -void Operation::moveBefore(Operation *existingInst) { - moveBefore(existingInst->getBlock(), existingInst->getIterator()); +void Operation::moveBefore(Operation *existingOp) { + moveBefore(existingOp->getBlock(), existingOp->getIterator()); } /// Unlink this operation from its current basic block and insert it right |

