2 * This file is part of libFirm.
3 * Copyright (C) 2012 University of Karlsruhe.
8 * @brief Removal of unreachable methods.
9 * @author Hubert Schmid
12 * Removal of unreachable methods. The set of unreachable methods is computed
15 #ifndef FIRM_IR_ICGOPT_H
16 #define FIRM_IR_ICGOPT_H
20 #include "firm_types.h"
24 * Removes all methods which are not reachable from "keep_arr".
26 * Frees all interprocedural loop information.
28 FIRM_API void gc_irgs(size_t n_keep, ir_entity *keep_arr[]);
31 * Creates an ir_prog pass for gc_irgs().
33 * @param name the name of this pass or NULL
34 * @return the newly created ir_graph pass
36 FIRM_API ir_prog_pass_t *gc_irgs_pass(const char *name);