replace psets with arrays to make the compiler more predictable across runs (and...
[libfirm] / ir / be / beirg.h
index 0ce62e4..57f4af6 100644 (file)
@@ -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;