blob: f1ca07aced9265623066c22746ec01bbe5edab8a [file] [log] [blame]
buzbee67bf8852011-08-17 17:51:35 -07001/*
2 * Copyright (C) 2011 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_SRC_COMPILER_COMPILERCODEGEN_H_
18#define ART_SRC_COMPILER_COMPILERCODEGEN_H_
19
20#include "../CompilerIR.h"
21
Elliott Hughes11d1b0c2012-01-23 16:57:47 -080022namespace art {
23
buzbee67bf8852011-08-17 17:51:35 -070024/* Lower middle-level IR to low-level IR for the whole method */
25void oatMethodMIR2LIR(CompilationUnit* cUnit);
26
27/* Assemble LIR into machine code */
28void oatAssembleLIR(CompilationUnit* cUnit);
29
30/* Implemented in the codegen/<target>/ArchUtility.c */
31void oatCodegenDump(CompilationUnit* cUnit);
buzbee67bc2362011-10-11 18:08:40 -070032void oatDumpPromotionMap(CompilationUnit* cUnit);
33void oatDumpFullPromotionMap(CompilationUnit* cUnit);
buzbee67bf8852011-08-17 17:51:35 -070034
35/* Implemented in codegen/<target>/Ralloc.c */
36void oatSimpleRegAlloc(CompilationUnit* cUnit);
37
38/* Implemented in codegen/<target>/Thumb<version>Util.c */
39void oatInitializeRegAlloc(CompilationUnit* cUnit);
40
41/* Implemented in codegen/<target>/<target_variant>/ArchVariant.c */
42OatInstructionSetType oatInstructionSet(void);
43
44/*
45 * Implemented in codegen/<target>/<target_variant>/ArchVariant.c
46 * Architecture-specific initializations and checks
47 */
48bool oatArchVariantInit(void);
49
50/* Implemented in codegen/<target>/<target_variant>/ArchVariant.c */
51int oatTargetOptHint(int key);
52
53/* Implemented in codegen/<target>/<target_variant>/ArchVariant.c */
54void oatGenMemBarrier(CompilationUnit* cUnit, int barrierKind);
55
Elliott Hughes11d1b0c2012-01-23 16:57:47 -080056} // namespace art
57
buzbee67bf8852011-08-17 17:51:35 -070058#endif // ART_SRC_COMPILER_COMPILERCODEGEN_H_