3 * File name: ir/opt/opt_polymorphy.h
4 * Purpose: Optimize polymorphic Sel and Load nodes.
8 * Copyright: (c) 2005 Universit
\81ät Karlsruhe
9 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
14 * This file subsumes optimization code from cgana.
17 #ifndef _OPT_POLYMORPHY_H_
18 #define _OPT_POLYMORPHY_H_
23 * Transform Sel(Alloc)[method]
26 ir_node *transform_node_Sel(ir_node *node);
28 /** Transform Load(Sel(Alloc)[constant static entity])
29 * to Const[constant static entity value].
31 * This function returns a node replacing the Proj(Load)[Value].
32 * If this is actually called in transform_node, we must build
33 * a tuple, or replace the Projs of the load.
34 * Therefore we call this optimization in ldstopt.
36 ir_node *transform_node_Load(ir_node *n);
38 #endif /* _OPT_POLYMORPHY_H_ */