[PATCH] D22937: [ADT] NFC: Generalize GraphTraits requirement of "NodeType *" in interfaces to "NodeRef", and migrate SCCIterator.h to use NodeRef

Tim Shen via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 28 14:32:03 PDT 2016


timshen created this revision.
timshen added reviewers: dblaikie, chandlerc.
timshen added a subscriber: llvm-commits.

By generalize the interface, users are able to inject more flexible Node token into the algorithm, for example, a pair of vector<Node>* and index integer. Currently I only migrated SCCIterator to use NodeRef, but more is coming. It's a NFC.

https://reviews.llvm.org/D22937

Files:
  include/llvm/ADT/GraphTraits.h
  include/llvm/ADT/SCCIterator.h
  include/llvm/Analysis/CallGraph.h
  include/llvm/CodeGen/MachineBasicBlock.h
  include/llvm/IR/CFG.h
  lib/Analysis/BlockFrequencyInfoImpl.cpp
  lib/Transforms/IPO/FunctionAttrs.cpp
  unittests/ADT/SCCIteratorTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22937.66005.patch
Type: text/x-patch
Size: 11218 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160728/ea226bd4/attachment.bin>


More information about the llvm-commits mailing list