a291d01ec15ebb1a58c91b63d4b0bc33d250c29e
[libfirm] / ir / ir / irmode_t.h
1
2 /* $Id$ */
3
4 /**
5  * @file irmode_t.h
6  */
7
8 # ifndef _IRMODE_T_H_
9 # define _IRMODE_T_H_
10
11 # include "irmode.h"
12
13 /** This struct is supposed to completely define a mode. **/
14 struct ir_mode {
15   modecode   code;         /**< unambiguous identifier of a mode */
16   ident      *name;        /**< Name ident of this mode */
17   mode_sort  sort;         /**< coarse classification of this mode:
18                                 int, float, reference ...
19                                 (see irmode.h) */
20   int        size;         /**< size of the mode in Bits. */
21   int        align;        /**< byte alignment */
22   unsigned   sign:1;       /**< signedness of this mode */
23   const void *tv_priv;     /**< tarval module will save private data here */
24 };
25
26 #endif