blob: 1237ec05be3bcacc188170b13ca96fd3d803cee1 [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;
TDYa127706e9b62012-04-19 12:24:26 -070078FuncTy_5_args.push_back(PointerTy_1);
79FuncTy_5_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +080080FunctionType* FuncTy_5 = FunctionType::get(
81 /*Result=*/Type::getVoidTy(mod->getContext()),
82 /*Params=*/FuncTy_5_args,
83 /*isVarArg=*/false);
84
85std::vector<Type*>FuncTy_6_args;
TDYa127853cd092012-04-21 22:15:31 -070086FuncTy_6_args.push_back(PointerTy_2);
Logan Chien42e0e152012-01-13 15:42:36 +080087FunctionType* FuncTy_6 = FunctionType::get(
88 /*Result=*/Type::getVoidTy(mod->getContext()),
89 /*Params=*/FuncTy_6_args,
90 /*isVarArg=*/false);
91
92std::vector<Type*>FuncTy_7_args;
Logan Chien42e0e152012-01-13 15:42:36 +080093FunctionType* FuncTy_7 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -070094 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +080095 /*Params=*/FuncTy_7_args,
96 /*isVarArg=*/false);
97
98std::vector<Type*>FuncTy_8_args;
Logan Chien42e0e152012-01-13 15:42:36 +080099FunctionType* FuncTy_8 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700100 /*Result=*/IntegerType::get(mod->getContext(), 1),
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));
TDYa127706e9b62012-04-19 12:24:26 -0700106FuncTy_9_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800107FunctionType* FuncTy_9 = FunctionType::get(
Logan Chien3f71e702012-02-17 18:45:27 +0800108 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800109 /*Params=*/FuncTy_9_args,
110 /*isVarArg=*/false);
111
112std::vector<Type*>FuncTy_10_args;
Logan Chien9e5f5c12012-04-10 13:51:45 +0800113FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800114FunctionType* FuncTy_10 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800115 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800116 /*Params=*/FuncTy_10_args,
117 /*isVarArg=*/false);
118
119std::vector<Type*>FuncTy_11_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800120FuncTy_11_args.push_back(PointerTy_1);
Logan Chien9e5f5c12012-04-10 13:51:45 +0800121FuncTy_11_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa127706e9b62012-04-19 12:24:26 -0700122FuncTy_11_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800123FunctionType* FuncTy_11 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700124 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800125 /*Params=*/FuncTy_11_args,
126 /*isVarArg=*/false);
127
128std::vector<Type*>FuncTy_12_args;
TDYa127706e9b62012-04-19 12:24:26 -0700129FuncTy_12_args.push_back(PointerTy_1);
Logan Chien3f71e702012-02-17 18:45:27 +0800130FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800131FunctionType* FuncTy_12 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700132 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800133 /*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);
TDYa127da83d972012-04-18 00:21:49 -0700139FuncTy_13_args.push_back(PointerTy_1);
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);
TDYa127706e9b62012-04-19 12:24:26 -0700148FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 32));
149FuncTy_14_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800150FunctionType* FuncTy_14 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700151 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800152 /*Params=*/FuncTy_14_args,
153 /*isVarArg=*/false);
154
155std::vector<Type*>FuncTy_15_args;
156FuncTy_15_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien9e5f5c12012-04-10 13:51:45 +0800157FuncTy_15_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800158FunctionType* FuncTy_15 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700159 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800160 /*Params=*/FuncTy_15_args,
161 /*isVarArg=*/false);
162
163std::vector<Type*>FuncTy_16_args;
Logan Chien1b0a1b72012-03-15 06:20:17 +0800164FuncTy_16_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa127da83d972012-04-18 00:21:49 -0700165FuncTy_16_args.push_back(PointerTy_1);
TDYa127706e9b62012-04-19 12:24:26 -0700166FuncTy_16_args.push_back(PointerTy_1);
167FuncTy_16_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800168FunctionType* FuncTy_16 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800169 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800170 /*Params=*/FuncTy_16_args,
171 /*isVarArg=*/false);
172
173std::vector<Type*>FuncTy_17_args;
Logan Chien42e0e152012-01-13 15:42:36 +0800174FuncTy_17_args.push_back(PointerTy_1);
Logan Chien9e5f5c12012-04-10 13:51:45 +0800175FuncTy_17_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800176FunctionType* FuncTy_17 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700177 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800178 /*Params=*/FuncTy_17_args,
179 /*isVarArg=*/false);
180
181std::vector<Type*>FuncTy_18_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800182FuncTy_18_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800183FuncTy_18_args.push_back(PointerTy_1);
TDYa127da83d972012-04-18 00:21:49 -0700184FuncTy_18_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800185FunctionType* FuncTy_18 = FunctionType::get(
186 /*Result=*/IntegerType::get(mod->getContext(), 32),
187 /*Params=*/FuncTy_18_args,
188 /*isVarArg=*/false);
189
190std::vector<Type*>FuncTy_19_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800191FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800192FuncTy_19_args.push_back(PointerTy_1);
TDYa127da83d972012-04-18 00:21:49 -0700193FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 64));
Logan Chien42e0e152012-01-13 15:42:36 +0800194FunctionType* FuncTy_19 = FunctionType::get(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800195 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800196 /*Params=*/FuncTy_19_args,
197 /*isVarArg=*/false);
198
Logan Chien3f71e702012-02-17 18:45:27 +0800199std::vector<Type*>FuncTy_20_args;
Logan Chien3b2b2e72012-03-06 16:11:45 +0800200FuncTy_20_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chiena6b2ca62012-03-06 15:50:54 +0800201FuncTy_20_args.push_back(PointerTy_1);
TDYa127da83d972012-04-18 00:21:49 -0700202FuncTy_20_args.push_back(PointerTy_1);
Logan Chien3f71e702012-02-17 18:45:27 +0800203FunctionType* FuncTy_20 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800204 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3f71e702012-02-17 18:45:27 +0800205 /*Params=*/FuncTy_20_args,
206 /*isVarArg=*/false);
207
208std::vector<Type*>FuncTy_21_args;
Logan Chien3b2b2e72012-03-06 16:11:45 +0800209FuncTy_21_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3f71e702012-02-17 18:45:27 +0800210FuncTy_21_args.push_back(PointerTy_1);
Logan Chien3f71e702012-02-17 18:45:27 +0800211FunctionType* FuncTy_21 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700212 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chiena6b2ca62012-03-06 15:50:54 +0800213 /*Params=*/FuncTy_21_args,
Logan Chien3f71e702012-02-17 18:45:27 +0800214 /*isVarArg=*/false);
215
Logan Chien3b2b2e72012-03-06 16:11:45 +0800216std::vector<Type*>FuncTy_22_args;
217FuncTy_22_args.push_back(IntegerType::get(mod->getContext(), 32));
218FuncTy_22_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800219FunctionType* FuncTy_22 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700220 /*Result=*/IntegerType::get(mod->getContext(), 64),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800221 /*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);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800227FunctionType* FuncTy_23 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700228 /*Result=*/PointerTy_1,
Logan Chien3b2b2e72012-03-06 16:11:45 +0800229 /*Params=*/FuncTy_23_args,
230 /*isVarArg=*/false);
231
232std::vector<Type*>FuncTy_24_args;
233FuncTy_24_args.push_back(IntegerType::get(mod->getContext(), 32));
234FuncTy_24_args.push_back(PointerTy_1);
235FuncTy_24_args.push_back(PointerTy_1);
TDYa127706e9b62012-04-19 12:24:26 -0700236FuncTy_24_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800237FunctionType* FuncTy_24 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800238 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800239 /*Params=*/FuncTy_24_args,
240 /*isVarArg=*/false);
241
242std::vector<Type*>FuncTy_25_args;
Logan Chien9e5f5c12012-04-10 13:51:45 +0800243FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800244FuncTy_25_args.push_back(PointerTy_1);
245FuncTy_25_args.push_back(PointerTy_1);
TDYa127706e9b62012-04-19 12:24:26 -0700246FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 64));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800247FunctionType* FuncTy_25 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700248 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800249 /*Params=*/FuncTy_25_args,
250 /*isVarArg=*/false);
251
252std::vector<Type*>FuncTy_26_args;
TDYa127da83d972012-04-18 00:21:49 -0700253FuncTy_26_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800254FuncTy_26_args.push_back(PointerTy_1);
255FuncTy_26_args.push_back(PointerTy_1);
TDYa127706e9b62012-04-19 12:24:26 -0700256FuncTy_26_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800257FunctionType* FuncTy_26 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700258 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800259 /*Params=*/FuncTy_26_args,
260 /*isVarArg=*/false);
261
TDYa12728f1a142012-03-15 21:51:52 -0700262std::vector<Type*>FuncTy_27_args;
TDYa127706e9b62012-04-19 12:24:26 -0700263FuncTy_27_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa12728f1a142012-03-15 21:51:52 -0700264FuncTy_27_args.push_back(PointerTy_1);
265FuncTy_27_args.push_back(PointerTy_1);
266FunctionType* FuncTy_27 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700267 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa12728f1a142012-03-15 21:51:52 -0700268 /*Params=*/FuncTy_27_args,
269 /*isVarArg=*/false);
270
TDYa12785321912012-04-01 15:24:56 -0700271std::vector<Type*>FuncTy_28_args;
272FuncTy_28_args.push_back(PointerTy_1);
273FuncTy_28_args.push_back(PointerTy_1);
TDYa12785321912012-04-01 15:24:56 -0700274FunctionType* FuncTy_28 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700275 /*Result=*/PointerTy_1,
TDYa12785321912012-04-01 15:24:56 -0700276 /*Params=*/FuncTy_28_args,
277 /*isVarArg=*/false);
278
TDYa1270b686e52012-04-09 22:43:35 -0700279std::vector<Type*>FuncTy_29_args;
TDYa127da83d972012-04-18 00:21:49 -0700280FuncTy_29_args.push_back(PointerTy_1);
281FuncTy_29_args.push_back(PointerTy_1);
TDYa1270b686e52012-04-09 22:43:35 -0700282FunctionType* FuncTy_29 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700283 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa1270b686e52012-04-09 22:43:35 -0700284 /*Params=*/FuncTy_29_args,
285 /*isVarArg=*/false);
286
Logan Chien9e5f5c12012-04-10 13:51:45 +0800287std::vector<Type*>FuncTy_30_args;
TDYa127a4746872012-04-11 23:48:55 -0700288FuncTy_30_args.push_back(Type::getDoubleTy(mod->getContext()));
Logan Chien9e5f5c12012-04-10 13:51:45 +0800289FunctionType* FuncTy_30 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700290 /*Result=*/IntegerType::get(mod->getContext(), 64),
Logan Chien9e5f5c12012-04-10 13:51:45 +0800291 /*Params=*/FuncTy_30_args,
292 /*isVarArg=*/false);
293
TDYa1275bb86012012-04-11 05:57:28 -0700294std::vector<Type*>FuncTy_31_args;
TDYa127da83d972012-04-18 00:21:49 -0700295FuncTy_31_args.push_back(Type::getDoubleTy(mod->getContext()));
TDYa1275bb86012012-04-11 05:57:28 -0700296FunctionType* FuncTy_31 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700297 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa1275bb86012012-04-11 05:57:28 -0700298 /*Params=*/FuncTy_31_args,
TDYa127a4746872012-04-11 23:48:55 -0700299 /*isVarArg=*/false);
300
301std::vector<Type*>FuncTy_32_args;
302FuncTy_32_args.push_back(Type::getFloatTy(mod->getContext()));
303FunctionType* FuncTy_32 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700304 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa127a4746872012-04-11 23:48:55 -0700305 /*Params=*/FuncTy_32_args,
306 /*isVarArg=*/false);
307
308std::vector<Type*>FuncTy_33_args;
TDYa127da83d972012-04-18 00:21:49 -0700309FuncTy_33_args.push_back(Type::getFloatTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700310FunctionType* FuncTy_33 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700311 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa127a4746872012-04-11 23:48:55 -0700312 /*Params=*/FuncTy_33_args,
313 /*isVarArg=*/false);
314
315std::vector<Type*>FuncTy_34_args;
316FuncTy_34_args.push_back(PointerTy_1);
317FunctionType* FuncTy_34 = FunctionType::get(
318 /*Result=*/PointerTy_1,
319 /*Params=*/FuncTy_34_args,
320 /*isVarArg=*/false);
321
322std::vector<Type*>FuncTy_35_args;
323FuncTy_35_args.push_back(PointerTy_1);
324FunctionType* FuncTy_35 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700325 /*Result=*/Type::getVoidTy(mod->getContext()),
TDYa12705fe3b62012-04-21 00:28:54 -0700326 /*Params=*/FuncTy_35_args,
TDYa1275bb86012012-04-11 05:57:28 -0700327 /*isVarArg=*/true);
328
Logan Chien42e0e152012-01-13 15:42:36 +0800329
330// Function Declarations
331
332Function* func___art_type_list = mod->getFunction("__art_type_list");
333if (!func___art_type_list) {
334func___art_type_list = Function::Create(
335 /*Type=*/FuncTy_0,
336 /*Linkage=*/GlobalValue::ExternalLinkage,
337 /*Name=*/"__art_type_list", mod); // (external, no body)
338func___art_type_list->setCallingConv(CallingConv::C);
339}
340AttrListPtr func___art_type_list_PAL;
341func___art_type_list->setAttributes(func___art_type_list_PAL);
342
343Function* func_art_get_current_thread_from_code = mod->getFunction("art_get_current_thread_from_code");
344if (!func_art_get_current_thread_from_code) {
345func_art_get_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800346 /*Type=*/FuncTy_3,
Logan Chien42e0e152012-01-13 15:42:36 +0800347 /*Linkage=*/GlobalValue::ExternalLinkage,
348 /*Name=*/"art_get_current_thread_from_code", mod); // (external, no body)
349func_art_get_current_thread_from_code->setCallingConv(CallingConv::C);
350}
351AttrListPtr func_art_get_current_thread_from_code_PAL;
352func_art_get_current_thread_from_code->setAttributes(func_art_get_current_thread_from_code_PAL);
353
354Function* func_art_set_current_thread_from_code = mod->getFunction("art_set_current_thread_from_code");
355if (!func_art_set_current_thread_from_code) {
356func_art_set_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800357 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800358 /*Linkage=*/GlobalValue::ExternalLinkage,
359 /*Name=*/"art_set_current_thread_from_code", mod); // (external, no body)
360func_art_set_current_thread_from_code->setCallingConv(CallingConv::C);
361}
362AttrListPtr func_art_set_current_thread_from_code_PAL;
363func_art_set_current_thread_from_code->setAttributes(func_art_set_current_thread_from_code_PAL);
364
365Function* func_art_lock_object_from_code = mod->getFunction("art_lock_object_from_code");
366if (!func_art_lock_object_from_code) {
367func_art_lock_object_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700368 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800369 /*Linkage=*/GlobalValue::ExternalLinkage,
370 /*Name=*/"art_lock_object_from_code", mod); // (external, no body)
371func_art_lock_object_from_code->setCallingConv(CallingConv::C);
372}
373AttrListPtr func_art_lock_object_from_code_PAL;
374func_art_lock_object_from_code->setAttributes(func_art_lock_object_from_code_PAL);
375
376Function* func_art_unlock_object_from_code = mod->getFunction("art_unlock_object_from_code");
377if (!func_art_unlock_object_from_code) {
378func_art_unlock_object_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700379 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800380 /*Linkage=*/GlobalValue::ExternalLinkage,
381 /*Name=*/"art_unlock_object_from_code", mod); // (external, no body)
382func_art_unlock_object_from_code->setCallingConv(CallingConv::C);
383}
384AttrListPtr func_art_unlock_object_from_code_PAL;
385func_art_unlock_object_from_code->setAttributes(func_art_unlock_object_from_code_PAL);
386
387Function* func_art_test_suspend_from_code = mod->getFunction("art_test_suspend_from_code");
388if (!func_art_test_suspend_from_code) {
389func_art_test_suspend_from_code = Function::Create(
TDYa127853cd092012-04-21 22:15:31 -0700390 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800391 /*Linkage=*/GlobalValue::ExternalLinkage,
392 /*Name=*/"art_test_suspend_from_code", mod); // (external, no body)
393func_art_test_suspend_from_code->setCallingConv(CallingConv::C);
394}
395AttrListPtr func_art_test_suspend_from_code_PAL;
396func_art_test_suspend_from_code->setAttributes(func_art_test_suspend_from_code_PAL);
397
Logan Chien3f71e702012-02-17 18:45:27 +0800398Function* func_art_push_shadow_frame_from_code = mod->getFunction("art_push_shadow_frame_from_code");
399if (!func_art_push_shadow_frame_from_code) {
400func_art_push_shadow_frame_from_code = Function::Create(
TDYa127853cd092012-04-21 22:15:31 -0700401 /*Type=*/FuncTy_6,
Logan Chien3f71e702012-02-17 18:45:27 +0800402 /*Linkage=*/GlobalValue::ExternalLinkage,
403 /*Name=*/"art_push_shadow_frame_from_code", mod); // (external, no body)
404func_art_push_shadow_frame_from_code->setCallingConv(CallingConv::C);
405}
406AttrListPtr func_art_push_shadow_frame_from_code_PAL;
407func_art_push_shadow_frame_from_code->setAttributes(func_art_push_shadow_frame_from_code_PAL);
408
409Function* func_art_pop_shadow_frame_from_code = mod->getFunction("art_pop_shadow_frame_from_code");
410if (!func_art_pop_shadow_frame_from_code) {
411func_art_pop_shadow_frame_from_code = Function::Create(
TDYa127853cd092012-04-21 22:15:31 -0700412 /*Type=*/FuncTy_7,
Logan Chien3f71e702012-02-17 18:45:27 +0800413 /*Linkage=*/GlobalValue::ExternalLinkage,
414 /*Name=*/"art_pop_shadow_frame_from_code", mod); // (external, no body)
415func_art_pop_shadow_frame_from_code->setCallingConv(CallingConv::C);
416}
417AttrListPtr func_art_pop_shadow_frame_from_code_PAL;
418func_art_pop_shadow_frame_from_code->setAttributes(func_art_pop_shadow_frame_from_code_PAL);
419
Logan Chien42e0e152012-01-13 15:42:36 +0800420Function* func_art_is_exception_pending_from_code = mod->getFunction("art_is_exception_pending_from_code");
421if (!func_art_is_exception_pending_from_code) {
422func_art_is_exception_pending_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700423 /*Type=*/FuncTy_8,
Logan Chien42e0e152012-01-13 15:42:36 +0800424 /*Linkage=*/GlobalValue::ExternalLinkage,
425 /*Name=*/"art_is_exception_pending_from_code", mod); // (external, no body)
426func_art_is_exception_pending_from_code->setCallingConv(CallingConv::C);
427}
428AttrListPtr func_art_is_exception_pending_from_code_PAL;
429func_art_is_exception_pending_from_code->setAttributes(func_art_is_exception_pending_from_code_PAL);
430
431Function* func_art_throw_div_zero_from_code = mod->getFunction("art_throw_div_zero_from_code");
432if (!func_art_throw_div_zero_from_code) {
433func_art_throw_div_zero_from_code = Function::Create(
TDYa127853cd092012-04-21 22:15:31 -0700434 /*Type=*/FuncTy_7,
Logan Chien42e0e152012-01-13 15:42:36 +0800435 /*Linkage=*/GlobalValue::ExternalLinkage,
436 /*Name=*/"art_throw_div_zero_from_code", mod); // (external, no body)
437func_art_throw_div_zero_from_code->setCallingConv(CallingConv::C);
438}
439AttrListPtr func_art_throw_div_zero_from_code_PAL;
440func_art_throw_div_zero_from_code->setAttributes(func_art_throw_div_zero_from_code_PAL);
441
442Function* func_art_throw_array_bounds_from_code = mod->getFunction("art_throw_array_bounds_from_code");
443if (!func_art_throw_array_bounds_from_code) {
444func_art_throw_array_bounds_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700445 /*Type=*/FuncTy_9,
Logan Chien42e0e152012-01-13 15:42:36 +0800446 /*Linkage=*/GlobalValue::ExternalLinkage,
447 /*Name=*/"art_throw_array_bounds_from_code", mod); // (external, no body)
448func_art_throw_array_bounds_from_code->setCallingConv(CallingConv::C);
449}
450AttrListPtr func_art_throw_array_bounds_from_code_PAL;
451func_art_throw_array_bounds_from_code->setAttributes(func_art_throw_array_bounds_from_code_PAL);
452
453Function* func_art_throw_no_such_method_from_code = mod->getFunction("art_throw_no_such_method_from_code");
454if (!func_art_throw_no_such_method_from_code) {
455func_art_throw_no_such_method_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700456 /*Type=*/FuncTy_10,
Logan Chien42e0e152012-01-13 15:42:36 +0800457 /*Linkage=*/GlobalValue::ExternalLinkage,
458 /*Name=*/"art_throw_no_such_method_from_code", mod); // (external, no body)
459func_art_throw_no_such_method_from_code->setCallingConv(CallingConv::C);
460}
461AttrListPtr func_art_throw_no_such_method_from_code_PAL;
462func_art_throw_no_such_method_from_code->setAttributes(func_art_throw_no_such_method_from_code_PAL);
463
464Function* func_art_throw_null_pointer_exception_from_code = mod->getFunction("art_throw_null_pointer_exception_from_code");
465if (!func_art_throw_null_pointer_exception_from_code) {
466func_art_throw_null_pointer_exception_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700467 /*Type=*/FuncTy_10,
Logan Chien42e0e152012-01-13 15:42:36 +0800468 /*Linkage=*/GlobalValue::ExternalLinkage,
469 /*Name=*/"art_throw_null_pointer_exception_from_code", mod); // (external, no body)
470func_art_throw_null_pointer_exception_from_code->setCallingConv(CallingConv::C);
471}
472AttrListPtr func_art_throw_null_pointer_exception_from_code_PAL;
473func_art_throw_null_pointer_exception_from_code->setAttributes(func_art_throw_null_pointer_exception_from_code_PAL);
474
475Function* func_art_throw_stack_overflow_from_code = mod->getFunction("art_throw_stack_overflow_from_code");
476if (!func_art_throw_stack_overflow_from_code) {
477func_art_throw_stack_overflow_from_code = Function::Create(
TDYa127853cd092012-04-21 22:15:31 -0700478 /*Type=*/FuncTy_7,
Logan Chien42e0e152012-01-13 15:42:36 +0800479 /*Linkage=*/GlobalValue::ExternalLinkage,
480 /*Name=*/"art_throw_stack_overflow_from_code", mod); // (external, no body)
481func_art_throw_stack_overflow_from_code->setCallingConv(CallingConv::C);
482}
483AttrListPtr func_art_throw_stack_overflow_from_code_PAL;
484func_art_throw_stack_overflow_from_code->setAttributes(func_art_throw_stack_overflow_from_code_PAL);
485
486Function* func_art_throw_exception_from_code = mod->getFunction("art_throw_exception_from_code");
487if (!func_art_throw_exception_from_code) {
488func_art_throw_exception_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800489 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800490 /*Linkage=*/GlobalValue::ExternalLinkage,
491 /*Name=*/"art_throw_exception_from_code", mod); // (external, no body)
492func_art_throw_exception_from_code->setCallingConv(CallingConv::C);
493}
494AttrListPtr func_art_throw_exception_from_code_PAL;
495func_art_throw_exception_from_code->setAttributes(func_art_throw_exception_from_code_PAL);
496
Logan Chien9e5f5c12012-04-10 13:51:45 +0800497Function* func_art_throw_verification_error_from_code = mod->getFunction("art_throw_verification_error_from_code");
498if (!func_art_throw_verification_error_from_code) {
499func_art_throw_verification_error_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700500 /*Type=*/FuncTy_11,
Logan Chien9e5f5c12012-04-10 13:51:45 +0800501 /*Linkage=*/GlobalValue::ExternalLinkage,
502 /*Name=*/"art_throw_verification_error_from_code", mod); // (external, no body)
503func_art_throw_verification_error_from_code->setCallingConv(CallingConv::C);
504}
505AttrListPtr func_art_throw_verification_error_from_code_PAL;
506func_art_throw_verification_error_from_code->setAttributes(func_art_throw_verification_error_from_code_PAL);
507
Logan Chien42e0e152012-01-13 15:42:36 +0800508Function* func_art_find_catch_block_from_code = mod->getFunction("art_find_catch_block_from_code");
509if (!func_art_find_catch_block_from_code) {
510func_art_find_catch_block_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700511 /*Type=*/FuncTy_12,
Logan Chien42e0e152012-01-13 15:42:36 +0800512 /*Linkage=*/GlobalValue::ExternalLinkage,
513 /*Name=*/"art_find_catch_block_from_code", mod); // (external, no body)
514func_art_find_catch_block_from_code->setCallingConv(CallingConv::C);
515}
516AttrListPtr func_art_find_catch_block_from_code_PAL;
517func_art_find_catch_block_from_code->setAttributes(func_art_find_catch_block_from_code_PAL);
518
519Function* func_art_alloc_object_from_code = mod->getFunction("art_alloc_object_from_code");
520if (!func_art_alloc_object_from_code) {
521func_art_alloc_object_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700522 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800523 /*Linkage=*/GlobalValue::ExternalLinkage,
524 /*Name=*/"art_alloc_object_from_code", mod); // (external, no body)
525func_art_alloc_object_from_code->setCallingConv(CallingConv::C);
526}
527AttrListPtr func_art_alloc_object_from_code_PAL;
528func_art_alloc_object_from_code->setAttributes(func_art_alloc_object_from_code_PAL);
529
530Function* func_art_alloc_object_from_code_with_access_check = mod->getFunction("art_alloc_object_from_code_with_access_check");
531if (!func_art_alloc_object_from_code_with_access_check) {
532func_art_alloc_object_from_code_with_access_check = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700533 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800534 /*Linkage=*/GlobalValue::ExternalLinkage,
535 /*Name=*/"art_alloc_object_from_code_with_access_check", mod); // (external, no body)
536func_art_alloc_object_from_code_with_access_check->setCallingConv(CallingConv::C);
537}
538AttrListPtr func_art_alloc_object_from_code_with_access_check_PAL;
539func_art_alloc_object_from_code_with_access_check->setAttributes(func_art_alloc_object_from_code_with_access_check_PAL);
540
541Function* func_art_alloc_array_from_code = mod->getFunction("art_alloc_array_from_code");
542if (!func_art_alloc_array_from_code) {
543func_art_alloc_array_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700544 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800545 /*Linkage=*/GlobalValue::ExternalLinkage,
546 /*Name=*/"art_alloc_array_from_code", mod); // (external, no body)
547func_art_alloc_array_from_code->setCallingConv(CallingConv::C);
548}
549AttrListPtr func_art_alloc_array_from_code_PAL;
550func_art_alloc_array_from_code->setAttributes(func_art_alloc_array_from_code_PAL);
551
552Function* func_art_alloc_array_from_code_with_access_check = mod->getFunction("art_alloc_array_from_code_with_access_check");
553if (!func_art_alloc_array_from_code_with_access_check) {
554func_art_alloc_array_from_code_with_access_check = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700555 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800556 /*Linkage=*/GlobalValue::ExternalLinkage,
557 /*Name=*/"art_alloc_array_from_code_with_access_check", mod); // (external, no body)
558func_art_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
559}
560AttrListPtr func_art_alloc_array_from_code_with_access_check_PAL;
561func_art_alloc_array_from_code_with_access_check->setAttributes(func_art_alloc_array_from_code_with_access_check_PAL);
562
563Function* func_art_check_and_alloc_array_from_code = mod->getFunction("art_check_and_alloc_array_from_code");
564if (!func_art_check_and_alloc_array_from_code) {
565func_art_check_and_alloc_array_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700566 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800567 /*Linkage=*/GlobalValue::ExternalLinkage,
568 /*Name=*/"art_check_and_alloc_array_from_code", mod); // (external, no body)
569func_art_check_and_alloc_array_from_code->setCallingConv(CallingConv::C);
570}
571AttrListPtr func_art_check_and_alloc_array_from_code_PAL;
572func_art_check_and_alloc_array_from_code->setAttributes(func_art_check_and_alloc_array_from_code_PAL);
573
574Function* func_art_check_and_alloc_array_from_code_with_access_check = mod->getFunction("art_check_and_alloc_array_from_code_with_access_check");
575if (!func_art_check_and_alloc_array_from_code_with_access_check) {
576func_art_check_and_alloc_array_from_code_with_access_check = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700577 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800578 /*Linkage=*/GlobalValue::ExternalLinkage,
579 /*Name=*/"art_check_and_alloc_array_from_code_with_access_check", mod); // (external, no body)
580func_art_check_and_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
581}
582AttrListPtr func_art_check_and_alloc_array_from_code_with_access_check_PAL;
583func_art_check_and_alloc_array_from_code_with_access_check->setAttributes(func_art_check_and_alloc_array_from_code_with_access_check_PAL);
584
Logan Chien42e0e152012-01-13 15:42:36 +0800585Function* func_art_find_instance_field_from_code = mod->getFunction("art_find_instance_field_from_code");
586if (!func_art_find_instance_field_from_code) {
587func_art_find_instance_field_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700588 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800589 /*Linkage=*/GlobalValue::ExternalLinkage,
590 /*Name=*/"art_find_instance_field_from_code", mod); // (external, no body)
591func_art_find_instance_field_from_code->setCallingConv(CallingConv::C);
592}
593AttrListPtr func_art_find_instance_field_from_code_PAL;
594func_art_find_instance_field_from_code->setAttributes(func_art_find_instance_field_from_code_PAL);
595
596Function* func_art_find_static_field_from_code = mod->getFunction("art_find_static_field_from_code");
597if (!func_art_find_static_field_from_code) {
598func_art_find_static_field_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700599 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800600 /*Linkage=*/GlobalValue::ExternalLinkage,
601 /*Name=*/"art_find_static_field_from_code", mod); // (external, no body)
602func_art_find_static_field_from_code->setCallingConv(CallingConv::C);
603}
604AttrListPtr func_art_find_static_field_from_code_PAL;
605func_art_find_static_field_from_code->setAttributes(func_art_find_static_field_from_code_PAL);
606
Logan Chien7e7fabc2012-04-10 18:59:11 +0800607Function* func_art_find_static_method_from_code_with_access_check = mod->getFunction("art_find_static_method_from_code_with_access_check");
608if (!func_art_find_static_method_from_code_with_access_check) {
609func_art_find_static_method_from_code_with_access_check = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700610 /*Type=*/FuncTy_16,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800611 /*Linkage=*/GlobalValue::ExternalLinkage,
612 /*Name=*/"art_find_static_method_from_code_with_access_check", mod); // (external, no body)
613func_art_find_static_method_from_code_with_access_check->setCallingConv(CallingConv::C);
614}
615AttrListPtr func_art_find_static_method_from_code_with_access_check_PAL;
616func_art_find_static_method_from_code_with_access_check->setAttributes(func_art_find_static_method_from_code_with_access_check_PAL);
617
618Function* func_art_find_direct_method_from_code_with_access_check = mod->getFunction("art_find_direct_method_from_code_with_access_check");
619if (!func_art_find_direct_method_from_code_with_access_check) {
620func_art_find_direct_method_from_code_with_access_check = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700621 /*Type=*/FuncTy_16,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800622 /*Linkage=*/GlobalValue::ExternalLinkage,
623 /*Name=*/"art_find_direct_method_from_code_with_access_check", mod); // (external, no body)
624func_art_find_direct_method_from_code_with_access_check->setCallingConv(CallingConv::C);
625}
626AttrListPtr func_art_find_direct_method_from_code_with_access_check_PAL;
627func_art_find_direct_method_from_code_with_access_check->setAttributes(func_art_find_direct_method_from_code_with_access_check_PAL);
628
629Function* func_art_find_virtual_method_from_code_with_access_check = mod->getFunction("art_find_virtual_method_from_code_with_access_check");
630if (!func_art_find_virtual_method_from_code_with_access_check) {
631func_art_find_virtual_method_from_code_with_access_check = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700632 /*Type=*/FuncTy_16,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800633 /*Linkage=*/GlobalValue::ExternalLinkage,
634 /*Name=*/"art_find_virtual_method_from_code_with_access_check", mod); // (external, no body)
635func_art_find_virtual_method_from_code_with_access_check->setCallingConv(CallingConv::C);
636}
637AttrListPtr func_art_find_virtual_method_from_code_with_access_check_PAL;
638func_art_find_virtual_method_from_code_with_access_check->setAttributes(func_art_find_virtual_method_from_code_with_access_check_PAL);
639
640Function* func_art_find_super_method_from_code_with_access_check = mod->getFunction("art_find_super_method_from_code_with_access_check");
641if (!func_art_find_super_method_from_code_with_access_check) {
642func_art_find_super_method_from_code_with_access_check = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700643 /*Type=*/FuncTy_16,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800644 /*Linkage=*/GlobalValue::ExternalLinkage,
645 /*Name=*/"art_find_super_method_from_code_with_access_check", mod); // (external, no body)
646func_art_find_super_method_from_code_with_access_check->setCallingConv(CallingConv::C);
647}
648AttrListPtr func_art_find_super_method_from_code_with_access_check_PAL;
649func_art_find_super_method_from_code_with_access_check->setAttributes(func_art_find_super_method_from_code_with_access_check_PAL);
650
651Function* func_art_find_interface_method_from_code_with_access_check = mod->getFunction("art_find_interface_method_from_code_with_access_check");
652if (!func_art_find_interface_method_from_code_with_access_check) {
653func_art_find_interface_method_from_code_with_access_check = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700654 /*Type=*/FuncTy_16,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800655 /*Linkage=*/GlobalValue::ExternalLinkage,
656 /*Name=*/"art_find_interface_method_from_code_with_access_check", mod); // (external, no body)
657func_art_find_interface_method_from_code_with_access_check->setCallingConv(CallingConv::C);
658}
659AttrListPtr func_art_find_interface_method_from_code_with_access_check_PAL;
660func_art_find_interface_method_from_code_with_access_check->setAttributes(func_art_find_interface_method_from_code_with_access_check_PAL);
661
Logan Chien42e0e152012-01-13 15:42:36 +0800662Function* func_art_find_interface_method_from_code = mod->getFunction("art_find_interface_method_from_code");
663if (!func_art_find_interface_method_from_code) {
664func_art_find_interface_method_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700665 /*Type=*/FuncTy_16,
Logan Chien42e0e152012-01-13 15:42:36 +0800666 /*Linkage=*/GlobalValue::ExternalLinkage,
667 /*Name=*/"art_find_interface_method_from_code", mod); // (external, no body)
668func_art_find_interface_method_from_code->setCallingConv(CallingConv::C);
669}
670AttrListPtr func_art_find_interface_method_from_code_PAL;
671func_art_find_interface_method_from_code->setAttributes(func_art_find_interface_method_from_code_PAL);
672
673Function* func_art_initialize_static_storage_from_code = mod->getFunction("art_initialize_static_storage_from_code");
674if (!func_art_initialize_static_storage_from_code) {
675func_art_initialize_static_storage_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700676 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800677 /*Linkage=*/GlobalValue::ExternalLinkage,
678 /*Name=*/"art_initialize_static_storage_from_code", mod); // (external, no body)
679func_art_initialize_static_storage_from_code->setCallingConv(CallingConv::C);
680}
681AttrListPtr func_art_initialize_static_storage_from_code_PAL;
682func_art_initialize_static_storage_from_code->setAttributes(func_art_initialize_static_storage_from_code_PAL);
683
684Function* func_art_initialize_type_from_code = mod->getFunction("art_initialize_type_from_code");
685if (!func_art_initialize_type_from_code) {
686func_art_initialize_type_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700687 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800688 /*Linkage=*/GlobalValue::ExternalLinkage,
689 /*Name=*/"art_initialize_type_from_code", mod); // (external, no body)
690func_art_initialize_type_from_code->setCallingConv(CallingConv::C);
691}
692AttrListPtr func_art_initialize_type_from_code_PAL;
693func_art_initialize_type_from_code->setAttributes(func_art_initialize_type_from_code_PAL);
694
695Function* func_art_initialize_type_and_verify_access_from_code = mod->getFunction("art_initialize_type_and_verify_access_from_code");
696if (!func_art_initialize_type_and_verify_access_from_code) {
697func_art_initialize_type_and_verify_access_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700698 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800699 /*Linkage=*/GlobalValue::ExternalLinkage,
700 /*Name=*/"art_initialize_type_and_verify_access_from_code", mod); // (external, no body)
701func_art_initialize_type_and_verify_access_from_code->setCallingConv(CallingConv::C);
702}
703AttrListPtr func_art_initialize_type_and_verify_access_from_code_PAL;
704func_art_initialize_type_and_verify_access_from_code->setAttributes(func_art_initialize_type_and_verify_access_from_code_PAL);
705
706Function* func_art_resolve_string_from_code = mod->getFunction("art_resolve_string_from_code");
707if (!func_art_resolve_string_from_code) {
708func_art_resolve_string_from_code = Function::Create(
TDYa127da83d972012-04-18 00:21:49 -0700709 /*Type=*/FuncTy_17,
Logan Chien42e0e152012-01-13 15:42:36 +0800710 /*Linkage=*/GlobalValue::ExternalLinkage,
711 /*Name=*/"art_resolve_string_from_code", mod); // (external, no body)
712func_art_resolve_string_from_code->setCallingConv(CallingConv::C);
713}
714AttrListPtr func_art_resolve_string_from_code_PAL;
715func_art_resolve_string_from_code->setAttributes(func_art_resolve_string_from_code_PAL);
716
Logan Chien42e0e152012-01-13 15:42:36 +0800717Function* func_art_set32_static_from_code = mod->getFunction("art_set32_static_from_code");
718if (!func_art_set32_static_from_code) {
719func_art_set32_static_from_code = Function::Create(
TDYa127da83d972012-04-18 00:21:49 -0700720 /*Type=*/FuncTy_18,
Logan Chien42e0e152012-01-13 15:42:36 +0800721 /*Linkage=*/GlobalValue::ExternalLinkage,
722 /*Name=*/"art_set32_static_from_code", mod); // (external, no body)
723func_art_set32_static_from_code->setCallingConv(CallingConv::C);
724}
725AttrListPtr func_art_set32_static_from_code_PAL;
726func_art_set32_static_from_code->setAttributes(func_art_set32_static_from_code_PAL);
727
728Function* func_art_set64_static_from_code = mod->getFunction("art_set64_static_from_code");
729if (!func_art_set64_static_from_code) {
730func_art_set64_static_from_code = Function::Create(
TDYa127da83d972012-04-18 00:21:49 -0700731 /*Type=*/FuncTy_19,
Logan Chien42e0e152012-01-13 15:42:36 +0800732 /*Linkage=*/GlobalValue::ExternalLinkage,
733 /*Name=*/"art_set64_static_from_code", mod); // (external, no body)
734func_art_set64_static_from_code->setCallingConv(CallingConv::C);
735}
736AttrListPtr func_art_set64_static_from_code_PAL;
737func_art_set64_static_from_code->setAttributes(func_art_set64_static_from_code_PAL);
738
739Function* func_art_set_obj_static_from_code = mod->getFunction("art_set_obj_static_from_code");
740if (!func_art_set_obj_static_from_code) {
741func_art_set_obj_static_from_code = Function::Create(
TDYa127da83d972012-04-18 00:21:49 -0700742 /*Type=*/FuncTy_20,
Logan Chien42e0e152012-01-13 15:42:36 +0800743 /*Linkage=*/GlobalValue::ExternalLinkage,
744 /*Name=*/"art_set_obj_static_from_code", mod); // (external, no body)
745func_art_set_obj_static_from_code->setCallingConv(CallingConv::C);
746}
747AttrListPtr func_art_set_obj_static_from_code_PAL;
748func_art_set_obj_static_from_code->setAttributes(func_art_set_obj_static_from_code_PAL);
749
750Function* func_art_get32_static_from_code = mod->getFunction("art_get32_static_from_code");
751if (!func_art_get32_static_from_code) {
752func_art_get32_static_from_code = Function::Create(
TDYa127da83d972012-04-18 00:21:49 -0700753 /*Type=*/FuncTy_21,
Logan Chien42e0e152012-01-13 15:42:36 +0800754 /*Linkage=*/GlobalValue::ExternalLinkage,
755 /*Name=*/"art_get32_static_from_code", mod); // (external, no body)
756func_art_get32_static_from_code->setCallingConv(CallingConv::C);
757}
758AttrListPtr func_art_get32_static_from_code_PAL;
759func_art_get32_static_from_code->setAttributes(func_art_get32_static_from_code_PAL);
760
761Function* func_art_get64_static_from_code = mod->getFunction("art_get64_static_from_code");
762if (!func_art_get64_static_from_code) {
763func_art_get64_static_from_code = Function::Create(
TDYa127da83d972012-04-18 00:21:49 -0700764 /*Type=*/FuncTy_22,
Logan Chien42e0e152012-01-13 15:42:36 +0800765 /*Linkage=*/GlobalValue::ExternalLinkage,
766 /*Name=*/"art_get64_static_from_code", mod); // (external, no body)
767func_art_get64_static_from_code->setCallingConv(CallingConv::C);
768}
769AttrListPtr func_art_get64_static_from_code_PAL;
770func_art_get64_static_from_code->setAttributes(func_art_get64_static_from_code_PAL);
771
772Function* func_art_get_obj_static_from_code = mod->getFunction("art_get_obj_static_from_code");
773if (!func_art_get_obj_static_from_code) {
774func_art_get_obj_static_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700775 /*Type=*/FuncTy_23,
Logan Chien42e0e152012-01-13 15:42:36 +0800776 /*Linkage=*/GlobalValue::ExternalLinkage,
777 /*Name=*/"art_get_obj_static_from_code", mod); // (external, no body)
778func_art_get_obj_static_from_code->setCallingConv(CallingConv::C);
779}
780AttrListPtr func_art_get_obj_static_from_code_PAL;
781func_art_get_obj_static_from_code->setAttributes(func_art_get_obj_static_from_code_PAL);
782
783Function* func_art_set32_instance_from_code = mod->getFunction("art_set32_instance_from_code");
784if (!func_art_set32_instance_from_code) {
785func_art_set32_instance_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700786 /*Type=*/FuncTy_24,
Logan Chien42e0e152012-01-13 15:42:36 +0800787 /*Linkage=*/GlobalValue::ExternalLinkage,
788 /*Name=*/"art_set32_instance_from_code", mod); // (external, no body)
789func_art_set32_instance_from_code->setCallingConv(CallingConv::C);
790}
791AttrListPtr func_art_set32_instance_from_code_PAL;
792func_art_set32_instance_from_code->setAttributes(func_art_set32_instance_from_code_PAL);
793
794Function* func_art_set64_instance_from_code = mod->getFunction("art_set64_instance_from_code");
795if (!func_art_set64_instance_from_code) {
796func_art_set64_instance_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700797 /*Type=*/FuncTy_25,
Logan Chien42e0e152012-01-13 15:42:36 +0800798 /*Linkage=*/GlobalValue::ExternalLinkage,
799 /*Name=*/"art_set64_instance_from_code", mod); // (external, no body)
800func_art_set64_instance_from_code->setCallingConv(CallingConv::C);
801}
802AttrListPtr func_art_set64_instance_from_code_PAL;
803func_art_set64_instance_from_code->setAttributes(func_art_set64_instance_from_code_PAL);
804
805Function* func_art_set_obj_instance_from_code = mod->getFunction("art_set_obj_instance_from_code");
806if (!func_art_set_obj_instance_from_code) {
807func_art_set_obj_instance_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700808 /*Type=*/FuncTy_26,
Logan Chien42e0e152012-01-13 15:42:36 +0800809 /*Linkage=*/GlobalValue::ExternalLinkage,
810 /*Name=*/"art_set_obj_instance_from_code", mod); // (external, no body)
811func_art_set_obj_instance_from_code->setCallingConv(CallingConv::C);
812}
813AttrListPtr func_art_set_obj_instance_from_code_PAL;
814func_art_set_obj_instance_from_code->setAttributes(func_art_set_obj_instance_from_code_PAL);
815
816Function* func_art_get32_instance_from_code = mod->getFunction("art_get32_instance_from_code");
817if (!func_art_get32_instance_from_code) {
818func_art_get32_instance_from_code = Function::Create(
TDYa127da83d972012-04-18 00:21:49 -0700819 /*Type=*/FuncTy_20,
Logan Chien42e0e152012-01-13 15:42:36 +0800820 /*Linkage=*/GlobalValue::ExternalLinkage,
821 /*Name=*/"art_get32_instance_from_code", mod); // (external, no body)
822func_art_get32_instance_from_code->setCallingConv(CallingConv::C);
823}
824AttrListPtr func_art_get32_instance_from_code_PAL;
825func_art_get32_instance_from_code->setAttributes(func_art_get32_instance_from_code_PAL);
826
827Function* func_art_get64_instance_from_code = mod->getFunction("art_get64_instance_from_code");
828if (!func_art_get64_instance_from_code) {
829func_art_get64_instance_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700830 /*Type=*/FuncTy_27,
Logan Chien42e0e152012-01-13 15:42:36 +0800831 /*Linkage=*/GlobalValue::ExternalLinkage,
832 /*Name=*/"art_get64_instance_from_code", mod); // (external, no body)
833func_art_get64_instance_from_code->setCallingConv(CallingConv::C);
834}
835AttrListPtr func_art_get64_instance_from_code_PAL;
836func_art_get64_instance_from_code->setAttributes(func_art_get64_instance_from_code_PAL);
837
838Function* func_art_get_obj_instance_from_code = mod->getFunction("art_get_obj_instance_from_code");
839if (!func_art_get_obj_instance_from_code) {
840func_art_get_obj_instance_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700841 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800842 /*Linkage=*/GlobalValue::ExternalLinkage,
843 /*Name=*/"art_get_obj_instance_from_code", mod); // (external, no body)
844func_art_get_obj_instance_from_code->setCallingConv(CallingConv::C);
845}
846AttrListPtr func_art_get_obj_instance_from_code_PAL;
847func_art_get_obj_instance_from_code->setAttributes(func_art_get_obj_instance_from_code_PAL);
848
TDYa12728f1a142012-03-15 21:51:52 -0700849Function* func_art_decode_jobject_in_thread = mod->getFunction("art_decode_jobject_in_thread");
850if (!func_art_decode_jobject_in_thread) {
851func_art_decode_jobject_in_thread = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700852 /*Type=*/FuncTy_28,
TDYa12728f1a142012-03-15 21:51:52 -0700853 /*Linkage=*/GlobalValue::ExternalLinkage,
854 /*Name=*/"art_decode_jobject_in_thread", mod); // (external, no body)
855func_art_decode_jobject_in_thread->setCallingConv(CallingConv::C);
856}
857AttrListPtr func_art_decode_jobject_in_thread_PAL;
858func_art_decode_jobject_in_thread->setAttributes(func_art_decode_jobject_in_thread_PAL);
859
Logan Chien42e0e152012-01-13 15:42:36 +0800860Function* func_art_is_assignable_from_code = mod->getFunction("art_is_assignable_from_code");
861if (!func_art_is_assignable_from_code) {
862func_art_is_assignable_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700863 /*Type=*/FuncTy_29,
Logan Chien42e0e152012-01-13 15:42:36 +0800864 /*Linkage=*/GlobalValue::ExternalLinkage,
865 /*Name=*/"art_is_assignable_from_code", mod); // (external, no body)
866func_art_is_assignable_from_code->setCallingConv(CallingConv::C);
867}
868AttrListPtr func_art_is_assignable_from_code_PAL;
869func_art_is_assignable_from_code->setAttributes(func_art_is_assignable_from_code_PAL);
870
871Function* func_art_check_cast_from_code = mod->getFunction("art_check_cast_from_code");
872if (!func_art_check_cast_from_code) {
873func_art_check_cast_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700874 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800875 /*Linkage=*/GlobalValue::ExternalLinkage,
876 /*Name=*/"art_check_cast_from_code", mod); // (external, no body)
877func_art_check_cast_from_code->setCallingConv(CallingConv::C);
878}
879AttrListPtr func_art_check_cast_from_code_PAL;
880func_art_check_cast_from_code->setAttributes(func_art_check_cast_from_code_PAL);
881
TDYa1271b86d072012-04-05 17:38:56 -0700882Function* func_art_check_put_array_element_from_code = mod->getFunction("art_check_put_array_element_from_code");
883if (!func_art_check_put_array_element_from_code) {
884func_art_check_put_array_element_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700885 /*Type=*/FuncTy_5,
TDYa1271b86d072012-04-05 17:38:56 -0700886 /*Linkage=*/GlobalValue::ExternalLinkage,
887 /*Name=*/"art_check_put_array_element_from_code", mod); // (external, no body)
888func_art_check_put_array_element_from_code->setCallingConv(CallingConv::C);
889}
890AttrListPtr func_art_check_put_array_element_from_code_PAL;
891func_art_check_put_array_element_from_code->setAttributes(func_art_check_put_array_element_from_code_PAL);
892
TDYa127a4746872012-04-11 23:48:55 -0700893Function* func_D2L = mod->getFunction("D2L");
894if (!func_D2L) {
895func_D2L = Function::Create(
TDYa127da83d972012-04-18 00:21:49 -0700896 /*Type=*/FuncTy_30,
TDYa127a4746872012-04-11 23:48:55 -0700897 /*Linkage=*/GlobalValue::ExternalLinkage,
898 /*Name=*/"D2L", mod); // (external, no body)
899func_D2L->setCallingConv(CallingConv::C);
900}
901AttrListPtr func_D2L_PAL;
902func_D2L->setAttributes(func_D2L_PAL);
903
904Function* func_D2I = mod->getFunction("D2I");
905if (!func_D2I) {
906func_D2I = Function::Create(
TDYa127da83d972012-04-18 00:21:49 -0700907 /*Type=*/FuncTy_31,
TDYa127a4746872012-04-11 23:48:55 -0700908 /*Linkage=*/GlobalValue::ExternalLinkage,
909 /*Name=*/"D2I", mod); // (external, no body)
910func_D2I->setCallingConv(CallingConv::C);
911}
912AttrListPtr func_D2I_PAL;
913func_D2I->setAttributes(func_D2I_PAL);
914
915Function* func_F2L = mod->getFunction("F2L");
916if (!func_F2L) {
917func_F2L = Function::Create(
TDYa127da83d972012-04-18 00:21:49 -0700918 /*Type=*/FuncTy_32,
TDYa127a4746872012-04-11 23:48:55 -0700919 /*Linkage=*/GlobalValue::ExternalLinkage,
920 /*Name=*/"F2L", mod); // (external, no body)
921func_F2L->setCallingConv(CallingConv::C);
922}
923AttrListPtr func_F2L_PAL;
924func_F2L->setAttributes(func_F2L_PAL);
925
926Function* func_F2I = mod->getFunction("F2I");
927if (!func_F2I) {
928func_F2I = Function::Create(
TDYa127da83d972012-04-18 00:21:49 -0700929 /*Type=*/FuncTy_33,
TDYa127a4746872012-04-11 23:48:55 -0700930 /*Linkage=*/GlobalValue::ExternalLinkage,
931 /*Name=*/"F2I", mod); // (external, no body)
932func_F2I->setCallingConv(CallingConv::C);
933}
934AttrListPtr func_F2I_PAL;
935func_F2I->setAttributes(func_F2I_PAL);
936
TDYa12783bb6622012-04-17 02:20:34 -0700937Function* func_art_mark_gc_card_from_code = mod->getFunction("art_mark_gc_card_from_code");
938if (!func_art_mark_gc_card_from_code) {
939func_art_mark_gc_card_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700940 /*Type=*/FuncTy_5,
TDYa12783bb6622012-04-17 02:20:34 -0700941 /*Linkage=*/GlobalValue::ExternalLinkage,
942 /*Name=*/"art_mark_gc_card_from_code", mod); // (external, no body)
943func_art_mark_gc_card_from_code->setCallingConv(CallingConv::C);
944}
945AttrListPtr func_art_mark_gc_card_from_code_PAL;
946func_art_mark_gc_card_from_code->setAttributes(func_art_mark_gc_card_from_code_PAL);
947
TDYa1270b686e52012-04-09 22:43:35 -0700948Function* func_art_fix_stub_from_code = mod->getFunction("art_fix_stub_from_code");
949if (!func_art_fix_stub_from_code) {
950func_art_fix_stub_from_code = Function::Create(
TDYa12705fe3b62012-04-21 00:28:54 -0700951 /*Type=*/FuncTy_34,
TDYa12785321912012-04-01 15:24:56 -0700952 /*Linkage=*/GlobalValue::ExternalLinkage,
TDYa1270b686e52012-04-09 22:43:35 -0700953 /*Name=*/"art_fix_stub_from_code", mod); // (external, no body)
954func_art_fix_stub_from_code->setCallingConv(CallingConv::C);
TDYa12785321912012-04-01 15:24:56 -0700955}
TDYa1270b686e52012-04-09 22:43:35 -0700956AttrListPtr func_art_fix_stub_from_code_PAL;
957func_art_fix_stub_from_code->setAttributes(func_art_fix_stub_from_code_PAL);
TDYa12785321912012-04-01 15:24:56 -0700958
TDYa1275bb86012012-04-11 05:57:28 -0700959Function* func_art_proxy_invoke_handler_from_code = mod->getFunction("art_proxy_invoke_handler_from_code");
960if (!func_art_proxy_invoke_handler_from_code) {
961func_art_proxy_invoke_handler_from_code = Function::Create(
TDYa12705fe3b62012-04-21 00:28:54 -0700962 /*Type=*/FuncTy_35,
TDYa1275bb86012012-04-11 05:57:28 -0700963 /*Linkage=*/GlobalValue::ExternalLinkage,
964 /*Name=*/"art_proxy_invoke_handler_from_code", mod); // (external, no body)
965func_art_proxy_invoke_handler_from_code->setCallingConv(CallingConv::C);
966}
967AttrListPtr func_art_proxy_invoke_handler_from_code_PAL;
968func_art_proxy_invoke_handler_from_code->setAttributes(func_art_proxy_invoke_handler_from_code_PAL);
969
Logan Chien42e0e152012-01-13 15:42:36 +0800970// Global Variable Declarations
971
972
973// Constant Definitions
974
975// Global Variable Definitions
976
977// Function Definitions
978
979return mod;
980
981}
Logan Chiene75a8cc2012-02-24 12:26:43 +0800982
983} // namespace compiler_llvm
984} // namespace art