Added funcionality to configure modes. Modes include special
[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 };
24
25 #endif