Index: src/compiler/visualizer.h |
diff --git a/src/compiler/graph-visualizer.h b/src/compiler/visualizer.h |
similarity index 82% |
rename from src/compiler/graph-visualizer.h |
rename to src/compiler/visualizer.h |
index 17094c23c57c37a93433565bbfba91aa193f1c97..b1ad68ad2612183b63b653a7a50f36ffc734145f 100644 |
--- a/src/compiler/graph-visualizer.h |
+++ b/src/compiler/visualizer.h |
@@ -28,31 +28,30 @@ struct AsDOT { |
const Graph& graph; |
}; |
-std::ostream& operator<<(std::ostream& os, const AsDOT& ad); |
- |
- |
-struct AsJSON { |
- AsJSON(const Graph& g, SourcePositionTable* p) : graph(g), positions(p) {} |
+struct GraphAsJSON { |
+ GraphAsJSON(const Graph& g, SourcePositionTable* p) |
+ : graph(g), positions(p) {} |
const Graph& graph; |
const SourcePositionTable* positions; |
}; |
-std::ostream& operator<<(std::ostream& os, const AsJSON& ad); |
+struct ScheduleAsJSON { |
+ explicit ScheduleAsJSON(const Schedule& s, SourcePositionTable* p = NULL) |
+ : schedule(s), positions(p) {} |
+ const Schedule& schedule; |
+ const SourcePositionTable* positions; |
+}; |
struct AsRPO { |
explicit AsRPO(const Graph& g) : graph(g) {} |
const Graph& graph; |
}; |
-std::ostream& operator<<(std::ostream& os, const AsRPO& ad); |
- |
- |
struct AsC1VCompilation { |
explicit AsC1VCompilation(const CompilationInfo* info) : info_(info) {} |
const CompilationInfo* info_; |
}; |
- |
struct AsC1V { |
AsC1V(const char* phase, const Schedule* schedule, |
const SourcePositionTable* positions = NULL, |
@@ -76,6 +75,10 @@ struct AsC1VAllocator { |
}; |
std::ostream& operator<<(std::ostream& os, const AsDOT& ad); |
+std::ostream& operator<<(std::ostream& os, const GraphAsJSON& ad); |
+std::ostream& operator<<(std::ostream& os, const ScheduleAsJSON& ad); |
+std::ostream& operator<<(std::ostream& os, const AsRPO& ad); |
+std::ostream& operator<<(std::ostream& os, const AsDOT& ad); |
std::ostream& operator<<(std::ostream& os, const AsC1VCompilation& ac); |
std::ostream& operator<<(std::ostream& os, const AsC1V& ac); |
std::ostream& operator<<(std::ostream& os, const AsC1VAllocator& ac); |