sparc_emitter.h 1.82 KB
Newer Older
Hannes Rapp's avatar
Hannes Rapp committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
 *
 * This file is part of libFirm.
 *
 * This file may be distributed and/or modified under the terms of the
 * GNU General Public License version 2 as published by the Free Software
 * Foundation and appearing in the file LICENSE.GPL included in the
 * packaging of this file.
 *
 * Licensees holding valid libFirm Professional Edition licenses may use
 * this file in accordance with the libFirm Commercial License.
 * Agreement provided with the Software.
 *
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE.
 */

/**
 * @file
 * @brief    declarations for emit functions
Michael Beck's avatar
Michael Beck committed
23
 * @version  $Id$
Hannes Rapp's avatar
Hannes Rapp committed
24
 */
25
26
#ifndef FIRM_BE_SPARC_EMITTER_H
#define FIRM_BE_SPARC_EMITTER_H
Hannes Rapp's avatar
Hannes Rapp committed
27
28
29
30
31
32
33
34
35
36
37

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

#include "../bearch.h"
#include "../beemitter.h"

#include "bearch_sparc_t.h"

void sparc_emit_immediate(const ir_node *node);
38
void sparc_emit_high_immediate(const ir_node *node);
Hannes Rapp's avatar
Hannes Rapp committed
39
40
41
42
void sparc_emit_mode(const ir_node *node);
void sparc_emit_source_register(const ir_node *node, int pos);
void sparc_emit_reg_or_imm(const ir_node *node, int pos);
void sparc_emit_dest_register(const ir_node *node, int pos);
43
void sparc_emit_offset(const ir_node *node, int offset_node_pos);
Hannes Rapp's avatar
Hannes Rapp committed
44
45
void sparc_emit_load_mode(const ir_node *node);
void sparc_emit_store_mode(const ir_node *node);
46
void sparc_emit_float_load_store_mode(const ir_node *node);
Hannes Rapp's avatar
Hannes Rapp committed
47
48
void sparc_emit_mode_sign_prefix(const ir_node *node);
void sparc_emit_fp_mode_suffix(const ir_node *node);
49
50
void sparc_emit_fp_conv_source(const ir_node *node);
void sparc_emit_fp_conv_destination(const ir_node *node);
Hannes Rapp's avatar
Hannes Rapp committed
51
52
53
54
55
56

void sparc_gen_routine(const sparc_code_gen_t *cg, ir_graph *irg);

void sparc_init_emitter(void);

#endif