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

Uday Bondhugula llvmlistbot at llvm.org
Mon Feb 10 07:44:09 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) {
----------------
bondhugula wrote:

This is the trivial non-const version of the one above. So, not needed and a line isn't left in between.

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


More information about the Mlir-commits mailing list