summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bearch.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-08-07 23:53:17 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-08-09 09:47:27 +0200
commit36de184977ec02d6df9a3194520ae19307c526eb (patch)
treeb69c227f7437bfe564ba891160fa9cdd97ac9b8d /ir/be/bearch.c
parent4f7811db7b0ad2348da3689d6f43ed07aa48d2f5 (diff)
be: Reintroduce be_Start.
All backends have similar empty Start nodes, which just provide registers. So having one generic backend Start node to share some infrastructure is sensible.
Diffstat (limited to 'ir/be/bearch.c')
-rw-r--r--ir/be/bearch.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/ir/be/bearch.c b/ir/be/bearch.c
index b1cbaef..2901243 100644
--- a/ir/be/bearch.c
+++ b/ir/be/bearch.c
@@ -147,36 +147,6 @@ uint8_t arch_get_additional_pressure(ir_node const *const node,
return 0;
}
-void be_make_start_mem(be_start_info_t *const info, ir_node *const start, unsigned const pos)
-{
- info->pos = pos;
- info->irn = NULL;
- arch_set_irn_register_req_out(start, pos, arch_memory_req);
-}
-
-void be_make_start_out(be_start_info_t *const info, ir_node *const start,
- unsigned const pos, arch_register_t const *const reg,
- bool const ignore)
-{
- info->pos = pos;
- info->irn = NULL;
- arch_register_req_t const *const req = ignore
- ? be_create_reg_req(be_get_be_obst(get_irn_irg(start)), reg, true)
- : reg->single_req;
- arch_set_irn_register_req_out(start, pos, req);
- arch_set_irn_register_out(start, pos, reg);
-}
-
-ir_node *be_get_start_proj(ir_graph *const irg, be_start_info_t *const info)
-{
- if (!info->irn) {
- /* This is already the transformed start node. */
- ir_node *const start = get_irg_start(irg);
- info->irn = be_new_Proj(start, info->pos);
- }
- return info->irn;
-}
-
void arch_copy_irn_out_info(ir_node *const dst, unsigned const dst_pos, ir_node const *const src)
{
reg_out_info_t *const src_info = get_out_info(src);