summaryrefslogtreecommitdiffhomepage
path: root/ir/lower/lower_alloc.h
blob: 4c10cccb2fe1fae6b5ec2e2886ad1ae494caaf02 (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
/*
 * This file is part of libFirm.
 * Copyright (C) 2012 University of Karlsruhe.
 */

/**
 * @file
 * @brief   Lower (stack-) Alloc nodes to allocate an aligned number of bytes
 * @author  Matthias Braun
 */
#ifndef FIRM_LOWER_ALLOC_H
#define FIRM_LOWER_ALLOC_H

#include <stdbool.h>
#include "firm_types.h"

/**
 * Lower Alloc nodes: Ensure that alloc sizes are a multiple of a specified
 * alignment.
 * @param irg                  graph to process
 * @param po2_stack_alignment  stack should be aligned to 2**po2_stack_alignment
 */
void lower_alloc(ir_graph *irg, unsigned po2_stack_alignment);

#endif