X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Farm%2Farm_new_nodes.h;h=d2a2dcb079a4c484e3a95407416cc2cfbb24d47d;hb=1872920c09708b361d06c0dc9f4c1fd0a03544f5;hp=1ace387684594ada76542a437f0aaa50f69c56c0;hpb=7f81d2a2c9293cf34e4db08fc402a5c33ef919eb;p=libfirm diff --git a/ir/be/arm/arm_new_nodes.h b/ir/be/arm/arm_new_nodes.h index 1ace38768..d2a2dcb07 100644 --- a/ir/be/arm/arm_new_nodes.h +++ b/ir/be/arm/arm_new_nodes.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -41,9 +41,28 @@ ***************************************************************************************************/ /** - * Returns the attributes of an arm node. + * Returns the attributes of a generic Arm node. */ -arm_attr_t *get_arm_attr(const ir_node *node); +arm_attr_t *get_arm_attr(ir_node *node); +const arm_attr_t *get_arm_attr_const(const ir_node *node); + +/** + * Returns the attributes of an ARM SymConst node. + */ +arm_SymConst_attr_t *get_arm_SymConst_attr(ir_node *node); +const arm_SymConst_attr_t *get_arm_SymConst_attr_const(const ir_node *node); + +/** + * Returns the attributes of an ARM CondJmp node. + */ +arm_CondJmp_attr_t *get_arm_CondJmp_attr(ir_node *node); +const arm_CondJmp_attr_t *get_arm_CondJmp_attr_const(const ir_node *node); + +/** + * Returns the attributes of an ARM SwitchJmp node. + */ +arm_SwitchJmp_attr_t *get_arm_SwitchJmp_attr(ir_node *node); +const arm_SwitchJmp_attr_t *get_arm_SwitchJmp_attr_const(const ir_node *node); /** * Returns the argument register requirements of an arm node. @@ -88,7 +107,7 @@ arch_irn_flags_t get_arm_flags(const ir_node *node); /** * Sets the register flag of an arm node. */ -void set_arm_flags(const ir_node *node, arch_irn_flags_t flags); +void set_arm_flags(ir_node *node, arch_irn_flags_t flags); /** * Returns the result register slots of an arm node. @@ -116,30 +135,44 @@ const arch_register_t *get_arm_out_reg(const ir_node *node, int pos); int get_arm_n_res(const ir_node *node); /** - * Set the ARM machine node attributes to default values. + * Sets the flags for the n'th out. + */ +void set_arm_out_flags(ir_node *node, arch_irn_flags_t flags, int pos); + +/** + * Gets the flags for the n'th out. + */ +arch_irn_flags_t get_arm_out_flags(const ir_node *node, int pos); + +/** + * Returns the immediate value */ -void init_arm_attributes(ir_node *node, int flags, const arch_register_req_t ** in_reqs, - const arch_register_req_t ** out_reqs, const be_execution_unit_t ***execution_units, int n_res, unsigned latency); +long get_arm_imm_value(const ir_node *node); /** - * Returns the tarval + * Sets the immediate value */ -tarval *get_arm_value(const ir_node *node); +void set_arm_imm_value(ir_node *node, long imm_value); /** - * Sets the tarval +* Return the tarval of a fpaConst +*/ +tarval *get_fpaConst_value(const ir_node *node); + +/** + * Sets the tarval of a fpaConst */ -void set_arm_value(ir_node *node, tarval *tv); +void set_fpaConst_value(ir_node *node, tarval *tv); /** * Returns the proj num */ -int get_arm_proj_num(const ir_node *node); +int get_arm_CondJmp_proj_num(const ir_node *node); /** * Sets the proj num */ -void set_arm_proj_num(ir_node *node, int proj_num); +void set_arm_CondJmp_proj_num(ir_node *node, int proj_num); ident *get_arm_symconst_id(const ir_node *node); void set_arm_symconst_id(ir_node *node, ident *symconst_id); @@ -148,35 +181,30 @@ ir_node *new_r_arm_StoreStackMInc(ir_graph *irg, ir_node *block, ir_node *mem, i int n_regs, ir_node **regs, ir_mode *mode); /** - * Returns the number of projs. + * Returns the number of projs of a SwitchJmp. */ -int get_arm_n_projs(const ir_node *node); +int get_arm_SwitchJmp_n_projs(const ir_node *node); /** - * Sets the number of projs. + * Sets the number of projs of a SwitchJmp. */ -void set_arm_n_projs(ir_node *node, int n_projs); +void set_arm_SwitchJmp_n_projs(ir_node *node, int n_projs); /** * Returns the default_proj_num. */ -long get_arm_default_proj_num(const ir_node *node); +long get_arm_SwitchJmp_default_proj_num(const ir_node *node); /** * Sets the default_proj_num. */ -void set_arm_default_proj_num(ir_node *node, long default_proj_num); +void set_arm_SwitchJmp_default_proj_num(ir_node *node, long default_proj_num); /** * Gets the shift modifier attribute. */ arm_shift_modifier get_arm_shift_modifier(const ir_node *node); -/** - * Decode an immediate with shifter operand - */ -unsigned int arm_decode_imm_w_shift(tarval *tv); - /* Include the generated headers */ #include "gen_arm_new_nodes.h"