/*
- * 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
/**
* 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:
*/
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));
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);