removed unnecessary functions handle the slots
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 20 Apr 2006 16:29:37 +0000 (16:29 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 20 Apr 2006 16:29:37 +0000 (16:29 +0000)
st registers are allocated by the x87 simulator and don't need a noreg

ir/be/ia32/bearch_ia32.c
ir/be/ia32/ia32_new_nodes.h
ir/be/ia32/ia32_spec.pl

index 795bbb3..85574c2 100644 (file)
@@ -292,6 +292,12 @@ static void *ia32_abi_init(const be_abi_call_t *call, const arch_env_t *aenv, ir
        return env;
 }
 
+/**
+ * Put all registers which are saved by the prologue/epilogue in a set.
+ *
+ * @param self  The callback object.
+ * @param s     The result set.
+ */
 static void ia32_abi_dont_save_regs(void *self, pset *s)
 {
        ia32_abi_env_t *env = self;
@@ -301,9 +307,11 @@ static void ia32_abi_dont_save_regs(void *self, pset *s)
 
 /**
  * Generate the routine prologue.
+ *
  * @param self    The callback object.
  * @param mem     A pointer to the mem node. Update this if you define new memory.
  * @param reg_map A map mapping all callee_save/ignore/parameter registers to their defining nodes.
+ *
  * @return        The register which shall be used as a stack frame base.
  *
  * All nodes which define registers in @p reg_map must keep @p reg_map current.
@@ -957,7 +965,6 @@ static void *ia32_init(FILE *file_handle) {
 
        ia32_register_init(isa);
        ia32_create_opcodes();
-       ia32_register_copy_attr_func();
 
        if ((ARCH_INTEL(isa->arch) && isa->arch < arch_pentium_4) ||
            (ARCH_AMD(isa->arch) && isa->arch < arch_athlon))
index 5e3ffbb..bfe91e7 100644 (file)
@@ -442,22 +442,12 @@ int is_ia32_St(const ir_node *node);
  */
 int is_ia32_Cnst(const ir_node *node);
 
-/**
- * Allocates num register slots for node.
- */
-void alloc_ia32_reg_slots(ir_node *node, int num);
-
 /**
  * Initializes the nodes attributes.
  */
 void init_ia32_attributes(ir_node *node, arch_irn_flags_t flags, const ia32_register_req_t **in_reqs, \
        const ia32_register_req_t **out_reqs, int n_res);
 
-/**
- * Registers the ia32_copy_attr function for all ia32 opcodes.
- */
-void ia32_register_copy_attr_func(void);
-
 /* Include the generated headers */
 #include "gen_ia32_new_nodes.h"
 
index 102e41c..4a468af 100644 (file)
@@ -145,8 +145,6 @@ $comment_string = "/*";
             { "name" => "st5", "type" => 1 },
             { "name" => "st6", "type" => 1 },
             { "name" => "st7", "type" => 1 },
-            { "name" => "st_NOREG", "type" => 6 },  # we need a dummy register for NoReg nodes
-            { "name" => "st_UKNWN", "type" => 6 },  # we need a dummy register for Unknown nodes
                        { "mode" => "mode_E" }
           ]
 ); # %reg_classes