blob: 27a83b80c7dca8080be2aa09c721d75c8c77beb6 [file] [log] [blame]
Nicolas Geoffrayd4dd2552014-02-28 10:23:58 +00001/*
2 * Copyright (C) 2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ART_COMPILER_OPTIMIZING_CODE_GENERATOR_ARM_H_
18#define ART_COMPILER_OPTIMIZING_CODE_GENERATOR_ARM_H_
19
20#include "code_generator.h"
21#include "nodes.h"
22
23namespace art {
24
25class Assembler;
26class Label;
27
28namespace arm {
29
30class CodeGeneratorARM : public CodeGenerator {
31 public:
32 CodeGeneratorARM(Assembler* assembler, HGraph* graph)
33 : CodeGenerator(assembler, graph) { }
34
35 // Visit functions for instruction classes.
36#define DECLARE_VISIT_INSTRUCTION(name) \
37 virtual void Visit##name(H##name* instr);
38
39 FOR_EACH_INSTRUCTION(DECLARE_VISIT_INSTRUCTION)
40
41#undef DECLARE_VISIT_INSTRUCTION
42
43 private:
44 virtual void GenerateFrameEntry();
45 virtual void GenerateFrameExit();
46 virtual void Bind(Label* label);
47
48 DISALLOW_COPY_AND_ASSIGN(CodeGeneratorARM);
49};
50
51} // namespace arm
52} // namespace art
53
54#endif // ART_COMPILER_OPTIMIZING_CODE_GENERATOR_ARM_H_