summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bearch.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-06-19 07:43:14 +0200
committerMatthias Braun <matze@braunis.de>2015-06-19 07:46:02 +0200
commit7726c953c2fc56ba65a50a634c521a4d1225a381 (patch)
treece02f4caec5453a91a7024713ab3ad905b963160 /ir/be/bearch.c
parent2109a91a5fe049e0b11a99b4bb070a9d20498292 (diff)
move op_estimated_cost callback to isa_if; remove arch_irn_ops
Diffstat (limited to 'ir/be/bearch.c')
-rw-r--r--ir/be/bearch.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/ir/be/bearch.c b/ir/be/bearch.c
index 485b925..76ebfd1 100644
--- a/ir/be/bearch.c
+++ b/ir/be/bearch.c
@@ -26,30 +26,6 @@ arch_register_req_t const arch_no_requirement = {
.width = 0,
};
-/**
- * Get the isa responsible for a node.
- * @param irn The node to get the responsible isa for.
- * @return The irn operations given by the responsible isa.
- */
-static const arch_irn_ops_t *get_irn_ops(const ir_node *irn)
-{
- ir_op const *const op = get_irn_op(irn);
- arch_irn_ops_t const *const be_ops = get_op_ops(op)->be_ops;
- assert(be_ops);
- return be_ops;
-}
-
-int arch_get_op_estimated_cost(const ir_node *irn)
-{
- const arch_irn_ops_t *ops = get_irn_ops(irn);
-
- if (ops->get_op_estimated_cost) {
- return ops->get_op_estimated_cost(irn);
- } else {
- return 1;
- }
-}
-
static reg_out_info_t *get_out_info_n(const ir_node *node, unsigned pos)
{
const backend_info_t *info = be_get_info(node);