blob: fe4bd83c7bbd3af4901a6808478caaebe4e6c1ae [file] [log] [blame]
Shih-wei Liaoe94d9b22012-05-22 09:01:24 -07001/*
2 * Copyright (C) 2012 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 "x86_codegen_machine.h"
18
19#include "x86_lir_emitter.h"
20
21#include "greenland/target_registry.h"
22
23namespace art {
24namespace greenland {
25
26void InitializeX86CodeGenMachine() {
27 RegisterTargetCodeGenMachine<X86CodeGenMachine> X(kX86);
28}
29
30X86CodeGenMachine::X86CodeGenMachine() : lir_info_() {
31}
32
33X86CodeGenMachine::~X86CodeGenMachine() {
34}
35
36TargetLIREmitter*
37X86CodeGenMachine::CreateLIREmitter(const llvm::Function& func,
38 const OatCompilationUnit& cunit,
39 DexLang::Context& dex_lang_ctx) {
40 return new X86LIREmitter(func, cunit, dex_lang_ctx, lir_info_);
41}
42
43} // namespace greenland
44} // namespace art