class OPT_HELPER


Flattened version is here

Descendants
OPT_ITER OPT_PREFETCH OPT_CONST OPTIMIZE
OPT_CSE



Public


Features
check_leftover_functions(am:$AM_EXPR)
cs_options:CS_OPTIONS
is_local(am:$AM):BOOL
m_one:AM_INT_CONST
m_two:AM_INT_CONST
make_sure_emitted(s:SIG)
new_local(func:AM_ROUT_DEF,tp:$TP):AM_LOCAL_EXPR
new_local(func:AM_ROUT_DEF,tp:$TP,source:SFILE_ID):AM_LOCAL_EXPR
one:AM_INT_CONST
prog:PROG
tp_bool:$TP
tp_char:$TP
tp_int:$TP
two:AM_INT_CONST
zero:AM_INT_CONST


Private

has_attr_expr(am:$AM):BOOL
has_no_iter(am:$AM):BOOL
hoistable(src:$AM_EXPR,c:AM_CURSOR,need_safe_attr:BOOL,in_conditional:BOOL):BOOL
hoistable_dest(desta:AM_ASSIGN_STMT,c:AM_CURSOR,need_safe_attr:BOOL,in_conditional:BOOL):BOOL
hoistable_init(src:$AM_EXPR,c:AM_CURSOR,need_safe_attr:BOOL,in_conditional:BOOL):BOOL
hoistable_init_dest(dest:$AM_EXPR,c:AM_CURSOR,need_safe_attr:BOOL,in_conditional:BOOL):BOOL
inline_func(func:AM_ROUT_DEF,am:AM_ROUT_CALL_EXPR,c:AM_CURSOR):BOOL
make_safe_attr(a:$AM)
make_unsafe_attr(a:$AM)
move_init_stmts(func:AM_ROUT_DEF,am:AM_ITER_CALL_EXPR,c:AM_CURSOR)