X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Farm%2Farm_new_nodes.h;h=93813b7c2d662a5013f4ff2dc06e331be0af6356;hb=792661421a71bcfa9b64da8c6b655e826e94d2c1;hp=a9f378a0a35121a8c9c3903a316b0e3ee8c34caf;hpb=1af2ed0c33f2c13ececd46edaa7a4af35ef4cefa;p=libfirm diff --git a/ir/be/arm/arm_new_nodes.h b/ir/be/arm/arm_new_nodes.h index a9f378a0a..93813b7c2 100644 --- a/ir/be/arm/arm_new_nodes.h +++ b/ir/be/arm/arm_new_nodes.h @@ -21,7 +21,6 @@ * @file * @brief Function prototypes for the assembler ir node constructors. * @author Oliver Richter, Tobias Gneist - * @version $Id$ */ #ifndef FIRM_BE_ARM_ARM_NEW_NODES_H #define FIRM_BE_ARM_ARM_NEW_NODES_H @@ -29,17 +28,6 @@ #include "arm_nodes_attr.h" #include "bearch_arm_t.h" -/*************************************************************************************************** - * _ _ _ __ _ _ _ _ - * | | | | | | / / | | | | | | | | - * __ _| |_| |_ _ __ ___ ___| |_ / /_ _ ___| |_ _ __ ___ ___| |_| |__ ___ __| |___ - * / _` | __| __| '__| / __|/ _ \ __| / / _` |/ _ \ __| | '_ ` _ \ / _ \ __| '_ \ / _ \ / _` / __| - * | (_| | |_| |_| | \__ \ __/ |_ / / (_| | __/ |_ | | | | | | __/ |_| | | | (_) | (_| \__ \ - * \__,_|\__|\__|_| |___/\___|\__/_/ \__, |\___|\__| |_| |_| |_|\___|\__|_| |_|\___/ \__,_|___/ - * __/ | - * |___/ - ***************************************************************************************************/ - /** * Returns the attributes of a generic Arm node. */ @@ -64,142 +52,44 @@ const arm_CondJmp_attr_t *get_arm_CondJmp_attr_const(const ir_node *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. - */ -const arch_register_req_t **get_arm_in_req_all(const ir_node *node); - -/** - * Returns the result register requirements of an arm node. - */ -const arch_register_req_t **get_arm_out_req_all(const ir_node *node); - -/** - * Returns the argument register requirements of an arm node. - */ -const arch_register_req_t *get_arm_in_req(const ir_node *node, int pos); - -/** - * Returns the result register requirements of an arm node. - */ -const arch_register_req_t *get_arm_out_req(const ir_node *node, int pos); - -/** - * Sets the OUT register requirements at position pos. - */ -void set_arm_req_out(ir_node *node, const arch_register_req_t *req, int pos); - -/** - * Sets the complete OUT requirements of node. - */ -void set_arm_req_out_all(ir_node *node, const arch_register_req_t **reqs); - -/** - * Sets the IN register requirements at position pos. - */ -void set_arm_req_in(ir_node *node, const arch_register_req_t *req, int pos); - -/** - * Returns the register flag of an arm node. - */ -arch_irn_flags_t get_arm_flags(const ir_node *node); - -/** - * Sets the register flag of an arm node. - */ -void set_arm_flags(ir_node *node, arch_irn_flags_t flags); - -/** - * Returns the result register slots of an arm node. - */ -const arch_register_t **get_arm_slots(const ir_node *node); - -/** - * Returns the name of the OUT register at position pos. - */ -const char *get_arm_out_reg_name(const ir_node *node, int pos); - -/** - * Returns the index of the OUT register at position pos within its register class. - */ -int get_arm_out_regnr(const ir_node *node, int pos); +arm_load_store_attr_t *get_arm_load_store_attr(ir_node *node); +const arm_load_store_attr_t *get_arm_load_store_attr_const(const ir_node *node); -/** - * Returns the OUT register at position pos. - */ -const arch_register_t *get_arm_out_reg(const ir_node *node, int pos); +arm_shifter_operand_t *get_arm_shifter_operand_attr(ir_node *node); +const arm_shifter_operand_t *get_arm_shifter_operand_attr_const(const ir_node *node); -/** - * Returns the number of results. - */ -int get_arm_n_res(const ir_node *node); +arm_cmp_attr_t *get_arm_cmp_attr(ir_node *node); +const arm_cmp_attr_t *get_arm_cmp_attr_const(const ir_node *node); -/** - * Sets the flags for the n'th out. - */ -void set_arm_out_flags(ir_node *node, arch_irn_flags_t flags, int pos); +arm_farith_attr_t *get_arm_farith_attr(ir_node *node); +const arm_farith_attr_t *get_arm_farith_attr_const(const ir_node *node); -/** - * Gets the flags for the n'th out. - */ -arch_irn_flags_t get_arm_out_flags(const ir_node *node, int pos); +arm_CopyB_attr_t *get_arm_CopyB_attr(ir_node *node); +const arm_CopyB_attr_t *get_arm_CopyB_attr_const(const ir_node *node); /** - * Returns the tarval - */ -tarval *get_arm_value(const ir_node *node); +* Return the tarval of a fConst +*/ +ir_tarval *get_fConst_value(const ir_node *node); /** - * Sets the tarval + * Sets the tarval of a fConst */ -void set_arm_value(ir_node *node, tarval *tv); +void set_fConst_value(ir_node *node, ir_tarval *tv); /** - * Returns the proj num + * Returns the compare kind */ -int get_arm_CondJmp_proj_num(const ir_node *node); +ir_relation get_arm_CondJmp_relation(const ir_node *node); /** - * Sets the proj num + * Set compare type */ -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); +void set_arm_CondJmp_relation(ir_node *node, ir_relation relation); ir_node *new_r_arm_StoreStackMInc(ir_graph *irg, ir_node *block, ir_node *mem, ir_node *sp, int n_regs, ir_node **regs, ir_mode *mode); -/** - * Returns the number of projs of a SwitchJmp. - */ -int get_arm_SwitchJmp_n_projs(const ir_node *node); - -/** - * Sets the number of projs of a SwitchJmp. - */ -void set_arm_SwitchJmp_n_projs(ir_node *node, int n_projs); - -/** - * Returns the default_proj_num. - */ -long get_arm_SwitchJmp_default_proj_num(const ir_node *node); - -/** - * Sets the 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"