???
[libfirm] / ir / tv / tv_t.h
1 /* Declarations for Target Values. */
2
3 /**
4 * @file tv_t.h
5 *
6 * @author Mathias Heil
7 */
8
9 /* $Id$ */
10
11 #ifndef _TV_T_H_
12 #define _TV_T_H_
13
14 #include "tv.h"
15
16 /**
17  * This struct represents the aforementioned tarvals.
18  *
19  * A tarval struct consists of an internal representation of the
20  * value and some additional fields further describing the value.
21  *
22  * ATTRIBUTES:
23  *   - ir_mode *mode     The mode of the stored value
24  *   - void *value       The internal representation
25  *
26  * @sa
27  *   irmode.h for predefined modes
28  */
29 struct tarval {
30     ir_mode *mode;              /**< the mode of the stored value */
31     const void *value;          /**< the value stored in an internal way... */
32     unsigned int length;        /**< the length of the stored value */
33 };
34
35 /** remove tarval representing an entity that is about to be destroyed */
36 void free_tarval_entity(entity *ent);
37
38 #endif /* _TV_T_H_ */