summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bechordal_common.h
blob: dc57aeb73b54286c1852517be48b92321c21966a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * This file is part of libFirm.
 * Copyright (C) 2012 University of Karlsruhe.
 */

/**
 * @file
 * @brief       Common functions for chordal register allocation.
 * @author      Sebastian Hack
 * @date        08.12.2004
 */

#ifndef BECHORDAL_COMMON_H_
#define BECHORDAL_COMMON_H_

#include "bechordal.h"
#include "beinsn_t.h"

/**
 * Annotate the register pressure to the nodes and compute
 * the liveness intervals.
 * @param block The block to do it for.
 * @param env_ptr The environment.
 */
void create_borders(ir_node *block, void *env_ptr);

/**
 * Insert perm nodes
 * @param env The chordal environment.
 * @param the_insn The current be_insn node.
 * @return The new perm node.
 */
ir_node *pre_process_constraints(be_chordal_env_t *_env, be_insn_t **the_insn);

#endif