search for: cfgdiff

Displaying 3 results from an estimated 3 matches for "cfgdiff".

2020 Mar 10
2
RFC: Making a common successor/predecessor interface
...may be possible to do this with the current API, but what I was >> looking for is a common API for existing block types. For example there is >> no succ_begin for Machine BasicBlock. >> > >> I'm looking to make the CFGSuccessors and CFGPredecessors classes in >> CFGDiff.h templated, and this needs a common API for all types >> instantiations. >> >> Does this clarify your question or did I misunderstand your suggestion? >> > > Possibly some misunderstanding - sounds like Nicolai had the same > suggestion phrased more clearly. > &...
2020 Mar 10
4
RFC: Making a common successor/predecessor interface
Hi Dave, It may be possible to do this with the current API, but what I was looking for is a common API for existing block types. For example there is no succ_begin for Machine BasicBlock. I'm looking to make the CFGSuccessors and CFGPredecessors classes in CFGDiff.h templated, and this needs a common API for all types instantiations. Does this clarify your question or did I misunderstand your suggestion? Nicolai, Yes, I considered declaring the "global" succ_begin for the other block types, but it seems like a more complex change (probably to de...
2020 Mar 09
3
RFC: Making a common successor/predecessor interface
Hi, As part of an ongoing work to extend the GraphDiff (this models a CFG view), I came across the need to have a common interface for accessing successors/predecessors in various IR units, such that a type such as `typename NodeT::succ_iterator` could be used in templated code. In particular, the need arose for BasicBlocks, MachineBasicBlocks, VPBlockBase and clang::CFGBlock. The least invasive