[Mlir-commits] [mlir] [mlir][CallGraph] Add edges for callable symbol references in CallGraph (PR #116177)

Haocong Lu llvmlistbot at llvm.org
Thu Dec 5 21:30:39 PST 2024


================
@@ -114,6 +121,13 @@ class CallGraphNode {
   /// Returns true if this node has any child edges.
   bool hasChildren() const;
 
+  /// Return true if this node is dead.
+  bool isDead() const { return !isExternal() && getNumReferences() == 0; }
+
+  /// Returns the number of edges in this callgraph that connected
----------------
Luhaocong wrote:

done

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


More information about the Mlir-commits mailing list