* @file
* @brief lowering of Calls of intrinsic functions
* @author Michael Beck
- * @version $Id$
*/
#include "config.h"
ir_entity *ent;
symconst = get_Call_ptr(node);
- if (! is_Global(symconst))
+ if (! is_SymConst_addr_ent(symconst))
return;
- ent = get_Global_entity(symconst);
+ ent = get_SymConst_entity(symconst);
p = pmap_find(wenv->c_map, ent);
if (p) {
irn = new_rd_Builtin(dbg, block, get_irg_no_mem(current_ir_graph), 1, &op, ir_bk_bswap, tp);
set_irn_pinned(irn, op_pin_state_floats);
- irn = new_r_Proj(irn, get_irn_mode(op), pn_Builtin_1_result);
+ irn = new_r_Proj(irn, get_irn_mode(op), pn_Builtin_max+1);
replace_call(irn, call, mem, NULL, NULL);
return 1;
} /* i_mapper_bswap */
*/
static ir_entity *get_const_entity(ir_node *ptr)
{
- if (is_Global(ptr)) {
- ir_entity *ent = get_Global_entity(ptr);
+ if (is_SymConst_addr_ent(ptr)) {
+ ir_entity *ent = get_SymConst_entity(ptr);
if (get_entity_linkage(ent) & IR_LINKAGE_CONSTANT) {
/* a constant entity */