blob: 58ab1d3b972810980c21b6dfd439da24d6c8cfaa [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);
30
31/* Implemented in codegen/<target>/Ralloc.c */
32void oatSimpleRegAlloc(CompilationUnit* cUnit);
33
34/* Implemented in codegen/<target>/Thumb<version>Util.c */
35void oatInitializeRegAlloc(CompilationUnit* cUnit);
36
37/* Implemented in codegen/<target>/<target_variant>/ArchVariant.c */
38OatInstructionSetType oatInstructionSet(void);
39
40/*
41 * Implemented in codegen/<target>/<target_variant>/ArchVariant.c
42 * Architecture-specific initializations and checks
43 */
44bool oatArchVariantInit(void);
45
46/* Implemented in codegen/<target>/<target_variant>/ArchVariant.c */
47int oatTargetOptHint(int key);
48
49/* Implemented in codegen/<target>/<target_variant>/ArchVariant.c */
50void oatGenMemBarrier(CompilationUnit* cUnit, int barrierKind);
51
52#endif // ART_SRC_COMPILER_COMPILERCODEGEN_H_