CACAO
Aarch64Backend.hpp
Go to the documentation of this file.
1 /* src/vm/jit/compiler2/aarch64/Aarch64Backend.hpp
2 
3  Copyright (C) 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 #ifndef _JIT_COMPILER2_AARCH64_BACKEND
26 #define _JIT_COMPILER2_AARCH64_BACKEND
27 
29 
30 namespace cacao {
31 namespace jit {
32 namespace compiler2 {
33 namespace aarch64 {
34 
35 
37 public:
40  : LoweringVisitorBase(backend, current, map, inst_map, schedule) {}
41 
42  // make LoweringVisitorBases visit visible
44 
45  virtual void visit(LOADInst *I, bool copyOperands);
46  virtual void visit(IFInst *I, bool copyOperands);
47  virtual void visit(ADDInst *I, bool copyOperands);
48  virtual void visit(ANDInst *I, bool copyOperands);
49  virtual void visit(SUBInst *I, bool copyOperands);
50  virtual void visit(MULInst *I, bool copyOperands);
51  virtual void visit(DIVInst *I, bool copyOperands);
52  virtual void visit(REMInst *I, bool copyOperands);
53  virtual void visit(RETURNInst *I, bool copyOperands);
54  virtual void visit(CASTInst *I, bool copyOperands);
55  virtual void visit(GETSTATICInst *I, bool copyOperands);
56  virtual void visit(PUTSTATICInst *I, bool copyOperands);
57  virtual void visit(LOOKUPSWITCHInst *I, bool copyOperands);
58  virtual void visit(TABLESWITCHInst *I, bool copyOperands);
59  virtual void visit(ARRAYLENGTHInst *I, bool copyOperands);
60  virtual void visit(ALOADInst *I, bool copyOperands);
61  virtual void visit(ASTOREInst *I, bool copyOperands);
62  virtual void visit(ARRAYBOUNDSCHECKInst *I, bool copyOperands);
63  virtual void visit(CMPInst *I, bool copyOperands);
64  virtual void visit(NEGInst *I, bool copyOperands);
65  virtual void visit(INVOKEInst *I, bool copyOperands);
66  virtual void visit(INVOKESTATICInst *I, bool copyOperands);
67  virtual void visit(INVOKESPECIALInst *I, bool copyOperands);
68  virtual void visit(INVOKEVIRTUALInst *I, bool copyOperands);
69  virtual void visit(INVOKEINTERFACEInst *I, bool copyOperands);
70  virtual void visit(BUILTINInst *I, bool copyOperands);
71  virtual void visit(GETFIELDInst *I, bool copyOperands);
72  virtual void visit(PUTFIELDInst *I, bool copyOperands);
73  virtual void visit(AREFInst *I, bool copyOperands);
74  virtual void visit(CHECKNULLInst *I, bool copyOperands);
75  virtual void visit(DeoptimizeInst *I, bool copyOperands);
76 
77  virtual void lowerComplex(Instruction* I, int ruleId);
78 };
79 
80 } // end namespace aarch64
81 } // end namespace compiler2
82 } // end namespace jit
83 } // end namespace cacao
84 
85 #endif // _JIT_COMPILER2_AARCH64_BACKEND
86 
87 /*
88  * These are local overrides for various environment variables in Emacs.
89  * Please do not remove this and leave it at the end of the file, where
90  * Emacs will automagically detect them.
91  * ---------------------------------------------------------------------
92  * Local variables:
93  * mode: c++
94  * indent-tabs-mode: t
95  * c-basic-offset: 4
96  * tab-width: 4
97  * End:
98  * vim:noexpandtab:sw=4:ts=4:
99  */
alloc::map< Instruction *, MachineOperand * >::type InstructionMapTy
Definition: Backend.hpp:83
Write a value to a static field.
virtual void lowerComplex(Instruction *I, int ruleId)
Get the value of an object&#39;s field.
Base type of instruction that perform a method invocation.
Load a value from an array.
A basic block of (scheduled) machine instructions.
Transfers execution back to an unoptimized version of the method.
Get the value of a static field.
Aarch64LoweringVisitor(Backend *backend, MachineBasicBlock *current, MapTy &map, InstructionMapTy &inst_map, MachineInstructionSchedule *schedule)
Write a value to an object&#39;s field.
Perform a bounds-check for an array-access.
virtual void visit(BeginInst *I, bool copyOperands)
Definition: Backend.cpp:41
alloc::map< BeginInst *, MachineBasicBlock * >::type MapTy
Definition: Backend.hpp:82
virtual void visit(LOADInst *I, bool copyOperands)
Represents an explicit null-check on an object reference.
Store a value into an array.
Invoke an instance method with special handling.
Instruction super class.
Definition: Instruction.hpp:75
Get the length of an array.
#define I(value)
Definition: codegen.c:279
jmethodID jint const void jint const jvmtiAddrLocationMap * map
Definition: jvmti.h:338
MachineInstructionSchedule * schedule
Definition: Backend.hpp:89
A LOADInst represents an argument that is passed to the current method.
Return from the current method.