diff options
author | Andrew Trick <atrick@apple.com> | 2012-03-07 00:18:22 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-03-07 00:18:22 +0000 |
commit | 56b94c52c9bf0342106ca7d274b9bb469d5ef619 (patch) | |
tree | 8142fc1ee1e1404cd0b6961354d97eb3f0e7e3f4 /include/llvm/CodeGen/ScheduleDAG.h | |
parent | 8ceaa660bfec72249976c1f411db7f40cbc438bb (diff) | |
download | llvm-56b94c52c9bf0342106ca7d274b9bb469d5ef619.tar.gz llvm-56b94c52c9bf0342106ca7d274b9bb469d5ef619.tar.bz2 llvm-56b94c52c9bf0342106ca7d274b9bb469d5ef619.tar.xz |
Cleanup in preparation for misched: Move DAG visualization logic.
Soon, ScheduleDAG will not refer to the BB.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152177 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/ScheduleDAG.h')
-rw-r--r-- | include/llvm/CodeGen/ScheduleDAG.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h index a6ad732c0b..fa34e82bff 100644 --- a/include/llvm/CodeGen/ScheduleDAG.h +++ b/include/llvm/CodeGen/ScheduleDAG.h @@ -519,6 +519,7 @@ namespace llvm { /// viewGraph - Pop up a GraphViz/gv window with the ScheduleDAG rendered /// using 'dot'. /// + void viewGraph(const Twine &Name, const Twine &Title); void viewGraph(); /// EmitSchedule - Insert MachineInstrs into the MachineBasicBlock @@ -534,6 +535,9 @@ namespace llvm { /// of the ScheduleDAG. virtual std::string getGraphNodeLabel(const SUnit *SU) const = 0; + /// getDAGLabel - Return a label for the region of code covered by the DAG. + virtual std::string getDAGName() const = 0; + /// addCustomGraphFeatures - Add custom features for a visualization of /// the ScheduleDAG. virtual void addCustomGraphFeatures(GraphWriter<ScheduleDAG*> &) const {} |