[MLIR] Rename OperationInst to Instruction.

PiperOrigin-RevId: 221795407
This commit is contained in:
River Riddle
2018-11-16 08:07:09 -08:00
committed by jpienaar
parent 2213afa784
commit d34fcce2a7
6 changed files with 12 additions and 15 deletions

View File

@@ -170,7 +170,7 @@ void GreedyPatternRewriteDriver::simplifyFunction(Function *currentFunction,
// guarantee that a block is non-empty.
if (auto *cfgFunc = dyn_cast<CFGFunction>(currentFunction)) {
auto &entryBB = cfgFunc->front();
cast<OperationInst>(op)->moveBefore(&entryBB, entryBB.begin());
cast<Instruction>(op)->moveBefore(&entryBB, entryBB.begin());
} else {
auto *mlFunc = cast<MLFunction>(currentFunction);
cast<OperationStmt>(op)->moveBefore(mlFunc, mlFunc->begin());
@@ -305,7 +305,7 @@ static void processCFGFunction(CFGFunction *fn, OwningPatternList &&patterns) {
void setInsertionPoint(Operation *op) override {
// Any new operations should be added before this instruction.
builder.setInsertionPoint(cast<OperationInst>(op));
builder.setInsertionPoint(cast<Instruction>(op));
}
private: