libFirm 1.20
libfirm/ircgopt.h File Reference

Removal of unreachable methods. More...

#include <stddef.h>
#include "firm_types.h"
#include "begin.h"
#include "end.h"

Go to the source code of this file.

Functions

void gc_irgs (size_t n_keep, ir_entity *keep_arr[])
 Removes all methods which are not reachable from "keep_arr".
ir_prog_pass_tgc_irgs_pass (const char *name)
 Creates an ir_prog pass for gc_irgs().

Detailed Description

Removal of unreachable methods.

Author:
Hubert Schmid
Date:
09.06.2002

Removal of unreachable methods. The set of unreachable methods is computed by the callgraph.

Definition in file ircgopt.h.


Function Documentation

void gc_irgs ( size_t  n_keep,
ir_entity keep_arr[] 
)

Removes all methods which are not reachable from "keep_arr".

Frees all interprocedural loop information.

ir_prog_pass_t* gc_irgs_pass ( const char *  name)

Creates an ir_prog pass for gc_irgs().

Parameters:
namethe name of this pass or NULL
Returns:
the newly created ir_graph pass