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