Commit e0079e77 authored by Matthias Braun's avatar Matthias Braun
Browse files

move #define to the beginning of the header

This makes it consistent with the rest of libFirm and avoids cases where
the non-inlined version of the functions is used inside the header by accident.
parent 44f66f63
......@@ -17,6 +17,13 @@
#include "irnode_t.h"
#include "irloop.h"
#define is_ir_loop(thing) _is_ir_loop(thing)
#define set_irg_loop(irg, loop) _set_irg_loop(irg, loop)
#define get_irg_loop(irg) _get_irg_loop(irg)
#define get_loop_outer_loop(loop) _get_loop_outer_loop(loop)
#define get_loop_depth(loop) _get_loop_depth(loop)
#define get_irn_loop(n) _get_irn_loop(n)
/**
* The loops data structure.
*
......@@ -103,11 +110,4 @@ static inline ir_loop *_get_irn_loop(const ir_node *n)
return n->loop;
}
#define is_ir_loop(thing) _is_ir_loop(thing)
#define set_irg_loop(irg, loop) _set_irg_loop(irg, loop)
#define get_irg_loop(irg) _get_irg_loop(irg)
#define get_loop_outer_loop(loop) _get_loop_outer_loop(loop)
#define get_loop_depth(loop) _get_loop_depth(loop)
#define get_irn_loop(n) _get_irn_loop(n)
#endif
......@@ -17,6 +17,15 @@
#include "irmode.h"
#include "tv.h"
#define get_tarval_mode(tv) _get_tarval_mode(tv)
#define get_tarval_bad() _get_tarval_bad()
#define get_tarval_undefined() _get_tarval_undefined()
#define get_tarval_b_false() _get_tarval_b_false()
#define get_tarval_b_true() _get_tarval_b_true()
#define get_tarval_unreachable() _get_tarval_unreachable()
#define get_tarval_reachable() _get_tarval_reachable()
#define is_tarval(thing) _is_tarval(thing)
/**
* Initialization of the tarval module.
*
......@@ -105,13 +114,4 @@ static inline int _is_tarval(const void *thing)
return get_kind(thing) == k_tarval;
}
#define get_tarval_mode(tv) _get_tarval_mode(tv)
#define get_tarval_bad() _get_tarval_bad()
#define get_tarval_undefined() _get_tarval_undefined()
#define get_tarval_b_false() _get_tarval_b_false()
#define get_tarval_b_true() _get_tarval_b_true()
#define get_tarval_unreachable() _get_tarval_unreachable()
#define get_tarval_reachable() _get_tarval_reachable()
#define is_tarval(thing) _is_tarval(thing)
#endif /* FIRM_TV_TV_T_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment