projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow the first line to be a comment.
[libfirm]
/
ir
/
be
/
TEMPLATE
/
TEMPLATE_new_nodes.c
diff --git
a/ir/be/TEMPLATE/TEMPLATE_new_nodes.c
b/ir/be/TEMPLATE/TEMPLATE_new_nodes.c
index
0d2517f
..
c092894
100644
(file)
--- a/
ir/be/TEMPLATE/TEMPLATE_new_nodes.c
+++ b/
ir/be/TEMPLATE/TEMPLATE_new_nodes.c
@@
-22,7
+22,6
@@
* @brief This file implements the creation of the achitecture specific firm
* opcodes and the coresponding node constructors for the TEMPLATE
* assembler irg.
* @brief This file implements the creation of the achitecture specific firm
* opcodes and the coresponding node constructors for the TEMPLATE
* assembler irg.
- * @version $Id$
*/
#include "config.h"
*/
#include "config.h"
@@
-38,7
+37,7
@@
#include "irprintf.h"
#include "xmalloc.h"
#include "irprintf.h"
#include "xmalloc.h"
-#include "
../
bearch.h"
+#include "bearch.h"
#include "TEMPLATE_nodes_attr.h"
#include "TEMPLATE_new_nodes.h"
#include "TEMPLATE_nodes_attr.h"
#include "TEMPLATE_new_nodes.h"
@@
-50,7
+49,7
@@
* @param n the node to dump
* @param reason indicates which kind of information should be dumped
*/
* @param n the node to dump
* @param reason indicates which kind of information should be dumped
*/
-static void TEMPLATE_dump_node(FILE *F, ir_node *n, dump_reason_t reason)
+static void TEMPLATE_dump_node(FILE *F,
const
ir_node *n, dump_reason_t reason)
{
ir_mode *mode = NULL;
{
ir_mode *mode = NULL;
@@
-99,16
+98,14
@@
TEMPLATE_attr_t *get_TEMPLATE_attr(ir_node *node)
*/
static void init_TEMPLATE_attributes(ir_node *node, arch_irn_flags_t flags,
const arch_register_req_t **in_reqs,
*/
static void init_TEMPLATE_attributes(ir_node *node, arch_irn_flags_t flags,
const arch_register_req_t **in_reqs,
- const be_execution_unit_t ***execution_units,
int n_res)
{
ir_graph *irg = get_irn_irg(node);
struct obstack *obst = get_irg_obstack(irg);
backend_info_t *info;
int n_res)
{
ir_graph *irg = get_irn_irg(node);
struct obstack *obst = get_irg_obstack(irg);
backend_info_t *info;
- (void) execution_units;
- arch_
irn_set
_flags(node, flags);
- arch_set_i
n_register_reqs
(node, in_reqs);
+ arch_
set_irn
_flags(node, flags);
+ arch_set_i
rn_register_reqs_in
(node, in_reqs);
info = be_get_info(node);
info->out_infos = NEW_ARR_D(reg_out_info_t, obst, n_res);
info = be_get_info(node);
info->out_infos = NEW_ARR_D(reg_out_info_t, obst, n_res);
@@
-144,6
+141,7
@@
static void TEMPLATE_copy_attr(ir_graph *irg, const ir_node *old_node,
memcpy(attr_new, attr_old, get_op_attr_size(get_irn_op(old_node)));
/* copy out flags */
memcpy(attr_new, attr_old, get_op_attr_size(get_irn_op(old_node)));
/* copy out flags */
+ new_info->flags = old_info->flags;
new_info->out_infos =
DUP_ARR_D(reg_out_info_t, obst, old_info->out_infos);
new_info->in_reqs = old_info->in_reqs;
new_info->out_infos =
DUP_ARR_D(reg_out_info_t, obst, old_info->out_infos);
new_info->in_reqs = old_info->in_reqs;