becopyheur4: Clean up co_mst_irn_init().
[libfirm] / ir / ir / irop.c
index f11728a..423ef45 100644 (file)
@@ -1,20 +1,6 @@
 /*
- * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
- *
  * This file is part of libFirm.
- *
- * This file may be distributed and/or modified under the terms of the
- * GNU General Public License version 2 as published by the Free Software
- * Foundation and appearing in the file LICENSE.GPL included in the
- * packaging of this file.
- *
- * Licensees holding valid libFirm Professional Edition licenses may use
- * this file in accordance with the libFirm Commercial License.
- * Agreement provided with the Software.
- *
- * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
- * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE.
+ * Copyright (C) 2012 University of Karlsruhe.
  */
 
 /**
@@ -195,7 +181,7 @@ void (set_generic_function_ptr)(ir_op *op, op_func func)
        set_generic_function_ptr_(op, func);
 }
 
-ir_op_ops *(get_op_ops)(ir_op *op)
+ir_op_ops const *(get_op_ops)(ir_op const *const op)
 {
        return get_op_ops_(op);
 }
@@ -345,12 +331,6 @@ static int node_cmp_attr_Phi(const ir_node *a, const ir_node *b)
        return 0;
 }
 
-/** Compares the attributes of two Cast nodes. */
-static int node_cmp_attr_Cast(const ir_node *a, const ir_node *b)
-{
-       return get_Cast_type(a) != get_Cast_type(b);
-}
-
 /** Compares the attributes of two Load nodes. */
 static int node_cmp_attr_Load(const ir_node *a, const ir_node *b)
 {
@@ -387,11 +367,6 @@ static int node_cmp_attr_CopyB(const ir_node *a, const ir_node *b)
        return node_cmp_exception(a, b);
 }
 
-static int node_cmp_attr_Bound(const ir_node *a, const ir_node *b)
-{
-       return node_cmp_exception(a, b);
-}
-
 /** Compares the attributes of two Div nodes. */
 static int node_cmp_attr_Div(const ir_node *a, const ir_node *b)
 {
@@ -596,10 +571,8 @@ void firm_init_op(void)
 
        register_node_cmp_func(op_ASM,      node_cmp_attr_ASM);
        register_node_cmp_func(op_Alloc,    node_cmp_attr_Alloc);
-       register_node_cmp_func(op_Bound,    node_cmp_attr_Bound);
        register_node_cmp_func(op_Builtin,  node_cmp_attr_Builtin);
        register_node_cmp_func(op_Call,     node_cmp_attr_Call);
-       register_node_cmp_func(op_Cast,     node_cmp_attr_Cast);
        register_node_cmp_func(op_Cmp,      node_cmp_attr_Cmp);
        register_node_cmp_func(op_Confirm,  node_cmp_attr_Confirm);
        register_node_cmp_func(op_Const,    node_cmp_attr_Const);