X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fopt_manage.h;h=23ca5e4c815a027921bc0914d6f5a44ca01dee6c;hb=8c9921a1fc166552f6e416434fd8394a4fc210a3;hp=21e18647a61ee7aac77c1f28b237fd697b900921;hpb=2232b14b4acf810ae96a69d1d2a33cf150b695d9;p=libfirm diff --git a/ir/opt/opt_manage.h b/ir/opt/opt_manage.h index 21e18647a..23ca5e4c8 100644 --- a/ir/opt/opt_manage.h +++ b/ir/opt/opt_manage.h @@ -1,3 +1,30 @@ +/* + * Copyright (C) 2011 Karlsruhe Institute of Technology. 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 Optimization wrapper for specifying requirements + * @author Andreas Zwinkau + */ +#ifndef FIRM_OPT_MANAGE_H +#define FIRM_OPT_MANAGE_H + #include "config.h" #include @@ -25,4 +52,10 @@ typedef struct optdesc_t { ir_graph_state_t (*const optimization)(ir_graph *irg); } optdesc_t; +/** Apply an optimization to an ir graph. + * Assures preconditions, invalidates afterwards, and runs the verifier. + * Might also dump the irg. + */ void perform_irg_optimization(ir_graph *irg, optdesc_t *opt); + +#endif