CACAO
emit.hpp
Go to the documentation of this file.
1 /* src/vm/jit/sparc64/emit.hpp - sparc64 code emitter functions
2 
3  Copyright (C) 1996-2013
4  CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
5 
6  This file is part of CACAO.
7 
8  This program is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 2, or (at
11  your option) any later version.
12 
13  This program is distributed in the hope that it will be useful, but
14  WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  02110-1301, USA.
22 
23 */
24 
25 
26 #ifndef EMIT_HPP_
27 #define EMIT_HPP_ 1
28 
29 #include "config.h"
30 #include "vm/types.hpp"
31 
32 /* SPARC branch options */
33 
34 #define BRANCH_OPT_XCC 0x1
35 #define BRANCH_OPT_PREDICT 0x2
36 #define BRANCH_OPT_ANNULL 0x4
37 
38 #define BRANCH_CHECKS_XCC(options) \
39  ((options) & BRANCH_OPT_XCC)
40 
41 #define BRANCH_WITH_PREDICT(options) \
42  ((options) & BRANCH_OPT_PREDICT)
43 
44 #define BRANCH_WITH_ANNULL(options) \
45  ((options) & BRANCH_OPT_ANNULL)
46 
47 
48 
49 /* wrappers for branches on 64-bit condition codes */
50 
57 
58 
59 #endif // EMIT_HPP_
60 
61 
62 /*
63  * These are local overrides for various environment variables in Emacs.
64  * Please do not remove this and leave it at the end of the file, where
65  * Emacs will automagically detect them.
66  * ---------------------------------------------------------------------
67  * Local variables:
68  * mode: c++
69  * indent-tabs-mode: t
70  * c-basic-offset: 4
71  * tab-width: 4
72  * End:
73  * vim:noexpandtab:sw=4:ts=4:
74  */
void emit_ble_xcc(codegendata *cd, basicblock *target)
Definition: emit.cpp:469
void emit_bne_xcc(codegendata *cd, basicblock *target)
Definition: emit.cpp:449
void emit_bgt_xcc(codegendata *cd, basicblock *target)
Definition: emit.cpp:464
void emit_bge_xcc(codegendata *cd, basicblock *target)
Definition: emit.cpp:459
void emit_blt_xcc(codegendata *cd, basicblock *target)
Definition: emit.cpp:454
void emit_beq_xcc(codegendata *cd, basicblock *target)
Definition: emit.cpp:444
BeginInst * target