diff options
author | River Riddle <riverriddle@google.com> | 2019-06-04 19:18:23 -0700 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2019-06-09 16:17:59 -0700 |
commit | f1b848e4701a4cd3fa781c259e3728faff1c31df (patch) | |
tree | 5587429894d04d9e78eb0e91b76aea3003c94bd1 /mlir/lib/Transforms/LoopInvariantCodeMotion.cpp | |
parent | f59f64e838c82399f7b31949e8de75547223f42b (diff) | |
download | llvm-f1b848e4701a4cd3fa781c259e3728faff1c31df.zip llvm-f1b848e4701a4cd3fa781c259e3728faff1c31df.tar.gz llvm-f1b848e4701a4cd3fa781c259e3728faff1c31df.tar.bz2 |
NFC: Rename FuncBuilder to OpBuilder and refactor to take a top level region instead of a function.
PiperOrigin-RevId: 251563898
Diffstat (limited to 'mlir/lib/Transforms/LoopInvariantCodeMotion.cpp')
-rw-r--r-- | mlir/lib/Transforms/LoopInvariantCodeMotion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/LoopInvariantCodeMotion.cpp b/mlir/lib/Transforms/LoopInvariantCodeMotion.cpp index 3187566..c4c1184 100644 --- a/mlir/lib/Transforms/LoopInvariantCodeMotion.cpp +++ b/mlir/lib/Transforms/LoopInvariantCodeMotion.cpp @@ -203,7 +203,7 @@ void LoopInvariantCodeMotion::runOnAffineForOp(AffineForOp forOp) { SmallPtrSet<Operation *, 8> definedOps; // This is the place where hoisted instructions would reside. - FuncBuilder b(forOp.getOperation()); + OpBuilder b(forOp.getOperation()); SmallPtrSet<Operation *, 8> opsToHoist; SmallVector<Operation *, 8> opsToMove; |