summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.h
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2021-01-06 15:31:28 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-01-06 15:31:28 +0000
commit63b3ee7f69d919eaf1558af97fc8e868cdf5387a (patch)
treec19c9f5ec928b77a9e30882746280186ccde37b2 /compiler/optimizing/graph_visualizer.h
parentcd04bfd5113fab2afc0326ddf650f5918bb4deb2 (diff)
parentc0535164d88240c24c6269d543430948a2b48bc1 (diff)
Optimizing: Add debugging output for HInstruction. am: c9fcfd02a6 am: c0535164d8
Original change: https://android-review.googlesource.com/c/platform/art/+/1539976 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Idbf6a0b1b9be2df7c9598abd4734996d4994e6b3
Diffstat (limited to 'compiler/optimizing/graph_visualizer.h')
-rw-r--r--compiler/optimizing/graph_visualizer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/optimizing/graph_visualizer.h b/compiler/optimizing/graph_visualizer.h
index e01d03c19c..b83e88740c 100644
--- a/compiler/optimizing/graph_visualizer.h
+++ b/compiler/optimizing/graph_visualizer.h
@@ -101,7 +101,7 @@ class HGraphVisualizer : public ValueObject {
public:
HGraphVisualizer(std::ostream* output,
HGraph* graph,
- const CodeGenerator& codegen);
+ const CodeGenerator* codegen);
void PrintHeader(const char* method_name) const;
void DumpGraph(const char* pass_name, bool is_after_pass, bool graph_in_bad_state) const;
@@ -112,10 +112,12 @@ class HGraphVisualizer : public ValueObject {
// method attributes is used. Such empty blocks don't break the c1visualizer parser.
static std::string InsertMetaDataAsCompilationBlock(const std::string& meta_data);
+ static void DumpInstruction(std::ostream* output, HGraph* graph, HInstruction* instruction);
+
private:
std::ostream* const output_;
HGraph* const graph_;
- const CodeGenerator& codegen_;
+ const CodeGenerator* codegen_;
DISALLOW_COPY_AND_ASSIGN(HGraphVisualizer);
};