summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bedump.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2011-12-02 19:13:33 +0100
committerMatthias Braun <matze@braunis.de>2011-12-05 12:52:03 +0100
commit979e11a67115604f5ca3050ad2fab08d190a13e8 (patch)
tree708bb4fb4494aef0ae6f5a5f78622d0c096064aa /ir/be/bedump.h
parent8e4e49e66d1d578b31a5ffce9bb6ff94ba985dfb (diff)
introduce bedump
Moves code from ifg dot-file dumpers around and produces .vcg graphs now (ycomp layout is way better than xdot)
Diffstat (limited to 'ir/be/bedump.h')
-rw-r--r--ir/be/bedump.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/ir/be/bedump.h b/ir/be/bedump.h
new file mode 100644
index 0000000..3909bdf
--- /dev/null
+++ b/ir/be/bedump.h
@@ -0,0 +1,45 @@
+/*
+ * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
+ *
+ * This file is part of libFirm.
+ *
+ * This file may be distributed and/or modified under the terms of the
+ * GNU General Public License version 2 as published by the Free Software
+ * Foundation and appearing in the file LICENSE.GPL included in the
+ * packaging of this file.
+ *
+ * Licensees holding valid libFirm Professional Edition licenses may use
+ * this file in accordance with the libFirm Commercial License.
+ * Agreement provided with the Software.
+ *
+ * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+ * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE.
+ */
+
+/**
+ * @file
+ * @brief Code for dumping backend datastructures (i.e. interference graphs)
+ * @author Matthias Braun
+ */
+#ifndef FIRM_BE_BEDUMP_H
+#define FIRM_BE_BEDUMP_H
+
+#include <stdio.h>
+#include <stdbool.h>
+#include "firm_types.h"
+#include "be_types.h"
+
+/**
+ * Dump interference graph
+ */
+void be_dump_ifg(FILE *F, ir_graph *irg, const be_ifg_t *ifg);
+
+/**
+ * Dump interference graph with affinity edges as calculated by a
+ * copy-minimisation phase
+ */
+void be_dump_ifg_co(FILE *F, const copy_opt_t *co,
+ bool dump_costs, bool dump_colors);
+
+#endif