blob: f4ee9f5ebb0942735d47348aff24869a901109c4 [file] [log] [blame]
Logan Chien42e0e152012-01-13 15:42:36 +08001// Generated with ./tools/gen_art_module_cc.sh
2
3// Generated by llvm2cpp - DO NOT MODIFY!
4
5
6Module* makeLLVMModuleContents(Module *mod) {
7
8mod->setModuleIdentifier("art_module.ll");
9
10// Type Definitions
11std::vector<Type*>FuncTy_0_args;
12StructType *StructTy_JavaObject = mod->getTypeByName("JavaObject");
13if (!StructTy_JavaObject) {
14StructTy_JavaObject = StructType::create(mod->getContext(), "JavaObject");
15}
16std::vector<Type*>StructTy_JavaObject_fields;
17if (StructTy_JavaObject->isOpaque()) {
18StructTy_JavaObject->setBody(StructTy_JavaObject_fields, /*isPacked=*/false);
19}
20
21PointerType* PointerTy_1 = PointerType::get(StructTy_JavaObject, 0);
22
23FuncTy_0_args.push_back(PointerTy_1);
24FunctionType* FuncTy_0 = FunctionType::get(
25 /*Result=*/Type::getVoidTy(mod->getContext()),
26 /*Params=*/FuncTy_0_args,
27 /*isVarArg=*/false);
28
29std::vector<Type*>FuncTy_2_args;
30FunctionType* FuncTy_2 = FunctionType::get(
31 /*Result=*/PointerTy_1,
32 /*Params=*/FuncTy_2_args,
33 /*isVarArg=*/false);
34
35std::vector<Type*>FuncTy_3_args;
36FunctionType* FuncTy_3 = FunctionType::get(
37 /*Result=*/Type::getVoidTy(mod->getContext()),
38 /*Params=*/FuncTy_3_args,
39 /*isVarArg=*/false);
40
41std::vector<Type*>FuncTy_4_args;
42FunctionType* FuncTy_4 = FunctionType::get(
43 /*Result=*/IntegerType::get(mod->getContext(), 1),
44 /*Params=*/FuncTy_4_args,
45 /*isVarArg=*/false);
46
47std::vector<Type*>FuncTy_5_args;
48FuncTy_5_args.push_back(IntegerType::get(mod->getContext(), 32));
49FuncTy_5_args.push_back(IntegerType::get(mod->getContext(), 32));
50FunctionType* FuncTy_5 = FunctionType::get(
51 /*Result=*/Type::getVoidTy(mod->getContext()),
52 /*Params=*/FuncTy_5_args,
53 /*isVarArg=*/false);
54
55std::vector<Type*>FuncTy_6_args;
56FuncTy_6_args.push_back(IntegerType::get(mod->getContext(), 32));
57FunctionType* FuncTy_6 = FunctionType::get(
58 /*Result=*/Type::getVoidTy(mod->getContext()),
59 /*Params=*/FuncTy_6_args,
60 /*isVarArg=*/false);
61
62std::vector<Type*>FuncTy_7_args;
63FuncTy_7_args.push_back(PointerTy_1);
64FuncTy_7_args.push_back(IntegerType::get(mod->getContext(), 32));
65FunctionType* FuncTy_7 = FunctionType::get(
66 /*Result=*/IntegerType::get(mod->getContext(), 32),
67 /*Params=*/FuncTy_7_args,
68 /*isVarArg=*/false);
69
70std::vector<Type*>FuncTy_8_args;
71FuncTy_8_args.push_back(IntegerType::get(mod->getContext(), 32));
72FuncTy_8_args.push_back(PointerTy_1);
73FunctionType* FuncTy_8 = FunctionType::get(
74 /*Result=*/PointerTy_1,
75 /*Params=*/FuncTy_8_args,
76 /*isVarArg=*/false);
77
78std::vector<Type*>FuncTy_9_args;
79FuncTy_9_args.push_back(IntegerType::get(mod->getContext(), 32));
80FuncTy_9_args.push_back(PointerTy_1);
81FuncTy_9_args.push_back(IntegerType::get(mod->getContext(), 32));
82FunctionType* FuncTy_9 = FunctionType::get(
83 /*Result=*/PointerTy_1,
84 /*Params=*/FuncTy_9_args,
85 /*isVarArg=*/false);
86
87std::vector<Type*>FuncTy_10_args;
88FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32));
89FuncTy_10_args.push_back(PointerTy_1);
90FunctionType* FuncTy_10 = FunctionType::get(
91 /*Result=*/Type::getVoidTy(mod->getContext()),
92 /*Params=*/FuncTy_10_args,
93 /*isVarArg=*/false);
94
95std::vector<Type*>FuncTy_11_args;
96FuncTy_11_args.push_back(PointerTy_1);
97FuncTy_11_args.push_back(IntegerType::get(mod->getContext(), 32));
98FunctionType* FuncTy_11 = FunctionType::get(
99 /*Result=*/PointerTy_1,
100 /*Params=*/FuncTy_11_args,
101 /*isVarArg=*/false);
102
103std::vector<Type*>FuncTy_12_args;
104FuncTy_12_args.push_back(PointerTy_1);
105FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 32));
106FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 1));
107FunctionType* FuncTy_12 = FunctionType::get(
108 /*Result=*/PointerTy_1,
109 /*Params=*/FuncTy_12_args,
110 /*isVarArg=*/false);
111
112std::vector<Type*>FuncTy_13_args;
113FuncTy_13_args.push_back(IntegerType::get(mod->getContext(), 32));
114FuncTy_13_args.push_back(PointerTy_1);
115FuncTy_13_args.push_back(IntegerType::get(mod->getContext(), 32));
116FunctionType* FuncTy_13 = FunctionType::get(
117 /*Result=*/IntegerType::get(mod->getContext(), 32),
118 /*Params=*/FuncTy_13_args,
119 /*isVarArg=*/false);
120
121std::vector<Type*>FuncTy_14_args;
122FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 32));
123FuncTy_14_args.push_back(PointerTy_1);
124FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 64));
125FunctionType* FuncTy_14 = FunctionType::get(
126 /*Result=*/IntegerType::get(mod->getContext(), 32),
127 /*Params=*/FuncTy_14_args,
128 /*isVarArg=*/false);
129
130std::vector<Type*>FuncTy_15_args;
131FuncTy_15_args.push_back(IntegerType::get(mod->getContext(), 32));
132FuncTy_15_args.push_back(PointerTy_1);
133FuncTy_15_args.push_back(PointerTy_1);
134FunctionType* FuncTy_15 = FunctionType::get(
135 /*Result=*/IntegerType::get(mod->getContext(), 32),
136 /*Params=*/FuncTy_15_args,
137 /*isVarArg=*/false);
138
139std::vector<Type*>FuncTy_16_args;
140FuncTy_16_args.push_back(IntegerType::get(mod->getContext(), 32));
141FuncTy_16_args.push_back(PointerTy_1);
142FunctionType* FuncTy_16 = FunctionType::get(
143 /*Result=*/IntegerType::get(mod->getContext(), 32),
144 /*Params=*/FuncTy_16_args,
145 /*isVarArg=*/false);
146
147std::vector<Type*>FuncTy_17_args;
148FuncTy_17_args.push_back(IntegerType::get(mod->getContext(), 32));
149FuncTy_17_args.push_back(PointerTy_1);
150FunctionType* FuncTy_17 = FunctionType::get(
151 /*Result=*/IntegerType::get(mod->getContext(), 64),
152 /*Params=*/FuncTy_17_args,
153 /*isVarArg=*/false);
154
155std::vector<Type*>FuncTy_18_args;
156FuncTy_18_args.push_back(PointerTy_1);
157FuncTy_18_args.push_back(PointerTy_1);
158FunctionType* FuncTy_18 = FunctionType::get(
159 /*Result=*/IntegerType::get(mod->getContext(), 32),
160 /*Params=*/FuncTy_18_args,
161 /*isVarArg=*/false);
162
163std::vector<Type*>FuncTy_19_args;
164FuncTy_19_args.push_back(PointerTy_1);
165FuncTy_19_args.push_back(PointerTy_1);
166FunctionType* FuncTy_19 = FunctionType::get(
167 /*Result=*/Type::getVoidTy(mod->getContext()),
168 /*Params=*/FuncTy_19_args,
169 /*isVarArg=*/false);
170
171
172// Function Declarations
173
174Function* func___art_type_list = mod->getFunction("__art_type_list");
175if (!func___art_type_list) {
176func___art_type_list = Function::Create(
177 /*Type=*/FuncTy_0,
178 /*Linkage=*/GlobalValue::ExternalLinkage,
179 /*Name=*/"__art_type_list", mod); // (external, no body)
180func___art_type_list->setCallingConv(CallingConv::C);
181}
182AttrListPtr func___art_type_list_PAL;
183func___art_type_list->setAttributes(func___art_type_list_PAL);
184
185Function* func_art_get_current_thread_from_code = mod->getFunction("art_get_current_thread_from_code");
186if (!func_art_get_current_thread_from_code) {
187func_art_get_current_thread_from_code = Function::Create(
188 /*Type=*/FuncTy_2,
189 /*Linkage=*/GlobalValue::ExternalLinkage,
190 /*Name=*/"art_get_current_thread_from_code", mod); // (external, no body)
191func_art_get_current_thread_from_code->setCallingConv(CallingConv::C);
192}
193AttrListPtr func_art_get_current_thread_from_code_PAL;
194func_art_get_current_thread_from_code->setAttributes(func_art_get_current_thread_from_code_PAL);
195
196Function* func_art_set_current_thread_from_code = mod->getFunction("art_set_current_thread_from_code");
197if (!func_art_set_current_thread_from_code) {
198func_art_set_current_thread_from_code = Function::Create(
199 /*Type=*/FuncTy_0,
200 /*Linkage=*/GlobalValue::ExternalLinkage,
201 /*Name=*/"art_set_current_thread_from_code", mod); // (external, no body)
202func_art_set_current_thread_from_code->setCallingConv(CallingConv::C);
203}
204AttrListPtr func_art_set_current_thread_from_code_PAL;
205func_art_set_current_thread_from_code->setAttributes(func_art_set_current_thread_from_code_PAL);
206
207Function* func_art_lock_object_from_code = mod->getFunction("art_lock_object_from_code");
208if (!func_art_lock_object_from_code) {
209func_art_lock_object_from_code = Function::Create(
210 /*Type=*/FuncTy_0,
211 /*Linkage=*/GlobalValue::ExternalLinkage,
212 /*Name=*/"art_lock_object_from_code", mod); // (external, no body)
213func_art_lock_object_from_code->setCallingConv(CallingConv::C);
214}
215AttrListPtr func_art_lock_object_from_code_PAL;
216func_art_lock_object_from_code->setAttributes(func_art_lock_object_from_code_PAL);
217
218Function* func_art_unlock_object_from_code = mod->getFunction("art_unlock_object_from_code");
219if (!func_art_unlock_object_from_code) {
220func_art_unlock_object_from_code = Function::Create(
221 /*Type=*/FuncTy_0,
222 /*Linkage=*/GlobalValue::ExternalLinkage,
223 /*Name=*/"art_unlock_object_from_code", mod); // (external, no body)
224func_art_unlock_object_from_code->setCallingConv(CallingConv::C);
225}
226AttrListPtr func_art_unlock_object_from_code_PAL;
227func_art_unlock_object_from_code->setAttributes(func_art_unlock_object_from_code_PAL);
228
229Function* func_art_test_suspend_from_code = mod->getFunction("art_test_suspend_from_code");
230if (!func_art_test_suspend_from_code) {
231func_art_test_suspend_from_code = Function::Create(
232 /*Type=*/FuncTy_3,
233 /*Linkage=*/GlobalValue::ExternalLinkage,
234 /*Name=*/"art_test_suspend_from_code", mod); // (external, no body)
235func_art_test_suspend_from_code->setCallingConv(CallingConv::C);
236}
237AttrListPtr func_art_test_suspend_from_code_PAL;
238func_art_test_suspend_from_code->setAttributes(func_art_test_suspend_from_code_PAL);
239
240Function* func_art_is_exception_pending_from_code = mod->getFunction("art_is_exception_pending_from_code");
241if (!func_art_is_exception_pending_from_code) {
242func_art_is_exception_pending_from_code = Function::Create(
243 /*Type=*/FuncTy_4,
244 /*Linkage=*/GlobalValue::ExternalLinkage,
245 /*Name=*/"art_is_exception_pending_from_code", mod); // (external, no body)
246func_art_is_exception_pending_from_code->setCallingConv(CallingConv::C);
247}
248AttrListPtr func_art_is_exception_pending_from_code_PAL;
249func_art_is_exception_pending_from_code->setAttributes(func_art_is_exception_pending_from_code_PAL);
250
251Function* func_art_throw_div_zero_from_code = mod->getFunction("art_throw_div_zero_from_code");
252if (!func_art_throw_div_zero_from_code) {
253func_art_throw_div_zero_from_code = Function::Create(
254 /*Type=*/FuncTy_3,
255 /*Linkage=*/GlobalValue::ExternalLinkage,
256 /*Name=*/"art_throw_div_zero_from_code", mod); // (external, no body)
257func_art_throw_div_zero_from_code->setCallingConv(CallingConv::C);
258}
259AttrListPtr func_art_throw_div_zero_from_code_PAL;
260func_art_throw_div_zero_from_code->setAttributes(func_art_throw_div_zero_from_code_PAL);
261
262Function* func_art_throw_array_bounds_from_code = mod->getFunction("art_throw_array_bounds_from_code");
263if (!func_art_throw_array_bounds_from_code) {
264func_art_throw_array_bounds_from_code = Function::Create(
265 /*Type=*/FuncTy_5,
266 /*Linkage=*/GlobalValue::ExternalLinkage,
267 /*Name=*/"art_throw_array_bounds_from_code", mod); // (external, no body)
268func_art_throw_array_bounds_from_code->setCallingConv(CallingConv::C);
269}
270AttrListPtr func_art_throw_array_bounds_from_code_PAL;
271func_art_throw_array_bounds_from_code->setAttributes(func_art_throw_array_bounds_from_code_PAL);
272
273Function* func_art_throw_no_such_method_from_code = mod->getFunction("art_throw_no_such_method_from_code");
274if (!func_art_throw_no_such_method_from_code) {
275func_art_throw_no_such_method_from_code = Function::Create(
276 /*Type=*/FuncTy_6,
277 /*Linkage=*/GlobalValue::ExternalLinkage,
278 /*Name=*/"art_throw_no_such_method_from_code", mod); // (external, no body)
279func_art_throw_no_such_method_from_code->setCallingConv(CallingConv::C);
280}
281AttrListPtr func_art_throw_no_such_method_from_code_PAL;
282func_art_throw_no_such_method_from_code->setAttributes(func_art_throw_no_such_method_from_code_PAL);
283
284Function* func_art_throw_null_pointer_exception_from_code = mod->getFunction("art_throw_null_pointer_exception_from_code");
285if (!func_art_throw_null_pointer_exception_from_code) {
286func_art_throw_null_pointer_exception_from_code = Function::Create(
287 /*Type=*/FuncTy_3,
288 /*Linkage=*/GlobalValue::ExternalLinkage,
289 /*Name=*/"art_throw_null_pointer_exception_from_code", mod); // (external, no body)
290func_art_throw_null_pointer_exception_from_code->setCallingConv(CallingConv::C);
291}
292AttrListPtr func_art_throw_null_pointer_exception_from_code_PAL;
293func_art_throw_null_pointer_exception_from_code->setAttributes(func_art_throw_null_pointer_exception_from_code_PAL);
294
295Function* func_art_throw_stack_overflow_from_code = mod->getFunction("art_throw_stack_overflow_from_code");
296if (!func_art_throw_stack_overflow_from_code) {
297func_art_throw_stack_overflow_from_code = Function::Create(
298 /*Type=*/FuncTy_0,
299 /*Linkage=*/GlobalValue::ExternalLinkage,
300 /*Name=*/"art_throw_stack_overflow_from_code", mod); // (external, no body)
301func_art_throw_stack_overflow_from_code->setCallingConv(CallingConv::C);
302}
303AttrListPtr func_art_throw_stack_overflow_from_code_PAL;
304func_art_throw_stack_overflow_from_code->setAttributes(func_art_throw_stack_overflow_from_code_PAL);
305
306Function* func_art_throw_exception_from_code = mod->getFunction("art_throw_exception_from_code");
307if (!func_art_throw_exception_from_code) {
308func_art_throw_exception_from_code = Function::Create(
309 /*Type=*/FuncTy_0,
310 /*Linkage=*/GlobalValue::ExternalLinkage,
311 /*Name=*/"art_throw_exception_from_code", mod); // (external, no body)
312func_art_throw_exception_from_code->setCallingConv(CallingConv::C);
313}
314AttrListPtr func_art_throw_exception_from_code_PAL;
315func_art_throw_exception_from_code->setAttributes(func_art_throw_exception_from_code_PAL);
316
317Function* func_art_find_catch_block_from_code = mod->getFunction("art_find_catch_block_from_code");
318if (!func_art_find_catch_block_from_code) {
319func_art_find_catch_block_from_code = Function::Create(
320 /*Type=*/FuncTy_7,
321 /*Linkage=*/GlobalValue::ExternalLinkage,
322 /*Name=*/"art_find_catch_block_from_code", mod); // (external, no body)
323func_art_find_catch_block_from_code->setCallingConv(CallingConv::C);
324}
325AttrListPtr func_art_find_catch_block_from_code_PAL;
326func_art_find_catch_block_from_code->setAttributes(func_art_find_catch_block_from_code_PAL);
327
328Function* func_art_alloc_object_from_code = mod->getFunction("art_alloc_object_from_code");
329if (!func_art_alloc_object_from_code) {
330func_art_alloc_object_from_code = Function::Create(
331 /*Type=*/FuncTy_8,
332 /*Linkage=*/GlobalValue::ExternalLinkage,
333 /*Name=*/"art_alloc_object_from_code", mod); // (external, no body)
334func_art_alloc_object_from_code->setCallingConv(CallingConv::C);
335}
336AttrListPtr func_art_alloc_object_from_code_PAL;
337func_art_alloc_object_from_code->setAttributes(func_art_alloc_object_from_code_PAL);
338
339Function* func_art_alloc_object_from_code_with_access_check = mod->getFunction("art_alloc_object_from_code_with_access_check");
340if (!func_art_alloc_object_from_code_with_access_check) {
341func_art_alloc_object_from_code_with_access_check = Function::Create(
342 /*Type=*/FuncTy_8,
343 /*Linkage=*/GlobalValue::ExternalLinkage,
344 /*Name=*/"art_alloc_object_from_code_with_access_check", mod); // (external, no body)
345func_art_alloc_object_from_code_with_access_check->setCallingConv(CallingConv::C);
346}
347AttrListPtr func_art_alloc_object_from_code_with_access_check_PAL;
348func_art_alloc_object_from_code_with_access_check->setAttributes(func_art_alloc_object_from_code_with_access_check_PAL);
349
350Function* func_art_alloc_array_from_code = mod->getFunction("art_alloc_array_from_code");
351if (!func_art_alloc_array_from_code) {
352func_art_alloc_array_from_code = Function::Create(
353 /*Type=*/FuncTy_9,
354 /*Linkage=*/GlobalValue::ExternalLinkage,
355 /*Name=*/"art_alloc_array_from_code", mod); // (external, no body)
356func_art_alloc_array_from_code->setCallingConv(CallingConv::C);
357}
358AttrListPtr func_art_alloc_array_from_code_PAL;
359func_art_alloc_array_from_code->setAttributes(func_art_alloc_array_from_code_PAL);
360
361Function* func_art_alloc_array_from_code_with_access_check = mod->getFunction("art_alloc_array_from_code_with_access_check");
362if (!func_art_alloc_array_from_code_with_access_check) {
363func_art_alloc_array_from_code_with_access_check = Function::Create(
364 /*Type=*/FuncTy_9,
365 /*Linkage=*/GlobalValue::ExternalLinkage,
366 /*Name=*/"art_alloc_array_from_code_with_access_check", mod); // (external, no body)
367func_art_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
368}
369AttrListPtr func_art_alloc_array_from_code_with_access_check_PAL;
370func_art_alloc_array_from_code_with_access_check->setAttributes(func_art_alloc_array_from_code_with_access_check_PAL);
371
372Function* func_art_check_and_alloc_array_from_code = mod->getFunction("art_check_and_alloc_array_from_code");
373if (!func_art_check_and_alloc_array_from_code) {
374func_art_check_and_alloc_array_from_code = Function::Create(
375 /*Type=*/FuncTy_9,
376 /*Linkage=*/GlobalValue::ExternalLinkage,
377 /*Name=*/"art_check_and_alloc_array_from_code", mod); // (external, no body)
378func_art_check_and_alloc_array_from_code->setCallingConv(CallingConv::C);
379}
380AttrListPtr func_art_check_and_alloc_array_from_code_PAL;
381func_art_check_and_alloc_array_from_code->setAttributes(func_art_check_and_alloc_array_from_code_PAL);
382
383Function* func_art_check_and_alloc_array_from_code_with_access_check = mod->getFunction("art_check_and_alloc_array_from_code_with_access_check");
384if (!func_art_check_and_alloc_array_from_code_with_access_check) {
385func_art_check_and_alloc_array_from_code_with_access_check = Function::Create(
386 /*Type=*/FuncTy_9,
387 /*Linkage=*/GlobalValue::ExternalLinkage,
388 /*Name=*/"art_check_and_alloc_array_from_code_with_access_check", mod); // (external, no body)
389func_art_check_and_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
390}
391AttrListPtr func_art_check_and_alloc_array_from_code_with_access_check_PAL;
392func_art_check_and_alloc_array_from_code_with_access_check->setAttributes(func_art_check_and_alloc_array_from_code_with_access_check_PAL);
393
394Function* func_art_object_init_from_code = mod->getFunction("art_object_init_from_code");
395if (!func_art_object_init_from_code) {
396func_art_object_init_from_code = Function::Create(
397 /*Type=*/FuncTy_0,
398 /*Linkage=*/GlobalValue::ExternalLinkage,
399 /*Name=*/"art_object_init_from_code", mod); // (external, no body)
400func_art_object_init_from_code->setCallingConv(CallingConv::C);
401}
402AttrListPtr func_art_object_init_from_code_PAL;
403func_art_object_init_from_code->setAttributes(func_art_object_init_from_code_PAL);
404
405Function* func_art_find_instance_field_from_code = mod->getFunction("art_find_instance_field_from_code");
406if (!func_art_find_instance_field_from_code) {
407func_art_find_instance_field_from_code = Function::Create(
408 /*Type=*/FuncTy_10,
409 /*Linkage=*/GlobalValue::ExternalLinkage,
410 /*Name=*/"art_find_instance_field_from_code", mod); // (external, no body)
411func_art_find_instance_field_from_code->setCallingConv(CallingConv::C);
412}
413AttrListPtr func_art_find_instance_field_from_code_PAL;
414func_art_find_instance_field_from_code->setAttributes(func_art_find_instance_field_from_code_PAL);
415
416Function* func_art_find_static_field_from_code = mod->getFunction("art_find_static_field_from_code");
417if (!func_art_find_static_field_from_code) {
418func_art_find_static_field_from_code = Function::Create(
419 /*Type=*/FuncTy_10,
420 /*Linkage=*/GlobalValue::ExternalLinkage,
421 /*Name=*/"art_find_static_field_from_code", mod); // (external, no body)
422func_art_find_static_field_from_code->setCallingConv(CallingConv::C);
423}
424AttrListPtr func_art_find_static_field_from_code_PAL;
425func_art_find_static_field_from_code->setAttributes(func_art_find_static_field_from_code_PAL);
426
427Function* func_art_find_interface_method_from_code = mod->getFunction("art_find_interface_method_from_code");
428if (!func_art_find_interface_method_from_code) {
429func_art_find_interface_method_from_code = Function::Create(
430 /*Type=*/FuncTy_8,
431 /*Linkage=*/GlobalValue::ExternalLinkage,
432 /*Name=*/"art_find_interface_method_from_code", mod); // (external, no body)
433func_art_find_interface_method_from_code->setCallingConv(CallingConv::C);
434}
435AttrListPtr func_art_find_interface_method_from_code_PAL;
436func_art_find_interface_method_from_code->setAttributes(func_art_find_interface_method_from_code_PAL);
437
438Function* func_art_initialize_static_storage_from_code = mod->getFunction("art_initialize_static_storage_from_code");
439if (!func_art_initialize_static_storage_from_code) {
440func_art_initialize_static_storage_from_code = Function::Create(
441 /*Type=*/FuncTy_8,
442 /*Linkage=*/GlobalValue::ExternalLinkage,
443 /*Name=*/"art_initialize_static_storage_from_code", mod); // (external, no body)
444func_art_initialize_static_storage_from_code->setCallingConv(CallingConv::C);
445}
446AttrListPtr func_art_initialize_static_storage_from_code_PAL;
447func_art_initialize_static_storage_from_code->setAttributes(func_art_initialize_static_storage_from_code_PAL);
448
449Function* func_art_initialize_type_from_code = mod->getFunction("art_initialize_type_from_code");
450if (!func_art_initialize_type_from_code) {
451func_art_initialize_type_from_code = Function::Create(
452 /*Type=*/FuncTy_8,
453 /*Linkage=*/GlobalValue::ExternalLinkage,
454 /*Name=*/"art_initialize_type_from_code", mod); // (external, no body)
455func_art_initialize_type_from_code->setCallingConv(CallingConv::C);
456}
457AttrListPtr func_art_initialize_type_from_code_PAL;
458func_art_initialize_type_from_code->setAttributes(func_art_initialize_type_from_code_PAL);
459
460Function* func_art_initialize_type_and_verify_access_from_code = mod->getFunction("art_initialize_type_and_verify_access_from_code");
461if (!func_art_initialize_type_and_verify_access_from_code) {
462func_art_initialize_type_and_verify_access_from_code = Function::Create(
463 /*Type=*/FuncTy_8,
464 /*Linkage=*/GlobalValue::ExternalLinkage,
465 /*Name=*/"art_initialize_type_and_verify_access_from_code", mod); // (external, no body)
466func_art_initialize_type_and_verify_access_from_code->setCallingConv(CallingConv::C);
467}
468AttrListPtr func_art_initialize_type_and_verify_access_from_code_PAL;
469func_art_initialize_type_and_verify_access_from_code->setAttributes(func_art_initialize_type_and_verify_access_from_code_PAL);
470
471Function* func_art_resolve_string_from_code = mod->getFunction("art_resolve_string_from_code");
472if (!func_art_resolve_string_from_code) {
473func_art_resolve_string_from_code = Function::Create(
474 /*Type=*/FuncTy_11,
475 /*Linkage=*/GlobalValue::ExternalLinkage,
476 /*Name=*/"art_resolve_string_from_code", mod); // (external, no body)
477func_art_resolve_string_from_code->setCallingConv(CallingConv::C);
478}
479AttrListPtr func_art_resolve_string_from_code_PAL;
480func_art_resolve_string_from_code->setAttributes(func_art_resolve_string_from_code_PAL);
481
482Function* func_art_resolve_method_from_code = mod->getFunction("art_resolve_method_from_code");
483if (!func_art_resolve_method_from_code) {
484func_art_resolve_method_from_code = Function::Create(
485 /*Type=*/FuncTy_12,
486 /*Linkage=*/GlobalValue::ExternalLinkage,
487 /*Name=*/"art_resolve_method_from_code", mod); // (external, no body)
488func_art_resolve_method_from_code->setCallingConv(CallingConv::C);
489}
490AttrListPtr func_art_resolve_method_from_code_PAL;
491func_art_resolve_method_from_code->setAttributes(func_art_resolve_method_from_code_PAL);
492
493Function* func_art_set32_static_from_code = mod->getFunction("art_set32_static_from_code");
494if (!func_art_set32_static_from_code) {
495func_art_set32_static_from_code = Function::Create(
496 /*Type=*/FuncTy_13,
497 /*Linkage=*/GlobalValue::ExternalLinkage,
498 /*Name=*/"art_set32_static_from_code", mod); // (external, no body)
499func_art_set32_static_from_code->setCallingConv(CallingConv::C);
500}
501AttrListPtr func_art_set32_static_from_code_PAL;
502func_art_set32_static_from_code->setAttributes(func_art_set32_static_from_code_PAL);
503
504Function* func_art_set64_static_from_code = mod->getFunction("art_set64_static_from_code");
505if (!func_art_set64_static_from_code) {
506func_art_set64_static_from_code = Function::Create(
507 /*Type=*/FuncTy_14,
508 /*Linkage=*/GlobalValue::ExternalLinkage,
509 /*Name=*/"art_set64_static_from_code", mod); // (external, no body)
510func_art_set64_static_from_code->setCallingConv(CallingConv::C);
511}
512AttrListPtr func_art_set64_static_from_code_PAL;
513func_art_set64_static_from_code->setAttributes(func_art_set64_static_from_code_PAL);
514
515Function* func_art_set_obj_static_from_code = mod->getFunction("art_set_obj_static_from_code");
516if (!func_art_set_obj_static_from_code) {
517func_art_set_obj_static_from_code = Function::Create(
518 /*Type=*/FuncTy_15,
519 /*Linkage=*/GlobalValue::ExternalLinkage,
520 /*Name=*/"art_set_obj_static_from_code", mod); // (external, no body)
521func_art_set_obj_static_from_code->setCallingConv(CallingConv::C);
522}
523AttrListPtr func_art_set_obj_static_from_code_PAL;
524func_art_set_obj_static_from_code->setAttributes(func_art_set_obj_static_from_code_PAL);
525
526Function* func_art_get32_static_from_code = mod->getFunction("art_get32_static_from_code");
527if (!func_art_get32_static_from_code) {
528func_art_get32_static_from_code = Function::Create(
529 /*Type=*/FuncTy_16,
530 /*Linkage=*/GlobalValue::ExternalLinkage,
531 /*Name=*/"art_get32_static_from_code", mod); // (external, no body)
532func_art_get32_static_from_code->setCallingConv(CallingConv::C);
533}
534AttrListPtr func_art_get32_static_from_code_PAL;
535func_art_get32_static_from_code->setAttributes(func_art_get32_static_from_code_PAL);
536
537Function* func_art_get64_static_from_code = mod->getFunction("art_get64_static_from_code");
538if (!func_art_get64_static_from_code) {
539func_art_get64_static_from_code = Function::Create(
540 /*Type=*/FuncTy_17,
541 /*Linkage=*/GlobalValue::ExternalLinkage,
542 /*Name=*/"art_get64_static_from_code", mod); // (external, no body)
543func_art_get64_static_from_code->setCallingConv(CallingConv::C);
544}
545AttrListPtr func_art_get64_static_from_code_PAL;
546func_art_get64_static_from_code->setAttributes(func_art_get64_static_from_code_PAL);
547
548Function* func_art_get_obj_static_from_code = mod->getFunction("art_get_obj_static_from_code");
549if (!func_art_get_obj_static_from_code) {
550func_art_get_obj_static_from_code = Function::Create(
551 /*Type=*/FuncTy_8,
552 /*Linkage=*/GlobalValue::ExternalLinkage,
553 /*Name=*/"art_get_obj_static_from_code", mod); // (external, no body)
554func_art_get_obj_static_from_code->setCallingConv(CallingConv::C);
555}
556AttrListPtr func_art_get_obj_static_from_code_PAL;
557func_art_get_obj_static_from_code->setAttributes(func_art_get_obj_static_from_code_PAL);
558
559Function* func_art_set32_instance_from_code = mod->getFunction("art_set32_instance_from_code");
560if (!func_art_set32_instance_from_code) {
561func_art_set32_instance_from_code = Function::Create(
562 /*Type=*/FuncTy_13,
563 /*Linkage=*/GlobalValue::ExternalLinkage,
564 /*Name=*/"art_set32_instance_from_code", mod); // (external, no body)
565func_art_set32_instance_from_code->setCallingConv(CallingConv::C);
566}
567AttrListPtr func_art_set32_instance_from_code_PAL;
568func_art_set32_instance_from_code->setAttributes(func_art_set32_instance_from_code_PAL);
569
570Function* func_art_set64_instance_from_code = mod->getFunction("art_set64_instance_from_code");
571if (!func_art_set64_instance_from_code) {
572func_art_set64_instance_from_code = Function::Create(
573 /*Type=*/FuncTy_14,
574 /*Linkage=*/GlobalValue::ExternalLinkage,
575 /*Name=*/"art_set64_instance_from_code", mod); // (external, no body)
576func_art_set64_instance_from_code->setCallingConv(CallingConv::C);
577}
578AttrListPtr func_art_set64_instance_from_code_PAL;
579func_art_set64_instance_from_code->setAttributes(func_art_set64_instance_from_code_PAL);
580
581Function* func_art_set_obj_instance_from_code = mod->getFunction("art_set_obj_instance_from_code");
582if (!func_art_set_obj_instance_from_code) {
583func_art_set_obj_instance_from_code = Function::Create(
584 /*Type=*/FuncTy_15,
585 /*Linkage=*/GlobalValue::ExternalLinkage,
586 /*Name=*/"art_set_obj_instance_from_code", mod); // (external, no body)
587func_art_set_obj_instance_from_code->setCallingConv(CallingConv::C);
588}
589AttrListPtr func_art_set_obj_instance_from_code_PAL;
590func_art_set_obj_instance_from_code->setAttributes(func_art_set_obj_instance_from_code_PAL);
591
592Function* func_art_get32_instance_from_code = mod->getFunction("art_get32_instance_from_code");
593if (!func_art_get32_instance_from_code) {
594func_art_get32_instance_from_code = Function::Create(
595 /*Type=*/FuncTy_16,
596 /*Linkage=*/GlobalValue::ExternalLinkage,
597 /*Name=*/"art_get32_instance_from_code", mod); // (external, no body)
598func_art_get32_instance_from_code->setCallingConv(CallingConv::C);
599}
600AttrListPtr func_art_get32_instance_from_code_PAL;
601func_art_get32_instance_from_code->setAttributes(func_art_get32_instance_from_code_PAL);
602
603Function* func_art_get64_instance_from_code = mod->getFunction("art_get64_instance_from_code");
604if (!func_art_get64_instance_from_code) {
605func_art_get64_instance_from_code = Function::Create(
606 /*Type=*/FuncTy_17,
607 /*Linkage=*/GlobalValue::ExternalLinkage,
608 /*Name=*/"art_get64_instance_from_code", mod); // (external, no body)
609func_art_get64_instance_from_code->setCallingConv(CallingConv::C);
610}
611AttrListPtr func_art_get64_instance_from_code_PAL;
612func_art_get64_instance_from_code->setAttributes(func_art_get64_instance_from_code_PAL);
613
614Function* func_art_get_obj_instance_from_code = mod->getFunction("art_get_obj_instance_from_code");
615if (!func_art_get_obj_instance_from_code) {
616func_art_get_obj_instance_from_code = Function::Create(
617 /*Type=*/FuncTy_8,
618 /*Linkage=*/GlobalValue::ExternalLinkage,
619 /*Name=*/"art_get_obj_instance_from_code", mod); // (external, no body)
620func_art_get_obj_instance_from_code->setCallingConv(CallingConv::C);
621}
622AttrListPtr func_art_get_obj_instance_from_code_PAL;
623func_art_get_obj_instance_from_code->setAttributes(func_art_get_obj_instance_from_code_PAL);
624
625Function* func_art_is_assignable_from_code = mod->getFunction("art_is_assignable_from_code");
626if (!func_art_is_assignable_from_code) {
627func_art_is_assignable_from_code = Function::Create(
628 /*Type=*/FuncTy_18,
629 /*Linkage=*/GlobalValue::ExternalLinkage,
630 /*Name=*/"art_is_assignable_from_code", mod); // (external, no body)
631func_art_is_assignable_from_code->setCallingConv(CallingConv::C);
632}
633AttrListPtr func_art_is_assignable_from_code_PAL;
634func_art_is_assignable_from_code->setAttributes(func_art_is_assignable_from_code_PAL);
635
636Function* func_art_check_cast_from_code = mod->getFunction("art_check_cast_from_code");
637if (!func_art_check_cast_from_code) {
638func_art_check_cast_from_code = Function::Create(
639 /*Type=*/FuncTy_19,
640 /*Linkage=*/GlobalValue::ExternalLinkage,
641 /*Name=*/"art_check_cast_from_code", mod); // (external, no body)
642func_art_check_cast_from_code->setCallingConv(CallingConv::C);
643}
644AttrListPtr func_art_check_cast_from_code_PAL;
645func_art_check_cast_from_code->setAttributes(func_art_check_cast_from_code_PAL);
646
647// Global Variable Declarations
648
649
650// Constant Definitions
651
652// Global Variable Definitions
653
654// Function Definitions
655
656return mod;
657
658}