X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeirg.h;h=57f4af65c146f3c8728afecd27cc2495a6c330ee;hb=5a5b0a8806277f92f5950cfedd8a231f4d00a306;hp=0ce62e4f852e64f7993b4420ea568f21d0c8ba67;hpb=c8ed98c9de91c1b252b3c2e184471bbee953c696;p=libfirm diff --git a/ir/be/beirg.h b/ir/be/beirg.h index 0ce62e4f8..57f4af65c 100644 --- a/ir/be/beirg.h +++ b/ir/be/beirg.h @@ -66,6 +66,8 @@ struct be_stack_layout_t { int initial_offset; /**< the initial difference between stack pointer and frame pointer */ int initial_bias; /**< the initial stack bias */ int stack_dir; /**< -1 for decreasing, 1 for increasing. */ + bool sp_relative : 1; /**< entities are addressed relative to + stack pointer (omit-fp mode) */ }; /** @@ -117,6 +119,11 @@ static inline be_abi_irg_t *be_get_irg_abi(const ir_graph *irg) return be_birg_from_irg(irg)->abi; } +static inline void be_set_irg_abi(ir_graph *irg, be_abi_irg_t *abi) +{ + be_birg_from_irg(irg)->abi = abi; +} + static inline be_options_t *be_get_irg_options(const ir_graph *irg) { return be_birg_from_irg(irg)->main_env->options;