return ops->impl->get_frame_entity(ops, irn);
}
+arch_inverse_t *arch_get_inverse(const arch_env_t *env, const ir_node *irn, int i, arch_inverse_t *inverse, struct obstack *obstack)
+{
+ const arch_irn_ops_t *ops = get_irn_ops(env, irn);
+ if(ops->impl->get_inverse) {
+ return ops->impl->get_inverse(ops, irn, i, inverse, obstack);
+ } else {
+ return NULL;
+ }
+}
+
+int arch_get_op_estimated_cost(const arch_env_t *env, const ir_node *irn)
+{
+ const arch_irn_ops_t *ops = get_irn_ops(env, irn);
+ if(ops->impl->get_op_estimated_cost) {
+ return ops->impl->get_op_estimated_cost(ops, irn);
+ } else {
+ return 1;
+ }
+}
+
+int arch_is_possible_memory_operand(const arch_env_t *env, const ir_node *irn, int i)
+{
+ const arch_irn_ops_t *ops = get_irn_ops(env, irn);
+ if(ops->impl->possible_memory_operand) {
+ return ops->impl->possible_memory_operand(ops, irn, i);
+ } else {
+ return 0;
+ }
+}
int arch_get_allocatable_regs(const arch_env_t *env, const ir_node *irn, int pos, bitset_t *bs)
{
}
}
+int arch_count_non_ignore_regs(const arch_env_t *env, const arch_register_class_t *cls)
+{
+ int i;
+ int result = 0;
+
+ for(i = 0; i < cls->n_regs; ++i) {
+ if(!arch_register_type_is(&cls->regs[i], ignore))
+ result++;
+ }
+
+ return result;
+}
+
int arch_is_register_operand(const arch_env_t *env,
const ir_node *irn, int pos)
{
XXX(dont_spill);
XXX(ignore);
XXX(rematerializable);
+ XXX(modify_sp);
XXX(none);
#undef XXX
}