summaryrefslogtreecommitdiff
path: root/cgcalc.h
diff options
context:
space:
mode:
Diffstat (limited to 'cgcalc.h')
-rw-r--r--cgcalc.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/cgcalc.h b/cgcalc.h
new file mode 100644
index 0000000..6eaaae5
--- /dev/null
+++ b/cgcalc.h
@@ -0,0 +1,15 @@
+extern void calculate_graph_register_uses (INSTRUCTION_GRAPH graph);
+extern void count_graph (INSTRUCTION_GRAPH graph);
+extern void mark_graph_1 (INSTRUCTION_GRAPH graph);
+extern void mark_graph_2 (INSTRUCTION_GRAPH graph);
+extern void mark_and_count_graph (INSTRUCTION_GRAPH graph);
+
+#ifdef I486
+/* # define A_FACTOR 2 */
+/* # define D_FACTOR 2 */
+# define AD_REG_WEIGHT(n_a_regs,n_d_regs) ((n_a_regs)+(n_d_regs))
+#else
+/* # define A_FACTOR 7 */
+/* # define D_FACTOR 3 */
+# define AD_REG_WEIGHT(n_a_regs,n_d_regs) ((((n_a_regs)<<3)-(n_a_regs))+((n_d_regs)+(n_d_regs)+(n_d_regs)))
+#endif