X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2FTEMPLATE%2FTEMPLATE_new_nodes.h;h=e35d5b718d822bfb2665edbd43f5ff28f6ff27c7;hb=06442ea1375d71a91fc5fd0e499cdf4bc9ce6475;hp=b67c06c48ca0a7920e58b09f0c8fe130f4c1fd5f;hpb=17e47394fa72025d14172a2acef2d258a067aa42;p=libfirm diff --git a/ir/be/TEMPLATE/TEMPLATE_new_nodes.h b/ir/be/TEMPLATE/TEMPLATE_new_nodes.h index b67c06c48..e35d5b718 100644 --- a/ir/be/TEMPLATE/TEMPLATE_new_nodes.h +++ b/ir/be/TEMPLATE/TEMPLATE_new_nodes.h @@ -1,10 +1,29 @@ -#ifndef _TEMPLATE_NEW_NODES_H_ -#define _TEMPLATE_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. + * @version $Id$ + */ +#ifndef FIRM_BE_TEMPALTE_TEMPLATE_NEW_NODES_H +#define FIRM_BE_TEMPLATE_TEMPLATE_NEW_NODES_H #include "TEMPLATE_nodes_attr.h" @@ -22,37 +41,39 @@ /** * Returns the attributes of an TEMPLATE node. */ -TEMPLATE_attr_t *get_TEMPLATE_attr(const ir_node *node); +TEMPLATE_attr_t *get_TEMPLATE_attr(ir_node *node); + +const TEMPLATE_attr_t *get_TEMPLATE_attr_const(const ir_node *node); /** * Returns the argument register requirements of an TEMPLATE node. */ -const TEMPLATE_register_req_t **get_TEMPLATE_in_req_all(const ir_node *node); +const arch_register_req_t **get_TEMPLATE_in_req_all(const ir_node *node); /** * Returns the result register requirements of an TEMPLATE node. */ -const TEMPLATE_register_req_t **get_TEMPLATE_out_req_all(const ir_node *node); +const arch_register_req_t **get_TEMPLATE_out_req_all(const ir_node *node); /** * Returns the argument register requirements of an TEMPLATE node. */ -const TEMPLATE_register_req_t *get_TEMPLATE_in_req(const ir_node *node, int pos); +const arch_register_req_t *get_TEMPLATE_in_req(const ir_node *node, int pos); /** * Returns the result register requirements of an TEMPLATE node. */ -const TEMPLATE_register_req_t *get_TEMPLATE_out_req(const ir_node *node, int pos); +const arch_register_req_t *get_TEMPLATE_out_req(const ir_node *node, int pos); /** * Sets the OUT register requirements at position pos. */ -void set_TEMPLATE_req_out(ir_node *node, const TEMPLATE_register_req_t *req, int pos); +void set_TEMPLATE_req_out(ir_node *node, const arch_register_req_t *req, int pos); /** * Sets the IN register requirements at position pos. */ -void set_TEMPLATE_req_in(ir_node *node, const TEMPLATE_register_req_t *req, int pos); +void set_TEMPLATE_req_in(ir_node *node, const arch_register_req_t *req, int pos); /** * Returns the register flag of an TEMPLATE node. @@ -62,12 +83,14 @@ arch_irn_flags_t get_TEMPLATE_flags(const ir_node *node); /** * Sets the register flag of an TEMPLATE node. */ -void set_TEMPLATE_flags(const ir_node *node, arch_irn_flags_t flags); +void set_TEMPLATE_flags(ir_node *node, arch_irn_flags_t flags); /** * Returns the result register slots of an TEMPLATE node. */ -const arch_register_t **get_TEMPLATE_slots(const ir_node *node); +const arch_register_t **get_TEMPLATE_slots(ir_node *node); + +const arch_register_t * const *get_TEMPLATE_slots_const(const ir_node *node); /** * Returns the name of the OUT register at position pos. @@ -84,11 +107,6 @@ int get_TEMPLATE_out_regnr(const ir_node *node, int pos); */ const arch_register_t *get_TEMPLATE_out_reg(const ir_node *node, int pos); -/** - * Sets the number of results. - */ -void set_TEMPLATE_n_res(ir_node *node, int n_res); - /** * Returns the number of results. */ @@ -98,4 +116,4 @@ int get_TEMPLATE_n_res(const ir_node *node); /* Include the generated headers */ #include "gen_TEMPLATE_new_nodes.h" -#endif /* _TEMPLATE_NEW_NODES_H_ */ +#endif