summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Analysis
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-08-29 13:04:22 -0700
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-08-29 13:04:50 -0700
commit4bfae66d70aea0df4bf9948e51f4bfa8895a4f4e (patch)
tree36d7709307e4319b8fe5fccb104ac7a9e6880603 /mlir/lib/Analysis
parenta085700311cec4644381d71c6afeee021a7e8e25 (diff)
downloadbcm5719-llvm-4bfae66d70aea0df4bf9948e51f4bfa8895a4f4e.tar.gz
bcm5719-llvm-4bfae66d70aea0df4bf9948e51f4bfa8895a4f4e.zip
Refactor the 'walk' methods for operations.
This change refactors and cleans up the implementation of the operation walk methods. After this refactoring is that the explicit template parameter for the operation type is no longer needed for the explicit op walks. For example: op->walk<AffineForOp>([](AffineForOp op) { ... }); is now accomplished via: op->walk([](AffineForOp op) { ... }); PiperOrigin-RevId: 266209552
Diffstat (limited to 'mlir/lib/Analysis')
-rw-r--r--mlir/lib/Analysis/TestParallelismDetection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Analysis/TestParallelismDetection.cpp b/mlir/lib/Analysis/TestParallelismDetection.cpp
index 351a6a7a191..75982a8e0c5 100644
--- a/mlir/lib/Analysis/TestParallelismDetection.cpp
+++ b/mlir/lib/Analysis/TestParallelismDetection.cpp
@@ -45,7 +45,7 @@ FunctionPassBase *mlir::createParallelismDetectionTestPass() {
void TestParallelismDetection::runOnFunction() {
FuncOp f = getFunction();
OpBuilder b(f.getBody());
- f.walk<AffineForOp>([&](AffineForOp forOp) {
+ f.walk([&](AffineForOp forOp) {
if (isLoopParallel(forOp))
forOp.emitRemark("parallel loop");
else
OpenPOWER on IntegriCloud