blob: 52048ebb5c538833a563145e28bc2ce1714604da [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));
TDYa12785321912012-04-01 15:24:56 -070052StructTy_ShadowFrame_fields.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien1b0a1b72012-03-15 06:20:17 +080053if (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(
TDYa12785321912012-04-01 15:24:56 -0700247 /*Result=*/PointerTy_1,
Logan Chien3b2b2e72012-03-06 16:11:45 +0800248 /*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(
TDYa12785321912012-04-01 15:24:56 -0700255 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800256 /*Params=*/FuncTy_26_args,
257 /*isVarArg=*/false);
258
TDYa12728f1a142012-03-15 21:51:52 -0700259std::vector<Type*>FuncTy_27_args;
260FuncTy_27_args.push_back(PointerTy_1);
261FuncTy_27_args.push_back(PointerTy_1);
262FunctionType* FuncTy_27 = FunctionType::get(
TDYa12785321912012-04-01 15:24:56 -0700263 /*Result=*/Type::getVoidTy(mod->getContext()),
TDYa12728f1a142012-03-15 21:51:52 -0700264 /*Params=*/FuncTy_27_args,
265 /*isVarArg=*/false);
266
TDYa12785321912012-04-01 15:24:56 -0700267std::vector<Type*>FuncTy_28_args;
268FuncTy_28_args.push_back(PointerTy_1);
269FuncTy_28_args.push_back(PointerTy_1);
270FuncTy_28_args.push_back(IntegerType::get(mod->getContext(), 32));
271FuncTy_28_args.push_back(IntegerType::get(mod->getContext(), 32));
272FunctionType* FuncTy_28 = FunctionType::get(
273 /*Result=*/PointerTy_1,
274 /*Params=*/FuncTy_28_args,
275 /*isVarArg=*/false);
276
Logan Chien42e0e152012-01-13 15:42:36 +0800277
278// Function Declarations
279
280Function* func___art_type_list = mod->getFunction("__art_type_list");
281if (!func___art_type_list) {
282func___art_type_list = Function::Create(
283 /*Type=*/FuncTy_0,
284 /*Linkage=*/GlobalValue::ExternalLinkage,
285 /*Name=*/"__art_type_list", mod); // (external, no body)
286func___art_type_list->setCallingConv(CallingConv::C);
287}
288AttrListPtr func___art_type_list_PAL;
289func___art_type_list->setAttributes(func___art_type_list_PAL);
290
291Function* func_art_get_current_thread_from_code = mod->getFunction("art_get_current_thread_from_code");
292if (!func_art_get_current_thread_from_code) {
293func_art_get_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800294 /*Type=*/FuncTy_3,
Logan Chien42e0e152012-01-13 15:42:36 +0800295 /*Linkage=*/GlobalValue::ExternalLinkage,
296 /*Name=*/"art_get_current_thread_from_code", mod); // (external, no body)
297func_art_get_current_thread_from_code->setCallingConv(CallingConv::C);
298}
299AttrListPtr func_art_get_current_thread_from_code_PAL;
300func_art_get_current_thread_from_code->setAttributes(func_art_get_current_thread_from_code_PAL);
301
302Function* func_art_set_current_thread_from_code = mod->getFunction("art_set_current_thread_from_code");
303if (!func_art_set_current_thread_from_code) {
304func_art_set_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800305 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800306 /*Linkage=*/GlobalValue::ExternalLinkage,
307 /*Name=*/"art_set_current_thread_from_code", mod); // (external, no body)
308func_art_set_current_thread_from_code->setCallingConv(CallingConv::C);
309}
310AttrListPtr func_art_set_current_thread_from_code_PAL;
311func_art_set_current_thread_from_code->setAttributes(func_art_set_current_thread_from_code_PAL);
312
313Function* func_art_lock_object_from_code = mod->getFunction("art_lock_object_from_code");
314if (!func_art_lock_object_from_code) {
315func_art_lock_object_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800316 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800317 /*Linkage=*/GlobalValue::ExternalLinkage,
318 /*Name=*/"art_lock_object_from_code", mod); // (external, no body)
319func_art_lock_object_from_code->setCallingConv(CallingConv::C);
320}
321AttrListPtr func_art_lock_object_from_code_PAL;
322func_art_lock_object_from_code->setAttributes(func_art_lock_object_from_code_PAL);
323
324Function* func_art_unlock_object_from_code = mod->getFunction("art_unlock_object_from_code");
325if (!func_art_unlock_object_from_code) {
326func_art_unlock_object_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800327 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800328 /*Linkage=*/GlobalValue::ExternalLinkage,
329 /*Name=*/"art_unlock_object_from_code", mod); // (external, no body)
330func_art_unlock_object_from_code->setCallingConv(CallingConv::C);
331}
332AttrListPtr func_art_unlock_object_from_code_PAL;
333func_art_unlock_object_from_code->setAttributes(func_art_unlock_object_from_code_PAL);
334
335Function* func_art_test_suspend_from_code = mod->getFunction("art_test_suspend_from_code");
336if (!func_art_test_suspend_from_code) {
337func_art_test_suspend_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800338 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800339 /*Linkage=*/GlobalValue::ExternalLinkage,
340 /*Name=*/"art_test_suspend_from_code", mod); // (external, no body)
341func_art_test_suspend_from_code->setCallingConv(CallingConv::C);
342}
343AttrListPtr func_art_test_suspend_from_code_PAL;
344func_art_test_suspend_from_code->setAttributes(func_art_test_suspend_from_code_PAL);
345
Logan Chien3f71e702012-02-17 18:45:27 +0800346Function* func_art_push_shadow_frame_from_code = mod->getFunction("art_push_shadow_frame_from_code");
347if (!func_art_push_shadow_frame_from_code) {
348func_art_push_shadow_frame_from_code = Function::Create(
349 /*Type=*/FuncTy_6,
350 /*Linkage=*/GlobalValue::ExternalLinkage,
351 /*Name=*/"art_push_shadow_frame_from_code", mod); // (external, no body)
352func_art_push_shadow_frame_from_code->setCallingConv(CallingConv::C);
353}
354AttrListPtr func_art_push_shadow_frame_from_code_PAL;
355func_art_push_shadow_frame_from_code->setAttributes(func_art_push_shadow_frame_from_code_PAL);
356
357Function* func_art_pop_shadow_frame_from_code = mod->getFunction("art_pop_shadow_frame_from_code");
358if (!func_art_pop_shadow_frame_from_code) {
359func_art_pop_shadow_frame_from_code = Function::Create(
360 /*Type=*/FuncTy_5,
361 /*Linkage=*/GlobalValue::ExternalLinkage,
362 /*Name=*/"art_pop_shadow_frame_from_code", mod); // (external, no body)
363func_art_pop_shadow_frame_from_code->setCallingConv(CallingConv::C);
364}
365AttrListPtr func_art_pop_shadow_frame_from_code_PAL;
366func_art_pop_shadow_frame_from_code->setAttributes(func_art_pop_shadow_frame_from_code_PAL);
367
Logan Chien42e0e152012-01-13 15:42:36 +0800368Function* func_art_is_exception_pending_from_code = mod->getFunction("art_is_exception_pending_from_code");
369if (!func_art_is_exception_pending_from_code) {
370func_art_is_exception_pending_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800371 /*Type=*/FuncTy_7,
Logan Chien42e0e152012-01-13 15:42:36 +0800372 /*Linkage=*/GlobalValue::ExternalLinkage,
373 /*Name=*/"art_is_exception_pending_from_code", mod); // (external, no body)
374func_art_is_exception_pending_from_code->setCallingConv(CallingConv::C);
375}
376AttrListPtr func_art_is_exception_pending_from_code_PAL;
377func_art_is_exception_pending_from_code->setAttributes(func_art_is_exception_pending_from_code_PAL);
378
379Function* func_art_throw_div_zero_from_code = mod->getFunction("art_throw_div_zero_from_code");
380if (!func_art_throw_div_zero_from_code) {
381func_art_throw_div_zero_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800382 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800383 /*Linkage=*/GlobalValue::ExternalLinkage,
384 /*Name=*/"art_throw_div_zero_from_code", mod); // (external, no body)
385func_art_throw_div_zero_from_code->setCallingConv(CallingConv::C);
386}
387AttrListPtr func_art_throw_div_zero_from_code_PAL;
388func_art_throw_div_zero_from_code->setAttributes(func_art_throw_div_zero_from_code_PAL);
389
390Function* func_art_throw_array_bounds_from_code = mod->getFunction("art_throw_array_bounds_from_code");
391if (!func_art_throw_array_bounds_from_code) {
392func_art_throw_array_bounds_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800393 /*Type=*/FuncTy_8,
Logan Chien42e0e152012-01-13 15:42:36 +0800394 /*Linkage=*/GlobalValue::ExternalLinkage,
395 /*Name=*/"art_throw_array_bounds_from_code", mod); // (external, no body)
396func_art_throw_array_bounds_from_code->setCallingConv(CallingConv::C);
397}
398AttrListPtr func_art_throw_array_bounds_from_code_PAL;
399func_art_throw_array_bounds_from_code->setAttributes(func_art_throw_array_bounds_from_code_PAL);
400
401Function* func_art_throw_no_such_method_from_code = mod->getFunction("art_throw_no_such_method_from_code");
402if (!func_art_throw_no_such_method_from_code) {
403func_art_throw_no_such_method_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800404 /*Type=*/FuncTy_9,
Logan Chien42e0e152012-01-13 15:42:36 +0800405 /*Linkage=*/GlobalValue::ExternalLinkage,
406 /*Name=*/"art_throw_no_such_method_from_code", mod); // (external, no body)
407func_art_throw_no_such_method_from_code->setCallingConv(CallingConv::C);
408}
409AttrListPtr func_art_throw_no_such_method_from_code_PAL;
410func_art_throw_no_such_method_from_code->setAttributes(func_art_throw_no_such_method_from_code_PAL);
411
412Function* func_art_throw_null_pointer_exception_from_code = mod->getFunction("art_throw_null_pointer_exception_from_code");
413if (!func_art_throw_null_pointer_exception_from_code) {
414func_art_throw_null_pointer_exception_from_code = Function::Create(
TDYa1273f9137d2012-04-08 15:59:19 -0700415 /*Type=*/FuncTy_9,
Logan Chien42e0e152012-01-13 15:42:36 +0800416 /*Linkage=*/GlobalValue::ExternalLinkage,
417 /*Name=*/"art_throw_null_pointer_exception_from_code", mod); // (external, no body)
418func_art_throw_null_pointer_exception_from_code->setCallingConv(CallingConv::C);
419}
420AttrListPtr func_art_throw_null_pointer_exception_from_code_PAL;
421func_art_throw_null_pointer_exception_from_code->setAttributes(func_art_throw_null_pointer_exception_from_code_PAL);
422
423Function* func_art_throw_stack_overflow_from_code = mod->getFunction("art_throw_stack_overflow_from_code");
424if (!func_art_throw_stack_overflow_from_code) {
425func_art_throw_stack_overflow_from_code = Function::Create(
TDYa1274165a832012-04-03 17:47:16 -0700426 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800427 /*Linkage=*/GlobalValue::ExternalLinkage,
428 /*Name=*/"art_throw_stack_overflow_from_code", mod); // (external, no body)
429func_art_throw_stack_overflow_from_code->setCallingConv(CallingConv::C);
430}
431AttrListPtr func_art_throw_stack_overflow_from_code_PAL;
432func_art_throw_stack_overflow_from_code->setAttributes(func_art_throw_stack_overflow_from_code_PAL);
433
434Function* func_art_throw_exception_from_code = mod->getFunction("art_throw_exception_from_code");
435if (!func_art_throw_exception_from_code) {
436func_art_throw_exception_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800437 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800438 /*Linkage=*/GlobalValue::ExternalLinkage,
439 /*Name=*/"art_throw_exception_from_code", mod); // (external, no body)
440func_art_throw_exception_from_code->setCallingConv(CallingConv::C);
441}
442AttrListPtr func_art_throw_exception_from_code_PAL;
443func_art_throw_exception_from_code->setAttributes(func_art_throw_exception_from_code_PAL);
444
445Function* func_art_find_catch_block_from_code = mod->getFunction("art_find_catch_block_from_code");
446if (!func_art_find_catch_block_from_code) {
447func_art_find_catch_block_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800448 /*Type=*/FuncTy_10,
Logan Chien42e0e152012-01-13 15:42:36 +0800449 /*Linkage=*/GlobalValue::ExternalLinkage,
450 /*Name=*/"art_find_catch_block_from_code", mod); // (external, no body)
451func_art_find_catch_block_from_code->setCallingConv(CallingConv::C);
452}
453AttrListPtr func_art_find_catch_block_from_code_PAL;
454func_art_find_catch_block_from_code->setAttributes(func_art_find_catch_block_from_code_PAL);
455
456Function* func_art_alloc_object_from_code = mod->getFunction("art_alloc_object_from_code");
457if (!func_art_alloc_object_from_code) {
458func_art_alloc_object_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800459 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800460 /*Linkage=*/GlobalValue::ExternalLinkage,
461 /*Name=*/"art_alloc_object_from_code", mod); // (external, no body)
462func_art_alloc_object_from_code->setCallingConv(CallingConv::C);
463}
464AttrListPtr func_art_alloc_object_from_code_PAL;
465func_art_alloc_object_from_code->setAttributes(func_art_alloc_object_from_code_PAL);
466
467Function* func_art_alloc_object_from_code_with_access_check = mod->getFunction("art_alloc_object_from_code_with_access_check");
468if (!func_art_alloc_object_from_code_with_access_check) {
469func_art_alloc_object_from_code_with_access_check = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800470 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800471 /*Linkage=*/GlobalValue::ExternalLinkage,
472 /*Name=*/"art_alloc_object_from_code_with_access_check", mod); // (external, no body)
473func_art_alloc_object_from_code_with_access_check->setCallingConv(CallingConv::C);
474}
475AttrListPtr func_art_alloc_object_from_code_with_access_check_PAL;
476func_art_alloc_object_from_code_with_access_check->setAttributes(func_art_alloc_object_from_code_with_access_check_PAL);
477
478Function* func_art_alloc_array_from_code = mod->getFunction("art_alloc_array_from_code");
479if (!func_art_alloc_array_from_code) {
480func_art_alloc_array_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800481 /*Type=*/FuncTy_12,
Logan Chien42e0e152012-01-13 15:42:36 +0800482 /*Linkage=*/GlobalValue::ExternalLinkage,
483 /*Name=*/"art_alloc_array_from_code", mod); // (external, no body)
484func_art_alloc_array_from_code->setCallingConv(CallingConv::C);
485}
486AttrListPtr func_art_alloc_array_from_code_PAL;
487func_art_alloc_array_from_code->setAttributes(func_art_alloc_array_from_code_PAL);
488
489Function* func_art_alloc_array_from_code_with_access_check = mod->getFunction("art_alloc_array_from_code_with_access_check");
490if (!func_art_alloc_array_from_code_with_access_check) {
491func_art_alloc_array_from_code_with_access_check = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800492 /*Type=*/FuncTy_12,
Logan Chien42e0e152012-01-13 15:42:36 +0800493 /*Linkage=*/GlobalValue::ExternalLinkage,
494 /*Name=*/"art_alloc_array_from_code_with_access_check", mod); // (external, no body)
495func_art_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
496}
497AttrListPtr func_art_alloc_array_from_code_with_access_check_PAL;
498func_art_alloc_array_from_code_with_access_check->setAttributes(func_art_alloc_array_from_code_with_access_check_PAL);
499
500Function* func_art_check_and_alloc_array_from_code = mod->getFunction("art_check_and_alloc_array_from_code");
501if (!func_art_check_and_alloc_array_from_code) {
502func_art_check_and_alloc_array_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800503 /*Type=*/FuncTy_12,
Logan Chien42e0e152012-01-13 15:42:36 +0800504 /*Linkage=*/GlobalValue::ExternalLinkage,
505 /*Name=*/"art_check_and_alloc_array_from_code", mod); // (external, no body)
506func_art_check_and_alloc_array_from_code->setCallingConv(CallingConv::C);
507}
508AttrListPtr func_art_check_and_alloc_array_from_code_PAL;
509func_art_check_and_alloc_array_from_code->setAttributes(func_art_check_and_alloc_array_from_code_PAL);
510
511Function* func_art_check_and_alloc_array_from_code_with_access_check = mod->getFunction("art_check_and_alloc_array_from_code_with_access_check");
512if (!func_art_check_and_alloc_array_from_code_with_access_check) {
513func_art_check_and_alloc_array_from_code_with_access_check = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800514 /*Type=*/FuncTy_12,
Logan Chien42e0e152012-01-13 15:42:36 +0800515 /*Linkage=*/GlobalValue::ExternalLinkage,
516 /*Name=*/"art_check_and_alloc_array_from_code_with_access_check", mod); // (external, no body)
517func_art_check_and_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
518}
519AttrListPtr func_art_check_and_alloc_array_from_code_with_access_check_PAL;
520func_art_check_and_alloc_array_from_code_with_access_check->setAttributes(func_art_check_and_alloc_array_from_code_with_access_check_PAL);
521
Logan Chien42e0e152012-01-13 15:42:36 +0800522Function* func_art_find_instance_field_from_code = mod->getFunction("art_find_instance_field_from_code");
523if (!func_art_find_instance_field_from_code) {
524func_art_find_instance_field_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800525 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800526 /*Linkage=*/GlobalValue::ExternalLinkage,
527 /*Name=*/"art_find_instance_field_from_code", mod); // (external, no body)
528func_art_find_instance_field_from_code->setCallingConv(CallingConv::C);
529}
530AttrListPtr func_art_find_instance_field_from_code_PAL;
531func_art_find_instance_field_from_code->setAttributes(func_art_find_instance_field_from_code_PAL);
532
533Function* func_art_find_static_field_from_code = mod->getFunction("art_find_static_field_from_code");
534if (!func_art_find_static_field_from_code) {
535func_art_find_static_field_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800536 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800537 /*Linkage=*/GlobalValue::ExternalLinkage,
538 /*Name=*/"art_find_static_field_from_code", mod); // (external, no body)
539func_art_find_static_field_from_code->setCallingConv(CallingConv::C);
540}
541AttrListPtr func_art_find_static_field_from_code_PAL;
542func_art_find_static_field_from_code->setAttributes(func_art_find_static_field_from_code_PAL);
543
544Function* func_art_find_interface_method_from_code = mod->getFunction("art_find_interface_method_from_code");
545if (!func_art_find_interface_method_from_code) {
546func_art_find_interface_method_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800547 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800548 /*Linkage=*/GlobalValue::ExternalLinkage,
549 /*Name=*/"art_find_interface_method_from_code", mod); // (external, no body)
550func_art_find_interface_method_from_code->setCallingConv(CallingConv::C);
551}
552AttrListPtr func_art_find_interface_method_from_code_PAL;
553func_art_find_interface_method_from_code->setAttributes(func_art_find_interface_method_from_code_PAL);
554
Shih-wei Liao399ed3f2012-03-08 01:27:04 -0800555Function* func_art_find_virtual_method_from_code = mod->getFunction("art_find_virtual_method_from_code");
556if (!func_art_find_virtual_method_from_code) {
557func_art_find_virtual_method_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800558 /*Type=*/FuncTy_14,
Shih-wei Liao399ed3f2012-03-08 01:27:04 -0800559 /*Linkage=*/GlobalValue::ExternalLinkage,
560 /*Name=*/"art_find_virtual_method_from_code", mod); // (external, no body)
561func_art_find_virtual_method_from_code->setCallingConv(CallingConv::C);
562}
563AttrListPtr func_art_find_virtual_method_from_code_PAL;
564func_art_find_virtual_method_from_code->setAttributes(func_art_find_virtual_method_from_code_PAL);
565
566Function* func_art_find_super_method_from_code = mod->getFunction("art_find_super_method_from_code");
567if (!func_art_find_super_method_from_code) {
568func_art_find_super_method_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800569 /*Type=*/FuncTy_14,
Shih-wei Liao399ed3f2012-03-08 01:27:04 -0800570 /*Linkage=*/GlobalValue::ExternalLinkage,
571 /*Name=*/"art_find_super_method_from_code", mod); // (external, no body)
572func_art_find_super_method_from_code->setCallingConv(CallingConv::C);
573}
574AttrListPtr func_art_find_super_method_from_code_PAL;
575func_art_find_super_method_from_code->setAttributes(func_art_find_super_method_from_code_PAL);
576
Logan Chien42e0e152012-01-13 15:42:36 +0800577Function* func_art_initialize_static_storage_from_code = mod->getFunction("art_initialize_static_storage_from_code");
578if (!func_art_initialize_static_storage_from_code) {
579func_art_initialize_static_storage_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800580 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800581 /*Linkage=*/GlobalValue::ExternalLinkage,
582 /*Name=*/"art_initialize_static_storage_from_code", mod); // (external, no body)
583func_art_initialize_static_storage_from_code->setCallingConv(CallingConv::C);
584}
585AttrListPtr func_art_initialize_static_storage_from_code_PAL;
586func_art_initialize_static_storage_from_code->setAttributes(func_art_initialize_static_storage_from_code_PAL);
587
588Function* func_art_initialize_type_from_code = mod->getFunction("art_initialize_type_from_code");
589if (!func_art_initialize_type_from_code) {
590func_art_initialize_type_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800591 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800592 /*Linkage=*/GlobalValue::ExternalLinkage,
593 /*Name=*/"art_initialize_type_from_code", mod); // (external, no body)
594func_art_initialize_type_from_code->setCallingConv(CallingConv::C);
595}
596AttrListPtr func_art_initialize_type_from_code_PAL;
597func_art_initialize_type_from_code->setAttributes(func_art_initialize_type_from_code_PAL);
598
599Function* func_art_initialize_type_and_verify_access_from_code = mod->getFunction("art_initialize_type_and_verify_access_from_code");
600if (!func_art_initialize_type_and_verify_access_from_code) {
601func_art_initialize_type_and_verify_access_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800602 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800603 /*Linkage=*/GlobalValue::ExternalLinkage,
604 /*Name=*/"art_initialize_type_and_verify_access_from_code", mod); // (external, no body)
605func_art_initialize_type_and_verify_access_from_code->setCallingConv(CallingConv::C);
606}
607AttrListPtr func_art_initialize_type_and_verify_access_from_code_PAL;
608func_art_initialize_type_and_verify_access_from_code->setAttributes(func_art_initialize_type_and_verify_access_from_code_PAL);
609
610Function* func_art_resolve_string_from_code = mod->getFunction("art_resolve_string_from_code");
611if (!func_art_resolve_string_from_code) {
612func_art_resolve_string_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800613 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800614 /*Linkage=*/GlobalValue::ExternalLinkage,
615 /*Name=*/"art_resolve_string_from_code", mod); // (external, no body)
616func_art_resolve_string_from_code->setCallingConv(CallingConv::C);
617}
618AttrListPtr func_art_resolve_string_from_code_PAL;
619func_art_resolve_string_from_code->setAttributes(func_art_resolve_string_from_code_PAL);
620
Logan Chien42e0e152012-01-13 15:42:36 +0800621Function* func_art_set32_static_from_code = mod->getFunction("art_set32_static_from_code");
622if (!func_art_set32_static_from_code) {
623func_art_set32_static_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800624 /*Type=*/FuncTy_16,
Logan Chien42e0e152012-01-13 15:42:36 +0800625 /*Linkage=*/GlobalValue::ExternalLinkage,
626 /*Name=*/"art_set32_static_from_code", mod); // (external, no body)
627func_art_set32_static_from_code->setCallingConv(CallingConv::C);
628}
629AttrListPtr func_art_set32_static_from_code_PAL;
630func_art_set32_static_from_code->setAttributes(func_art_set32_static_from_code_PAL);
631
632Function* func_art_set64_static_from_code = mod->getFunction("art_set64_static_from_code");
633if (!func_art_set64_static_from_code) {
634func_art_set64_static_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800635 /*Type=*/FuncTy_17,
Logan Chien42e0e152012-01-13 15:42:36 +0800636 /*Linkage=*/GlobalValue::ExternalLinkage,
637 /*Name=*/"art_set64_static_from_code", mod); // (external, no body)
638func_art_set64_static_from_code->setCallingConv(CallingConv::C);
639}
640AttrListPtr func_art_set64_static_from_code_PAL;
641func_art_set64_static_from_code->setAttributes(func_art_set64_static_from_code_PAL);
642
643Function* func_art_set_obj_static_from_code = mod->getFunction("art_set_obj_static_from_code");
644if (!func_art_set_obj_static_from_code) {
645func_art_set_obj_static_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800646 /*Type=*/FuncTy_18,
Logan Chien42e0e152012-01-13 15:42:36 +0800647 /*Linkage=*/GlobalValue::ExternalLinkage,
648 /*Name=*/"art_set_obj_static_from_code", mod); // (external, no body)
649func_art_set_obj_static_from_code->setCallingConv(CallingConv::C);
650}
651AttrListPtr func_art_set_obj_static_from_code_PAL;
652func_art_set_obj_static_from_code->setAttributes(func_art_set_obj_static_from_code_PAL);
653
654Function* func_art_get32_static_from_code = mod->getFunction("art_get32_static_from_code");
655if (!func_art_get32_static_from_code) {
656func_art_get32_static_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800657 /*Type=*/FuncTy_19,
Logan Chien42e0e152012-01-13 15:42:36 +0800658 /*Linkage=*/GlobalValue::ExternalLinkage,
659 /*Name=*/"art_get32_static_from_code", mod); // (external, no body)
660func_art_get32_static_from_code->setCallingConv(CallingConv::C);
661}
662AttrListPtr func_art_get32_static_from_code_PAL;
663func_art_get32_static_from_code->setAttributes(func_art_get32_static_from_code_PAL);
664
665Function* func_art_get64_static_from_code = mod->getFunction("art_get64_static_from_code");
666if (!func_art_get64_static_from_code) {
667func_art_get64_static_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800668 /*Type=*/FuncTy_20,
Logan Chien42e0e152012-01-13 15:42:36 +0800669 /*Linkage=*/GlobalValue::ExternalLinkage,
670 /*Name=*/"art_get64_static_from_code", mod); // (external, no body)
671func_art_get64_static_from_code->setCallingConv(CallingConv::C);
672}
673AttrListPtr func_art_get64_static_from_code_PAL;
674func_art_get64_static_from_code->setAttributes(func_art_get64_static_from_code_PAL);
675
676Function* func_art_get_obj_static_from_code = mod->getFunction("art_get_obj_static_from_code");
677if (!func_art_get_obj_static_from_code) {
678func_art_get_obj_static_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800679 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800680 /*Linkage=*/GlobalValue::ExternalLinkage,
681 /*Name=*/"art_get_obj_static_from_code", mod); // (external, no body)
682func_art_get_obj_static_from_code->setCallingConv(CallingConv::C);
683}
684AttrListPtr func_art_get_obj_static_from_code_PAL;
685func_art_get_obj_static_from_code->setAttributes(func_art_get_obj_static_from_code_PAL);
686
687Function* func_art_set32_instance_from_code = mod->getFunction("art_set32_instance_from_code");
688if (!func_art_set32_instance_from_code) {
689func_art_set32_instance_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800690 /*Type=*/FuncTy_21,
Logan Chien42e0e152012-01-13 15:42:36 +0800691 /*Linkage=*/GlobalValue::ExternalLinkage,
692 /*Name=*/"art_set32_instance_from_code", mod); // (external, no body)
693func_art_set32_instance_from_code->setCallingConv(CallingConv::C);
694}
695AttrListPtr func_art_set32_instance_from_code_PAL;
696func_art_set32_instance_from_code->setAttributes(func_art_set32_instance_from_code_PAL);
697
698Function* func_art_set64_instance_from_code = mod->getFunction("art_set64_instance_from_code");
699if (!func_art_set64_instance_from_code) {
700func_art_set64_instance_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800701 /*Type=*/FuncTy_22,
Logan Chien42e0e152012-01-13 15:42:36 +0800702 /*Linkage=*/GlobalValue::ExternalLinkage,
703 /*Name=*/"art_set64_instance_from_code", mod); // (external, no body)
704func_art_set64_instance_from_code->setCallingConv(CallingConv::C);
705}
706AttrListPtr func_art_set64_instance_from_code_PAL;
707func_art_set64_instance_from_code->setAttributes(func_art_set64_instance_from_code_PAL);
708
709Function* func_art_set_obj_instance_from_code = mod->getFunction("art_set_obj_instance_from_code");
710if (!func_art_set_obj_instance_from_code) {
711func_art_set_obj_instance_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800712 /*Type=*/FuncTy_23,
Logan Chien42e0e152012-01-13 15:42:36 +0800713 /*Linkage=*/GlobalValue::ExternalLinkage,
714 /*Name=*/"art_set_obj_instance_from_code", mod); // (external, no body)
715func_art_set_obj_instance_from_code->setCallingConv(CallingConv::C);
716}
717AttrListPtr func_art_set_obj_instance_from_code_PAL;
718func_art_set_obj_instance_from_code->setAttributes(func_art_set_obj_instance_from_code_PAL);
719
720Function* func_art_get32_instance_from_code = mod->getFunction("art_get32_instance_from_code");
721if (!func_art_get32_instance_from_code) {
722func_art_get32_instance_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800723 /*Type=*/FuncTy_18,
Logan Chien42e0e152012-01-13 15:42:36 +0800724 /*Linkage=*/GlobalValue::ExternalLinkage,
725 /*Name=*/"art_get32_instance_from_code", mod); // (external, no body)
726func_art_get32_instance_from_code->setCallingConv(CallingConv::C);
727}
728AttrListPtr func_art_get32_instance_from_code_PAL;
729func_art_get32_instance_from_code->setAttributes(func_art_get32_instance_from_code_PAL);
730
731Function* func_art_get64_instance_from_code = mod->getFunction("art_get64_instance_from_code");
732if (!func_art_get64_instance_from_code) {
733func_art_get64_instance_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800734 /*Type=*/FuncTy_24,
Logan Chien42e0e152012-01-13 15:42:36 +0800735 /*Linkage=*/GlobalValue::ExternalLinkage,
736 /*Name=*/"art_get64_instance_from_code", mod); // (external, no body)
737func_art_get64_instance_from_code->setCallingConv(CallingConv::C);
738}
739AttrListPtr func_art_get64_instance_from_code_PAL;
740func_art_get64_instance_from_code->setAttributes(func_art_get64_instance_from_code_PAL);
741
742Function* func_art_get_obj_instance_from_code = mod->getFunction("art_get_obj_instance_from_code");
743if (!func_art_get_obj_instance_from_code) {
744func_art_get_obj_instance_from_code = Function::Create(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800745 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800746 /*Linkage=*/GlobalValue::ExternalLinkage,
747 /*Name=*/"art_get_obj_instance_from_code", mod); // (external, no body)
748func_art_get_obj_instance_from_code->setCallingConv(CallingConv::C);
749}
750AttrListPtr func_art_get_obj_instance_from_code_PAL;
751func_art_get_obj_instance_from_code->setAttributes(func_art_get_obj_instance_from_code_PAL);
752
TDYa12728f1a142012-03-15 21:51:52 -0700753Function* func_art_decode_jobject_in_thread = mod->getFunction("art_decode_jobject_in_thread");
754if (!func_art_decode_jobject_in_thread) {
755func_art_decode_jobject_in_thread = Function::Create(
TDYa12785321912012-04-01 15:24:56 -0700756 /*Type=*/FuncTy_25,
TDYa12728f1a142012-03-15 21:51:52 -0700757 /*Linkage=*/GlobalValue::ExternalLinkage,
758 /*Name=*/"art_decode_jobject_in_thread", mod); // (external, no body)
759func_art_decode_jobject_in_thread->setCallingConv(CallingConv::C);
760}
761AttrListPtr func_art_decode_jobject_in_thread_PAL;
762func_art_decode_jobject_in_thread->setAttributes(func_art_decode_jobject_in_thread_PAL);
763
Logan Chien42e0e152012-01-13 15:42:36 +0800764Function* func_art_is_assignable_from_code = mod->getFunction("art_is_assignable_from_code");
765if (!func_art_is_assignable_from_code) {
766func_art_is_assignable_from_code = Function::Create(
TDYa12785321912012-04-01 15:24:56 -0700767 /*Type=*/FuncTy_26,
Logan Chien42e0e152012-01-13 15:42:36 +0800768 /*Linkage=*/GlobalValue::ExternalLinkage,
769 /*Name=*/"art_is_assignable_from_code", mod); // (external, no body)
770func_art_is_assignable_from_code->setCallingConv(CallingConv::C);
771}
772AttrListPtr func_art_is_assignable_from_code_PAL;
773func_art_is_assignable_from_code->setAttributes(func_art_is_assignable_from_code_PAL);
774
775Function* func_art_check_cast_from_code = mod->getFunction("art_check_cast_from_code");
776if (!func_art_check_cast_from_code) {
777func_art_check_cast_from_code = Function::Create(
TDYa12785321912012-04-01 15:24:56 -0700778 /*Type=*/FuncTy_27,
Logan Chien42e0e152012-01-13 15:42:36 +0800779 /*Linkage=*/GlobalValue::ExternalLinkage,
780 /*Name=*/"art_check_cast_from_code", mod); // (external, no body)
781func_art_check_cast_from_code->setCallingConv(CallingConv::C);
782}
783AttrListPtr func_art_check_cast_from_code_PAL;
784func_art_check_cast_from_code->setAttributes(func_art_check_cast_from_code_PAL);
785
TDYa1271b86d072012-04-05 17:38:56 -0700786Function* func_art_check_put_array_element_from_code = mod->getFunction("art_check_put_array_element_from_code");
787if (!func_art_check_put_array_element_from_code) {
788func_art_check_put_array_element_from_code = Function::Create(
789 /*Type=*/FuncTy_27,
790 /*Linkage=*/GlobalValue::ExternalLinkage,
791 /*Name=*/"art_check_put_array_element_from_code", mod); // (external, no body)
792func_art_check_put_array_element_from_code->setCallingConv(CallingConv::C);
793}
794AttrListPtr func_art_check_put_array_element_from_code_PAL;
795func_art_check_put_array_element_from_code->setAttributes(func_art_check_put_array_element_from_code_PAL);
796
TDYa12785321912012-04-01 15:24:56 -0700797Function* func_art_ensure_link_from_code = mod->getFunction("art_ensure_link_from_code");
798if (!func_art_ensure_link_from_code) {
799func_art_ensure_link_from_code = Function::Create(
800 /*Type=*/FuncTy_4,
801 /*Linkage=*/GlobalValue::ExternalLinkage,
802 /*Name=*/"art_ensure_link_from_code", mod); // (external, no body)
803func_art_ensure_link_from_code->setCallingConv(CallingConv::C);
804}
805AttrListPtr func_art_ensure_link_from_code_PAL;
806func_art_ensure_link_from_code->setAttributes(func_art_ensure_link_from_code_PAL);
807
808Function* func_art_ensure_resolved_from_code = mod->getFunction("art_ensure_resolved_from_code");
809if (!func_art_ensure_resolved_from_code) {
810func_art_ensure_resolved_from_code = Function::Create(
811 /*Type=*/FuncTy_28,
812 /*Linkage=*/GlobalValue::ExternalLinkage,
813 /*Name=*/"art_ensure_resolved_from_code", mod); // (external, no body)
814func_art_ensure_resolved_from_code->setCallingConv(CallingConv::C);
815}
816AttrListPtr func_art_ensure_resolved_from_code_PAL;
817func_art_ensure_resolved_from_code->setAttributes(func_art_ensure_resolved_from_code_PAL);
818
819Function* func_art_ensure_initialized_from_code = mod->getFunction("art_ensure_initialized_from_code");
820if (!func_art_ensure_initialized_from_code) {
821func_art_ensure_initialized_from_code = Function::Create(
822 /*Type=*/FuncTy_25,
823 /*Linkage=*/GlobalValue::ExternalLinkage,
824 /*Name=*/"art_ensure_initialized_from_code", mod); // (external, no body)
825func_art_ensure_initialized_from_code->setCallingConv(CallingConv::C);
826}
827AttrListPtr func_art_ensure_initialized_from_code_PAL;
828func_art_ensure_initialized_from_code->setAttributes(func_art_ensure_initialized_from_code_PAL);
829
Logan Chien42e0e152012-01-13 15:42:36 +0800830// Global Variable Declarations
831
832
833// Constant Definitions
834
835// Global Variable Definitions
836
837// Function Definitions
838
839return mod;
840
841}
Logan Chiene75a8cc2012-02-24 12:26:43 +0800842
843} // namespace compiler_llvm
844} // namespace art