26 cl::desc(
"Pop up a window to show edge bundle graphs"));
45 for (
const auto &MBB : *MF) {
46 unsigned OutE = 2 * MBB.getNumber() + 1;
49 SE = MBB.succ_end();
SI != SE; ++
SI)
50 EC.
join(OutE, 2 * (*SI)->getNumber());
60 for (
unsigned i = 0, e = MF->getNumBlockIDs(); i != e; ++i) {
63 Blocks[b0].push_back(i);
65 Blocks[b1].push_back(i);
81 for (
const auto &MBB : *MF) {
82 unsigned BB = MBB.getNumber();
89 SE = MBB.succ_end();
SI != SE; ++
SI)
void grow(unsigned N)
grow - Increase capacity to hold 0 .
unsigned getBundle(unsigned N, bool Out) const
getBundle - Return the ingoing (Out = false) or outgoing (Out = true) bundle number for basic block N...
This class represents lattice values for constants.
unsigned getNumBlockIDs() const
getNumBlockIDs - Return the number of MBB ID's allocated.
void compress()
compress - Compress equivalence classes by numbering them 0 .
void clear()
clear - Clear all classes so that grow() will assign a unique class to every integer.
*ViewGraph Emit a dot run run gv on the postscript *then cleanup For use from the debugger *void ViewGraph(const GraphType &G, const Twine &Name, bool ShortNames=false, const Twine &Title="", GraphProgram::Name Program=GraphProgram::DOT)
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Printable printMBBReference(const MachineBasicBlock &MBB)
Prints a machine basic block reference.
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
Represent the analysis usage information of a pass.
std::vector< MachineBasicBlock * >::const_iterator const_succ_iterator
#define INITIALIZE_PASS(passName, arg, name, cfg, analysis)
unsigned join(unsigned a, unsigned b)
Join the equivalence classes of a and b.
void view() const
view - Visualize the annotated bipartite CFG with Graphviz.
unsigned getNumBundles() const
getNumBundles - Return the total number of bundles in the CFG.
static cl::opt< bool > ViewEdgeBundles("view-edge-bundles", cl::Hidden, cl::desc("Pop up a window to show edge bundle graphs"))
char & EdgeBundlesID
EdgeBundles analysis - Bundle machine CFG edges.
This class implements an extremely fast bulk output stream that can only output to a stream...