[PATCH] D77381: Fix shape inference in toy tutorial

Frederik Gossen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 3 05:20:38 PDT 2020


frgossen updated this revision to Diff 254751.
frgossen added a comment.

Fix formatting


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77381/new/

https://reviews.llvm.org/D77381

Files:
  mlir/examples/toy/Ch4/mlir/ShapeInferencePass.cpp


Index: mlir/examples/toy/Ch4/mlir/ShapeInferencePass.cpp
===================================================================
--- mlir/examples/toy/Ch4/mlir/ShapeInferencePass.cpp
+++ mlir/examples/toy/Ch4/mlir/ShapeInferencePass.cpp
@@ -11,13 +11,10 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "mlir/IR/Operation.h"
-#include "mlir/IR/StandardTypes.h"
 #include "mlir/Pass/Pass.h"
 #include "toy/Dialect.h"
 #include "toy/Passes.h"
 #include "toy/ShapeInferenceInterface.h"
-#include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/SmallPtrSet.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/raw_ostream.h"
@@ -91,9 +88,10 @@
     }
   }
 
-  /// A utility method that returns if the given operation has all of its operand inferred.
+  /// A utility method that returns if the given operation has all of its
+  /// operand inferred.
   static bool allOperandsInferred(Operation *op) {
-    return  llvm::all_of(op->getOperandTypes(), [](Type operandType) {
+    return llvm::all_of(op->getOperandTypes(), [](Type operandType) {
       return operandType.isa<RankedTensorType>();
     });
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77381.254751.patch
Type: text/x-patch
Size: 1157 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200403/b1ff250a/attachment.bin>


More information about the llvm-commits mailing list