[Mlir-commits] [mlir] dc9f18d - Partially revert cac7aabbd82: some APIs don't have in-tree users and some build breaks weren't caught

Mehdi Amini llvmlistbot at llvm.org
Thu Jan 13 22:16:54 PST 2022


Author: Mehdi Amini
Date: 2022-01-14T06:16:38Z
New Revision: dc9f18da867924840cc9cc20a56e543fe98f0609

URL: https://github.com/llvm/llvm-project/commit/dc9f18da867924840cc9cc20a56e543fe98f0609
DIFF: https://github.com/llvm/llvm-project/commit/dc9f18da867924840cc9cc20a56e543fe98f0609.diff

LOG: Partially revert cac7aabbd82: some APIs don't have in-tree users and some build breaks weren't caught

Added: 
    

Modified: 
    mlir/include/mlir/IR/Dominance.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/Dominance.h b/mlir/include/mlir/IR/Dominance.h
index 1aab9fd1fdad2..d94d5be3c53e5 100644
--- a/mlir/include/mlir/IR/Dominance.h
+++ b/mlir/include/mlir/IR/Dominance.h
@@ -207,9 +207,9 @@ struct GraphTraits<mlir::DominanceInfoNode *> {
   using ChildIteratorType = mlir::DominanceInfoNode::const_iterator;
   using NodeRef = mlir::DominanceInfoNode *;
 
-  static NodeRef getEntryNode(NodeRef n) { return n; }
-  static inline ChildIteratorType childBegin(NodeRef n) { return n->begin(); }
-  static inline ChildIteratorType childEnd(NodeRef n) { return n->end(); }
+  static NodeRef getEntryNode(NodeRef N) { return N; }
+  static inline ChildIteratorType child_begin(NodeRef N) { return N->begin(); }
+  static inline ChildIteratorType child_end(NodeRef N) { return N->end(); }
 };
 
 template <>
@@ -217,9 +217,9 @@ struct GraphTraits<const mlir::DominanceInfoNode *> {
   using ChildIteratorType = mlir::DominanceInfoNode::const_iterator;
   using NodeRef = const mlir::DominanceInfoNode *;
 
-  static NodeRef getEntryNode(NodeRef n) { return n; }
-  static inline ChildIteratorType childBegin(NodeRef n) { return n->begin(); }
-  static inline ChildIteratorType childEnd(NodeRef n) { return n->end(); }
+  static NodeRef getEntryNode(NodeRef N) { return N; }
+  static inline ChildIteratorType child_begin(NodeRef N) { return N->begin(); }
+  static inline ChildIteratorType child_end(NodeRef N) { return N->end(); }
 };
 
 } // namespace llvm


        


More information about the Mlir-commits mailing list