Correct typo in comment.
[libfirm] / ir / be / sparc / gen_sparc_regalloc_if.h
1 /**
2  * @file
3  * @brief Contains additional external requirements defs for external includes.
4  * @note   DO NOT EDIT THIS FILE, your changes will be lost.
5  *         Edit libfirm/ir/be/sparc/sparc_spec.pl instead.
6  *         created by: libfirm/ir/be/scripts/generate_regalloc_if.pl libfirm/ir/be/sparc/sparc_spec.pl libfirm/ir/be/sparc
7  * @date   Tue Dec 15 15:19:15 2009
8  */
9 #ifndef FIRM_BE_SPARC_GEN_SPARC_REGALLOC_IF_H
10 #define FIRM_BE_SPARC_GEN_SPARC_REGALLOC_IF_H
11
12 #include "../bearch.h"
13 #include "sparc_nodes_attr.h"
14
15 enum reg_sparc_flags_indices {
16         REG_Y,
17         N_sparc_flags_REGS = 1
18 };
19
20 enum reg_sparc_gp_indices {
21         REG_G0,
22         REG_G1,
23         REG_G2,
24         REG_G3,
25         REG_G4,
26         REG_G5,
27         REG_G6,
28         REG_G7,
29         REG_O0,
30         REG_O1,
31         REG_O2,
32         REG_O3,
33         REG_O4,
34         REG_O5,
35         REG_SP,
36         REG_O7,
37         REG_L0,
38         REG_L1,
39         REG_L2,
40         REG_L3,
41         REG_L4,
42         REG_L5,
43         REG_L6,
44         REG_L7,
45         REG_I0,
46         REG_I1,
47         REG_I2,
48         REG_I3,
49         REG_I4,
50         REG_I5,
51         REG_FP,
52         REG_I7,
53         N_sparc_gp_REGS = 32
54 };
55
56 enum reg_sparc_fp_indices {
57         REG_F0,
58         REG_F1,
59         REG_F2,
60         REG_F3,
61         REG_F4,
62         REG_F5,
63         REG_F6,
64         REG_F7,
65         REG_F8,
66         REG_F9,
67         REG_F10,
68         REG_F11,
69         REG_F12,
70         REG_F13,
71         REG_F14,
72         REG_F15,
73         REG_F16,
74         REG_F17,
75         REG_F18,
76         REG_F19,
77         REG_F20,
78         REG_F21,
79         REG_F22,
80         REG_F23,
81         REG_F24,
82         REG_F25,
83         REG_F26,
84         REG_F27,
85         REG_F28,
86         REG_F29,
87         REG_F30,
88         REG_F31,
89         N_sparc_fp_REGS = 32
90 };
91
92
93 enum reg_classes {
94         CLASS_sparc_flags = 0,
95         CLASS_sparc_gp = 1,
96         CLASS_sparc_fp = 2,
97         N_CLASSES = 3
98 };
99
100
101 extern const arch_register_t sparc_flags_regs[N_sparc_flags_REGS];
102 extern const arch_register_t sparc_gp_regs[N_sparc_gp_REGS];
103 extern const arch_register_t sparc_fp_regs[N_sparc_fp_REGS];
104
105
106 extern arch_register_class_t sparc_reg_classes[N_CLASSES];
107
108 void sparc_register_init(void);
109 unsigned sparc_get_n_regs(void);
110
111 #endif