summaryrefslogtreecommitdiffhomepage
path: root/ir/be/TEMPLATE
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2015-12-06 10:43:51 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2015-12-07 18:41:48 +0100
commitf9aa81803dacfd6f25e22af5082848163a422511 (patch)
tree4b22de51a9e559a1b9550578294236566637e504 /ir/be/TEMPLATE
parent670c690e38aa50218ca68e53c77f4ab870f3f54d (diff)
be: Provide a default implementation for the hook 'is_valid_clobber()'.
In particular remove the unnecessary 'sparc_is_valid_clobber()'. The wrapper 'be_is_valid_clobber()' already handles 'memory' and 'cc'.
Diffstat (limited to 'ir/be/TEMPLATE')
-rw-r--r--ir/be/TEMPLATE/bearch_TEMPLATE.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/ir/be/TEMPLATE/bearch_TEMPLATE.c b/ir/be/TEMPLATE/bearch_TEMPLATE.c
index 36ca455..ddd32d3 100644
--- a/ir/be/TEMPLATE/bearch_TEMPLATE.c
+++ b/ir/be/TEMPLATE/bearch_TEMPLATE.c
@@ -156,12 +156,6 @@ static const backend_params *TEMPLATE_get_backend_params(void)
return &p;
}
-static int TEMPLATE_is_valid_clobber(const char *clobber)
-{
- (void)clobber;
- return false;
-}
-
static unsigned TEMPLATE_get_op_estimated_cost(const ir_node *node)
{
if (is_TEMPLATE_Load(node))
@@ -181,7 +175,7 @@ static arch_isa_if_t const TEMPLATE_isa_if = {
.get_params = TEMPLATE_get_backend_params,
.generate_code = TEMPLATE_generate_code,
.lower_for_target = TEMPLATE_lower_for_target,
- .is_valid_clobber = TEMPLATE_is_valid_clobber,
+ .is_valid_clobber = be_default_is_valid_clobber,
.get_op_estimated_cost = TEMPLATE_get_op_estimated_cost,
};