return _get_irp_irg(pos);
}
-int get_irp_last_idx(void)
+size_t get_irp_last_idx(void)
{
return irp->max_irg_idx;
}
}
#ifndef NDEBUG
-void irp_reserve_resources(ir_prog *irp, ir_resources_t resources)
+void irp_reserve_resources(ir_prog *irp, irp_resources_t resources)
{
- assert((resources & ~IR_RESOURCE_GLOBAL_MASK) == 0);
assert((irp->reserved_resources & resources) == 0);
irp->reserved_resources |= resources;
}
-void irp_free_resources(ir_prog *irp, ir_resources_t resources)
+void irp_free_resources(ir_prog *irp, irp_resources_t resources)
{
assert((irp->reserved_resources & resources) == resources);
irp->reserved_resources &= ~resources;
}
-ir_resources_t irp_resources_reserved(const ir_prog *irp)
+irp_resources_t irp_resources_reserved(const ir_prog *irp)
{
return irp->reserved_resources;
}