New implementation of tarval module
[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 #include "xprintf.h"
17
18 /****s* tv/tarval
19  *
20  * NAME
21  *    tarval
22  *   This struct represents the aforementioned tarvals.
23  *
24  * DESCRIPTION
25  *    A tarval struct consists of an internal representation of the
26  *   value and some additional fields further describing the value.
27  *
28  * ATTRIBUTES
29  *   ir_mode *mode     The mode of the stored value
30  *   void *value       The internal representation
31  *
32  * SEE ALSO
33  *   irmode.h for predefined modes
34  *
35  ******/
36
37 struct tarval {
38     ir_mode *mode; /* mode of the stored value */
39     const void *value; /* the value stored in an internal way... */
40     unsigned int length; /* the length of the stored value */
41 };
42
43 /* xfprint output */
44 int tarval_print (XP_PAR1, const xprintf_info *, XP_PARN);
45
46 /** remove tarval representing an entity that is about to be destroyed */
47 void free_tarval_entity(entity *ent);
48
49 #endif /* _TV_T_H_ */