_get_entity_name(const ir_entity *ent) {
assert(ent && ent->kind == k_entity);
return get_id_str(get_entity_ident(ent));
}
_get_entity_name(const ir_entity *ent) {
assert(ent && ent->kind == k_entity);
return get_id_str(get_entity_ident(ent));
}
_set_entity_ident(ir_entity *ent, ident *id) {
assert(ent && ent->kind == k_entity);
ent->name = id;
}
_set_entity_ident(ir_entity *ent, ident *id) {
assert(ent && ent->kind == k_entity);
ent->name = id;
}
_get_entity_owner(ir_entity *ent) {
assert(ent && ent->kind == k_entity);
return ent->owner = skip_tid(ent->owner);
}
_get_entity_owner(ir_entity *ent) {
assert(ent && ent->kind == k_entity);
return ent->owner = skip_tid(ent->owner);
}
_set_entity_ld_ident(ir_entity *ent, ident *ld_ident) {
assert(ent && ent->kind == k_entity);
ent->ld_name = ld_ident;
}
_set_entity_ld_ident(ir_entity *ent, ident *ld_ident) {
assert(ent && ent->kind == k_entity);
ent->ld_name = ld_ident;
}
_get_entity_ld_name(ir_entity *ent) {
assert(ent && ent->kind == k_entity);
return get_id_str(get_entity_ld_ident(ent));
}
_get_entity_ld_name(ir_entity *ent) {
assert(ent && ent->kind == k_entity);
return get_id_str(get_entity_ld_ident(ent));
}
_get_entity_type(ir_entity *ent) {
assert(ent && ent->kind == k_entity);
return ent->type = skip_tid(ent->type);
}
_get_entity_type(ir_entity *ent) {
assert(ent && ent->kind == k_entity);
return ent->type = skip_tid(ent->type);
}
_set_entity_type(ir_entity *ent, ir_type *type) {
assert(ent && ent->kind == k_entity);
ent->type = type;
}
_set_entity_type(ir_entity *ent, ir_type *type) {
assert(ent && ent->kind == k_entity);
ent->type = type;
}
_set_entity_allocation(ir_entity *ent, ir_allocation al) {
assert(ent && ent->kind == k_entity);
ent->allocation = al;
}
_set_entity_allocation(ir_entity *ent, ir_allocation al) {
assert(ent && ent->kind == k_entity);
ent->allocation = al;
}
_set_entity_volatility(ir_entity *ent, ir_volatility vol) {
assert(ent && ent->kind == k_entity);
ent->volatility = vol;
}
_set_entity_volatility(ir_entity *ent, ir_volatility vol) {
assert(ent && ent->kind == k_entity);
ent->volatility = vol;
}
_set_entity_align(ir_entity *ent, ir_align a) {
assert(ent && ent->kind == k_entity);
ent->align = a;
}
_set_entity_align(ir_entity *ent, ir_align a) {
assert(ent && ent->kind == k_entity);
ent->align = a;
}
* describe a field? With inherited the situation changed. So
* I removed the assertion. GL, 28.2.05
*/
* describe a field? With inherited the situation changed. So
* I removed the assertion. GL, 28.2.05
*/
_set_entity_peculiarity(ir_entity *ent, ir_peculiarity pec) {
assert(ent && ent->kind == k_entity);
/* @@@ why peculiarity only for methods? */
_set_entity_peculiarity(ir_entity *ent, ir_peculiarity pec) {
assert(ent && ent->kind == k_entity);
/* @@@ why peculiarity only for methods? */
_set_entity_stickyness(ir_entity *ent, ir_stickyness stickyness) {
assert(ent && ent->kind == k_entity);
ent->stickyness = stickyness;
}
_set_entity_stickyness(ir_entity *ent, ir_stickyness stickyness) {
assert(ent && ent->kind == k_entity);
ent->stickyness = stickyness;
}
_set_entity_final(ir_entity *ent, int final) {
assert(ent && ent->kind == k_entity);
ent->final = final ? 1 : 0;
}
_set_entity_final(ir_entity *ent, int final) {
assert(ent && ent->kind == k_entity);
ent->final = final ? 1 : 0;
}
_is_entity_compiler_generated(const ir_entity *ent) {
assert(ent && ent->kind == k_entity);
return ent->compiler_gen;
}
_is_entity_compiler_generated(const ir_entity *ent) {
assert(ent && ent->kind == k_entity);
return ent->compiler_gen;
}
_set_entity_compiler_generated(ir_entity *ent, int flag) {
assert(ent && ent->kind == k_entity);
ent->compiler_gen = flag ? 1 : 0;
}
_set_entity_compiler_generated(ir_entity *ent, int flag) {
assert(ent && ent->kind == k_entity);
ent->compiler_gen = flag ? 1 : 0;
}
_is_entity_backend_marked(const ir_entity *ent) {
assert(ent && ent->kind == k_entity);
return ent->backend_marked;
}
_is_entity_backend_marked(const ir_entity *ent) {
assert(ent && ent->kind == k_entity);
return ent->backend_marked;
}
_set_entity_backend_marked(ir_entity *ent, int flag) {
assert(ent && ent->kind == k_entity);
ent->backend_marked = flag ? 1 : 0;
}
_set_entity_backend_marked(ir_entity *ent, int flag) {
assert(ent && ent->kind == k_entity);
ent->backend_marked = flag ? 1 : 0;
}
_set_entity_usage(ir_entity *ent, ir_entity_usage state) {
assert(ent && ent->kind == k_entity);
ent->usage = state;
}
_set_entity_usage(ir_entity *ent, ir_entity_usage state) {
assert(ent && ent->kind == k_entity);
ent->usage = state;
}
_set_entity_offset(ir_entity *ent, int offset) {
assert(ent && ent->kind == k_entity);
ent->offset = offset;
}
_set_entity_offset(ir_entity *ent, int offset) {
assert(ent && ent->kind == k_entity);
ent->offset = offset;
}
_get_entity_offset_bits_remainder(const ir_entity *ent) {
assert(ent && ent->kind == k_entity);
return ent->offset_bit_remainder;
}
_get_entity_offset_bits_remainder(const ir_entity *ent) {
assert(ent && ent->kind == k_entity);
return ent->offset_bit_remainder;
}
_set_entity_offset_bits_remainder(ir_entity *ent, unsigned char offset) {
assert(ent && ent->kind == k_entity);
ent->offset_bit_remainder = offset;
}
_set_entity_offset_bits_remainder(ir_entity *ent, unsigned char offset) {
assert(ent && ent->kind == k_entity);
ent->offset_bit_remainder = offset;
}
_set_entity_link(ir_entity *ent, void *l) {
assert(ent && ent->kind == k_entity);
ent->link = l;
}
_set_entity_link(ir_entity *ent, void *l) {
assert(ent && ent->kind == k_entity);
ent->link = l;
}
_set_entity_visited(ir_entity *ent, ir_visited_t num) {
assert(ent && ent->kind == k_entity);
ent->visit = num;
}
_set_entity_visited(ir_entity *ent, ir_visited_t num) {
assert(ent && ent->kind == k_entity);
ent->visit = num;
}
_mark_entity_visited(ir_entity *ent) {
assert(ent && ent->kind == k_entity);
ent->visit = firm_type_visited;
}
_mark_entity_visited(ir_entity *ent) {
assert(ent && ent->kind == k_entity);
ent->visit = firm_type_visited;
}