Commit 9d3c8631 authored by Matthias Braun's avatar Matthias Braun
Browse files

rename tarval to ir_tarval

[r28062]
parent ca42e4ac
...@@ -155,7 +155,7 @@ FIRM_API void set_compound_ent_value(ir_entity *ent, ir_node *val, ...@@ -155,7 +155,7 @@ FIRM_API void set_compound_ent_value(ir_entity *ent, ir_node *val,
* fits into the given array size. Does not test whether the * fits into the given array size. Does not test whether the
* values have the proper mode for the array. * values have the proper mode for the array.
*/ */
FIRM_API void set_array_entity_values(ir_entity *ent, tarval **values, int num_vals); FIRM_API void set_array_entity_values(ir_entity *ent, ir_tarval **values, int num_vals);
/** /**
* @deprecated * @deprecated
......
...@@ -40,7 +40,7 @@ typedef struct ir_op ir_op, *ir_op_ptr; ...@@ -40,7 +40,7 @@ typedef struct ir_op ir_op, *ir_op_ptr;
typedef struct ir_mode ir_mode, *ir_mode_ptr; typedef struct ir_mode ir_mode, *ir_mode_ptr;
typedef struct ir_edge_t ir_edge_t, *ir_edge_ptr; typedef struct ir_edge_t ir_edge_t, *ir_edge_ptr;
typedef struct ir_heights_t ir_heights_t; typedef struct ir_heights_t ir_heights_t;
typedef struct tarval tarval, *ir_tarval_ptr; typedef struct ir_tarval ir_tarval, *ir_tarval_ptr;
typedef struct ir_enum_const ir_enum_const, *ir_enum_const_ptr; typedef struct ir_enum_const ir_enum_const, *ir_enum_const_ptr;
typedef struct ir_type ir_type, *ir_type_ptr; typedef struct ir_type ir_type, *ir_type_ptr;
typedef struct ir_graph ir_graph, *ir_graph_ptr; typedef struct ir_graph ir_graph, *ir_graph_ptr;
......
...@@ -51,7 +51,7 @@ typedef enum instr { ...@@ -51,7 +51,7 @@ typedef enum instr {
* *
* @return the costs of this instruction * @return the costs of this instruction
*/ */
typedef int (*evaluate_costs_func)(insn_kind kind, tarval *tv); typedef int (*evaluate_costs_func)(insn_kind kind, ir_tarval *tv);
/** /**
* A parameter structure that drives the machine dependent Firm * A parameter structure that drives the machine dependent Firm
......
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
* ir_node *new_IJmp (ir_node *tgt); * ir_node *new_IJmp (ir_node *tgt);
* ir_node *new_Cond (ir_node *c); * ir_node *new_Cond (ir_node *c);
* ir_node *new_Return (ir_node *store, int arity, ir_node **in); * ir_node *new_Return (ir_node *store, int arity, ir_node **in);
* ir_node *new_Const (tarval *con); * ir_node *new_Const (ir_tarval *con);
* ir_node *new_SymConst (ir_mode *mode, symconst_symbol value, symconst_kind kind); * ir_node *new_SymConst (ir_mode *mode, symconst_symbol value, symconst_kind kind);
* ir_node *new_simpleSel (ir_node *store, ir_node *objptr, ir_entity *ent); * ir_node *new_simpleSel (ir_node *store, ir_node *objptr, ir_entity *ent);
* ir_node *new_Sel (ir_node *store, ir_node *objptr, int arity, * ir_node *new_Sel (ir_node *store, ir_node *objptr, int arity,
...@@ -501,7 +501,7 @@ ...@@ -501,7 +501,7 @@
* Control flow to the end block. * Control flow to the end block.
* *
* *
* ir_node *new_Const (tarval *con) * ir_node *new_Const (ir_tarval *con)
* ----------------------------------------------- * -----------------------------------------------
* *
* Creates a constant in the constant table and adds a Const node * Creates a constant in the constant table and adds a Const node
...@@ -1220,7 +1220,7 @@ FIRM_API ir_node *new_rd_Return(dbg_info *db, ir_node *block, ...@@ -1220,7 +1220,7 @@ FIRM_API ir_node *new_rd_Return(dbg_info *db, ir_node *block,
* @param *irg The IR graph the node belongs to. * @param *irg The IR graph the node belongs to.
* @param *con Points to an entry in the constant table. * @param *con Points to an entry in the constant table.
*/ */
FIRM_API ir_node *new_rd_Const(dbg_info *db, ir_graph *irg, tarval *con); FIRM_API ir_node *new_rd_Const(dbg_info *db, ir_graph *irg, ir_tarval *con);
/** /**
* Constructor for a Const node. * Constructor for a Const node.
...@@ -2006,7 +2006,7 @@ FIRM_API ir_node *new_r_Return(ir_node *block, ir_node *store, ...@@ -2006,7 +2006,7 @@ FIRM_API ir_node *new_r_Return(ir_node *block, ir_node *store,
* @param *irg The IR graph the node belongs to. * @param *irg The IR graph the node belongs to.
* @param *con Points to an entry in the constant table. * @param *con Points to an entry in the constant table.
*/ */
FIRM_API ir_node *new_r_Const(ir_graph *irg, tarval *con); FIRM_API ir_node *new_r_Const(ir_graph *irg, ir_tarval *con);
/** Constructor for a Const node. /** Constructor for a Const node.
* *
...@@ -2728,7 +2728,7 @@ FIRM_API ir_node *new_d_Return(dbg_info *db, ir_node *store, ...@@ -2728,7 +2728,7 @@ FIRM_API ir_node *new_d_Return(dbg_info *db, ir_node *store,
* @param *con Points to an entry in the constant table. This pointer is added * @param *con Points to an entry in the constant table. This pointer is added
* to the attributes of the node. * to the attributes of the node.
*/ */
FIRM_API ir_node *new_d_Const(dbg_info *db, tarval *con); FIRM_API ir_node *new_d_Const(dbg_info *db, ir_tarval *con);
/** /**
* @see new_rd_Const_long() * @see new_rd_Const_long()
...@@ -3456,7 +3456,7 @@ FIRM_API ir_node *new_Return(ir_node *store, int arity, ir_node *in[]); ...@@ -3456,7 +3456,7 @@ FIRM_API ir_node *new_Return(ir_node *store, int arity, ir_node *in[]);
* @param *con Points to an entry in the constant table. This pointer is * @param *con Points to an entry in the constant table. This pointer is
* added to the attributes of the node. * added to the attributes of the node.
*/ */
FIRM_API ir_node *new_Const(tarval *con); FIRM_API ir_node *new_Const(ir_tarval *con);
/** /**
* Make a const from a long. * Make a const from a long.
......
...@@ -217,7 +217,7 @@ FIRM_API void set_mode_link(ir_mode *mode, void *l); ...@@ -217,7 +217,7 @@ FIRM_API void set_mode_link(ir_mode *mode, void *l);
* For modes of the sort float_number this is the most negative value * For modes of the sort float_number this is the most negative value
* bigger than -infinite. * bigger than -infinite.
*/ */
FIRM_API tarval *get_mode_min(ir_mode *mode); FIRM_API ir_tarval *get_mode_min(ir_mode *mode);
/** /**
* Returns the biggest representable value o f a given mode. * Returns the biggest representable value o f a given mode.
...@@ -225,7 +225,7 @@ FIRM_API tarval *get_mode_min(ir_mode *mode); ...@@ -225,7 +225,7 @@ FIRM_API tarval *get_mode_min(ir_mode *mode);
* For modes of the sort float_number this is the largest value lower * For modes of the sort float_number this is the largest value lower
* than infinite. * than infinite.
*/ */
FIRM_API tarval *get_mode_max(ir_mode *mode); FIRM_API ir_tarval *get_mode_max(ir_mode *mode);
/** /**
* Returns the value Zero represented in this mode. * Returns the value Zero represented in this mode.
...@@ -235,7 +235,7 @@ FIRM_API tarval *get_mode_max(ir_mode *mode); ...@@ -235,7 +235,7 @@ FIRM_API tarval *get_mode_max(ir_mode *mode);
* op_pin_state_floats and ints, and references (NULL-Pointer) * op_pin_state_floats and ints, and references (NULL-Pointer)
* else returns tarval_bad. * else returns tarval_bad.
*/ */
FIRM_API tarval *get_mode_null(ir_mode *mode); FIRM_API ir_tarval *get_mode_null(ir_mode *mode);
/** /**
* Returns the value One, represented in this mode. * Returns the value One, represented in this mode.
...@@ -244,7 +244,7 @@ FIRM_API tarval *get_mode_null(ir_mode *mode); ...@@ -244,7 +244,7 @@ FIRM_API tarval *get_mode_null(ir_mode *mode);
* is defined only for modes allowing multiplication, * is defined only for modes allowing multiplication,
* i.e. ints and floats. * i.e. ints and floats.
*/ */
FIRM_API tarval *get_mode_one(ir_mode *mode); FIRM_API ir_tarval *get_mode_one(ir_mode *mode);
/** /**
* Returns the value Minus One, represented in this mode. * Returns the value Minus One, represented in this mode.
...@@ -252,14 +252,14 @@ FIRM_API tarval *get_mode_one(ir_mode *mode); ...@@ -252,14 +252,14 @@ FIRM_API tarval *get_mode_one(ir_mode *mode);
* Minus One is defined only for modes allowing * Minus One is defined only for modes allowing
* multiplication with signed values, i.e. signed ints and floats. * multiplication with signed values, i.e. signed ints and floats.
*/ */
FIRM_API tarval *get_mode_minus_one(ir_mode *mode); FIRM_API ir_tarval *get_mode_minus_one(ir_mode *mode);
/** /**
* Returns the value where all bits are One, represented in this mode. * Returns the value where all bits are One, represented in this mode.
* *
* All One is defined only for modes integer, reference and boolean modes * All One is defined only for modes integer, reference and boolean modes
*/ */
FIRM_API tarval *get_mode_all_one(ir_mode *mode); FIRM_API ir_tarval *get_mode_all_one(ir_mode *mode);
/** /**
* Returns the positive infinite value of a mode. * Returns the positive infinite value of a mode.
...@@ -267,7 +267,7 @@ FIRM_API tarval *get_mode_all_one(ir_mode *mode); ...@@ -267,7 +267,7 @@ FIRM_API tarval *get_mode_all_one(ir_mode *mode);
* This is only valid for float_numbers, other modes * This is only valid for float_numbers, other modes
* will result in tarval_bad. * will result in tarval_bad.
*/ */
FIRM_API tarval *get_mode_infinite(ir_mode *mode); FIRM_API ir_tarval *get_mode_infinite(ir_mode *mode);
/** /**
* Returns the NAN value of a given mode. * Returns the NAN value of a given mode.
...@@ -275,7 +275,7 @@ FIRM_API tarval *get_mode_infinite(ir_mode *mode); ...@@ -275,7 +275,7 @@ FIRM_API tarval *get_mode_infinite(ir_mode *mode);
* This is only valid for float_numbers, other modes * This is only valid for float_numbers, other modes
* will result in tarval_bad. * will result in tarval_bad.
*/ */
FIRM_API tarval *get_mode_NAN(ir_mode *mode); FIRM_API ir_tarval *get_mode_NAN(ir_mode *mode);
FIRM_API ir_mode *mode_M; /**< memory */ FIRM_API ir_mode *mode_M; /**< memory */
......
...@@ -138,7 +138,7 @@ typedef unsigned (*hash_func)(const ir_node *self); ...@@ -138,7 +138,7 @@ typedef unsigned (*hash_func)(const ir_node *self);
* This operation evaluates an IR node into a tarval if possible, * This operation evaluates an IR node into a tarval if possible,
* returning tarval_bad otherwise. * returning tarval_bad otherwise.
*/ */
typedef tarval *(*computed_value_func)(const ir_node *self); typedef ir_tarval *(*computed_value_func)(const ir_node *self);
/** /**
* The equivalent node operation. * The equivalent node operation.
......
...@@ -79,7 +79,7 @@ typedef enum fp_model_t { ...@@ -79,7 +79,7 @@ typedef enum fp_model_t {
/** If the expression referenced can be evaluated statically /** If the expression referenced can be evaluated statically
* computed_value returns a tarval representing the result. * computed_value returns a tarval representing the result.
* Else returns tarval_bad. */ * Else returns tarval_bad. */
FIRM_API tarval *computed_value(const ir_node *n); FIRM_API ir_tarval *computed_value(const ir_node *n);
/** Applies all optimizations to n that are expressible as a pattern /** Applies all optimizations to n that are expressible as a pattern
* in Firm, i.e., they need not a walk of the graph. * in Firm, i.e., they need not a walk of the graph.
......
...@@ -402,8 +402,8 @@ void set_Confirm_bound(ir_node *node, ir_node *bound); ...@@ -402,8 +402,8 @@ void set_Confirm_bound(ir_node *node, ir_node *bound);
FIRM_API pn_Cmp get_Confirm_cmp(const ir_node *node); FIRM_API pn_Cmp get_Confirm_cmp(const ir_node *node);
FIRM_API void set_Confirm_cmp(ir_node *node, pn_Cmp cmp); FIRM_API void set_Confirm_cmp(ir_node *node, pn_Cmp cmp);
FIRM_API tarval* get_Const_tarval(const ir_node *node); FIRM_API ir_tarval* get_Const_tarval(const ir_node *node);
FIRM_API void set_Const_tarval(ir_node *node, tarval* tarval); FIRM_API void set_Const_tarval(ir_node *node, ir_tarval* tarval);
FIRM_API ir_node *get_Conv_op(const ir_node *node); FIRM_API ir_node *get_Conv_op(const ir_node *node);
void set_Conv_op(ir_node *node, ir_node *op); void set_Conv_op(ir_node *node, ir_node *op);
......
...@@ -102,8 +102,8 @@ ...@@ -102,8 +102,8 @@
* new_tarval_from_long() * new_tarval_from_long()
* new_tarval_from_double() * new_tarval_from_double()
*/ */
FIRM_API tarval *new_tarval_from_str(const char *str, size_t len, FIRM_API ir_tarval *new_tarval_from_str(const char *str, size_t len,
ir_mode *mode); ir_mode *mode);
/** /**
* Construct a new tarval from a given string. * Construct a new tarval from a given string.
...@@ -122,9 +122,9 @@ FIRM_API tarval *new_tarval_from_str(const char *str, size_t len, ...@@ -122,9 +122,9 @@ FIRM_API tarval *new_tarval_from_str(const char *str, size_t len,
* represented in the given mode. * represented in the given mode.
* Return bad if the number couldn't successfully be parsed. * Return bad if the number couldn't successfully be parsed.
*/ */
FIRM_API tarval *new_integer_tarval_from_str(const char *str, size_t len, FIRM_API ir_tarval *new_integer_tarval_from_str(const char *str, size_t len,
char sign, unsigned char base, char sign, unsigned char base,
ir_mode *mode); ir_mode *mode);
/** /**
* Constructor function for new tarvals * Constructor function for new tarvals
...@@ -153,7 +153,7 @@ FIRM_API tarval *new_integer_tarval_from_str(const char *str, size_t len, ...@@ -153,7 +153,7 @@ FIRM_API tarval *new_integer_tarval_from_str(const char *str, size_t len,
* new_tarval_from_double() * new_tarval_from_double()
* *
*/ */
FIRM_API tarval *new_tarval_from_long(long l, ir_mode *mode); FIRM_API ir_tarval *new_tarval_from_long(long l, ir_mode *mode);
/** Return value as long if possible. /** Return value as long if possible.
* *
...@@ -165,7 +165,7 @@ FIRM_API tarval *new_tarval_from_long(long l, ir_mode *mode); ...@@ -165,7 +165,7 @@ FIRM_API tarval *new_tarval_from_long(long l, ir_mode *mode);
* you are doing! (better check with tarval_is_long()...) * you are doing! (better check with tarval_is_long()...)
* Works only for int modes, even not for character modes! * Works only for int modes, even not for character modes!
*/ */
FIRM_API long get_tarval_long(tarval *tv); FIRM_API long get_tarval_long(ir_tarval *tv);
/** /**
* This validates if get_tarval_long() will return a satisfying * This validates if get_tarval_long() will return a satisfying
...@@ -174,7 +174,7 @@ FIRM_API long get_tarval_long(tarval *tv); ...@@ -174,7 +174,7 @@ FIRM_API long get_tarval_long(tarval *tv);
* *
* @param tv the tarval * @param tv the tarval
*/ */
FIRM_API int tarval_is_long(tarval *tv); FIRM_API int tarval_is_long(ir_tarval *tv);
/** /**
* Constructor function for new tarvals. * Constructor function for new tarvals.
...@@ -203,7 +203,7 @@ FIRM_API int tarval_is_long(tarval *tv); ...@@ -203,7 +203,7 @@ FIRM_API int tarval_is_long(tarval *tv);
* new_tarval_from_str() * new_tarval_from_str()
* new_tarval_from_long() * new_tarval_from_long()
*/ */
FIRM_API tarval *new_tarval_from_double(long double d, ir_mode *mode); FIRM_API ir_tarval *new_tarval_from_double(long double d, ir_mode *mode);
/** /**
* This returns a double with the value represented value, or * This returns a double with the value represented value, or
...@@ -214,7 +214,7 @@ FIRM_API tarval *new_tarval_from_double(long double d, ir_mode *mode); ...@@ -214,7 +214,7 @@ FIRM_API tarval *new_tarval_from_double(long double d, ir_mode *mode);
* *
* @param tv the tarval * @param tv the tarval
*/ */
FIRM_API long double get_tarval_double(tarval *tv); FIRM_API long double get_tarval_double(ir_tarval *tv);
/** /**
* This validates if tarval_to_double() will return a satisfying * This validates if tarval_to_double() will return a satisfying
...@@ -223,7 +223,7 @@ FIRM_API long double get_tarval_double(tarval *tv); ...@@ -223,7 +223,7 @@ FIRM_API long double get_tarval_double(tarval *tv);
* *
* @param tv the tarval * @param tv the tarval
*/ */
FIRM_API int tarval_is_double(tarval *tv); FIRM_API int tarval_is_double(ir_tarval *tv);
/** ********** Access routines for tarval fields ********** **/ /** ********** Access routines for tarval fields ********** **/
...@@ -256,81 +256,76 @@ FIRM_API int tarval_is_double(tarval *tv); ...@@ -256,81 +256,76 @@ FIRM_API int tarval_is_double(tarval *tv);
* *
* @param tv the tarval * @param tv the tarval
*/ */
FIRM_API ir_mode *get_tarval_mode(const tarval *tv); FIRM_API ir_mode *get_tarval_mode(const ir_tarval *tv);
/** Returns the contents of the 'link' field of the tarval */
/* void *get_tarval_link (tarval*); */
/* Testing properties of the represented values */
/** /**
* Returns 1 if tv is negative * Returns 1 if tv is negative
* *
* @param tv the tarval * @param tv the tarval
*/ */
FIRM_API int tarval_is_negative(tarval *tv); FIRM_API int tarval_is_negative(ir_tarval *tv);
/** /**
* Returns 1 if tv is null * Returns 1 if tv is null
* *
* @param tv the tarval * @param tv the tarval
*/ */
FIRM_API int tarval_is_null(tarval *tv); FIRM_API int tarval_is_null(ir_tarval *tv);
/** /**
* Returns 1 if tv is the "one" * Returns 1 if tv is the "one"
* *
* @param tv the tarval * @param tv the tarval
*/ */
FIRM_API int tarval_is_one(tarval *tv); FIRM_API int tarval_is_one(ir_tarval *tv);
/** /**
* Returns 1 if tv is the "minus one" * Returns 1 if tv is the "minus one"
* *
* @param tv the tarval * @param tv the tarval
*/ */
FIRM_API int tarval_is_minus_one(tarval *tv); FIRM_API int tarval_is_minus_one(ir_tarval *tv);
/** /**
* returns non-zero if all bits in the tarval are set * returns non-zero if all bits in the tarval are set
*/ */
FIRM_API int tarval_is_all_one(tarval *tv); FIRM_API int tarval_is_all_one(ir_tarval *tv);
/** /**
* Return non-zero if the tarval is a constant (ie. NOT * Return non-zero if the tarval is a constant (ie. NOT
* a reserved tarval like bad, undef, reachable etc.) * a reserved tarval like bad, undef, reachable etc.)
*/ */
FIRM_API int tarval_is_constant(tarval *tv); FIRM_API int tarval_is_constant(ir_tarval *tv);
/** The 'bad' tarval. */ /** The 'bad' tarval. */
FIRM_API tarval *tarval_bad; FIRM_API ir_tarval *tarval_bad;
/** Returns the 'bad' tarval. */ /** Returns the 'bad' tarval. */
FIRM_API tarval *get_tarval_bad(void); FIRM_API ir_tarval *get_tarval_bad(void);
/** The 'undefined' tarval. */ /** The 'undefined' tarval. */
FIRM_API tarval *tarval_undefined; FIRM_API ir_tarval *tarval_undefined;
/** Returns the 'undefined' tarval. */ /** Returns the 'undefined' tarval. */
FIRM_API tarval *get_tarval_undefined(void); FIRM_API ir_tarval *get_tarval_undefined(void);
/** The mode_b tarval 'false'. */ /** The mode_b tarval 'false'. */
FIRM_API tarval *tarval_b_false; FIRM_API ir_tarval *tarval_b_false;
/** Returns the mode_b tarval 'false'. */ /** Returns the mode_b tarval 'false'. */
FIRM_API tarval *get_tarval_b_false(void); FIRM_API ir_tarval *get_tarval_b_false(void);
/** The mode_b tarval 'true'. */ /** The mode_b tarval 'true'. */
FIRM_API tarval *tarval_b_true; FIRM_API ir_tarval *tarval_b_true;
/** Returns the mode_b tarval 'true'. */ /** Returns the mode_b tarval 'true'. */
FIRM_API tarval *get_tarval_b_true(void); FIRM_API ir_tarval *get_tarval_b_true(void);
/** The mode_X tarval 'unreachable'. */ /** The mode_X tarval 'unreachable'. */
FIRM_API tarval *tarval_unreachable; FIRM_API ir_tarval *tarval_unreachable;
/** Returns the mode_X tarval 'unreachable'. */ /** Returns the mode_X tarval 'unreachable'. */
FIRM_API tarval *get_tarval_unreachable(void); FIRM_API ir_tarval *get_tarval_unreachable(void);
/** The mode_X tarval 'reachable'. */ /** The mode_X tarval 'reachable'. */
FIRM_API tarval *tarval_reachable; FIRM_API ir_tarval *tarval_reachable;
/** Returns the mode_X tarval 'reachable'. */ /** Returns the mode_X tarval 'reachable'. */
FIRM_API tarval *get_tarval_reachable(void); FIRM_API ir_tarval *get_tarval_reachable(void);
/** The 'top' tarval. This is just another name for the 'undefined' tarval. */ /** The 'top' tarval. This is just another name for the 'undefined' tarval. */
#define tarval_top tarval_undefined #define tarval_top tarval_undefined
...@@ -349,34 +344,34 @@ FIRM_API tarval *get_tarval_reachable(void); ...@@ -349,34 +344,34 @@ FIRM_API tarval *get_tarval_reachable(void);
* therefore the irmode functions should be preferred to the functions below. */ * therefore the irmode functions should be preferred to the functions below. */
/** Returns the maximum value of a given mode. */ /** Returns the maximum value of a given mode. */
FIRM_API tarval *get_tarval_max(ir_mode *mode); FIRM_API ir_tarval *get_tarval_max(ir_mode *mode);
/** Returns the minimum value of a given mode. */ /** Returns the minimum value of a given mode. */
FIRM_API tarval *get_tarval_min(ir_mode *mode); FIRM_API ir_tarval *get_tarval_min(ir_mode *mode);
/** Returns the 0 value (additive neutral) of a given mode. /** Returns the 0 value (additive neutral) of a given mode.
For reference modes, the NULL value is returned (old tarval_P_void) */ For reference modes, the NULL value is returned (old tarval_P_void) */
FIRM_API tarval *get_tarval_null(ir_mode *mode); FIRM_API ir_tarval *get_tarval_null(ir_mode *mode);
/** Returns the 1 value (multiplicative neutral) of a given mode. */ /** Returns the 1 value (multiplicative neutral) of a given mode. */
FIRM_API tarval *get_tarval_one(ir_mode *mode); FIRM_API ir_tarval *get_tarval_one(ir_mode *mode);
/** Returns the -1 value (multiplicative neutral) of a given mode. /** Returns the -1 value (multiplicative neutral) of a given mode.
* Returns tarval bad for unsigned modes */ * Returns tarval bad for unsigned modes */
FIRM_API tarval *get_tarval_minus_one(ir_mode *mode); FIRM_API ir_tarval *get_tarval_minus_one(ir_mode *mode);
/** returns the value where all bits are 1 of a given mode. /** returns the value where all bits are 1 of a given mode.
* returns tarval_bad for float modes */ * returns tarval_bad for float modes */
FIRM_API tarval *get_tarval_all_one(ir_mode *mode); FIRM_API ir_tarval *get_tarval_all_one(ir_mode *mode);
/** Return quite nan for float_number modes. */ /** Return quite nan for float_number modes. */
FIRM_API tarval *get_tarval_nan(ir_mode *mode); FIRM_API ir_tarval *get_tarval_nan(ir_mode *mode);
/** Return +inf for float_number modes. */ /** Return +inf for float_number modes. */
FIRM_API tarval *get_tarval_plus_inf(ir_mode *mode); FIRM_API ir_tarval *get_tarval_plus_inf(ir_mode *mode);
/** Return -inf for float_number modes. */ /** Return -inf for float_number modes. */
FIRM_API tarval *get_tarval_minus_inf(ir_mode *mode); FIRM_API ir_tarval *get_tarval_minus_inf(ir_mode *mode);
/* ******************** Arithmetic operations on tarvals ******************** */ /* ******************** Arithmetic operations on tarvals ******************** */
...@@ -417,7 +412,7 @@ FIRM_API tarval_int_overflow_mode_t tarval_get_integer_overflow_mode(void); ...@@ -417,7 +412,7 @@ FIRM_API tarval_int_overflow_mode_t tarval_get_integer_overflow_mode(void);
* @sa * @sa
* irnode.h for the definition of pn_Cmp * irnode.h for the definition of pn_Cmp
*/ */
FIRM_API pn_Cmp tarval_cmp(tarval *a, tarval *b); FIRM_API pn_Cmp tarval_cmp(ir_tarval *a, ir_tarval *b);
/** /**
* Converts a tarval to another mode. * Converts a tarval to another mode.
...@@ -441,7 +436,7 @@ FIRM_API pn_Cmp tarval_cmp(tarval *a, tarval *b); ...@@ -441,7 +436,7 @@ FIRM_API pn_Cmp tarval_cmp(tarval *a, tarval *b);
* FIRM documentation for conversion rules * FIRM documentation for conversion rules
* mode_is_smaller defined in irmode.h * mode_is_smaller defined in irmode.h
*/ */
FIRM_API tarval *tarval_convert_to(tarval *src, ir_mode *mode); FIRM_API ir_tarval *tarval_convert_to(ir_tarval *src, ir_mode *mode);
/* /*
* These function implement basic computations representable as opcodes * These function implement basic computations representable as opcodes
...@@ -475,7 +470,7 @@ FIRM_API tarval *tarval_convert_to(tarval *src, ir_mode *mode); ...@@ -475,7 +470,7 @@ FIRM_API tarval *tarval_convert_to(tarval *src, ir_mode *mode);
* *
* @return ~a or tarval_bad * @return ~a or tarval_bad
*/ */
FIRM_API tarval *tarval_not(tarval *a); FIRM_API ir_tarval *tarval_not(ir_tarval *a);
/** /**
* Arithmetic Negation of a tarval. * Arithmetic Negation of a tarval.
...@@ -484,7 +479,7 @@ FIRM_API tarval *tarval_not(tarval *a); ...@@ -484,7 +479,7 @@ FIRM_API tarval *tarval_not(tarval *a);
*