[PATCH] D142162: [Dominators] Introduce DomTreeNodeTraits to allow customization. (NFC)
Jakub Kuderski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 20 08:07:23 PST 2023
kuhar added inline comments.
================
Comment at: llvm/include/llvm/Support/GenericDomTree.h:236-237
+
+ static NodeT *getEntryNode(ParentPtr Parent) { return &Parent->front(); }
+ static ParentPtr getParent(NodePtr BB) { return BB->getParent(); }
+};
----------------
nit: In the default implementation, it also seems reasonable to me to go through the related graph traits methods. But since both will end up calling these, either way (i.e., direct calls vs. graph traits) seems fine to me.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142162/new/
https://reviews.llvm.org/D142162
More information about the llvm-commits
mailing list