X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbearch.h;h=b996806546c70ad9275a6aecf6d735ca0cce7294;hb=a4c23fb5fdcaf600f18b4fa7b7e104fa9b7dc514;hp=4b0d187e4559eeabfe96f86e37e11a5f9cbece87;hpb=78680bc76e5e6d7c8a63390fefdf085b342d1b6d;p=libfirm diff --git a/ir/be/bearch.h b/ir/be/bearch.h index 4b0d187e4..b99680654 100644 --- a/ir/be/bearch.h +++ b/ir/be/bearch.h @@ -48,32 +48,24 @@ typedef enum arch_register_class_flags_t { } arch_register_class_flags_t; typedef enum arch_register_type_t { - arch_register_type_none = 0, + arch_register_type_none = 0, arch_register_type_caller_save = 1, /**< The register must be saved by the caller - upon a function call. It thus can be overwritten - in the called function. */ + upon a function call. It thus can be overwritten + in the called function. */ arch_register_type_callee_save = 2, /**< The register must be saved by the caller - upon a function call. It thus can be overwritten - in the called function. */ + upon a function call. It thus can be overwritten + in the called function. */ arch_register_type_ignore = 4, /**< Do not consider this register when allocating. */ arch_register_type_joker = 8, /**< The emitter can choose an arbitrary register */ arch_register_type_virtual = 16, /**< This is just a virtual register.Virtual registers have - nearly no constraints, it is a allowed to have multiple - definition for the same register at a point) */ + nearly no constraints, it is a allowed to have multiple + definition for the same register at a point) */ arch_register_type_state = 32, /**< The register represents a state that should be handled by bestate code */ } arch_register_type_t; -/** - * Put all registers in a class into a bitset. - * @param cls The class. - * @param bs The bitset. May be NULL. - * @return The number of registers in the class. - */ -extern int arch_register_class_put(const arch_register_class_t *cls, bitset_t *bs); - typedef enum arch_operand_type_t { - arch_operand_type_invalid, + arch_operand_type_invalid, arch_operand_type_memory, arch_operand_type_register, arch_operand_type_immediate, @@ -181,7 +173,7 @@ extern int arch_is_register_operand(const arch_env_t *env, * a register class for an operand of a node. * @param env The environment. * @param irn The node. - * @param pos The postition of the node's operand. + * @param pos The position of the node's operand. * @param bs The bitset all allocatable registers shall be put into. * Note, that you can also pass NULL here. If you don't, * make sure, the bitset is as large as the register class @@ -237,7 +229,7 @@ arch_get_irn_register(const arch_env_t *env, const ir_node *irn); * @param reg The register. */ extern void arch_set_irn_register(const arch_env_t *env, ir_node *irn, - const arch_register_t *reg); + const arch_register_t *reg); /** * Classify a node.