X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firarch.c;h=d427f984c462ff6b1ae24f41b8726b73daebce67;hb=a6c8b3da7e86ac3352cefa422736b9683499911b;hp=e136b9f4388276d00f65129863432582a41b1e24;hpb=863d31d7a5c8210432fef88b30fc3e8353131538;p=libfirm diff --git a/ir/ir/irarch.c b/ir/ir/irarch.c index e136b9f43..d427f984c 100644 --- a/ir/ir/irarch.c +++ b/ir/ir/irarch.c @@ -1,10 +1,28 @@ -/** - * @file irarch.c - * @date 28.9.2004 - * @author Sebastian Hack, Michael Beck - * @brief Machine dependent Firm optimizations. +/* + * 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. * - * $Id$ + * 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 + * @brief Machine dependent Firm optimizations. + * @date 28.9.2004 + * @author Sebastian Hack, Michael Beck + * @version $Id$ */ #ifdef HAVE_CONFIG_H # include "config.h" @@ -30,7 +48,6 @@ #include "irhooks.h" #include "ircons.h" #include "irarch.h" -#include "irreflect.h" #undef DEB @@ -80,19 +97,10 @@ void arch_dep_init(arch_dep_params_factory_t factory) params = factory(); if (! op_Mulh) { - rflct_sig_t *sig; int mulh_opc = get_next_ir_opcode(); /* create the Mulh operation */ op_Mulh = new_ir_op(mulh_opc, "Mulh", op_pin_state_floats, irop_flag_commutative, oparity_binary, 0, 0, NULL); - sig = rflct_signature_allocate(1, 3); - rflct_signature_set_arg(sig, 0, 0, "Res", RFLCT_MC(Int), 0, 0); - rflct_signature_set_arg(sig, 1, 0, "Block", RFLCT_MC(BB), 0, 0); - rflct_signature_set_arg(sig, 1, 1, "Op 0", RFLCT_MC(Int), 0, 0); - rflct_signature_set_arg(sig, 1, 2, "Op 1", RFLCT_MC(Int), 0, 0); - - rflct_new_opcode(mulh_opc, "Mulh", 0); - rflct_opcode_add_signature(mulh_opc, sig); } }