emit .skip if a string initializer is shorter than the entity
[libfirm] / ir / arch / modeconv.c
index 5a3d597..b2fc2b8 100644 (file)
@@ -1,23 +1,33 @@
 /*
- * Project:     libFIRM
- * File name:   ir/arch/modeconv.c
- * Purpose:     integer mode conversion
- * Author:      Michael Beck
- * Created:
- * CVS-ID:      $Id$
- * Copyright:   (c) 1998-2004 Universität Karlsruhe
- * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
+ * Copyright (C) 1995-2007 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.
  */
 
 /**
- * @file modeconv.c
- *
- * Contains the mode conversion for architectures that did not support lesser
- * integer modes. Converts all Op(mode_l) into Op(mode) operations by adding
- * conversions were needed. These Conv operations must be implemented in the backend
- * as bit-reducing ops.
+ * @file
+ * @brief    integer mode conversion
+ * @author   Michael Beck
+ * @version  $Id$
+ * @summary
+ *  Contains the mode conversion for architectures that did not support lesser
+ *  integer modes. Converts all Op(mode_l) into Op(mode) operations by adding
+ *  conversions were needed. These Conv operations must be implemented in the
+ *  backend as bit-reducing ops.
  */
-
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
@@ -68,7 +78,7 @@ static ir_node *fix_irn_output(ir_node *node, ir_mode *mode)
 /**
  * Add a Conv node where needed on input
  */
-static ir_node *fix_irn_input(opcode code, ir_node *block, ir_node *pred, ir_mode *mode)
+static ir_node *fix_irn_input(ir_opcode code, ir_node *block, ir_node *pred, ir_mode *mode)
 {
   switch (code) {
     case iro_DivMod:
@@ -95,7 +105,7 @@ static ir_node *fix_irn_input(opcode code, ir_node *block, ir_node *pred, ir_mod
  */
 static void fix_mode(ir_node *n, ir_mode *mode)
 {
-  opcode code = get_irn_opcode(n);
+  ir_opcode code = get_irn_opcode(n);
 
   if (code == iro_Proj) {
     code = get_irn_opcode(get_Proj_pred(n));
@@ -121,16 +131,16 @@ static void do_mode_conv(ir_node *n, void *env)
   walker_t *wenv = env;
   ir_mode *mode  = get_irn_mode(n);
   ir_node *block;
-  opcode code;
+  ir_opcode code;
 
   /* save the old mode, we need this info later */
   set_irn_link(n, mode);
 
   /* special case: fix the Return */
   if (is_Return(n)) {
-    entity *ent = get_irg_entity(current_ir_graph);
-    ir_type *mt = get_entity_type(ent);
-    int i, n_ress = get_method_n_ress(mt);
+    ir_entity *ent = get_irg_entity(current_ir_graph);
+    ir_type *mt    = get_entity_type(ent);
+    int i, n_ress  = get_method_n_ress(mt);
 
     mode  = mode_is_signed(mode) ? wenv->s_mode : wenv->u_mode;
     block = get_nodes_block(n);