summaryrefslogtreecommitdiffhomepage
path: root/ir/be/betranshlp.h
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2017-01-09 13:18:29 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2017-01-12 12:45:04 +0100
commit00be7779bfb5c3eb2c2eff8c0c29ffcbec78f793 (patch)
tree50fd04c3641d4c95720a3a21c51762c91ef0cfe1 /ir/be/betranshlp.h
parente1e04a12b4a39444d0d14feb555a5724c0c0f47e (diff)
be: Make the function to get the output position of a node for given register backend-generic.
Diffstat (limited to 'ir/be/betranshlp.h')
-rw-r--r--ir/be/betranshlp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ir/be/betranshlp.h b/ir/be/betranshlp.h
index 6f74c5a..9b50961 100644
--- a/ir/be/betranshlp.h
+++ b/ir/be/betranshlp.h
@@ -193,4 +193,10 @@ static inline bool be_mode_needs_gp_reg(ir_mode *const mode)
return get_mode_arithmetic(mode) == irma_twos_complement;
}
+/**
+ * Finds number of output value of a node which is constrained to a single
+ * specific register.
+ */
+unsigned be_get_out_for_reg(ir_node const *node, arch_register_t const *reg);
+
#endif