blob: cdde01926516ee6503aeeb36fb72669c29e8c72b [file] [log] [blame]
Logan Chien9e5f5c12012-04-10 13:51:45 +08001// Generated with tools/gen_art_module_cc.sh
Logan Chiene75a8cc2012-02-24 12:26:43 +08002
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 Chien9e5f5c12012-04-10 13:51:45 +0800114FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800115FunctionType* FuncTy_10 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800116 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800117 /*Params=*/FuncTy_10_args,
118 /*isVarArg=*/false);
119
120std::vector<Type*>FuncTy_11_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800121FuncTy_11_args.push_back(PointerTy_1);
Logan Chien9e5f5c12012-04-10 13:51:45 +0800122FuncTy_11_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800123FunctionType* FuncTy_11 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800124 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800125 /*Params=*/FuncTy_11_args,
126 /*isVarArg=*/false);
127
128std::vector<Type*>FuncTy_12_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800129FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800130FuncTy_12_args.push_back(PointerTy_1);
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 Chien9e5f5c12012-04-10 13:51:45 +0800139FuncTy_13_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800140FunctionType* FuncTy_13 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800141 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800142 /*Params=*/FuncTy_13_args,
143 /*isVarArg=*/false);
144
145std::vector<Type*>FuncTy_14_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800146FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien1b0a1b72012-03-15 06:20:17 +0800147FuncTy_14_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800148FunctionType* FuncTy_14 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800149 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800150 /*Params=*/FuncTy_14_args,
151 /*isVarArg=*/false);
152
153std::vector<Type*>FuncTy_15_args;
154FuncTy_15_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien9e5f5c12012-04-10 13:51:45 +0800155FuncTy_15_args.push_back(PointerTy_1);
156FuncTy_15_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800157FunctionType* FuncTy_15 = FunctionType::get(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800158 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800159 /*Params=*/FuncTy_15_args,
160 /*isVarArg=*/false);
161
162std::vector<Type*>FuncTy_16_args;
Logan Chien42e0e152012-01-13 15:42:36 +0800163FuncTy_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(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800166 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800167 /*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 Chien9e5f5c12012-04-10 13:51:45 +0800173FuncTy_17_args.push_back(IntegerType::get(mod->getContext(), 32));
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 Chien9e5f5c12012-04-10 13:51:45 +0800182FuncTy_18_args.push_back(IntegerType::get(mod->getContext(), 64));
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);
Logan Chien9e5f5c12012-04-10 13:51:45 +0800191FuncTy_19_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800192FunctionType* FuncTy_19 = FunctionType::get(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800193 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800194 /*Params=*/FuncTy_19_args,
195 /*isVarArg=*/false);
196
Logan Chien3f71e702012-02-17 18:45:27 +0800197std::vector<Type*>FuncTy_20_args;
Logan Chien3b2b2e72012-03-06 16:11:45 +0800198FuncTy_20_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chiena6b2ca62012-03-06 15:50:54 +0800199FuncTy_20_args.push_back(PointerTy_1);
Logan Chien3f71e702012-02-17 18:45:27 +0800200FunctionType* FuncTy_20 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800201 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3f71e702012-02-17 18:45:27 +0800202 /*Params=*/FuncTy_20_args,
203 /*isVarArg=*/false);
204
205std::vector<Type*>FuncTy_21_args;
Logan Chien3b2b2e72012-03-06 16:11:45 +0800206FuncTy_21_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3f71e702012-02-17 18:45:27 +0800207FuncTy_21_args.push_back(PointerTy_1);
Logan Chien3f71e702012-02-17 18:45:27 +0800208FunctionType* FuncTy_21 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800209 /*Result=*/IntegerType::get(mod->getContext(), 64),
Logan Chiena6b2ca62012-03-06 15:50:54 +0800210 /*Params=*/FuncTy_21_args,
Logan Chien3f71e702012-02-17 18:45:27 +0800211 /*isVarArg=*/false);
212
Logan Chien3b2b2e72012-03-06 16:11:45 +0800213std::vector<Type*>FuncTy_22_args;
214FuncTy_22_args.push_back(IntegerType::get(mod->getContext(), 32));
215FuncTy_22_args.push_back(PointerTy_1);
216FuncTy_22_args.push_back(PointerTy_1);
Logan Chien9e5f5c12012-04-10 13:51:45 +0800217FuncTy_22_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800218FunctionType* FuncTy_22 = FunctionType::get(
219 /*Result=*/IntegerType::get(mod->getContext(), 32),
220 /*Params=*/FuncTy_22_args,
221 /*isVarArg=*/false);
222
223std::vector<Type*>FuncTy_23_args;
224FuncTy_23_args.push_back(IntegerType::get(mod->getContext(), 32));
225FuncTy_23_args.push_back(PointerTy_1);
226FuncTy_23_args.push_back(PointerTy_1);
Logan Chien9e5f5c12012-04-10 13:51:45 +0800227FuncTy_23_args.push_back(IntegerType::get(mod->getContext(), 64));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800228FunctionType* FuncTy_23 = FunctionType::get(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800229 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800230 /*Params=*/FuncTy_23_args,
231 /*isVarArg=*/false);
232
233std::vector<Type*>FuncTy_24_args;
234FuncTy_24_args.push_back(IntegerType::get(mod->getContext(), 32));
235FuncTy_24_args.push_back(PointerTy_1);
236FuncTy_24_args.push_back(PointerTy_1);
Logan Chien9e5f5c12012-04-10 13:51:45 +0800237FuncTy_24_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800238FunctionType* FuncTy_24 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800239 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800240 /*Params=*/FuncTy_24_args,
241 /*isVarArg=*/false);
242
243std::vector<Type*>FuncTy_25_args;
Logan Chien9e5f5c12012-04-10 13:51:45 +0800244FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800245FuncTy_25_args.push_back(PointerTy_1);
246FuncTy_25_args.push_back(PointerTy_1);
247FunctionType* FuncTy_25 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800248 /*Result=*/IntegerType::get(mod->getContext(), 64),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800249 /*Params=*/FuncTy_25_args,
250 /*isVarArg=*/false);
251
252std::vector<Type*>FuncTy_26_args;
253FuncTy_26_args.push_back(PointerTy_1);
254FuncTy_26_args.push_back(PointerTy_1);
255FunctionType* FuncTy_26 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800256 /*Result=*/PointerTy_1,
Logan Chien3b2b2e72012-03-06 16:11:45 +0800257 /*Params=*/FuncTy_26_args,
258 /*isVarArg=*/false);
259
TDYa12728f1a142012-03-15 21:51:52 -0700260std::vector<Type*>FuncTy_27_args;
261FuncTy_27_args.push_back(PointerTy_1);
262FuncTy_27_args.push_back(PointerTy_1);
263FunctionType* FuncTy_27 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800264 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa12728f1a142012-03-15 21:51:52 -0700265 /*Params=*/FuncTy_27_args,
266 /*isVarArg=*/false);
267
TDYa12785321912012-04-01 15:24:56 -0700268std::vector<Type*>FuncTy_28_args;
269FuncTy_28_args.push_back(PointerTy_1);
270FuncTy_28_args.push_back(PointerTy_1);
TDYa12785321912012-04-01 15:24:56 -0700271FunctionType* FuncTy_28 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800272 /*Result=*/Type::getVoidTy(mod->getContext()),
TDYa12785321912012-04-01 15:24:56 -0700273 /*Params=*/FuncTy_28_args,
274 /*isVarArg=*/false);
275
TDYa1270b686e52012-04-09 22:43:35 -0700276std::vector<Type*>FuncTy_29_args;
277FuncTy_29_args.push_back(PointerTy_1);
Logan Chien9e5f5c12012-04-10 13:51:45 +0800278FuncTy_29_args.push_back(PointerTy_1);
279FuncTy_29_args.push_back(IntegerType::get(mod->getContext(), 32));
280FuncTy_29_args.push_back(IntegerType::get(mod->getContext(), 1));
TDYa1270b686e52012-04-09 22:43:35 -0700281FunctionType* FuncTy_29 = FunctionType::get(
282 /*Result=*/PointerTy_1,
283 /*Params=*/FuncTy_29_args,
284 /*isVarArg=*/false);
285
Logan Chien9e5f5c12012-04-10 13:51:45 +0800286std::vector<Type*>FuncTy_30_args;
287FuncTy_30_args.push_back(PointerTy_1);
288FunctionType* FuncTy_30 = FunctionType::get(
289 /*Result=*/PointerTy_1,
290 /*Params=*/FuncTy_30_args,
291 /*isVarArg=*/false);
292
TDYa1275bb86012012-04-11 05:57:28 -0700293std::vector<Type*>FuncTy_31_args;
294FuncTy_31_args.push_back(PointerTy_1);
295FunctionType* FuncTy_31 = FunctionType::get(
296 /*Result=*/Type::getVoidTy(mod->getContext()),
297 /*Params=*/FuncTy_31_args,
298 /*isVarArg=*/true);
299
Logan Chien42e0e152012-01-13 15:42:36 +0800300
301// Function Declarations
302
303Function* func___art_type_list = mod->getFunction("__art_type_list");
304if (!func___art_type_list) {
305func___art_type_list = Function::Create(
306 /*Type=*/FuncTy_0,
307 /*Linkage=*/GlobalValue::ExternalLinkage,
308 /*Name=*/"__art_type_list", mod); // (external, no body)
309func___art_type_list->setCallingConv(CallingConv::C);
310}
311AttrListPtr func___art_type_list_PAL;
312func___art_type_list->setAttributes(func___art_type_list_PAL);
313
314Function* func_art_get_current_thread_from_code = mod->getFunction("art_get_current_thread_from_code");
315if (!func_art_get_current_thread_from_code) {
316func_art_get_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800317 /*Type=*/FuncTy_3,
Logan Chien42e0e152012-01-13 15:42:36 +0800318 /*Linkage=*/GlobalValue::ExternalLinkage,
319 /*Name=*/"art_get_current_thread_from_code", mod); // (external, no body)
320func_art_get_current_thread_from_code->setCallingConv(CallingConv::C);
321}
322AttrListPtr func_art_get_current_thread_from_code_PAL;
323func_art_get_current_thread_from_code->setAttributes(func_art_get_current_thread_from_code_PAL);
324
325Function* func_art_set_current_thread_from_code = mod->getFunction("art_set_current_thread_from_code");
326if (!func_art_set_current_thread_from_code) {
327func_art_set_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800328 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800329 /*Linkage=*/GlobalValue::ExternalLinkage,
330 /*Name=*/"art_set_current_thread_from_code", mod); // (external, no body)
331func_art_set_current_thread_from_code->setCallingConv(CallingConv::C);
332}
333AttrListPtr func_art_set_current_thread_from_code_PAL;
334func_art_set_current_thread_from_code->setAttributes(func_art_set_current_thread_from_code_PAL);
335
336Function* func_art_lock_object_from_code = mod->getFunction("art_lock_object_from_code");
337if (!func_art_lock_object_from_code) {
338func_art_lock_object_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800339 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800340 /*Linkage=*/GlobalValue::ExternalLinkage,
341 /*Name=*/"art_lock_object_from_code", mod); // (external, no body)
342func_art_lock_object_from_code->setCallingConv(CallingConv::C);
343}
344AttrListPtr func_art_lock_object_from_code_PAL;
345func_art_lock_object_from_code->setAttributes(func_art_lock_object_from_code_PAL);
346
347Function* func_art_unlock_object_from_code = mod->getFunction("art_unlock_object_from_code");
348if (!func_art_unlock_object_from_code) {
349func_art_unlock_object_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800350 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800351 /*Linkage=*/GlobalValue::ExternalLinkage,
352 /*Name=*/"art_unlock_object_from_code", mod); // (external, no body)
353func_art_unlock_object_from_code->setCallingConv(CallingConv::C);
354}
355AttrListPtr func_art_unlock_object_from_code_PAL;
356func_art_unlock_object_from_code->setAttributes(func_art_unlock_object_from_code_PAL);
357
358Function* func_art_test_suspend_from_code = mod->getFunction("art_test_suspend_from_code");
359if (!func_art_test_suspend_from_code) {
360func_art_test_suspend_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800361 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800362 /*Linkage=*/GlobalValue::ExternalLinkage,
363 /*Name=*/"art_test_suspend_from_code", mod); // (external, no body)
364func_art_test_suspend_from_code->setCallingConv(CallingConv::C);
365}
366AttrListPtr func_art_test_suspend_from_code_PAL;
367func_art_test_suspend_from_code->setAttributes(func_art_test_suspend_from_code_PAL);
368
Logan Chien3f71e702012-02-17 18:45:27 +0800369Function* func_art_push_shadow_frame_from_code = mod->getFunction("art_push_shadow_frame_from_code");
370if (!func_art_push_shadow_frame_from_code) {
371func_art_push_shadow_frame_from_code = Function::Create(
372 /*Type=*/FuncTy_6,
373 /*Linkage=*/GlobalValue::ExternalLinkage,
374 /*Name=*/"art_push_shadow_frame_from_code", mod); // (external, no body)
375func_art_push_shadow_frame_from_code->setCallingConv(CallingConv::C);
376}
377AttrListPtr func_art_push_shadow_frame_from_code_PAL;
378func_art_push_shadow_frame_from_code->setAttributes(func_art_push_shadow_frame_from_code_PAL);
379
380Function* func_art_pop_shadow_frame_from_code = mod->getFunction("art_pop_shadow_frame_from_code");
381if (!func_art_pop_shadow_frame_from_code) {
382func_art_pop_shadow_frame_from_code = Function::Create(
383 /*Type=*/FuncTy_5,
384 /*Linkage=*/GlobalValue::ExternalLinkage,
385 /*Name=*/"art_pop_shadow_frame_from_code", mod); // (external, no body)
386func_art_pop_shadow_frame_from_code->setCallingConv(CallingConv::C);
387}
388AttrListPtr func_art_pop_shadow_frame_from_code_PAL;
389func_art_pop_shadow_frame_from_code->setAttributes(func_art_pop_shadow_frame_from_code_PAL);
390
Logan Chien42e0e152012-01-13 15:42:36 +0800391Function* func_art_is_exception_pending_from_code = mod->getFunction("art_is_exception_pending_from_code");
392if (!func_art_is_exception_pending_from_code) {
393func_art_is_exception_pending_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800394 /*Type=*/FuncTy_7,
Logan Chien42e0e152012-01-13 15:42:36 +0800395 /*Linkage=*/GlobalValue::ExternalLinkage,
396 /*Name=*/"art_is_exception_pending_from_code", mod); // (external, no body)
397func_art_is_exception_pending_from_code->setCallingConv(CallingConv::C);
398}
399AttrListPtr func_art_is_exception_pending_from_code_PAL;
400func_art_is_exception_pending_from_code->setAttributes(func_art_is_exception_pending_from_code_PAL);
401
402Function* func_art_throw_div_zero_from_code = mod->getFunction("art_throw_div_zero_from_code");
403if (!func_art_throw_div_zero_from_code) {
404func_art_throw_div_zero_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800405 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800406 /*Linkage=*/GlobalValue::ExternalLinkage,
407 /*Name=*/"art_throw_div_zero_from_code", mod); // (external, no body)
408func_art_throw_div_zero_from_code->setCallingConv(CallingConv::C);
409}
410AttrListPtr func_art_throw_div_zero_from_code_PAL;
411func_art_throw_div_zero_from_code->setAttributes(func_art_throw_div_zero_from_code_PAL);
412
413Function* func_art_throw_array_bounds_from_code = mod->getFunction("art_throw_array_bounds_from_code");
414if (!func_art_throw_array_bounds_from_code) {
415func_art_throw_array_bounds_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800416 /*Type=*/FuncTy_8,
Logan Chien42e0e152012-01-13 15:42:36 +0800417 /*Linkage=*/GlobalValue::ExternalLinkage,
418 /*Name=*/"art_throw_array_bounds_from_code", mod); // (external, no body)
419func_art_throw_array_bounds_from_code->setCallingConv(CallingConv::C);
420}
421AttrListPtr func_art_throw_array_bounds_from_code_PAL;
422func_art_throw_array_bounds_from_code->setAttributes(func_art_throw_array_bounds_from_code_PAL);
423
424Function* func_art_throw_no_such_method_from_code = mod->getFunction("art_throw_no_such_method_from_code");
425if (!func_art_throw_no_such_method_from_code) {
426func_art_throw_no_such_method_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800427 /*Type=*/FuncTy_9,
Logan Chien42e0e152012-01-13 15:42:36 +0800428 /*Linkage=*/GlobalValue::ExternalLinkage,
429 /*Name=*/"art_throw_no_such_method_from_code", mod); // (external, no body)
430func_art_throw_no_such_method_from_code->setCallingConv(CallingConv::C);
431}
432AttrListPtr func_art_throw_no_such_method_from_code_PAL;
433func_art_throw_no_such_method_from_code->setAttributes(func_art_throw_no_such_method_from_code_PAL);
434
435Function* func_art_throw_null_pointer_exception_from_code = mod->getFunction("art_throw_null_pointer_exception_from_code");
436if (!func_art_throw_null_pointer_exception_from_code) {
437func_art_throw_null_pointer_exception_from_code = Function::Create(
TDYa1273f9137d2012-04-08 15:59:19 -0700438 /*Type=*/FuncTy_9,
Logan Chien42e0e152012-01-13 15:42:36 +0800439 /*Linkage=*/GlobalValue::ExternalLinkage,
440 /*Name=*/"art_throw_null_pointer_exception_from_code", mod); // (external, no body)
441func_art_throw_null_pointer_exception_from_code->setCallingConv(CallingConv::C);
442}
443AttrListPtr func_art_throw_null_pointer_exception_from_code_PAL;
444func_art_throw_null_pointer_exception_from_code->setAttributes(func_art_throw_null_pointer_exception_from_code_PAL);
445
446Function* func_art_throw_stack_overflow_from_code = mod->getFunction("art_throw_stack_overflow_from_code");
447if (!func_art_throw_stack_overflow_from_code) {
448func_art_throw_stack_overflow_from_code = Function::Create(
TDYa1274165a832012-04-03 17:47:16 -0700449 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800450 /*Linkage=*/GlobalValue::ExternalLinkage,
451 /*Name=*/"art_throw_stack_overflow_from_code", mod); // (external, no body)
452func_art_throw_stack_overflow_from_code->setCallingConv(CallingConv::C);
453}
454AttrListPtr func_art_throw_stack_overflow_from_code_PAL;
455func_art_throw_stack_overflow_from_code->setAttributes(func_art_throw_stack_overflow_from_code_PAL);
456
457Function* func_art_throw_exception_from_code = mod->getFunction("art_throw_exception_from_code");
458if (!func_art_throw_exception_from_code) {
459func_art_throw_exception_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800460 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800461 /*Linkage=*/GlobalValue::ExternalLinkage,
462 /*Name=*/"art_throw_exception_from_code", mod); // (external, no body)
463func_art_throw_exception_from_code->setCallingConv(CallingConv::C);
464}
465AttrListPtr func_art_throw_exception_from_code_PAL;
466func_art_throw_exception_from_code->setAttributes(func_art_throw_exception_from_code_PAL);
467
Logan Chien9e5f5c12012-04-10 13:51:45 +0800468Function* func_art_throw_verification_error_from_code = mod->getFunction("art_throw_verification_error_from_code");
469if (!func_art_throw_verification_error_from_code) {
470func_art_throw_verification_error_from_code = Function::Create(
471 /*Type=*/FuncTy_10,
472 /*Linkage=*/GlobalValue::ExternalLinkage,
473 /*Name=*/"art_throw_verification_error_from_code", mod); // (external, no body)
474func_art_throw_verification_error_from_code->setCallingConv(CallingConv::C);
475}
476AttrListPtr func_art_throw_verification_error_from_code_PAL;
477func_art_throw_verification_error_from_code->setAttributes(func_art_throw_verification_error_from_code_PAL);
478
Logan Chien42e0e152012-01-13 15:42:36 +0800479Function* func_art_find_catch_block_from_code = mod->getFunction("art_find_catch_block_from_code");
480if (!func_art_find_catch_block_from_code) {
481func_art_find_catch_block_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800482 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800483 /*Linkage=*/GlobalValue::ExternalLinkage,
484 /*Name=*/"art_find_catch_block_from_code", mod); // (external, no body)
485func_art_find_catch_block_from_code->setCallingConv(CallingConv::C);
486}
487AttrListPtr func_art_find_catch_block_from_code_PAL;
488func_art_find_catch_block_from_code->setAttributes(func_art_find_catch_block_from_code_PAL);
489
490Function* func_art_alloc_object_from_code = mod->getFunction("art_alloc_object_from_code");
491if (!func_art_alloc_object_from_code) {
492func_art_alloc_object_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800493 /*Type=*/FuncTy_12,
Logan Chien42e0e152012-01-13 15:42:36 +0800494 /*Linkage=*/GlobalValue::ExternalLinkage,
495 /*Name=*/"art_alloc_object_from_code", mod); // (external, no body)
496func_art_alloc_object_from_code->setCallingConv(CallingConv::C);
497}
498AttrListPtr func_art_alloc_object_from_code_PAL;
499func_art_alloc_object_from_code->setAttributes(func_art_alloc_object_from_code_PAL);
500
501Function* func_art_alloc_object_from_code_with_access_check = mod->getFunction("art_alloc_object_from_code_with_access_check");
502if (!func_art_alloc_object_from_code_with_access_check) {
503func_art_alloc_object_from_code_with_access_check = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800504 /*Type=*/FuncTy_12,
Logan Chien42e0e152012-01-13 15:42:36 +0800505 /*Linkage=*/GlobalValue::ExternalLinkage,
506 /*Name=*/"art_alloc_object_from_code_with_access_check", mod); // (external, no body)
507func_art_alloc_object_from_code_with_access_check->setCallingConv(CallingConv::C);
508}
509AttrListPtr func_art_alloc_object_from_code_with_access_check_PAL;
510func_art_alloc_object_from_code_with_access_check->setAttributes(func_art_alloc_object_from_code_with_access_check_PAL);
511
512Function* func_art_alloc_array_from_code = mod->getFunction("art_alloc_array_from_code");
513if (!func_art_alloc_array_from_code) {
514func_art_alloc_array_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800515 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800516 /*Linkage=*/GlobalValue::ExternalLinkage,
517 /*Name=*/"art_alloc_array_from_code", mod); // (external, no body)
518func_art_alloc_array_from_code->setCallingConv(CallingConv::C);
519}
520AttrListPtr func_art_alloc_array_from_code_PAL;
521func_art_alloc_array_from_code->setAttributes(func_art_alloc_array_from_code_PAL);
522
523Function* func_art_alloc_array_from_code_with_access_check = mod->getFunction("art_alloc_array_from_code_with_access_check");
524if (!func_art_alloc_array_from_code_with_access_check) {
525func_art_alloc_array_from_code_with_access_check = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800526 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800527 /*Linkage=*/GlobalValue::ExternalLinkage,
528 /*Name=*/"art_alloc_array_from_code_with_access_check", mod); // (external, no body)
529func_art_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
530}
531AttrListPtr func_art_alloc_array_from_code_with_access_check_PAL;
532func_art_alloc_array_from_code_with_access_check->setAttributes(func_art_alloc_array_from_code_with_access_check_PAL);
533
534Function* func_art_check_and_alloc_array_from_code = mod->getFunction("art_check_and_alloc_array_from_code");
535if (!func_art_check_and_alloc_array_from_code) {
536func_art_check_and_alloc_array_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800537 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800538 /*Linkage=*/GlobalValue::ExternalLinkage,
539 /*Name=*/"art_check_and_alloc_array_from_code", mod); // (external, no body)
540func_art_check_and_alloc_array_from_code->setCallingConv(CallingConv::C);
541}
542AttrListPtr func_art_check_and_alloc_array_from_code_PAL;
543func_art_check_and_alloc_array_from_code->setAttributes(func_art_check_and_alloc_array_from_code_PAL);
544
545Function* func_art_check_and_alloc_array_from_code_with_access_check = mod->getFunction("art_check_and_alloc_array_from_code_with_access_check");
546if (!func_art_check_and_alloc_array_from_code_with_access_check) {
547func_art_check_and_alloc_array_from_code_with_access_check = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800548 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800549 /*Linkage=*/GlobalValue::ExternalLinkage,
550 /*Name=*/"art_check_and_alloc_array_from_code_with_access_check", mod); // (external, no body)
551func_art_check_and_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
552}
553AttrListPtr func_art_check_and_alloc_array_from_code_with_access_check_PAL;
554func_art_check_and_alloc_array_from_code_with_access_check->setAttributes(func_art_check_and_alloc_array_from_code_with_access_check_PAL);
555
Logan Chien42e0e152012-01-13 15:42:36 +0800556Function* func_art_find_instance_field_from_code = mod->getFunction("art_find_instance_field_from_code");
557if (!func_art_find_instance_field_from_code) {
558func_art_find_instance_field_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800559 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800560 /*Linkage=*/GlobalValue::ExternalLinkage,
561 /*Name=*/"art_find_instance_field_from_code", mod); // (external, no body)
562func_art_find_instance_field_from_code->setCallingConv(CallingConv::C);
563}
564AttrListPtr func_art_find_instance_field_from_code_PAL;
565func_art_find_instance_field_from_code->setAttributes(func_art_find_instance_field_from_code_PAL);
566
567Function* func_art_find_static_field_from_code = mod->getFunction("art_find_static_field_from_code");
568if (!func_art_find_static_field_from_code) {
569func_art_find_static_field_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800570 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800571 /*Linkage=*/GlobalValue::ExternalLinkage,
572 /*Name=*/"art_find_static_field_from_code", mod); // (external, no body)
573func_art_find_static_field_from_code->setCallingConv(CallingConv::C);
574}
575AttrListPtr func_art_find_static_field_from_code_PAL;
576func_art_find_static_field_from_code->setAttributes(func_art_find_static_field_from_code_PAL);
577
Logan Chien7e7fabc2012-04-10 18:59:11 +0800578Function* func_art_find_static_method_from_code_with_access_check = mod->getFunction("art_find_static_method_from_code_with_access_check");
579if (!func_art_find_static_method_from_code_with_access_check) {
580func_art_find_static_method_from_code_with_access_check = Function::Create(
581 /*Type=*/FuncTy_15,
582 /*Linkage=*/GlobalValue::ExternalLinkage,
583 /*Name=*/"art_find_static_method_from_code_with_access_check", mod); // (external, no body)
584func_art_find_static_method_from_code_with_access_check->setCallingConv(CallingConv::C);
585}
586AttrListPtr func_art_find_static_method_from_code_with_access_check_PAL;
587func_art_find_static_method_from_code_with_access_check->setAttributes(func_art_find_static_method_from_code_with_access_check_PAL);
588
589Function* func_art_find_direct_method_from_code_with_access_check = mod->getFunction("art_find_direct_method_from_code_with_access_check");
590if (!func_art_find_direct_method_from_code_with_access_check) {
591func_art_find_direct_method_from_code_with_access_check = Function::Create(
592 /*Type=*/FuncTy_15,
593 /*Linkage=*/GlobalValue::ExternalLinkage,
594 /*Name=*/"art_find_direct_method_from_code_with_access_check", mod); // (external, no body)
595func_art_find_direct_method_from_code_with_access_check->setCallingConv(CallingConv::C);
596}
597AttrListPtr func_art_find_direct_method_from_code_with_access_check_PAL;
598func_art_find_direct_method_from_code_with_access_check->setAttributes(func_art_find_direct_method_from_code_with_access_check_PAL);
599
600Function* func_art_find_virtual_method_from_code_with_access_check = mod->getFunction("art_find_virtual_method_from_code_with_access_check");
601if (!func_art_find_virtual_method_from_code_with_access_check) {
602func_art_find_virtual_method_from_code_with_access_check = Function::Create(
603 /*Type=*/FuncTy_15,
604 /*Linkage=*/GlobalValue::ExternalLinkage,
605 /*Name=*/"art_find_virtual_method_from_code_with_access_check", mod); // (external, no body)
606func_art_find_virtual_method_from_code_with_access_check->setCallingConv(CallingConv::C);
607}
608AttrListPtr func_art_find_virtual_method_from_code_with_access_check_PAL;
609func_art_find_virtual_method_from_code_with_access_check->setAttributes(func_art_find_virtual_method_from_code_with_access_check_PAL);
610
611Function* func_art_find_super_method_from_code_with_access_check = mod->getFunction("art_find_super_method_from_code_with_access_check");
612if (!func_art_find_super_method_from_code_with_access_check) {
613func_art_find_super_method_from_code_with_access_check = Function::Create(
614 /*Type=*/FuncTy_15,
615 /*Linkage=*/GlobalValue::ExternalLinkage,
616 /*Name=*/"art_find_super_method_from_code_with_access_check", mod); // (external, no body)
617func_art_find_super_method_from_code_with_access_check->setCallingConv(CallingConv::C);
618}
619AttrListPtr func_art_find_super_method_from_code_with_access_check_PAL;
620func_art_find_super_method_from_code_with_access_check->setAttributes(func_art_find_super_method_from_code_with_access_check_PAL);
621
622Function* func_art_find_interface_method_from_code_with_access_check = mod->getFunction("art_find_interface_method_from_code_with_access_check");
623if (!func_art_find_interface_method_from_code_with_access_check) {
624func_art_find_interface_method_from_code_with_access_check = Function::Create(
625 /*Type=*/FuncTy_15,
626 /*Linkage=*/GlobalValue::ExternalLinkage,
627 /*Name=*/"art_find_interface_method_from_code_with_access_check", mod); // (external, no body)
628func_art_find_interface_method_from_code_with_access_check->setCallingConv(CallingConv::C);
629}
630AttrListPtr func_art_find_interface_method_from_code_with_access_check_PAL;
631func_art_find_interface_method_from_code_with_access_check->setAttributes(func_art_find_interface_method_from_code_with_access_check_PAL);
632
Logan Chien42e0e152012-01-13 15:42:36 +0800633Function* func_art_find_interface_method_from_code = mod->getFunction("art_find_interface_method_from_code");
634if (!func_art_find_interface_method_from_code) {
635func_art_find_interface_method_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800636 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800637 /*Linkage=*/GlobalValue::ExternalLinkage,
638 /*Name=*/"art_find_interface_method_from_code", mod); // (external, no body)
639func_art_find_interface_method_from_code->setCallingConv(CallingConv::C);
640}
641AttrListPtr func_art_find_interface_method_from_code_PAL;
642func_art_find_interface_method_from_code->setAttributes(func_art_find_interface_method_from_code_PAL);
643
644Function* func_art_initialize_static_storage_from_code = mod->getFunction("art_initialize_static_storage_from_code");
645if (!func_art_initialize_static_storage_from_code) {
646func_art_initialize_static_storage_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800647 /*Type=*/FuncTy_12,
Logan Chien42e0e152012-01-13 15:42:36 +0800648 /*Linkage=*/GlobalValue::ExternalLinkage,
649 /*Name=*/"art_initialize_static_storage_from_code", mod); // (external, no body)
650func_art_initialize_static_storage_from_code->setCallingConv(CallingConv::C);
651}
652AttrListPtr func_art_initialize_static_storage_from_code_PAL;
653func_art_initialize_static_storage_from_code->setAttributes(func_art_initialize_static_storage_from_code_PAL);
654
655Function* func_art_initialize_type_from_code = mod->getFunction("art_initialize_type_from_code");
656if (!func_art_initialize_type_from_code) {
657func_art_initialize_type_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800658 /*Type=*/FuncTy_12,
Logan Chien42e0e152012-01-13 15:42:36 +0800659 /*Linkage=*/GlobalValue::ExternalLinkage,
660 /*Name=*/"art_initialize_type_from_code", mod); // (external, no body)
661func_art_initialize_type_from_code->setCallingConv(CallingConv::C);
662}
663AttrListPtr func_art_initialize_type_from_code_PAL;
664func_art_initialize_type_from_code->setAttributes(func_art_initialize_type_from_code_PAL);
665
666Function* func_art_initialize_type_and_verify_access_from_code = mod->getFunction("art_initialize_type_and_verify_access_from_code");
667if (!func_art_initialize_type_and_verify_access_from_code) {
668func_art_initialize_type_and_verify_access_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800669 /*Type=*/FuncTy_12,
Logan Chien42e0e152012-01-13 15:42:36 +0800670 /*Linkage=*/GlobalValue::ExternalLinkage,
671 /*Name=*/"art_initialize_type_and_verify_access_from_code", mod); // (external, no body)
672func_art_initialize_type_and_verify_access_from_code->setCallingConv(CallingConv::C);
673}
674AttrListPtr func_art_initialize_type_and_verify_access_from_code_PAL;
675func_art_initialize_type_and_verify_access_from_code->setAttributes(func_art_initialize_type_and_verify_access_from_code_PAL);
676
677Function* func_art_resolve_string_from_code = mod->getFunction("art_resolve_string_from_code");
678if (!func_art_resolve_string_from_code) {
679func_art_resolve_string_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800680 /*Type=*/FuncTy_16,
Logan Chien42e0e152012-01-13 15:42:36 +0800681 /*Linkage=*/GlobalValue::ExternalLinkage,
682 /*Name=*/"art_resolve_string_from_code", mod); // (external, no body)
683func_art_resolve_string_from_code->setCallingConv(CallingConv::C);
684}
685AttrListPtr func_art_resolve_string_from_code_PAL;
686func_art_resolve_string_from_code->setAttributes(func_art_resolve_string_from_code_PAL);
687
Logan Chien42e0e152012-01-13 15:42:36 +0800688Function* func_art_set32_static_from_code = mod->getFunction("art_set32_static_from_code");
689if (!func_art_set32_static_from_code) {
690func_art_set32_static_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800691 /*Type=*/FuncTy_17,
Logan Chien42e0e152012-01-13 15:42:36 +0800692 /*Linkage=*/GlobalValue::ExternalLinkage,
693 /*Name=*/"art_set32_static_from_code", mod); // (external, no body)
694func_art_set32_static_from_code->setCallingConv(CallingConv::C);
695}
696AttrListPtr func_art_set32_static_from_code_PAL;
697func_art_set32_static_from_code->setAttributes(func_art_set32_static_from_code_PAL);
698
699Function* func_art_set64_static_from_code = mod->getFunction("art_set64_static_from_code");
700if (!func_art_set64_static_from_code) {
701func_art_set64_static_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800702 /*Type=*/FuncTy_18,
Logan Chien42e0e152012-01-13 15:42:36 +0800703 /*Linkage=*/GlobalValue::ExternalLinkage,
704 /*Name=*/"art_set64_static_from_code", mod); // (external, no body)
705func_art_set64_static_from_code->setCallingConv(CallingConv::C);
706}
707AttrListPtr func_art_set64_static_from_code_PAL;
708func_art_set64_static_from_code->setAttributes(func_art_set64_static_from_code_PAL);
709
710Function* func_art_set_obj_static_from_code = mod->getFunction("art_set_obj_static_from_code");
711if (!func_art_set_obj_static_from_code) {
712func_art_set_obj_static_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800713 /*Type=*/FuncTy_19,
Logan Chien42e0e152012-01-13 15:42:36 +0800714 /*Linkage=*/GlobalValue::ExternalLinkage,
715 /*Name=*/"art_set_obj_static_from_code", mod); // (external, no body)
716func_art_set_obj_static_from_code->setCallingConv(CallingConv::C);
717}
718AttrListPtr func_art_set_obj_static_from_code_PAL;
719func_art_set_obj_static_from_code->setAttributes(func_art_set_obj_static_from_code_PAL);
720
721Function* func_art_get32_static_from_code = mod->getFunction("art_get32_static_from_code");
722if (!func_art_get32_static_from_code) {
723func_art_get32_static_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800724 /*Type=*/FuncTy_20,
Logan Chien42e0e152012-01-13 15:42:36 +0800725 /*Linkage=*/GlobalValue::ExternalLinkage,
726 /*Name=*/"art_get32_static_from_code", mod); // (external, no body)
727func_art_get32_static_from_code->setCallingConv(CallingConv::C);
728}
729AttrListPtr func_art_get32_static_from_code_PAL;
730func_art_get32_static_from_code->setAttributes(func_art_get32_static_from_code_PAL);
731
732Function* func_art_get64_static_from_code = mod->getFunction("art_get64_static_from_code");
733if (!func_art_get64_static_from_code) {
734func_art_get64_static_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800735 /*Type=*/FuncTy_21,
Logan Chien42e0e152012-01-13 15:42:36 +0800736 /*Linkage=*/GlobalValue::ExternalLinkage,
737 /*Name=*/"art_get64_static_from_code", mod); // (external, no body)
738func_art_get64_static_from_code->setCallingConv(CallingConv::C);
739}
740AttrListPtr func_art_get64_static_from_code_PAL;
741func_art_get64_static_from_code->setAttributes(func_art_get64_static_from_code_PAL);
742
743Function* func_art_get_obj_static_from_code = mod->getFunction("art_get_obj_static_from_code");
744if (!func_art_get_obj_static_from_code) {
745func_art_get_obj_static_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800746 /*Type=*/FuncTy_12,
Logan Chien42e0e152012-01-13 15:42:36 +0800747 /*Linkage=*/GlobalValue::ExternalLinkage,
748 /*Name=*/"art_get_obj_static_from_code", mod); // (external, no body)
749func_art_get_obj_static_from_code->setCallingConv(CallingConv::C);
750}
751AttrListPtr func_art_get_obj_static_from_code_PAL;
752func_art_get_obj_static_from_code->setAttributes(func_art_get_obj_static_from_code_PAL);
753
754Function* func_art_set32_instance_from_code = mod->getFunction("art_set32_instance_from_code");
755if (!func_art_set32_instance_from_code) {
756func_art_set32_instance_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800757 /*Type=*/FuncTy_22,
Logan Chien42e0e152012-01-13 15:42:36 +0800758 /*Linkage=*/GlobalValue::ExternalLinkage,
759 /*Name=*/"art_set32_instance_from_code", mod); // (external, no body)
760func_art_set32_instance_from_code->setCallingConv(CallingConv::C);
761}
762AttrListPtr func_art_set32_instance_from_code_PAL;
763func_art_set32_instance_from_code->setAttributes(func_art_set32_instance_from_code_PAL);
764
765Function* func_art_set64_instance_from_code = mod->getFunction("art_set64_instance_from_code");
766if (!func_art_set64_instance_from_code) {
767func_art_set64_instance_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800768 /*Type=*/FuncTy_23,
Logan Chien42e0e152012-01-13 15:42:36 +0800769 /*Linkage=*/GlobalValue::ExternalLinkage,
770 /*Name=*/"art_set64_instance_from_code", mod); // (external, no body)
771func_art_set64_instance_from_code->setCallingConv(CallingConv::C);
772}
773AttrListPtr func_art_set64_instance_from_code_PAL;
774func_art_set64_instance_from_code->setAttributes(func_art_set64_instance_from_code_PAL);
775
776Function* func_art_set_obj_instance_from_code = mod->getFunction("art_set_obj_instance_from_code");
777if (!func_art_set_obj_instance_from_code) {
778func_art_set_obj_instance_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800779 /*Type=*/FuncTy_24,
Logan Chien42e0e152012-01-13 15:42:36 +0800780 /*Linkage=*/GlobalValue::ExternalLinkage,
781 /*Name=*/"art_set_obj_instance_from_code", mod); // (external, no body)
782func_art_set_obj_instance_from_code->setCallingConv(CallingConv::C);
783}
784AttrListPtr func_art_set_obj_instance_from_code_PAL;
785func_art_set_obj_instance_from_code->setAttributes(func_art_set_obj_instance_from_code_PAL);
786
787Function* func_art_get32_instance_from_code = mod->getFunction("art_get32_instance_from_code");
788if (!func_art_get32_instance_from_code) {
789func_art_get32_instance_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800790 /*Type=*/FuncTy_19,
Logan Chien42e0e152012-01-13 15:42:36 +0800791 /*Linkage=*/GlobalValue::ExternalLinkage,
792 /*Name=*/"art_get32_instance_from_code", mod); // (external, no body)
793func_art_get32_instance_from_code->setCallingConv(CallingConv::C);
794}
795AttrListPtr func_art_get32_instance_from_code_PAL;
796func_art_get32_instance_from_code->setAttributes(func_art_get32_instance_from_code_PAL);
797
798Function* func_art_get64_instance_from_code = mod->getFunction("art_get64_instance_from_code");
799if (!func_art_get64_instance_from_code) {
800func_art_get64_instance_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800801 /*Type=*/FuncTy_25,
Logan Chien42e0e152012-01-13 15:42:36 +0800802 /*Linkage=*/GlobalValue::ExternalLinkage,
803 /*Name=*/"art_get64_instance_from_code", mod); // (external, no body)
804func_art_get64_instance_from_code->setCallingConv(CallingConv::C);
805}
806AttrListPtr func_art_get64_instance_from_code_PAL;
807func_art_get64_instance_from_code->setAttributes(func_art_get64_instance_from_code_PAL);
808
809Function* func_art_get_obj_instance_from_code = mod->getFunction("art_get_obj_instance_from_code");
810if (!func_art_get_obj_instance_from_code) {
811func_art_get_obj_instance_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800812 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800813 /*Linkage=*/GlobalValue::ExternalLinkage,
814 /*Name=*/"art_get_obj_instance_from_code", mod); // (external, no body)
815func_art_get_obj_instance_from_code->setCallingConv(CallingConv::C);
816}
817AttrListPtr func_art_get_obj_instance_from_code_PAL;
818func_art_get_obj_instance_from_code->setAttributes(func_art_get_obj_instance_from_code_PAL);
819
TDYa12728f1a142012-03-15 21:51:52 -0700820Function* func_art_decode_jobject_in_thread = mod->getFunction("art_decode_jobject_in_thread");
821if (!func_art_decode_jobject_in_thread) {
822func_art_decode_jobject_in_thread = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800823 /*Type=*/FuncTy_26,
TDYa12728f1a142012-03-15 21:51:52 -0700824 /*Linkage=*/GlobalValue::ExternalLinkage,
825 /*Name=*/"art_decode_jobject_in_thread", mod); // (external, no body)
826func_art_decode_jobject_in_thread->setCallingConv(CallingConv::C);
827}
828AttrListPtr func_art_decode_jobject_in_thread_PAL;
829func_art_decode_jobject_in_thread->setAttributes(func_art_decode_jobject_in_thread_PAL);
830
Logan Chien42e0e152012-01-13 15:42:36 +0800831Function* func_art_is_assignable_from_code = mod->getFunction("art_is_assignable_from_code");
832if (!func_art_is_assignable_from_code) {
833func_art_is_assignable_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800834 /*Type=*/FuncTy_27,
Logan Chien42e0e152012-01-13 15:42:36 +0800835 /*Linkage=*/GlobalValue::ExternalLinkage,
836 /*Name=*/"art_is_assignable_from_code", mod); // (external, no body)
837func_art_is_assignable_from_code->setCallingConv(CallingConv::C);
838}
839AttrListPtr func_art_is_assignable_from_code_PAL;
840func_art_is_assignable_from_code->setAttributes(func_art_is_assignable_from_code_PAL);
841
842Function* func_art_check_cast_from_code = mod->getFunction("art_check_cast_from_code");
843if (!func_art_check_cast_from_code) {
844func_art_check_cast_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800845 /*Type=*/FuncTy_28,
Logan Chien42e0e152012-01-13 15:42:36 +0800846 /*Linkage=*/GlobalValue::ExternalLinkage,
847 /*Name=*/"art_check_cast_from_code", mod); // (external, no body)
848func_art_check_cast_from_code->setCallingConv(CallingConv::C);
849}
850AttrListPtr func_art_check_cast_from_code_PAL;
851func_art_check_cast_from_code->setAttributes(func_art_check_cast_from_code_PAL);
852
TDYa1271b86d072012-04-05 17:38:56 -0700853Function* func_art_check_put_array_element_from_code = mod->getFunction("art_check_put_array_element_from_code");
854if (!func_art_check_put_array_element_from_code) {
855func_art_check_put_array_element_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800856 /*Type=*/FuncTy_28,
TDYa1271b86d072012-04-05 17:38:56 -0700857 /*Linkage=*/GlobalValue::ExternalLinkage,
858 /*Name=*/"art_check_put_array_element_from_code", mod); // (external, no body)
859func_art_check_put_array_element_from_code->setCallingConv(CallingConv::C);
860}
861AttrListPtr func_art_check_put_array_element_from_code_PAL;
862func_art_check_put_array_element_from_code->setAttributes(func_art_check_put_array_element_from_code_PAL);
863
TDYa12785321912012-04-01 15:24:56 -0700864Function* func_art_ensure_resolved_from_code = mod->getFunction("art_ensure_resolved_from_code");
865if (!func_art_ensure_resolved_from_code) {
866func_art_ensure_resolved_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800867 /*Type=*/FuncTy_29,
TDYa12785321912012-04-01 15:24:56 -0700868 /*Linkage=*/GlobalValue::ExternalLinkage,
869 /*Name=*/"art_ensure_resolved_from_code", mod); // (external, no body)
870func_art_ensure_resolved_from_code->setCallingConv(CallingConv::C);
871}
872AttrListPtr func_art_ensure_resolved_from_code_PAL;
873func_art_ensure_resolved_from_code->setAttributes(func_art_ensure_resolved_from_code_PAL);
874
TDYa1270b686e52012-04-09 22:43:35 -0700875Function* func_art_fix_stub_from_code = mod->getFunction("art_fix_stub_from_code");
876if (!func_art_fix_stub_from_code) {
877func_art_fix_stub_from_code = Function::Create(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800878 /*Type=*/FuncTy_30,
TDYa12785321912012-04-01 15:24:56 -0700879 /*Linkage=*/GlobalValue::ExternalLinkage,
TDYa1270b686e52012-04-09 22:43:35 -0700880 /*Name=*/"art_fix_stub_from_code", mod); // (external, no body)
881func_art_fix_stub_from_code->setCallingConv(CallingConv::C);
TDYa12785321912012-04-01 15:24:56 -0700882}
TDYa1270b686e52012-04-09 22:43:35 -0700883AttrListPtr func_art_fix_stub_from_code_PAL;
884func_art_fix_stub_from_code->setAttributes(func_art_fix_stub_from_code_PAL);
TDYa12785321912012-04-01 15:24:56 -0700885
TDYa1275bb86012012-04-11 05:57:28 -0700886Function* func_art_proxy_invoke_handler_from_code = mod->getFunction("art_proxy_invoke_handler_from_code");
887if (!func_art_proxy_invoke_handler_from_code) {
888func_art_proxy_invoke_handler_from_code = Function::Create(
889 /*Type=*/FuncTy_31,
890 /*Linkage=*/GlobalValue::ExternalLinkage,
891 /*Name=*/"art_proxy_invoke_handler_from_code", mod); // (external, no body)
892func_art_proxy_invoke_handler_from_code->setCallingConv(CallingConv::C);
893}
894AttrListPtr func_art_proxy_invoke_handler_from_code_PAL;
895func_art_proxy_invoke_handler_from_code->setAttributes(func_art_proxy_invoke_handler_from_code_PAL);
896
Logan Chien42e0e152012-01-13 15:42:36 +0800897// Global Variable Declarations
898
899
900// Constant Definitions
901
902// Global Variable Definitions
903
904// Function Definitions
905
906return mod;
907
908}
Logan Chiene75a8cc2012-02-24 12:26:43 +0800909
910} // namespace compiler_llvm
911} // namespace art