blob: c9e6bd6df25addb81e9cfc308b0474a42adae74d [file] [log] [blame]
Ben Chengba4fc8b2009-06-01 13:00:29 -07001/*
2 * Copyright (C) 2009 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#include "../CompilerIR.h"
18
19#ifndef _DALVIK_VM_COMPILERCODEGEN_H_
20#define _DALVIK_VM_COMPILERCODEGEN_H_
21
22/* Work unit is architecture dependent */
Bill Buzbee716f1202009-07-23 13:22:09 -070023bool dvmCompilerDoWork(CompilerWorkOrder *work);
Ben Chengba4fc8b2009-06-01 13:00:29 -070024
25/* Lower middle-level IR to low-level IR */
26void dvmCompilerMIR2LIR(CompilationUnit *cUnit);
27
28/* Assemble LIR into machine code */
Bill Buzbee716f1202009-07-23 13:22:09 -070029void dvmCompilerAssembleLIR(CompilationUnit *cUnit, JitTranslationInfo *info);
Ben Chengba4fc8b2009-06-01 13:00:29 -070030
31/* Implemented in the codegen/<target>/ArchUtility.c */
32void dvmCompilerCodegenDump(CompilationUnit *cUnit);
33
34/* Implemented in the codegen/<target>/Assembler.c */
35void* dvmJitChain(void *tgtAddr, u4* branchAddr);
Bill Buzbee716f1202009-07-23 13:22:09 -070036u4* dvmJitUnchain(void *codeAddr);
37void dvmJitUnchainAll(void);
38
39/* Implemented in codegen/<target>/<target_variant>/ArchVariant.c */
40JitInstructionSetType dvmCompilerInstructionSet(CompilationUnit *cUnit);
Ben Chengba4fc8b2009-06-01 13:00:29 -070041
42#endif /* _DALVIK_VM_COMPILERCODEGEN_H_ */