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/Analysis/TestParallelismDetection.cpp | |
| parent | f59f64e838c82399f7b31949e8de75547223f42b (diff) | |
| download | bcm5719-llvm-f1b848e4701a4cd3fa781c259e3728faff1c31df.tar.gz bcm5719-llvm-f1b848e4701a4cd3fa781c259e3728faff1c31df.zip | |
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/Analysis/TestParallelismDetection.cpp')
| -rw-r--r-- | mlir/lib/Analysis/TestParallelismDetection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Analysis/TestParallelismDetection.cpp b/mlir/lib/Analysis/TestParallelismDetection.cpp index ae5551db215..cbda6d40224 100644 --- a/mlir/lib/Analysis/TestParallelismDetection.cpp +++ b/mlir/lib/Analysis/TestParallelismDetection.cpp @@ -44,7 +44,7 @@ FunctionPassBase *mlir::createParallelismDetectionTestPass() { // parallel. void TestParallelismDetection::runOnFunction() { Function &f = getFunction(); - FuncBuilder b(f); + OpBuilder b(f.getBody()); f.walk<AffineForOp>([&](AffineForOp forOp) { if (isLoopParallel(forOp)) forOp.emitRemark("parallel loop"); |

