[Mlir-commits] [mlir] [MLIR][Affine] Make affine fusion MDG API const correct (PR #125994)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun Feb 9 19:02:55 PST 2025


================
@@ -156,10 +158,19 @@ struct MemRefDependenceGraph {
   bool init();
 
   // Returns the graph node for 'id'.
-  Node *getNode(unsigned id);
+  const Node *getNode(unsigned id) const;
+  Node *getNode(unsigned id) {
----------------
patel-vimal wrote:

Missing doc comment?
Missing empty line after `const Node *getNode`.

https://github.com/llvm/llvm-project/pull/125994


More information about the Mlir-commits mailing list