From f1b848e4701a4cd3fa781c259e3728faff1c31df Mon Sep 17 00:00:00 2001 From: River Riddle Date: Tue, 4 Jun 2019 19:18:23 -0700 Subject: NFC: Rename FuncBuilder to OpBuilder and refactor to take a top level region instead of a function. PiperOrigin-RevId: 251563898 --- mlir/lib/Analysis/TestParallelismDetection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mlir/lib/Analysis/TestParallelismDetection.cpp') 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 forOp) { if (isLoopParallel(forOp)) forOp.emitRemark("parallel loop"); -- cgit v1.2.3