Fixed some problems due to refactoring in previous revisions.
[libfirm] / ir / be / mips / mips_new_nodes.h
index 1d1a45d..8ddc9e8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
 /**
  * Returns the attributes of an mips node.
  */
-mips_attr_t *get_mips_attr(const ir_node *node);
+mips_attr_t *get_mips_attr(ir_node *node);
+const mips_attr_t *get_mips_attr_const(const ir_node *node);
+const mips_immediate_attr_t *get_mips_immediate_attr_const(const ir_node *node);
+const mips_load_store_attr_t *get_mips_load_store_attr_const(
+               const ir_node *node);
 
 /**
  * Returns the argument register requirements of an mips node.
  */
 const arch_register_req_t **get_mips_in_req_all(const ir_node *node);
 
-/**
- * Returns the result register requirements of an mips node.
- */
-const arch_register_req_t **get_mips_out_req_all(const ir_node *node);
-
 /**
  * Returns the argument register requirements of an mips node.
  */
@@ -74,59 +73,6 @@ void set_mips_req_out(ir_node *node, const arch_register_req_t *req, int pos);
  */
 void set_mips_req_in(ir_node *node, const arch_register_req_t *req, int pos);
 
-/**
- * Returns the register flag of an mips node.
- */
-arch_irn_flags_t get_mips_flags(const ir_node *node);
-
-/**
- * Sets the register flag of an mips node.
- */
-void set_mips_flags(const ir_node *node, arch_irn_flags_t flags);
-
-/**
- * Returns the result register slots of an mips node.
- */
-const arch_register_t **get_mips_slots(const ir_node *node);
-
-/**
- * Returns the name of the OUT register at position pos.
- */
-const char *get_mips_out_reg_name(const ir_node *node, int pos);
-
-/**
- * Returns the index of the OUT register at position pos within its register class.
- */
-int get_mips_out_regnr(const ir_node *node, int pos);
-
-/**
- * Returns the OUT register at position pos.
- */
-const arch_register_t *get_mips_out_reg(const ir_node *node, int pos);
-
-/**
- * Sets the number of results.
- */
-void set_mips_n_res(ir_node *node, int n_res);
-
-/**
- * Returns the number of results.
- */
-int get_mips_n_res(const ir_node *node);
-
-
-/**
- * Initializes the nodes attributes.
- */
-void init_mips_attributes(ir_node *node, arch_irn_flags_t flags, const arch_register_req_t **in_reqs,
-        const arch_register_req_t **out_reqs, const be_execution_unit_t ***execution_units, int n_res, unsigned latency);
-
-/**
- * Initialize transform ops for the mips opcodes
- */
-void mips_init_opcode_transforms(void);
-
-
 /* Include the generated headers */
 #include "gen_mips_new_nodes.h"