be: remove unused reg_class_for_mode callback
[libfirm] / ir / be / amd64 / bearch_amd64_t.h
1 /*
2  * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
3  *
4  * This file is part of libFirm.
5  *
6  * This file may be distributed and/or modified under the terms of the
7  * GNU General Public License version 2 as published by the Free Software
8  * Foundation and appearing in the file LICENSE.GPL included in the
9  * packaging of this file.
10  *
11  * Licensees holding valid libFirm Professional Edition licenses may use
12  * this file in accordance with the libFirm Commercial License.
13  * Agreement provided with the Software.
14  *
15  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17  * PURPOSE.
18  */
19
20 /**
21  * @file
22  * @brief   declarations for TEMPALTE backend -- private header
23  */
24 #ifndef FIRM_BE_amd64_BEARCH_amd64_T_H
25 #define FIRM_BE_amd64_BEARCH_amd64_T_H
26
27 #include "debug.h"
28 #include "amd64_nodes_attr.h"
29 #include "be.h"
30 #include "beemitter.h"
31 #include "set.h"
32
33 typedef struct amd64_isa_t            amd64_isa_t;
34
35 typedef struct amd64_irg_data_t {
36         ir_graph    *irg;            /**< current irg */
37         amd64_isa_t *isa;            /**< the isa instance */
38         char         dump;           /**< set to 1 if graphs should be dumped */
39         ir_node     *noreg_gp;       /**< unique NoReg_GP node */
40 } amd64_irg_data_t;
41
42 struct amd64_isa_t {
43         arch_env_t  base;      /**< must be derived from arch_isa */
44 };
45
46 static inline amd64_irg_data_t *amd64_get_irg_data(const ir_graph *irg)
47 {
48         return (amd64_irg_data_t*) be_birg_from_irg(irg)->isa_link;
49 }
50
51 ir_node *amd64_new_NoReg_gp(ir_graph *irg);
52
53 #endif