blob: fe708ae7b719b8dda60068d3d03feaed48f60347 [file] [log] [blame]
Logan Chiene75a8cc2012-02-24 12:26:43 +08001// Generated with ../tools/gen_art_module_cc.sh
2
3
4#pragma GCC diagnostic ignored "-Wframe-larger-than="
5// TODO: Remove this pragma after llc can generate makeLLVMModuleContents()
6// with smaller frame size.
7
8#include <llvm/DerivedTypes.h>
9#include <llvm/Function.h>
10#include <llvm/Module.h>
11#include <llvm/Type.h>
12
13#include <vector>
14
15using namespace llvm;
16
17namespace art {
18namespace compiler_llvm {
19
Logan Chien42e0e152012-01-13 15:42:36 +080020
21// Generated by llvm2cpp - DO NOT MODIFY!
22
23
24Module* makeLLVMModuleContents(Module *mod) {
25
26mod->setModuleIdentifier("art_module.ll");
27
28// Type Definitions
29std::vector<Type*>FuncTy_0_args;
30StructType *StructTy_JavaObject = mod->getTypeByName("JavaObject");
31if (!StructTy_JavaObject) {
32StructTy_JavaObject = StructType::create(mod->getContext(), "JavaObject");
33}
34std::vector<Type*>StructTy_JavaObject_fields;
35if (StructTy_JavaObject->isOpaque()) {
36StructTy_JavaObject->setBody(StructTy_JavaObject_fields, /*isPacked=*/false);
37}
38
39PointerType* PointerTy_1 = PointerType::get(StructTy_JavaObject, 0);
40
41FuncTy_0_args.push_back(PointerTy_1);
Logan Chien1b0a1b72012-03-15 06:20:17 +080042StructType *StructTy_ShadowFrame = mod->getTypeByName("ShadowFrame");
43if (!StructTy_ShadowFrame) {
44StructTy_ShadowFrame = StructType::create(mod->getContext(), "ShadowFrame");
Logan Chien3f71e702012-02-17 18:45:27 +080045}
Logan Chien1b0a1b72012-03-15 06:20:17 +080046std::vector<Type*>StructTy_ShadowFrame_fields;
47PointerType* PointerTy_2 = PointerType::get(StructTy_ShadowFrame, 0);
Logan Chien3f71e702012-02-17 18:45:27 +080048
Logan Chien1b0a1b72012-03-15 06:20:17 +080049StructTy_ShadowFrame_fields.push_back(PointerTy_2);
50StructTy_ShadowFrame_fields.push_back(PointerTy_1);
51StructTy_ShadowFrame_fields.push_back(IntegerType::get(mod->getContext(), 32));
52StructTy_ShadowFrame_fields.push_back(IntegerType::get(mod->getContext(), 32));
53if (StructTy_ShadowFrame->isOpaque()) {
54StructTy_ShadowFrame->setBody(StructTy_ShadowFrame_fields, /*isPacked=*/false);
Logan Chien3f71e702012-02-17 18:45:27 +080055}
56
57
58FuncTy_0_args.push_back(PointerTy_2);
Logan Chien42e0e152012-01-13 15:42:36 +080059FunctionType* FuncTy_0 = FunctionType::get(
60 /*Result=*/Type::getVoidTy(mod->getContext()),
61 /*Params=*/FuncTy_0_args,
62 /*isVarArg=*/false);
63
Logan Chien42e0e152012-01-13 15:42:36 +080064std::vector<Type*>FuncTy_3_args;
65FunctionType* FuncTy_3 = FunctionType::get(
Logan Chien3f71e702012-02-17 18:45:27 +080066 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +080067 /*Params=*/FuncTy_3_args,
68 /*isVarArg=*/false);
69
70std::vector<Type*>FuncTy_4_args;
Logan Chien3f71e702012-02-17 18:45:27 +080071FuncTy_4_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +080072FunctionType* FuncTy_4 = FunctionType::get(
Logan Chien3f71e702012-02-17 18:45:27 +080073 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +080074 /*Params=*/FuncTy_4_args,
75 /*isVarArg=*/false);
76
77std::vector<Type*>FuncTy_5_args;
Logan Chien42e0e152012-01-13 15:42:36 +080078FunctionType* FuncTy_5 = FunctionType::get(
79 /*Result=*/Type::getVoidTy(mod->getContext()),
80 /*Params=*/FuncTy_5_args,
81 /*isVarArg=*/false);
82
83std::vector<Type*>FuncTy_6_args;
Logan Chien3f71e702012-02-17 18:45:27 +080084FuncTy_6_args.push_back(PointerTy_2);
Logan Chien42e0e152012-01-13 15:42:36 +080085FunctionType* FuncTy_6 = FunctionType::get(
86 /*Result=*/Type::getVoidTy(mod->getContext()),
87 /*Params=*/FuncTy_6_args,
88 /*isVarArg=*/false);
89
90std::vector<Type*>FuncTy_7_args;
Logan Chien42e0e152012-01-13 15:42:36 +080091FunctionType* FuncTy_7 = FunctionType::get(
Logan Chien3f71e702012-02-17 18:45:27 +080092 /*Result=*/IntegerType::get(mod->getContext(), 1),
Logan Chien42e0e152012-01-13 15:42:36 +080093 /*Params=*/FuncTy_7_args,
94 /*isVarArg=*/false);
95
96std::vector<Type*>FuncTy_8_args;
97FuncTy_8_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3f71e702012-02-17 18:45:27 +080098FuncTy_8_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +080099FunctionType* FuncTy_8 = FunctionType::get(
Logan Chien3f71e702012-02-17 18:45:27 +0800100 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800101 /*Params=*/FuncTy_8_args,
102 /*isVarArg=*/false);
103
104std::vector<Type*>FuncTy_9_args;
105FuncTy_9_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800106FunctionType* FuncTy_9 = FunctionType::get(
Logan Chien3f71e702012-02-17 18:45:27 +0800107 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800108 /*Params=*/FuncTy_9_args,
109 /*isVarArg=*/false);
110
111std::vector<Type*>FuncTy_10_args;
Logan Chien42e0e152012-01-13 15:42:36 +0800112FuncTy_10_args.push_back(PointerTy_1);
Logan Chien3f71e702012-02-17 18:45:27 +0800113FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800114FunctionType* FuncTy_10 = FunctionType::get(
Logan Chien3f71e702012-02-17 18:45:27 +0800115 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800116 /*Params=*/FuncTy_10_args,
117 /*isVarArg=*/false);
118
119std::vector<Type*>FuncTy_11_args;
Logan Chien42e0e152012-01-13 15:42:36 +0800120FuncTy_11_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3f71e702012-02-17 18:45:27 +0800121FuncTy_11_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800122FunctionType* FuncTy_11 = FunctionType::get(
123 /*Result=*/PointerTy_1,
124 /*Params=*/FuncTy_11_args,
125 /*isVarArg=*/false);
126
127std::vector<Type*>FuncTy_12_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800128FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800129FuncTy_12_args.push_back(PointerTy_1);
130FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800131FunctionType* FuncTy_12 = FunctionType::get(
132 /*Result=*/PointerTy_1,
133 /*Params=*/FuncTy_12_args,
134 /*isVarArg=*/false);
135
136std::vector<Type*>FuncTy_13_args;
137FuncTy_13_args.push_back(IntegerType::get(mod->getContext(), 32));
138FuncTy_13_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800139FunctionType* FuncTy_13 = FunctionType::get(
Logan Chien3f71e702012-02-17 18:45:27 +0800140 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800141 /*Params=*/FuncTy_13_args,
142 /*isVarArg=*/false);
143
144std::vector<Type*>FuncTy_14_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800145FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien1b0a1b72012-03-15 06:20:17 +0800146FuncTy_14_args.push_back(PointerTy_1);
147FuncTy_14_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800148FunctionType* FuncTy_14 = FunctionType::get(
Logan Chien3f71e702012-02-17 18:45:27 +0800149 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800150 /*Params=*/FuncTy_14_args,
151 /*isVarArg=*/false);
152
153std::vector<Type*>FuncTy_15_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800154FuncTy_15_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800155FuncTy_15_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800156FunctionType* FuncTy_15 = FunctionType::get(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800157 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800158 /*Params=*/FuncTy_15_args,
159 /*isVarArg=*/false);
160
161std::vector<Type*>FuncTy_16_args;
162FuncTy_16_args.push_back(IntegerType::get(mod->getContext(), 32));
163FuncTy_16_args.push_back(PointerTy_1);
Logan Chien1b0a1b72012-03-15 06:20:17 +0800164FuncTy_16_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800165FunctionType* FuncTy_16 = FunctionType::get(
166 /*Result=*/IntegerType::get(mod->getContext(), 32),
167 /*Params=*/FuncTy_16_args,
168 /*isVarArg=*/false);
169
170std::vector<Type*>FuncTy_17_args;
171FuncTy_17_args.push_back(IntegerType::get(mod->getContext(), 32));
172FuncTy_17_args.push_back(PointerTy_1);
Logan Chien1b0a1b72012-03-15 06:20:17 +0800173FuncTy_17_args.push_back(IntegerType::get(mod->getContext(), 64));
Logan Chien42e0e152012-01-13 15:42:36 +0800174FunctionType* FuncTy_17 = FunctionType::get(
Logan Chien3f71e702012-02-17 18:45:27 +0800175 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800176 /*Params=*/FuncTy_17_args,
177 /*isVarArg=*/false);
178
179std::vector<Type*>FuncTy_18_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800180FuncTy_18_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800181FuncTy_18_args.push_back(PointerTy_1);
Logan Chien1b0a1b72012-03-15 06:20:17 +0800182FuncTy_18_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800183FunctionType* FuncTy_18 = FunctionType::get(
184 /*Result=*/IntegerType::get(mod->getContext(), 32),
185 /*Params=*/FuncTy_18_args,
186 /*isVarArg=*/false);
187
188std::vector<Type*>FuncTy_19_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800189FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800190FuncTy_19_args.push_back(PointerTy_1);
191FunctionType* FuncTy_19 = FunctionType::get(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800192 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800193 /*Params=*/FuncTy_19_args,
194 /*isVarArg=*/false);
195
Logan Chien3f71e702012-02-17 18:45:27 +0800196std::vector<Type*>FuncTy_20_args;
Logan Chien3b2b2e72012-03-06 16:11:45 +0800197FuncTy_20_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chiena6b2ca62012-03-06 15:50:54 +0800198FuncTy_20_args.push_back(PointerTy_1);
Logan Chien3f71e702012-02-17 18:45:27 +0800199FunctionType* FuncTy_20 = FunctionType::get(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800200 /*Result=*/IntegerType::get(mod->getContext(), 64),
Logan Chien3f71e702012-02-17 18:45:27 +0800201 /*Params=*/FuncTy_20_args,
202 /*isVarArg=*/false);
203
204std::vector<Type*>FuncTy_21_args;
Logan Chien3b2b2e72012-03-06 16:11:45 +0800205FuncTy_21_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3f71e702012-02-17 18:45:27 +0800206FuncTy_21_args.push_back(PointerTy_1);
207FuncTy_21_args.push_back(PointerTy_1);
Logan Chien1b0a1b72012-03-15 06:20:17 +0800208FuncTy_21_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3f71e702012-02-17 18:45:27 +0800209FunctionType* FuncTy_21 = FunctionType::get(
Logan Chien3b2b2e72012-03-06 16:11:45 +0800210 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chiena6b2ca62012-03-06 15:50:54 +0800211 /*Params=*/FuncTy_21_args,
Logan Chien3f71e702012-02-17 18:45:27 +0800212 /*isVarArg=*/false);
213
Logan Chien3b2b2e72012-03-06 16:11:45 +0800214std::vector<Type*>FuncTy_22_args;
215FuncTy_22_args.push_back(IntegerType::get(mod->getContext(), 32));
216FuncTy_22_args.push_back(PointerTy_1);
217FuncTy_22_args.push_back(PointerTy_1);
Logan Chien1b0a1b72012-03-15 06:20:17 +0800218FuncTy_22_args.push_back(IntegerType::get(mod->getContext(), 64));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800219FunctionType* FuncTy_22 = FunctionType::get(
220 /*Result=*/IntegerType::get(mod->getContext(), 32),
221 /*Params=*/FuncTy_22_args,
222 /*isVarArg=*/false);
223
224std::vector<Type*>FuncTy_23_args;
225FuncTy_23_args.push_back(IntegerType::get(mod->getContext(), 32));
226FuncTy_23_args.push_back(PointerTy_1);
227FuncTy_23_args.push_back(PointerTy_1);
Logan Chien1b0a1b72012-03-15 06:20:17 +0800228FuncTy_23_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800229FunctionType* FuncTy_23 = FunctionType::get(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800230 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800231 /*Params=*/FuncTy_23_args,
232 /*isVarArg=*/false);
233
234std::vector<Type*>FuncTy_24_args;
235FuncTy_24_args.push_back(IntegerType::get(mod->getContext(), 32));
236FuncTy_24_args.push_back(PointerTy_1);
237FuncTy_24_args.push_back(PointerTy_1);
238FunctionType* FuncTy_24 = FunctionType::get(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800239 /*Result=*/IntegerType::get(mod->getContext(), 64),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800240 /*Params=*/FuncTy_24_args,
241 /*isVarArg=*/false);
242
243std::vector<Type*>FuncTy_25_args;
244FuncTy_25_args.push_back(PointerTy_1);
245FuncTy_25_args.push_back(PointerTy_1);
246FunctionType* FuncTy_25 = FunctionType::get(
247 /*Result=*/IntegerType::get(mod->getContext(), 32),
248 /*Params=*/FuncTy_25_args,
249 /*isVarArg=*/false);
250
251std::vector<Type*>FuncTy_26_args;
252FuncTy_26_args.push_back(PointerTy_1);
253FuncTy_26_args.push_back(PointerTy_1);
254FunctionType* FuncTy_26 = FunctionType::get(
255 /*Result=*/Type::getVoidTy(mod->getContext()),
256 /*Params=*/FuncTy_26_args,
257 /*isVarArg=*/false);
258
Logan Chien42e0e152012-01-13 15:42:36 +0800259
260// Function Declarations
261
262Function* func___art_type_list = mod->getFunction("__art_type_list");
263if (!func___art_type_list) {
264func___art_type_list = Function::Create(
265 /*Type=*/FuncTy_0,
266 /*Linkage=*/GlobalValue::ExternalLinkage,
267 /*Name=*/"__art_type_list", mod); // (external, no body)
268func___art_type_list->setCallingConv(CallingConv::C);
269}
270AttrListPtr func___art_type_list_PAL;
271func___art_type_list->setAttributes(func___art_type_list_PAL);
272
273Function* func_art_get_current_thread_from_code = mod->getFunction("art_get_current_thread_from_code");
274if (!func_art_get_current_thread_from_code) {
275func_art_get_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800276 /*Type=*/FuncTy_3,
Logan Chien42e0e152012-01-13 15:42:36 +0800277 /*Linkage=*/GlobalValue::ExternalLinkage,
278 /*Name=*/"art_get_current_thread_from_code", mod); // (external, no body)
279func_art_get_current_thread_from_code->setCallingConv(CallingConv::C);
280}
281AttrListPtr func_art_get_current_thread_from_code_PAL;
282func_art_get_current_thread_from_code->setAttributes(func_art_get_current_thread_from_code_PAL);
283
284Function* func_art_set_current_thread_from_code = mod->getFunction("art_set_current_thread_from_code");
285if (!func_art_set_current_thread_from_code) {
286func_art_set_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800287 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800288 /*Linkage=*/GlobalValue::ExternalLinkage,
289 /*Name=*/"art_set_current_thread_from_code", mod); // (external, no body)
290func_art_set_current_thread_from_code->setCallingConv(CallingConv::C);
291}
292AttrListPtr func_art_set_current_thread_from_code_PAL;
293func_art_set_current_thread_from_code->setAttributes(func_art_set_current_thread_from_code_PAL);
294
295Function* func_art_lock_object_from_code = mod->getFunction("art_lock_object_from_code");
296if (!func_art_lock_object_from_code) {
297func_art_lock_object_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800298 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800299 /*Linkage=*/GlobalValue::ExternalLinkage,
300 /*Name=*/"art_lock_object_from_code", mod); // (external, no body)
301func_art_lock_object_from_code->setCallingConv(CallingConv::C);
302}
303AttrListPtr func_art_lock_object_from_code_PAL;
304func_art_lock_object_from_code->setAttributes(func_art_lock_object_from_code_PAL);
305
306Function* func_art_unlock_object_from_code = mod->getFunction("art_unlock_object_from_code");
307if (!func_art_unlock_object_from_code) {
308func_art_unlock_object_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800309 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800310 /*Linkage=*/GlobalValue::ExternalLinkage,
311 /*Name=*/"art_unlock_object_from_code", mod); // (external, no body)
312func_art_unlock_object_from_code->setCallingConv(CallingConv::C);
313}
314AttrListPtr func_art_unlock_object_from_code_PAL;
315func_art_unlock_object_from_code->setAttributes(func_art_unlock_object_from_code_PAL);
316
317Function* func_art_test_suspend_from_code = mod->getFunction("art_test_suspend_from_code");
318if (!func_art_test_suspend_from_code) {
319func_art_test_suspend_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800320 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800321 /*Linkage=*/GlobalValue::ExternalLinkage,
322 /*Name=*/"art_test_suspend_from_code", mod); // (external, no body)
323func_art_test_suspend_from_code->setCallingConv(CallingConv::C);
324}
325AttrListPtr func_art_test_suspend_from_code_PAL;
326func_art_test_suspend_from_code->setAttributes(func_art_test_suspend_from_code_PAL);
327
Logan Chien3f71e702012-02-17 18:45:27 +0800328Function* func_art_push_shadow_frame_from_code = mod->getFunction("art_push_shadow_frame_from_code");
329if (!func_art_push_shadow_frame_from_code) {
330func_art_push_shadow_frame_from_code = Function::Create(
331 /*Type=*/FuncTy_6,
332 /*Linkage=*/GlobalValue::ExternalLinkage,
333 /*Name=*/"art_push_shadow_frame_from_code", mod); // (external, no body)
334func_art_push_shadow_frame_from_code->setCallingConv(CallingConv::C);
335}
336AttrListPtr func_art_push_shadow_frame_from_code_PAL;
337func_art_push_shadow_frame_from_code->setAttributes(func_art_push_shadow_frame_from_code_PAL);
338
339Function* func_art_pop_shadow_frame_from_code = mod->getFunction("art_pop_shadow_frame_from_code");
340if (!func_art_pop_shadow_frame_from_code) {
341func_art_pop_shadow_frame_from_code = Function::Create(
342 /*Type=*/FuncTy_5,
343 /*Linkage=*/GlobalValue::ExternalLinkage,
344 /*Name=*/"art_pop_shadow_frame_from_code", mod); // (external, no body)
345func_art_pop_shadow_frame_from_code->setCallingConv(CallingConv::C);
346}
347AttrListPtr func_art_pop_shadow_frame_from_code_PAL;
348func_art_pop_shadow_frame_from_code->setAttributes(func_art_pop_shadow_frame_from_code_PAL);
349
Logan Chien42e0e152012-01-13 15:42:36 +0800350Function* func_art_is_exception_pending_from_code = mod->getFunction("art_is_exception_pending_from_code");
351if (!func_art_is_exception_pending_from_code) {
352func_art_is_exception_pending_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800353 /*Type=*/FuncTy_7,
Logan Chien42e0e152012-01-13 15:42:36 +0800354 /*Linkage=*/GlobalValue::ExternalLinkage,
355 /*Name=*/"art_is_exception_pending_from_code", mod); // (external, no body)
356func_art_is_exception_pending_from_code->setCallingConv(CallingConv::C);
357}
358AttrListPtr func_art_is_exception_pending_from_code_PAL;
359func_art_is_exception_pending_from_code->setAttributes(func_art_is_exception_pending_from_code_PAL);
360
361Function* func_art_throw_div_zero_from_code = mod->getFunction("art_throw_div_zero_from_code");
362if (!func_art_throw_div_zero_from_code) {
363func_art_throw_div_zero_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800364 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800365 /*Linkage=*/GlobalValue::ExternalLinkage,
366 /*Name=*/"art_throw_div_zero_from_code", mod); // (external, no body)
367func_art_throw_div_zero_from_code->setCallingConv(CallingConv::C);
368}
369AttrListPtr func_art_throw_div_zero_from_code_PAL;
370func_art_throw_div_zero_from_code->setAttributes(func_art_throw_div_zero_from_code_PAL);
371
372Function* func_art_throw_array_bounds_from_code = mod->getFunction("art_throw_array_bounds_from_code");
373if (!func_art_throw_array_bounds_from_code) {
374func_art_throw_array_bounds_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800375 /*Type=*/FuncTy_8,
Logan Chien42e0e152012-01-13 15:42:36 +0800376 /*Linkage=*/GlobalValue::ExternalLinkage,
377 /*Name=*/"art_throw_array_bounds_from_code", mod); // (external, no body)
378func_art_throw_array_bounds_from_code->setCallingConv(CallingConv::C);
379}
380AttrListPtr func_art_throw_array_bounds_from_code_PAL;
381func_art_throw_array_bounds_from_code->setAttributes(func_art_throw_array_bounds_from_code_PAL);
382
383Function* func_art_throw_no_such_method_from_code = mod->getFunction("art_throw_no_such_method_from_code");
384if (!func_art_throw_no_such_method_from_code) {
385func_art_throw_no_such_method_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800386 /*Type=*/FuncTy_9,
Logan Chien42e0e152012-01-13 15:42:36 +0800387 /*Linkage=*/GlobalValue::ExternalLinkage,
388 /*Name=*/"art_throw_no_such_method_from_code", mod); // (external, no body)
389func_art_throw_no_such_method_from_code->setCallingConv(CallingConv::C);
390}
391AttrListPtr func_art_throw_no_such_method_from_code_PAL;
392func_art_throw_no_such_method_from_code->setAttributes(func_art_throw_no_such_method_from_code_PAL);
393
394Function* func_art_throw_null_pointer_exception_from_code = mod->getFunction("art_throw_null_pointer_exception_from_code");
395if (!func_art_throw_null_pointer_exception_from_code) {
396func_art_throw_null_pointer_exception_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800397 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800398 /*Linkage=*/GlobalValue::ExternalLinkage,
399 /*Name=*/"art_throw_null_pointer_exception_from_code", mod); // (external, no body)
400func_art_throw_null_pointer_exception_from_code->setCallingConv(CallingConv::C);
401}
402AttrListPtr func_art_throw_null_pointer_exception_from_code_PAL;
403func_art_throw_null_pointer_exception_from_code->setAttributes(func_art_throw_null_pointer_exception_from_code_PAL);
404
405Function* func_art_throw_stack_overflow_from_code = mod->getFunction("art_throw_stack_overflow_from_code");
406if (!func_art_throw_stack_overflow_from_code) {
407func_art_throw_stack_overflow_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800408 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800409 /*Linkage=*/GlobalValue::ExternalLinkage,
410 /*Name=*/"art_throw_stack_overflow_from_code", mod); // (external, no body)
411func_art_throw_stack_overflow_from_code->setCallingConv(CallingConv::C);
412}
413AttrListPtr func_art_throw_stack_overflow_from_code_PAL;
414func_art_throw_stack_overflow_from_code->setAttributes(func_art_throw_stack_overflow_from_code_PAL);
415
416Function* func_art_throw_exception_from_code = mod->getFunction("art_throw_exception_from_code");
417if (!func_art_throw_exception_from_code) {
418func_art_throw_exception_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800419 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800420 /*Linkage=*/GlobalValue::ExternalLinkage,
421 /*Name=*/"art_throw_exception_from_code", mod); // (external, no body)
422func_art_throw_exception_from_code->setCallingConv(CallingConv::C);
423}
424AttrListPtr func_art_throw_exception_from_code_PAL;
425func_art_throw_exception_from_code->setAttributes(func_art_throw_exception_from_code_PAL);
426
427Function* func_art_find_catch_block_from_code = mod->getFunction("art_find_catch_block_from_code");
428if (!func_art_find_catch_block_from_code) {
429func_art_find_catch_block_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800430 /*Type=*/FuncTy_10,
Logan Chien42e0e152012-01-13 15:42:36 +0800431 /*Linkage=*/GlobalValue::ExternalLinkage,
432 /*Name=*/"art_find_catch_block_from_code", mod); // (external, no body)
433func_art_find_catch_block_from_code->setCallingConv(CallingConv::C);
434}
435AttrListPtr func_art_find_catch_block_from_code_PAL;
436func_art_find_catch_block_from_code->setAttributes(func_art_find_catch_block_from_code_PAL);
437
438Function* func_art_alloc_object_from_code = mod->getFunction("art_alloc_object_from_code");
439if (!func_art_alloc_object_from_code) {
440func_art_alloc_object_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800441 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800442 /*Linkage=*/GlobalValue::ExternalLinkage,
443 /*Name=*/"art_alloc_object_from_code", mod); // (external, no body)
444func_art_alloc_object_from_code->setCallingConv(CallingConv::C);
445}
446AttrListPtr func_art_alloc_object_from_code_PAL;
447func_art_alloc_object_from_code->setAttributes(func_art_alloc_object_from_code_PAL);
448
449Function* func_art_alloc_object_from_code_with_access_check = mod->getFunction("art_alloc_object_from_code_with_access_check");
450if (!func_art_alloc_object_from_code_with_access_check) {
451func_art_alloc_object_from_code_with_access_check = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800452 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800453 /*Linkage=*/GlobalValue::ExternalLinkage,
454 /*Name=*/"art_alloc_object_from_code_with_access_check", mod); // (external, no body)
455func_art_alloc_object_from_code_with_access_check->setCallingConv(CallingConv::C);
456}
457AttrListPtr func_art_alloc_object_from_code_with_access_check_PAL;
458func_art_alloc_object_from_code_with_access_check->setAttributes(func_art_alloc_object_from_code_with_access_check_PAL);
459
460Function* func_art_alloc_array_from_code = mod->getFunction("art_alloc_array_from_code");
461if (!func_art_alloc_array_from_code) {
462func_art_alloc_array_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800463 /*Type=*/FuncTy_12,
Logan Chien42e0e152012-01-13 15:42:36 +0800464 /*Linkage=*/GlobalValue::ExternalLinkage,
465 /*Name=*/"art_alloc_array_from_code", mod); // (external, no body)
466func_art_alloc_array_from_code->setCallingConv(CallingConv::C);
467}
468AttrListPtr func_art_alloc_array_from_code_PAL;
469func_art_alloc_array_from_code->setAttributes(func_art_alloc_array_from_code_PAL);
470
471Function* func_art_alloc_array_from_code_with_access_check = mod->getFunction("art_alloc_array_from_code_with_access_check");
472if (!func_art_alloc_array_from_code_with_access_check) {
473func_art_alloc_array_from_code_with_access_check = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800474 /*Type=*/FuncTy_12,
Logan Chien42e0e152012-01-13 15:42:36 +0800475 /*Linkage=*/GlobalValue::ExternalLinkage,
476 /*Name=*/"art_alloc_array_from_code_with_access_check", mod); // (external, no body)
477func_art_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
478}
479AttrListPtr func_art_alloc_array_from_code_with_access_check_PAL;
480func_art_alloc_array_from_code_with_access_check->setAttributes(func_art_alloc_array_from_code_with_access_check_PAL);
481
482Function* func_art_check_and_alloc_array_from_code = mod->getFunction("art_check_and_alloc_array_from_code");
483if (!func_art_check_and_alloc_array_from_code) {
484func_art_check_and_alloc_array_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800485 /*Type=*/FuncTy_12,
Logan Chien42e0e152012-01-13 15:42:36 +0800486 /*Linkage=*/GlobalValue::ExternalLinkage,
487 /*Name=*/"art_check_and_alloc_array_from_code", mod); // (external, no body)
488func_art_check_and_alloc_array_from_code->setCallingConv(CallingConv::C);
489}
490AttrListPtr func_art_check_and_alloc_array_from_code_PAL;
491func_art_check_and_alloc_array_from_code->setAttributes(func_art_check_and_alloc_array_from_code_PAL);
492
493Function* func_art_check_and_alloc_array_from_code_with_access_check = mod->getFunction("art_check_and_alloc_array_from_code_with_access_check");
494if (!func_art_check_and_alloc_array_from_code_with_access_check) {
495func_art_check_and_alloc_array_from_code_with_access_check = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800496 /*Type=*/FuncTy_12,
Logan Chien42e0e152012-01-13 15:42:36 +0800497 /*Linkage=*/GlobalValue::ExternalLinkage,
498 /*Name=*/"art_check_and_alloc_array_from_code_with_access_check", mod); // (external, no body)
499func_art_check_and_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
500}
501AttrListPtr func_art_check_and_alloc_array_from_code_with_access_check_PAL;
502func_art_check_and_alloc_array_from_code_with_access_check->setAttributes(func_art_check_and_alloc_array_from_code_with_access_check_PAL);
503
Logan Chien42e0e152012-01-13 15:42:36 +0800504Function* func_art_find_instance_field_from_code = mod->getFunction("art_find_instance_field_from_code");
505if (!func_art_find_instance_field_from_code) {
506func_art_find_instance_field_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800507 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800508 /*Linkage=*/GlobalValue::ExternalLinkage,
509 /*Name=*/"art_find_instance_field_from_code", mod); // (external, no body)
510func_art_find_instance_field_from_code->setCallingConv(CallingConv::C);
511}
512AttrListPtr func_art_find_instance_field_from_code_PAL;
513func_art_find_instance_field_from_code->setAttributes(func_art_find_instance_field_from_code_PAL);
514
515Function* func_art_find_static_field_from_code = mod->getFunction("art_find_static_field_from_code");
516if (!func_art_find_static_field_from_code) {
517func_art_find_static_field_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800518 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800519 /*Linkage=*/GlobalValue::ExternalLinkage,
520 /*Name=*/"art_find_static_field_from_code", mod); // (external, no body)
521func_art_find_static_field_from_code->setCallingConv(CallingConv::C);
522}
523AttrListPtr func_art_find_static_field_from_code_PAL;
524func_art_find_static_field_from_code->setAttributes(func_art_find_static_field_from_code_PAL);
525
526Function* func_art_find_interface_method_from_code = mod->getFunction("art_find_interface_method_from_code");
527if (!func_art_find_interface_method_from_code) {
528func_art_find_interface_method_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800529 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800530 /*Linkage=*/GlobalValue::ExternalLinkage,
531 /*Name=*/"art_find_interface_method_from_code", mod); // (external, no body)
532func_art_find_interface_method_from_code->setCallingConv(CallingConv::C);
533}
534AttrListPtr func_art_find_interface_method_from_code_PAL;
535func_art_find_interface_method_from_code->setAttributes(func_art_find_interface_method_from_code_PAL);
536
Shih-wei Liao399ed3f2012-03-08 01:27:04 -0800537Function* func_art_find_virtual_method_from_code = mod->getFunction("art_find_virtual_method_from_code");
538if (!func_art_find_virtual_method_from_code) {
539func_art_find_virtual_method_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800540 /*Type=*/FuncTy_14,
Shih-wei Liao399ed3f2012-03-08 01:27:04 -0800541 /*Linkage=*/GlobalValue::ExternalLinkage,
542 /*Name=*/"art_find_virtual_method_from_code", mod); // (external, no body)
543func_art_find_virtual_method_from_code->setCallingConv(CallingConv::C);
544}
545AttrListPtr func_art_find_virtual_method_from_code_PAL;
546func_art_find_virtual_method_from_code->setAttributes(func_art_find_virtual_method_from_code_PAL);
547
548Function* func_art_find_super_method_from_code = mod->getFunction("art_find_super_method_from_code");
549if (!func_art_find_super_method_from_code) {
550func_art_find_super_method_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800551 /*Type=*/FuncTy_14,
Shih-wei Liao399ed3f2012-03-08 01:27:04 -0800552 /*Linkage=*/GlobalValue::ExternalLinkage,
553 /*Name=*/"art_find_super_method_from_code", mod); // (external, no body)
554func_art_find_super_method_from_code->setCallingConv(CallingConv::C);
555}
556AttrListPtr func_art_find_super_method_from_code_PAL;
557func_art_find_super_method_from_code->setAttributes(func_art_find_super_method_from_code_PAL);
558
Logan Chien42e0e152012-01-13 15:42:36 +0800559Function* func_art_initialize_static_storage_from_code = mod->getFunction("art_initialize_static_storage_from_code");
560if (!func_art_initialize_static_storage_from_code) {
561func_art_initialize_static_storage_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800562 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800563 /*Linkage=*/GlobalValue::ExternalLinkage,
564 /*Name=*/"art_initialize_static_storage_from_code", mod); // (external, no body)
565func_art_initialize_static_storage_from_code->setCallingConv(CallingConv::C);
566}
567AttrListPtr func_art_initialize_static_storage_from_code_PAL;
568func_art_initialize_static_storage_from_code->setAttributes(func_art_initialize_static_storage_from_code_PAL);
569
570Function* func_art_initialize_type_from_code = mod->getFunction("art_initialize_type_from_code");
571if (!func_art_initialize_type_from_code) {
572func_art_initialize_type_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800573 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800574 /*Linkage=*/GlobalValue::ExternalLinkage,
575 /*Name=*/"art_initialize_type_from_code", mod); // (external, no body)
576func_art_initialize_type_from_code->setCallingConv(CallingConv::C);
577}
578AttrListPtr func_art_initialize_type_from_code_PAL;
579func_art_initialize_type_from_code->setAttributes(func_art_initialize_type_from_code_PAL);
580
581Function* func_art_initialize_type_and_verify_access_from_code = mod->getFunction("art_initialize_type_and_verify_access_from_code");
582if (!func_art_initialize_type_and_verify_access_from_code) {
583func_art_initialize_type_and_verify_access_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800584 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800585 /*Linkage=*/GlobalValue::ExternalLinkage,
586 /*Name=*/"art_initialize_type_and_verify_access_from_code", mod); // (external, no body)
587func_art_initialize_type_and_verify_access_from_code->setCallingConv(CallingConv::C);
588}
589AttrListPtr func_art_initialize_type_and_verify_access_from_code_PAL;
590func_art_initialize_type_and_verify_access_from_code->setAttributes(func_art_initialize_type_and_verify_access_from_code_PAL);
591
592Function* func_art_resolve_string_from_code = mod->getFunction("art_resolve_string_from_code");
593if (!func_art_resolve_string_from_code) {
594func_art_resolve_string_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800595 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800596 /*Linkage=*/GlobalValue::ExternalLinkage,
597 /*Name=*/"art_resolve_string_from_code", mod); // (external, no body)
598func_art_resolve_string_from_code->setCallingConv(CallingConv::C);
599}
600AttrListPtr func_art_resolve_string_from_code_PAL;
601func_art_resolve_string_from_code->setAttributes(func_art_resolve_string_from_code_PAL);
602
Logan Chien42e0e152012-01-13 15:42:36 +0800603Function* func_art_set32_static_from_code = mod->getFunction("art_set32_static_from_code");
604if (!func_art_set32_static_from_code) {
605func_art_set32_static_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800606 /*Type=*/FuncTy_16,
Logan Chien42e0e152012-01-13 15:42:36 +0800607 /*Linkage=*/GlobalValue::ExternalLinkage,
608 /*Name=*/"art_set32_static_from_code", mod); // (external, no body)
609func_art_set32_static_from_code->setCallingConv(CallingConv::C);
610}
611AttrListPtr func_art_set32_static_from_code_PAL;
612func_art_set32_static_from_code->setAttributes(func_art_set32_static_from_code_PAL);
613
614Function* func_art_set64_static_from_code = mod->getFunction("art_set64_static_from_code");
615if (!func_art_set64_static_from_code) {
616func_art_set64_static_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800617 /*Type=*/FuncTy_17,
Logan Chien42e0e152012-01-13 15:42:36 +0800618 /*Linkage=*/GlobalValue::ExternalLinkage,
619 /*Name=*/"art_set64_static_from_code", mod); // (external, no body)
620func_art_set64_static_from_code->setCallingConv(CallingConv::C);
621}
622AttrListPtr func_art_set64_static_from_code_PAL;
623func_art_set64_static_from_code->setAttributes(func_art_set64_static_from_code_PAL);
624
625Function* func_art_set_obj_static_from_code = mod->getFunction("art_set_obj_static_from_code");
626if (!func_art_set_obj_static_from_code) {
627func_art_set_obj_static_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800628 /*Type=*/FuncTy_18,
Logan Chien42e0e152012-01-13 15:42:36 +0800629 /*Linkage=*/GlobalValue::ExternalLinkage,
630 /*Name=*/"art_set_obj_static_from_code", mod); // (external, no body)
631func_art_set_obj_static_from_code->setCallingConv(CallingConv::C);
632}
633AttrListPtr func_art_set_obj_static_from_code_PAL;
634func_art_set_obj_static_from_code->setAttributes(func_art_set_obj_static_from_code_PAL);
635
636Function* func_art_get32_static_from_code = mod->getFunction("art_get32_static_from_code");
637if (!func_art_get32_static_from_code) {
638func_art_get32_static_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800639 /*Type=*/FuncTy_19,
Logan Chien42e0e152012-01-13 15:42:36 +0800640 /*Linkage=*/GlobalValue::ExternalLinkage,
641 /*Name=*/"art_get32_static_from_code", mod); // (external, no body)
642func_art_get32_static_from_code->setCallingConv(CallingConv::C);
643}
644AttrListPtr func_art_get32_static_from_code_PAL;
645func_art_get32_static_from_code->setAttributes(func_art_get32_static_from_code_PAL);
646
647Function* func_art_get64_static_from_code = mod->getFunction("art_get64_static_from_code");
648if (!func_art_get64_static_from_code) {
649func_art_get64_static_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800650 /*Type=*/FuncTy_20,
Logan Chien42e0e152012-01-13 15:42:36 +0800651 /*Linkage=*/GlobalValue::ExternalLinkage,
652 /*Name=*/"art_get64_static_from_code", mod); // (external, no body)
653func_art_get64_static_from_code->setCallingConv(CallingConv::C);
654}
655AttrListPtr func_art_get64_static_from_code_PAL;
656func_art_get64_static_from_code->setAttributes(func_art_get64_static_from_code_PAL);
657
658Function* func_art_get_obj_static_from_code = mod->getFunction("art_get_obj_static_from_code");
659if (!func_art_get_obj_static_from_code) {
660func_art_get_obj_static_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800661 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800662 /*Linkage=*/GlobalValue::ExternalLinkage,
663 /*Name=*/"art_get_obj_static_from_code", mod); // (external, no body)
664func_art_get_obj_static_from_code->setCallingConv(CallingConv::C);
665}
666AttrListPtr func_art_get_obj_static_from_code_PAL;
667func_art_get_obj_static_from_code->setAttributes(func_art_get_obj_static_from_code_PAL);
668
669Function* func_art_set32_instance_from_code = mod->getFunction("art_set32_instance_from_code");
670if (!func_art_set32_instance_from_code) {
671func_art_set32_instance_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800672 /*Type=*/FuncTy_21,
Logan Chien42e0e152012-01-13 15:42:36 +0800673 /*Linkage=*/GlobalValue::ExternalLinkage,
674 /*Name=*/"art_set32_instance_from_code", mod); // (external, no body)
675func_art_set32_instance_from_code->setCallingConv(CallingConv::C);
676}
677AttrListPtr func_art_set32_instance_from_code_PAL;
678func_art_set32_instance_from_code->setAttributes(func_art_set32_instance_from_code_PAL);
679
680Function* func_art_set64_instance_from_code = mod->getFunction("art_set64_instance_from_code");
681if (!func_art_set64_instance_from_code) {
682func_art_set64_instance_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800683 /*Type=*/FuncTy_22,
Logan Chien42e0e152012-01-13 15:42:36 +0800684 /*Linkage=*/GlobalValue::ExternalLinkage,
685 /*Name=*/"art_set64_instance_from_code", mod); // (external, no body)
686func_art_set64_instance_from_code->setCallingConv(CallingConv::C);
687}
688AttrListPtr func_art_set64_instance_from_code_PAL;
689func_art_set64_instance_from_code->setAttributes(func_art_set64_instance_from_code_PAL);
690
691Function* func_art_set_obj_instance_from_code = mod->getFunction("art_set_obj_instance_from_code");
692if (!func_art_set_obj_instance_from_code) {
693func_art_set_obj_instance_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800694 /*Type=*/FuncTy_23,
Logan Chien42e0e152012-01-13 15:42:36 +0800695 /*Linkage=*/GlobalValue::ExternalLinkage,
696 /*Name=*/"art_set_obj_instance_from_code", mod); // (external, no body)
697func_art_set_obj_instance_from_code->setCallingConv(CallingConv::C);
698}
699AttrListPtr func_art_set_obj_instance_from_code_PAL;
700func_art_set_obj_instance_from_code->setAttributes(func_art_set_obj_instance_from_code_PAL);
701
702Function* func_art_get32_instance_from_code = mod->getFunction("art_get32_instance_from_code");
703if (!func_art_get32_instance_from_code) {
704func_art_get32_instance_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800705 /*Type=*/FuncTy_18,
Logan Chien42e0e152012-01-13 15:42:36 +0800706 /*Linkage=*/GlobalValue::ExternalLinkage,
707 /*Name=*/"art_get32_instance_from_code", mod); // (external, no body)
708func_art_get32_instance_from_code->setCallingConv(CallingConv::C);
709}
710AttrListPtr func_art_get32_instance_from_code_PAL;
711func_art_get32_instance_from_code->setAttributes(func_art_get32_instance_from_code_PAL);
712
713Function* func_art_get64_instance_from_code = mod->getFunction("art_get64_instance_from_code");
714if (!func_art_get64_instance_from_code) {
715func_art_get64_instance_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800716 /*Type=*/FuncTy_24,
Logan Chien42e0e152012-01-13 15:42:36 +0800717 /*Linkage=*/GlobalValue::ExternalLinkage,
718 /*Name=*/"art_get64_instance_from_code", mod); // (external, no body)
719func_art_get64_instance_from_code->setCallingConv(CallingConv::C);
720}
721AttrListPtr func_art_get64_instance_from_code_PAL;
722func_art_get64_instance_from_code->setAttributes(func_art_get64_instance_from_code_PAL);
723
724Function* func_art_get_obj_instance_from_code = mod->getFunction("art_get_obj_instance_from_code");
725if (!func_art_get_obj_instance_from_code) {
726func_art_get_obj_instance_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800727 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800728 /*Linkage=*/GlobalValue::ExternalLinkage,
729 /*Name=*/"art_get_obj_instance_from_code", mod); // (external, no body)
730func_art_get_obj_instance_from_code->setCallingConv(CallingConv::C);
731}
732AttrListPtr func_art_get_obj_instance_from_code_PAL;
733func_art_get_obj_instance_from_code->setAttributes(func_art_get_obj_instance_from_code_PAL);
734
735Function* func_art_is_assignable_from_code = mod->getFunction("art_is_assignable_from_code");
736if (!func_art_is_assignable_from_code) {
737func_art_is_assignable_from_code = Function::Create(
Logan Chien3b2b2e72012-03-06 16:11:45 +0800738 /*Type=*/FuncTy_25,
Logan Chien42e0e152012-01-13 15:42:36 +0800739 /*Linkage=*/GlobalValue::ExternalLinkage,
740 /*Name=*/"art_is_assignable_from_code", mod); // (external, no body)
741func_art_is_assignable_from_code->setCallingConv(CallingConv::C);
742}
743AttrListPtr func_art_is_assignable_from_code_PAL;
744func_art_is_assignable_from_code->setAttributes(func_art_is_assignable_from_code_PAL);
745
746Function* func_art_check_cast_from_code = mod->getFunction("art_check_cast_from_code");
747if (!func_art_check_cast_from_code) {
748func_art_check_cast_from_code = Function::Create(
Logan Chien3b2b2e72012-03-06 16:11:45 +0800749 /*Type=*/FuncTy_26,
Logan Chien42e0e152012-01-13 15:42:36 +0800750 /*Linkage=*/GlobalValue::ExternalLinkage,
751 /*Name=*/"art_check_cast_from_code", mod); // (external, no body)
752func_art_check_cast_from_code->setCallingConv(CallingConv::C);
753}
754AttrListPtr func_art_check_cast_from_code_PAL;
755func_art_check_cast_from_code->setAttributes(func_art_check_cast_from_code_PAL);
756
757// Global Variable Declarations
758
759
760// Constant Definitions
761
762// Global Variable Definitions
763
764// Function Definitions
765
766return mod;
767
768}
Logan Chiene75a8cc2012-02-24 12:26:43 +0800769
770} // namespace compiler_llvm
771} // namespace art