From 559bd13bb89730c38400f559734d1113560e18c9 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sat, 26 May 2007 10:43:19 +0000 Subject: [PATCH] Add the -f{,no-}deconv switches do {en,dis}able the conv node optimization. [r14048] --- ir/opt/convopt.c | 3 ++- ir/opt/convopt.h | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 ir/opt/convopt.h diff --git a/ir/opt/convopt.c b/ir/opt/convopt.c index 2dbae8301..73a2cfc1f 100644 --- a/ir/opt/convopt.c +++ b/ir/opt/convopt.c @@ -21,7 +21,7 @@ * @file * @brief conv node optimisation * @author Matthias Braun, Christoph Mallon - * @version $Id: condeval.c 13543 2007-04-29 19:29:02Z beck $ + * @version $Id$ * * Try to minimize the number of conv nodes by changing modes of operations. * The typical example is the following structure: @@ -41,6 +41,7 @@ #endif #include +#include "convopt.h" #include "debug.h" #include "ircons.h" #include "irgmod.h" diff --git a/ir/opt/convopt.h b/ir/opt/convopt.h new file mode 100644 index 000000000..454dc3c50 --- /dev/null +++ b/ir/opt/convopt.h @@ -0,0 +1,38 @@ +/* + * 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 + * @brief conv node optimisation + * @author Matthias Braun, Christoph Mallon + * @version $Id:$ + */ +#ifndef FIRM_OPT_CONVOPT_H +#define FIRM_OPT_CONVOPT_H + +#include "firm_types.h" + +/** + * Try to reduce the number of conv nodes in the given ir graph. + * + * @param irg the graph + */ +void conv_opt(ir_graph *irg); + +#endif /* FIRM_OPT_CONVOPT_H */ -- 2.20.1