amd64_emitter.h 1.12 KB
Newer Older
1
2
/*
 * This file is part of libFirm.
3
 * Copyright (C) 2012 University of Karlsruhe.
4
5
6
7
8
9
 */

/**
 * @file
 * @brief    declarations for emit functions
 */
10
11
#ifndef FIRM_BE_AMD64_AMD64_EMITTER_H
#define FIRM_BE_AMD64_AMD64_EMITTER_H
12
13
14
15
16

#include "irargs_t.h"
#include "irnode.h"
#include "debug.h"

17
18
#include "bearch.h"
#include "beemitter.h"
19
20
21

#include "bearch_amd64_t.h"

Christoph Mallon's avatar
Christoph Mallon committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
 * fmt  parameter               output
 * ---- ----------------------  ---------------------------------------------
 * %%                           %
 * %C   <node>                  immediate value
 * %Dx  <node>                  destination register x
 * %E   ir_entity const*        entity
 * %L   <node>                  control flow target
 * %O   <node>                  offset
 * %R   arch_register_t const*  register
 * %Sx  <node>                  source register x
 * %S*  <node>, int             source register
 * %d   signed int              signed int
 * %s   char const*             string
 * %u   unsigned int            unsigned int
 *
 * x starts at 0
 */
void amd64_emitf(ir_node const *node, char const *fmt, ...);
41

42
void amd64_gen_routine(ir_graph *irg);
43
44

#endif