X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fmips%2Fmips_new_nodes.h;h=4c62d954aa961b2983577a44545e1ede238397cf;hb=60e1f0141c1dffae0d779228addfa385c46748f5;hp=b54530def4b2a7eb19bf9052277ad08f0b9834e0;hpb=cc18a73b9046e11cdfd4065377d3cac59170aabb;p=libfirm diff --git a/ir/be/mips/mips_new_nodes.h b/ir/be/mips/mips_new_nodes.h index b54530def..4c62d954a 100644 --- a/ir/be/mips/mips_new_nodes.h +++ b/ir/be/mips/mips_new_nodes.h @@ -1,10 +1,30 @@ -#ifndef _mips_NEW_NODES_H_ -#define _mips_NEW_NODES_H_ - -/** - * Function prototypes for the assembler ir node constructors. - * $Id$ - */ +/* + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * + * This file is part of libFirm. + * + * This file may be distributed and/or modified under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation and appearing in the file LICENSE.GPL included in the + * packaging of this file. + * + * Licensees holding valid libFirm Professional Edition licenses may use + * this file in accordance with the libFirm Commercial License. + * Agreement provided with the Software. + * + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. + */ + +/** + * @file + * @brief Function prototypes for the assembler ir node constructors. + * @author Matthias Braun, Mehdi + * @version $Id$ + */ +#ifndef FIRM_BE_MIPS_MIPS_NEW_NODES_H +#define FIRM_BE_MIPS_MIPS_NEW_NODES_H #include "mips_nodes_attr.h" @@ -22,37 +42,41 @@ /** * Returns the attributes of an mips node. */ -mips_attr_t *get_mips_attr(const ir_node *node); +mips_attr_t *get_mips_attr(ir_node *node); +const mips_attr_t *get_mips_attr_const(const ir_node *node); +const mips_immediate_attr_t *get_mips_immediate_attr_const(const ir_node *node); +const mips_load_store_attr_t *get_mips_load_store_attr_const( + const ir_node *node); /** * Returns the argument register requirements of an mips node. */ -const mips_register_req_t **get_mips_in_req_all(const ir_node *node); +const arch_register_req_t **get_mips_in_req_all(const ir_node *node); /** * Returns the result register requirements of an mips node. */ -const mips_register_req_t **get_mips_out_req_all(const ir_node *node); +const arch_register_req_t **get_mips_out_req_all(const ir_node *node); /** * Returns the argument register requirements of an mips node. */ -const mips_register_req_t *get_mips_in_req(const ir_node *node, int pos); +const arch_register_req_t *get_mips_in_req(const ir_node *node, int pos); /** * Returns the result register requirements of an mips node. */ -const mips_register_req_t *get_mips_out_req(const ir_node *node, int pos); +const arch_register_req_t *get_mips_out_req(const ir_node *node, int pos); /** * Sets the OUT register requirements at position pos. */ -void set_mips_req_out(ir_node *node, const mips_register_req_t *req, int pos); +void set_mips_req_out(ir_node *node, const arch_register_req_t *req, int pos); /** * Sets the IN register requirements at position pos. */ -void set_mips_req_in(ir_node *node, const mips_register_req_t *req, int pos); +void set_mips_req_in(ir_node *node, const arch_register_req_t *req, int pos); /** * Returns the register flag of an mips node. @@ -62,7 +86,7 @@ arch_irn_flags_t get_mips_flags(const ir_node *node); /** * Sets the register flag of an mips node. */ -void set_mips_flags(const ir_node *node, arch_irn_flags_t flags); +void set_mips_flags(ir_node *node, arch_irn_flags_t flags); /** * Returns the result register slots of an mips node. @@ -84,30 +108,7 @@ int get_mips_out_regnr(const ir_node *node, int pos); */ const arch_register_t *get_mips_out_reg(const ir_node *node, int pos); -/** - * Sets the number of results. - */ -void set_mips_n_res(ir_node *node, int n_res); - -/** - * Returns the number of results. - */ -int get_mips_n_res(const ir_node *node); - - -/** - * Initializes the nodes attributes. - */ -void init_mips_attributes(ir_node *node, arch_irn_flags_t flags, const mips_register_req_t **in_reqs, - const mips_register_req_t **out_reqs, int n_res); - -/** - * Initialize transform ops for the mips opcodes - */ -void mips_init_opcode_transforms(void); - - /* Include the generated headers */ #include "gen_mips_new_nodes.h" -#endif /* _mips_NEW_NODES_H_ */ +#endif