X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Fentity.h;h=06a892dd8bfc4c8f10daa1fc82ad264fdadae604;hb=bc772df6ffc43cc8d73b0fb3d8d43a1c8ebf1c25;hp=7fce7601e04a1150f5c9e0aa09fc3214566030df;hpb=87f7c13645e762f21991ad79985a7f3e6ef612cf;p=libfirm diff --git a/ir/tr/entity.h b/ir/tr/entity.h index 7fce7601e..06a892dd8 100644 --- a/ir/tr/entity.h +++ b/ir/tr/entity.h @@ -291,16 +291,16 @@ ir_stickyness get_entity_stickyness(const ir_entity *ent); void set_entity_stickyness(ir_entity *ent, ir_stickyness stickyness); /** Returns the offset of an entity (in a compound) in bytes. Only set if layout = fixed. */ -int get_entity_offset_bytes(const ir_entity *ent); - -/** Returns the offset of an entity (in a compound) in bits. Only set if layout = fixed. */ -int get_entity_offset_bits(const ir_entity *ent); +int get_entity_offset(const ir_entity *ent); /** Sets the offset of an entity (in a compound) in bytes. */ -void set_entity_offset_bytes(ir_entity *ent, int offset); +void set_entity_offset(ir_entity *ent, int offset); + +/** Returns the offset bit remainder of a bitfield entity (in a compound) in bits. Only set if layout = fixed. */ +unsigned char get_entity_offset_bits_remainder(const ir_entity *ent); -/** Sets the offset of an entity (in a compound) in bits. */ -void set_entity_offset_bits(ir_entity *ent, int offset); +/** Sets the offset bit remainder of a bitfield entity (in a compound) in bits. */ +void set_entity_offset_bits_remainder(ir_entity *ent, unsigned char offset); /** Returns the stored intermediate information. */ void *get_entity_link(const ir_entity *ent); @@ -440,14 +440,14 @@ void set_compound_ent_value(ir_entity *ent, ir_node *val, ir_entity *member, void set_array_entity_values(ir_entity *ent, tarval **values, int num_vals); /** - * Return the offset in bits from the last byte (result is in [0,7]) + * Return the offset in bits from the last byte address. * * This requires that the layout of all concerned types is fixed. * * @param ent Any entity of compound type with at least pos initialization values. * @param pos The position of the value for which the offset is requested. */ -int get_compound_ent_value_offset_bit_part(ir_entity *ent, int pos); +int get_compound_ent_value_offset_bit_remainder(ir_entity *ent, int pos); /** Return the overall offset of value at position pos in bytes. *