blob: d2e5f0a631261955ae68bd35331fac7507bfb858 [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
22/* Lower middle-level IR to low-level IR for the whole method */
23void oatMethodMIR2LIR(CompilationUnit* cUnit);
24
25/* Assemble LIR into machine code */
26void oatAssembleLIR(CompilationUnit* cUnit);
27
28/* Implemented in the codegen/<target>/ArchUtility.c */
29void oatCodegenDump(CompilationUnit* cUnit);
buzbee67bc2362011-10-11 18:08:40 -070030void oatDumpPromotionMap(CompilationUnit* cUnit);
31void oatDumpFullPromotionMap(CompilationUnit* cUnit);
buzbee67bf8852011-08-17 17:51:35 -070032
33/* Implemented in codegen/<target>/Ralloc.c */
34void oatSimpleRegAlloc(CompilationUnit* cUnit);
35
36/* Implemented in codegen/<target>/Thumb<version>Util.c */
37void oatInitializeRegAlloc(CompilationUnit* cUnit);
38
39/* Implemented in codegen/<target>/<target_variant>/ArchVariant.c */
40OatInstructionSetType oatInstructionSet(void);
41
42/*
43 * Implemented in codegen/<target>/<target_variant>/ArchVariant.c
44 * Architecture-specific initializations and checks
45 */
46bool oatArchVariantInit(void);
47
48/* Implemented in codegen/<target>/<target_variant>/ArchVariant.c */
49int oatTargetOptHint(int key);
50
51/* Implemented in codegen/<target>/<target_variant>/ArchVariant.c */
52void oatGenMemBarrier(CompilationUnit* cUnit, int barrierKind);
53
54#endif // ART_SRC_COMPILER_COMPILERCODEGEN_H_