7195117a5f2a5ce4e4baba04bbc1ad2339e8f832
[libfirm] / lower_alloc.h
1 /*
2  * This file is part of libFirm.
3  * Copyright (C) 2012 University of Karlsruhe.
4  */
5
6 /**
7  * @file
8  * @brief   Lower (stack-) Alloc nodes to allocate an aligned number of bytes
9  * @author  Matthias Braun
10  */
11 #ifndef FIRM_LOWER_ALLOC_H
12 #define FIRM_LOWER_ALLOC_H
13
14 #include <stdbool.h>
15 #include "firm_types.h"
16
17 /**
18  * Lower Alloc/Free nodes: This changes them to allocate bytes instead of
19  * objects of a certain type. It can also make sure that the resulting
20  * size is aligned.
21  */
22 void lower_alloc(ir_graph *irg, unsigned stack_alignment,
23                  bool align_constant_sizes,
24                  long addr_delta);
25
26 #endif