bevarargs.h 616 Bytes
Newer Older
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
/*
 * This file is part of libFirm.
 * Copyright (C) 2015 University of Karlsruhe.
 */

/**
 * @file
 * @brief   Default (pointer-based) implementation of variadic functions
 * @author  Andreas Fried
 */

#ifndef FIRM_BE_BEVARARGS_H
#define FIRM_BE_BEVARARGS_H

#include "firm_types.h"

/**
 * Default implementation to lower a va_arg node.
 *
 * This implementation assumes that all arguments are stored on the
 * stack and that the va_list value points to the next variadic
 * argument.
 *
 * @param node A Builtin node with kind ir_bk_va_arg to be lowered
 */
void be_default_lower_va_arg(ir_node *node);

#endif