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,
* fits into the given array size. Does not test whether the
* 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
......
......@@ -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_edge_t ir_edge_t, *ir_edge_ptr;
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_type ir_type, *ir_type_ptr;
typedef struct ir_graph ir_graph, *ir_graph_ptr;
......
......@@ -51,7 +51,7 @@ typedef enum instr {
*
* @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
......
......@@ -254,7 +254,7 @@
* ir_node *new_IJmp (ir_node *tgt);
* ir_node *new_Cond (ir_node *c);
* 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_simpleSel (ir_node *store, ir_node *objptr, ir_entity *ent);
* ir_node *new_Sel (ir_node *store, ir_node *objptr, int arity,
......@@ -501,7 +501,7 @@
* 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
......@@ -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 *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.
......@@ -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 *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.
*
......@@ -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
* 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()
......@@ -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
* 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.
......
......@@ -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
* 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.
......@@ -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
* 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.
......@@ -235,7 +235,7 @@ FIRM_API tarval *get_mode_max(ir_mode *mode);
* op_pin_state_floats and ints, and references (NULL-Pointer)
* 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.
......@@ -244,7 +244,7 @@ FIRM_API tarval *get_mode_null(ir_mode *mode);
* is defined only for modes allowing multiplication,
* 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.
......@@ -252,14 +252,14 @@ FIRM_API tarval *get_mode_one(ir_mode *mode);
* Minus One is defined only for modes allowing
* 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.
*
* 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.
......@@ -267,7 +267,7 @@ FIRM_API tarval *get_mode_all_one(ir_mode *mode);
* This is only valid for float_numbers, other modes
* 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.
......@@ -275,7 +275,7 @@ FIRM_API tarval *get_mode_infinite(ir_mode *mode);
* This is only valid for float_numbers, other modes
* 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 */
......
......@@ -138,7 +138,7 @@ typedef unsigned (*hash_func)(const ir_node *self);
* This operation evaluates an IR node into a tarval if possible,
* 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.
......
......@@ -79,7 +79,7 @@ typedef enum fp_model_t {
/** If the expression referenced can be evaluated statically
* computed_value returns a tarval representing the result.
* 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
* 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);
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 tarval* get_Const_tarval(const ir_node *node);
FIRM_API void set_Const_tarval(ir_node *node, tarval* tarval);
FIRM_API ir_tarval* get_Const_tarval(const ir_node *node);
FIRM_API void set_Const_tarval(ir_node *node, ir_tarval* tarval);
FIRM_API ir_node *get_Conv_op(const ir_node *node);
void set_Conv_op(ir_node *node, ir_node *op);
......
......@@ -102,8 +102,8 @@
* new_tarval_from_long()
* new_tarval_from_double()
*/
FIRM_API tarval *new_tarval_from_str(const char *str, size_t len,
ir_mode *mode);
FIRM_API ir_tarval *new_tarval_from_str(const char *str, size_t len,
ir_mode *mode);
/**
* 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,
* represented in the given mode.
* Return bad if the number couldn't successfully be parsed.
*/
FIRM_API tarval *new_integer_tarval_from_str(const char *str, size_t len,
char sign, unsigned char base,
ir_mode *mode);
FIRM_API ir_tarval *new_integer_tarval_from_str(const char *str, size_t len,
char sign, unsigned char base,
ir_mode *mode);
/**
* Constructor function for new tarvals
......@@ -153,7 +153,7 @@ FIRM_API tarval *new_integer_tarval_from_str(const char *str, size_t len,
* 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.
*
......@@ -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()...)
* 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
......@@ -174,7 +174,7 @@ FIRM_API long get_tarval_long(tarval *tv);
*
* @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.
......@@ -203,7 +203,7 @@ FIRM_API int tarval_is_long(tarval *tv);
* new_tarval_from_str()
* 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
......@@ -214,7 +214,7 @@ FIRM_API tarval *new_tarval_from_double(long double d, ir_mode *mode);
*
* @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
......@@ -223,7 +223,7 @@ FIRM_API long double get_tarval_double(tarval *tv);
*
* @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 ********** **/
......@@ -256,81 +256,76 @@ FIRM_API int tarval_is_double(tarval *tv);
*
* @param tv the tarval
*/
FIRM_API ir_mode *get_tarval_mode(const tarval *tv);
/** Returns the contents of the 'link' field of the tarval */
/* void *get_tarval_link (tarval*); */
/* Testing properties of the represented values */
FIRM_API ir_mode *get_tarval_mode(const ir_tarval *tv);
/**
* Returns 1 if tv is negative
*
* @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
*
* @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"
*
* @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"
*
* @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
*/
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
* 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. */
FIRM_API tarval *tarval_bad;
FIRM_API ir_tarval *tarval_bad;
/** Returns the 'bad' tarval. */
FIRM_API tarval *get_tarval_bad(void);
FIRM_API ir_tarval *get_tarval_bad(void);
/** The 'undefined' tarval. */
FIRM_API tarval *tarval_undefined;
FIRM_API ir_tarval *tarval_undefined;
/** Returns the 'undefined' tarval. */
FIRM_API tarval *get_tarval_undefined(void);
FIRM_API ir_tarval *get_tarval_undefined(void);
/** The mode_b tarval 'false'. */
FIRM_API tarval *tarval_b_false;
FIRM_API ir_tarval *tarval_b_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'. */
FIRM_API tarval *tarval_b_true;
FIRM_API ir_tarval *tarval_b_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'. */
FIRM_API tarval *tarval_unreachable;
FIRM_API ir_tarval *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'. */
FIRM_API tarval *tarval_reachable;
FIRM_API ir_tarval *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. */
#define tarval_top tarval_undefined
......@@ -349,34 +344,34 @@ FIRM_API tarval *get_tarval_reachable(void);
* therefore the irmode functions should be preferred to the functions below. */
/** 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. */
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.
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. */
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 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 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. */
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. */
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. */
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 ******************** */
......@@ -417,7 +412,7 @@ FIRM_API tarval_int_overflow_mode_t tarval_get_integer_overflow_mode(void);
* @sa
* 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.
......@@ -441,7 +436,7 @@ FIRM_API pn_Cmp tarval_cmp(tarval *a, tarval *b);
* FIRM documentation for conversion rules
* 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
......@@ -475,7 +470,7 @@ FIRM_API tarval *tarval_convert_to(tarval *src, ir_mode *mode);
*
* @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.
......@@ -484,7 +479,7 @@ FIRM_API tarval *tarval_not(tarval *a);
*
* @return -a or tarval_bad
*/
FIRM_API tarval *tarval_neg(tarval *a);
FIRM_API ir_tarval *tarval_neg(ir_tarval *a);
/**
* Addition of two tarvals.
......@@ -494,7 +489,7 @@ FIRM_API tarval *tarval_neg(tarval *a);
*
* @return a + b or tarval_bad
*/
FIRM_API tarval *tarval_add(tarval *a, tarval *b);
FIRM_API ir_tarval *tarval_add(ir_tarval *a, ir_tarval *b);
/**
* Subtraction from a tarval.
......@@ -505,7 +500,7 @@ FIRM_API tarval *tarval_add(tarval *a, tarval *b);
*
* @return a - b or tarval_bad
*/
FIRM_API tarval *tarval_sub(tarval *a, tarval *b, ir_mode *dst_mode);
FIRM_API ir_tarval *tarval_sub(ir_tarval *a, ir_tarval *b, ir_mode *dst_mode);
/**
* Multiplication of tarvals.
......@@ -515,7 +510,7 @@ FIRM_API tarval *tarval_sub(tarval *a, tarval *b, ir_mode *dst_mode);
*
* @return a * b or tarval_bad
*/
FIRM_API tarval *tarval_mul(tarval *a, tarval *b);
FIRM_API ir_tarval *tarval_mul(ir_tarval *a, ir_tarval *b);
/**
* Division of two floating point tarvals.
......@@ -525,7 +520,7 @@ FIRM_API tarval *tarval_mul(tarval *a, tarval *b);
*
* @return a / b or tarval_bad
*/
FIRM_API tarval *tarval_quo(tarval *a, tarval *b);
FIRM_API ir_tarval *tarval_quo(ir_tarval *a, ir_tarval *b);
/**
* Integer division of two tarvals.
......@@ -535,7 +530,7 @@ FIRM_API tarval *tarval_quo(tarval *a, tarval *b);
*
* @return a / b or tarval_bad
*/
FIRM_API tarval *tarval_div(tarval *a, tarval *b);
FIRM_API ir_tarval *tarval_div(ir_tarval *a, ir_tarval *b);
/**
* Remainder of integer division.
......@@ -545,7 +540,7 @@ FIRM_API tarval *tarval_div(tarval *a, tarval *b);
*
* @return a % b or tarval_bad
*/
FIRM_API tarval *tarval_mod(tarval *a, tarval *b);
FIRM_API ir_tarval *tarval_mod(ir_tarval *a, ir_tarval *b);
/**
* Integer division AND remainder.
......@@ -556,7 +551,7 @@ FIRM_API tarval *tarval_mod(tarval *a, tarval *b);
*
* @return a / b or tarval_bad
*/
FIRM_API tarval *tarval_divmod(tarval *a, tarval *b, tarval **mod_res);
FIRM_API ir_tarval *tarval_divmod(ir_tarval *a, ir_tarval *b, ir_tarval **mod_res);
/**
* Absolute value of a tarval.
......@@ -565,7 +560,7 @@ FIRM_API tarval *tarval_divmod(tarval *a, tarval *b, tarval **mod_res);
*
* @return |a| or tarval_bad
*/
FIRM_API tarval *tarval_abs(tarval *a);
FIRM_API ir_tarval *tarval_abs(ir_tarval *a);
/**
* Bitwise and of two integer tarvals.
......@@ -575,7 +570,7 @@ FIRM_API tarval *tarval_abs(tarval *a);
*
* @return a & b or tarval_bad
*/
FIRM_API tarval *tarval_and(tarval *a, tarval *b);
FIRM_API ir_tarval *tarval_and(ir_tarval *a, ir_tarval *b);
/**
* Bitwise and not of two integer tarvals.
......@@ -585,7 +580,7 @@ FIRM_API tarval *tarval_and(tarval *a, tarval *b);
*
* @return a & ~b or tarval_bad
*/
FIRM_API tarval *tarval_andnot(tarval *a, tarval *b);
FIRM_API ir_tarval *tarval_andnot(ir_tarval *a, ir_tarval *b);
/**
* Bitwise or of two integer tarvals.
......@@ -595,7 +590,7 @@ FIRM_API tarval *tarval_andnot(tarval *a, tarval *b);
*
* @return a | b or tarval_bad
*/
FIRM_API tarval *tarval_or(tarval *a, tarval *b);
FIRM_API ir_tarval *tarval_or(ir_tarval *a, ir_tarval *b);
/**
* Bitwise exclusive or of two integer tarvals.
......@@ -605,7 +600,7 @@ FIRM_API tarval *tarval_or(tarval *a, tarval *b);
*
* @return a ^ b or tarval_bad
*/
FIRM_API tarval *tarval_eor(tarval *a, tarval *b);
FIRM_API ir_tarval *tarval_eor(ir_tarval *a, ir_tarval *b);
/**
* Logical Left shift.
......@@ -615,7 +610,7 @@ FIRM_API tarval *tarval_eor(tarval *a, tarval *b);
*
* @return a << b or tarval_bad
*/
FIRM_API tarval *tarval_shl(tarval *a, tarval *b);
FIRM_API ir_tarval *tarval_shl(ir_tarval *a, ir_tarval *b);
/**
* Unsigned (logical) right shift.
......@@ -625,7 +620,7 @@ FIRM_API tarval *tarval_shl(tarval *a, tarval *b);
*
* @return a >>u b or tarval_bad
*/
FIRM_API tarval *tarval_shr(tarval *a, tarval *b);
FIRM_API ir_tarval *tarval_shr(ir_tarval *a, ir_tarval *b);
/**
* Signed (arithmetic) right shift.
......@@ -635,7 +630,7 @@ FIRM_API tarval *tarval_shr(tarval *a, tarval *b);
*
* @return a >>s b or tarval_bad
*/
FIRM_API tarval *tarval_shrs(tarval *a, tarval *b);
FIRM_API ir_tarval *tarval_shrs(ir_tarval *a, ir_tarval *b);
/**
* Rotation to left.
......@@ -645,7 +640,7 @@ FIRM_API tarval *tarval_shrs(tarval *a, tarval *b);
*
* @return a \<\<L\>\> b or tarval_bad
*/
FIRM_API tarval *tarval_rotl(tarval *a, tarval *b);
FIRM_API ir_tarval *tarval_rotl(ir_tarval *a, ir_tarval *b);
/**
* Returns the carry flag of the last operation.
......@@ -731,7 +726,7 @@ FIRM_API const tarval_mode_info *get_tarval_mode_output_option(ir_mode *mode);
* irmode.h for the definition of the ir_mode struct
* the size member of aforementioned struct
*/
FIRM_API char *get_tarval_bitpattern(tarval *tv);
FIRM_API char *get_tarval_bitpattern(ir_tarval *tv);
/**
* Returns the bitpattern of the bytes_ofs byte.
......@@ -758,7 +753,7 @@ FIRM_API char *get_tarval_bitpattern(tarval *tv);
* @note
* The result of this function is undefined if the mode is neither integer nor float.
*/
FIRM_API unsigned char get_tarval_sub_bits(tarval *tv, unsigned byte_ofs);
FIRM_API unsigned char get_tarval_sub_bits(ir_tarval *tv, unsigned byte_ofs);
/**
* Returns non-zero if a given (integer) tarval has only one single bit
......@@ -766,7 +761,7 @@ FIRM_API unsigned char get_tarval_sub_bits(tarval *tv, unsigned byte_ofs);
*
* @param tv the tarval
*/
FIRM_API int tarval_is_single_bit(tarval *tv);
FIRM_API int tarval_is_single_bit(ir_tarval *tv);
/**
* Return the number of set bits in a given (integer) tarval.
......@@ -775,7 +770,7 @@ FIRM_API int tarval_is_single_bit(tarval *tv);
*
* @return number of set bits or -1 on error
*/
FIRM_API int get_tarval_popcount(tarval *tv);
FIRM_API int get_tarval_popcount(ir_tarval *tv);
/**
* Return the number of the lowest set bit in a given (integer) tarval.
......@@ -784,7 +779,7 @@ FIRM_API int get_tarval_popcount(tarval *tv);
*
* @return number of lowest set bit or -1 on error
*/
FIRM_API int get_tarval_lowest_bit(tarval *tv);
FIRM_API int get_tarval_lowest_bit(ir_tarval *tv);
/**
* Output a tarval to a string buffer.
......@@ -793,14 +788,14 @@ FIRM_API int get_tarval_lowest_bit(tarval *tv);
* @param buflen the length of the buffer
* @param tv the tarval
*/
FIRM_API int tarval_snprintf(char *buf, size_t buflen, tarval *tv);
FIRM_API int tarval_snprintf(char *buf, size_t buflen, ir_tarval *tv);
/**
* Output a tarval to stdio.
*
* @param tv the tarval
*/
FIRM_API int tarval_printf(tarval *tv);
FIRM_API int tarval_printf(ir_tarval *tv);
/**
* Returns non-zero if the mantissa of a floating point IEEE-754
......@@ -808,7 +803,7 @@ FIRM_API int tarval_printf(tarval *tv);
*
* @param tv the tarval
*/
FIRM_API int tarval_ieee754_zero_mantissa(tarval *tv);
FIRM_API int tarval_ieee754_zero_mantissa(ir_tarval *tv);
/**
* Returns the exponent of a floating point IEEE-754
......@@ -816,7 +811,7 @@ FIRM_API int tarval_ieee754_zero_mantissa(tarval *tv);
*
* @param tv the tarval