summaryrefslogtreecommitdiffhomepage
path: root/ir/be/TEMPLATE
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-01-03 01:18:33 +0100
committerMatthias Braun <matze@braunis.de>2016-01-03 01:29:44 +0100
commit04580e629b950a1fc89a7a59c5b11aed1d6a3690 (patch)
tree00086557eb9359ccc803c83e7468f6a8ea561ca4 /ir/be/TEMPLATE
parentca1a30a448dcc9bfe3bc0e311bbfc886557b45a7 (diff)
be: gen_xxx_new_nodes.c.inl -> gen_xxx_new_nodes.c
Diffstat (limited to 'ir/be/TEMPLATE')
-rw-r--r--ir/be/TEMPLATE/TEMPLATE_new_nodes.c18
-rw-r--r--ir/be/TEMPLATE/TEMPLATE_new_nodes_t.h22
2 files changed, 27 insertions, 13 deletions
diff --git a/ir/be/TEMPLATE/TEMPLATE_new_nodes.c b/ir/be/TEMPLATE/TEMPLATE_new_nodes.c
index 9fa13c8..9cf12de 100644
--- a/ir/be/TEMPLATE/TEMPLATE_new_nodes.c
+++ b/ir/be/TEMPLATE/TEMPLATE_new_nodes.c
@@ -23,16 +23,10 @@
#include "bedump.h"
#include "TEMPLATE_nodes_attr.h"
-#include "TEMPLATE_new_nodes.h"
+#include "TEMPLATE_new_nodes_t.h"
#include "gen_TEMPLATE_regalloc_if.h"
-/**
- * Dumper interface for dumping TEMPLATE nodes in vcg.
- * @param F the output file
- * @param n the node to dump
- * @param reason indicates which kind of information should be dumped
- */
-static void TEMPLATE_dump_node(FILE *F, const ir_node *n, dump_reason_t reason)
+void TEMPLATE_dump_node(FILE *F, const ir_node *n, dump_reason_t reason)
{
switch (reason) {
case dump_node_opcode_txt:
@@ -67,20 +61,18 @@ TEMPLATE_attr_t *get_TEMPLATE_attr(ir_node *node)
return (TEMPLATE_attr_t *)get_irn_generic_attr(node);
}
-static void set_TEMPLATE_value(ir_node *const node, ir_entity *const entity, ir_tarval *const value)
+void set_TEMPLATE_value(ir_node *const node, ir_entity *const entity,
+ ir_tarval *const value)
{
TEMPLATE_attr_t *attr = get_TEMPLATE_attr(node);
attr->entity = entity;
attr->value = value;
}
-static int TEMPLATE_attrs_equal(const ir_node *a, const ir_node *b)
+int TEMPLATE_attrs_equal(const ir_node *a, const ir_node *b)
{
const TEMPLATE_attr_t *attr_a = get_TEMPLATE_attr_const(a);
const TEMPLATE_attr_t *attr_b = get_TEMPLATE_attr_const(b);
return attr_a->value == attr_b->value
&& attr_a->entity == attr_b->entity;
}
-
-/* Include the generated constructor functions */
-#include "gen_TEMPLATE_new_nodes.c.inl"
diff --git a/ir/be/TEMPLATE/TEMPLATE_new_nodes_t.h b/ir/be/TEMPLATE/TEMPLATE_new_nodes_t.h
new file mode 100644
index 0000000..2f7f428
--- /dev/null
+++ b/ir/be/TEMPLATE/TEMPLATE_new_nodes_t.h
@@ -0,0 +1,22 @@
+/*
+ * This file is part of libFirm.
+ * Copyright (C) 2016 Matthias Braun
+ */
+
+/**
+ * @file
+ * @brief Internal declarations used by gen_new_nodes.c
+ */
+#ifndef FIRM_BE_TEMPLATE_TEMPLATE_NEW_NODES_T_H
+#define FIRM_BE_TEMPLATE_TEMPLATE_NEW_NODES_T_H
+
+#include "TEMPLATE_new_nodes.h"
+
+void TEMPLATE_dump_node(FILE *F, const ir_node *n, dump_reason_t reason);
+
+void set_TEMPLATE_value(ir_node *const node, ir_entity *const entity,
+ ir_tarval *const value);
+
+int TEMPLATE_attrs_equal(const ir_node *a, const ir_node *b);
+
+#endif