blob: e118646a82d6507118fc18ecec3f3aef6ac651cb [file] [log] [blame]
TDYa1270de52be2012-05-27 20:49:31 -07001// 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(
TDYa127c1478262012-06-20 20:22:27 -070073 /*Result=*/PointerTy_1,
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;
TDYa127de479be2012-05-31 08:03:26 -070086FuncTy_6_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +080087FunctionType* FuncTy_6 = FunctionType::get(
TDYa127c1478262012-06-20 20:22:27 -070088 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +080089 /*Params=*/FuncTy_6_args,
90 /*isVarArg=*/false);
91
92std::vector<Type*>FuncTy_7_args;
TDYa127c1478262012-06-20 20:22:27 -070093FuncTy_7_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -070094FuncTy_7_args.push_back(PointerTy_2);
TDYa127c1478262012-06-20 20:22:27 -070095FuncTy_7_args.push_back(PointerTy_1);
TDYa127f54f3ac2012-10-16 22:39:00 -070096FuncTy_7_args.push_back(IntegerType::get(mod->getContext(), 16));
97FuncTy_7_args.push_back(IntegerType::get(mod->getContext(), 16));
Logan Chien42e0e152012-01-13 15:42:36 +080098FunctionType* FuncTy_7 = FunctionType::get(
TDYa127c1478262012-06-20 20:22:27 -070099 /*Result=*/PointerTy_2,
Logan Chien42e0e152012-01-13 15:42:36 +0800100 /*Params=*/FuncTy_7_args,
101 /*isVarArg=*/false);
102
103std::vector<Type*>FuncTy_8_args;
TDYa127c1478262012-06-20 20:22:27 -0700104FuncTy_8_args.push_back(PointerTy_2);
Logan Chien42e0e152012-01-13 15:42:36 +0800105FunctionType* FuncTy_8 = FunctionType::get(
TDYa127c1478262012-06-20 20:22:27 -0700106 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800107 /*Params=*/FuncTy_8_args,
108 /*isVarArg=*/false);
109
110std::vector<Type*>FuncTy_9_args;
Logan Chien42e0e152012-01-13 15:42:36 +0800111FunctionType* FuncTy_9 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700112 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800113 /*Params=*/FuncTy_9_args,
114 /*isVarArg=*/false);
115
116std::vector<Type*>FuncTy_10_args;
TDYa1273d71d802012-08-15 03:47:03 -0700117FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32));
118FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800119FunctionType* FuncTy_10 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800120 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800121 /*Params=*/FuncTy_10_args,
122 /*isVarArg=*/false);
123
124std::vector<Type*>FuncTy_11_args;
TDYa127706e9b62012-04-19 12:24:26 -0700125FuncTy_11_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800126FunctionType* FuncTy_11 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700127 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800128 /*Params=*/FuncTy_11_args,
129 /*isVarArg=*/false);
130
131std::vector<Type*>FuncTy_12_args;
TDYa1273d71d802012-08-15 03:47:03 -0700132FuncTy_12_args.push_back(PointerTy_1);
133FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800134FunctionType* FuncTy_12 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700135 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800136 /*Params=*/FuncTy_12_args,
137 /*isVarArg=*/false);
138
139std::vector<Type*>FuncTy_13_args;
140FuncTy_13_args.push_back(IntegerType::get(mod->getContext(), 32));
jeffhao9a4f0032012-08-30 16:17:40 -0700141FuncTy_13_args.push_back(PointerTy_1);
142FuncTy_13_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800143FunctionType* FuncTy_13 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700144 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800145 /*Params=*/FuncTy_13_args,
146 /*isVarArg=*/false);
147
148std::vector<Type*>FuncTy_14_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800149FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1273d71d802012-08-15 03:47:03 -0700150FuncTy_14_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700151FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1273d71d802012-08-15 03:47:03 -0700152FuncTy_14_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800153FunctionType* FuncTy_14 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700154 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800155 /*Params=*/FuncTy_14_args,
156 /*isVarArg=*/false);
157
158std::vector<Type*>FuncTy_15_args;
159FuncTy_15_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien9e5f5c12012-04-10 13:51:45 +0800160FuncTy_15_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800161FunctionType* FuncTy_15 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700162 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800163 /*Params=*/FuncTy_15_args,
164 /*isVarArg=*/false);
165
166std::vector<Type*>FuncTy_16_args;
Logan Chien1b0a1b72012-03-15 06:20:17 +0800167FuncTy_16_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa127da83d972012-04-18 00:21:49 -0700168FuncTy_16_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700169FuncTy_16_args.push_back(PointerTy_1);
170FuncTy_16_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800171FunctionType* FuncTy_16 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700172 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800173 /*Params=*/FuncTy_16_args,
174 /*isVarArg=*/false);
175
176std::vector<Type*>FuncTy_17_args;
jeffhao9a4f0032012-08-30 16:17:40 -0700177FuncTy_17_args.push_back(PointerTy_1);
Logan Chien9e5f5c12012-04-10 13:51:45 +0800178FuncTy_17_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800179FunctionType* FuncTy_17 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700180 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800181 /*Params=*/FuncTy_17_args,
182 /*isVarArg=*/false);
183
184std::vector<Type*>FuncTy_18_args;
jeffhao9a4f0032012-08-30 16:17:40 -0700185FuncTy_18_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1273d71d802012-08-15 03:47:03 -0700186FuncTy_18_args.push_back(PointerTy_1);
TDYa127da83d972012-04-18 00:21:49 -0700187FuncTy_18_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800188FunctionType* FuncTy_18 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700189 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800190 /*Params=*/FuncTy_18_args,
191 /*isVarArg=*/false);
192
193std::vector<Type*>FuncTy_19_args;
TDYa1273d71d802012-08-15 03:47:03 -0700194FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800195FuncTy_19_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700196FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 64));
Logan Chien42e0e152012-01-13 15:42:36 +0800197FunctionType* FuncTy_19 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700198 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800199 /*Params=*/FuncTy_19_args,
200 /*isVarArg=*/false);
201
Logan Chien3f71e702012-02-17 18:45:27 +0800202std::vector<Type*>FuncTy_20_args;
Logan Chien3b2b2e72012-03-06 16:11:45 +0800203FuncTy_20_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chiena6b2ca62012-03-06 15:50:54 +0800204FuncTy_20_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700205FuncTy_20_args.push_back(PointerTy_1);
Logan Chien3f71e702012-02-17 18:45:27 +0800206FunctionType* FuncTy_20 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800207 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3f71e702012-02-17 18:45:27 +0800208 /*Params=*/FuncTy_20_args,
209 /*isVarArg=*/false);
210
211std::vector<Type*>FuncTy_21_args;
Logan Chien3b2b2e72012-03-06 16:11:45 +0800212FuncTy_21_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3f71e702012-02-17 18:45:27 +0800213FuncTy_21_args.push_back(PointerTy_1);
Logan Chien3f71e702012-02-17 18:45:27 +0800214FunctionType* FuncTy_21 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700215 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chiena6b2ca62012-03-06 15:50:54 +0800216 /*Params=*/FuncTy_21_args,
Logan Chien3f71e702012-02-17 18:45:27 +0800217 /*isVarArg=*/false);
218
Logan Chien3b2b2e72012-03-06 16:11:45 +0800219std::vector<Type*>FuncTy_22_args;
220FuncTy_22_args.push_back(IntegerType::get(mod->getContext(), 32));
221FuncTy_22_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800222FunctionType* FuncTy_22 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700223 /*Result=*/IntegerType::get(mod->getContext(), 64),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800224 /*Params=*/FuncTy_22_args,
225 /*isVarArg=*/false);
226
227std::vector<Type*>FuncTy_23_args;
228FuncTy_23_args.push_back(IntegerType::get(mod->getContext(), 32));
229FuncTy_23_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800230FunctionType* FuncTy_23 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700231 /*Result=*/PointerTy_1,
Logan Chien3b2b2e72012-03-06 16:11:45 +0800232 /*Params=*/FuncTy_23_args,
233 /*isVarArg=*/false);
234
235std::vector<Type*>FuncTy_24_args;
236FuncTy_24_args.push_back(IntegerType::get(mod->getContext(), 32));
237FuncTy_24_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700238FuncTy_24_args.push_back(PointerTy_1);
239FuncTy_24_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800240FunctionType* FuncTy_24 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700241 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800242 /*Params=*/FuncTy_24_args,
243 /*isVarArg=*/false);
244
245std::vector<Type*>FuncTy_25_args;
Logan Chien9e5f5c12012-04-10 13:51:45 +0800246FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800247FuncTy_25_args.push_back(PointerTy_1);
TDYa1273d71d802012-08-15 03:47:03 -0700248FuncTy_25_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700249FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 64));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800250FunctionType* FuncTy_25 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700251 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800252 /*Params=*/FuncTy_25_args,
253 /*isVarArg=*/false);
254
255std::vector<Type*>FuncTy_26_args;
TDYa127da83d972012-04-18 00:21:49 -0700256FuncTy_26_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800257FuncTy_26_args.push_back(PointerTy_1);
258FuncTy_26_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700259FuncTy_26_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800260FunctionType* FuncTy_26 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700261 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800262 /*Params=*/FuncTy_26_args,
263 /*isVarArg=*/false);
264
TDYa12728f1a142012-03-15 21:51:52 -0700265std::vector<Type*>FuncTy_27_args;
TDYa127706e9b62012-04-19 12:24:26 -0700266FuncTy_27_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa12728f1a142012-03-15 21:51:52 -0700267FuncTy_27_args.push_back(PointerTy_1);
268FuncTy_27_args.push_back(PointerTy_1);
269FunctionType* FuncTy_27 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700270 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa12728f1a142012-03-15 21:51:52 -0700271 /*Params=*/FuncTy_27_args,
272 /*isVarArg=*/false);
273
TDYa12785321912012-04-01 15:24:56 -0700274std::vector<Type*>FuncTy_28_args;
275FuncTy_28_args.push_back(PointerTy_1);
276FuncTy_28_args.push_back(PointerTy_1);
TDYa12785321912012-04-01 15:24:56 -0700277FunctionType* FuncTy_28 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700278 /*Result=*/PointerTy_1,
TDYa12785321912012-04-01 15:24:56 -0700279 /*Params=*/FuncTy_28_args,
280 /*isVarArg=*/false);
281
TDYa1270b686e52012-04-09 22:43:35 -0700282std::vector<Type*>FuncTy_29_args;
TDYa127da83d972012-04-18 00:21:49 -0700283FuncTy_29_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700284FuncTy_29_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa127da83d972012-04-18 00:21:49 -0700285FuncTy_29_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700286FuncTy_29_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1270b686e52012-04-09 22:43:35 -0700287FunctionType* FuncTy_29 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700288 /*Result=*/Type::getVoidTy(mod->getContext()),
TDYa1270b686e52012-04-09 22:43:35 -0700289 /*Params=*/FuncTy_29_args,
290 /*isVarArg=*/false);
291
Logan Chien9e5f5c12012-04-10 13:51:45 +0800292std::vector<Type*>FuncTy_30_args;
Logan Chien86f50672012-04-24 13:08:45 +0800293FuncTy_30_args.push_back(PointerTy_1);
294FuncTy_30_args.push_back(PointerTy_1);
Logan Chien9e5f5c12012-04-10 13:51:45 +0800295FunctionType* FuncTy_30 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700296 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien9e5f5c12012-04-10 13:51:45 +0800297 /*Params=*/FuncTy_30_args,
298 /*isVarArg=*/false);
299
TDYa1275bb86012012-04-11 05:57:28 -0700300std::vector<Type*>FuncTy_31_args;
jeffhao9a4f0032012-08-30 16:17:40 -0700301FuncTy_31_args.push_back(Type::getDoubleTy(mod->getContext()));
TDYa1275bb86012012-04-11 05:57:28 -0700302FunctionType* FuncTy_31 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700303 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa1275bb86012012-04-11 05:57:28 -0700304 /*Params=*/FuncTy_31_args,
TDYa127a4746872012-04-11 23:48:55 -0700305 /*isVarArg=*/false);
306
307std::vector<Type*>FuncTy_32_args;
TDYa1273d71d802012-08-15 03:47:03 -0700308FuncTy_32_args.push_back(Type::getDoubleTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700309FunctionType* FuncTy_32 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700310 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa127a4746872012-04-11 23:48:55 -0700311 /*Params=*/FuncTy_32_args,
312 /*isVarArg=*/false);
313
314std::vector<Type*>FuncTy_33_args;
jeffhao9a4f0032012-08-30 16:17:40 -0700315FuncTy_33_args.push_back(Type::getFloatTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700316FunctionType* FuncTy_33 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700317 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa127a4746872012-04-11 23:48:55 -0700318 /*Params=*/FuncTy_33_args,
319 /*isVarArg=*/false);
320
321std::vector<Type*>FuncTy_34_args;
TDYa1273d71d802012-08-15 03:47:03 -0700322FuncTy_34_args.push_back(Type::getFloatTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700323FunctionType* FuncTy_34 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700324 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa127a4746872012-04-11 23:48:55 -0700325 /*Params=*/FuncTy_34_args,
326 /*isVarArg=*/false);
327
328std::vector<Type*>FuncTy_35_args;
jeffhao9a4f0032012-08-30 16:17:40 -0700329FuncTy_35_args.push_back(PointerTy_1);
TDYa127a4746872012-04-11 23:48:55 -0700330FunctionType* FuncTy_35 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700331 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa12705fe3b62012-04-21 00:28:54 -0700332 /*Params=*/FuncTy_35_args,
Logan Chien86f50672012-04-24 13:08:45 +0800333 /*isVarArg=*/false);
334
335std::vector<Type*>FuncTy_36_args;
jeffhao9a4f0032012-08-30 16:17:40 -0700336FuncTy_36_args.push_back(IntegerType::get(mod->getContext(), 32));
337FuncTy_36_args.push_back(PointerTy_1);
TDYa1273d71d802012-08-15 03:47:03 -0700338FuncTy_36_args.push_back(PointerTy_1);
Logan Chien86f50672012-04-24 13:08:45 +0800339FunctionType* FuncTy_36 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700340 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien86f50672012-04-24 13:08:45 +0800341 /*Params=*/FuncTy_36_args,
TDYa1270de52be2012-05-27 20:49:31 -0700342 /*isVarArg=*/false);
343
344std::vector<Type*>FuncTy_37_args;
jeffhao9a4f0032012-08-30 16:17:40 -0700345FuncTy_37_args.push_back(PointerTy_1);
TDYa1273d71d802012-08-15 03:47:03 -0700346FuncTy_37_args.push_back(IntegerType::get(mod->getContext(), 32));
347FuncTy_37_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700348FunctionType* FuncTy_37 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700349 /*Result=*/PointerTy_1,
TDYa1270de52be2012-05-27 20:49:31 -0700350 /*Params=*/FuncTy_37_args,
TDYa1273d71d802012-08-15 03:47:03 -0700351 /*isVarArg=*/false);
352
353std::vector<Type*>FuncTy_38_args;
354FuncTy_38_args.push_back(PointerTy_1);
355FuncTy_38_args.push_back(IntegerType::get(mod->getContext(), 32));
356FuncTy_38_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700357FuncTy_38_args.push_back(PointerTy_1);
TDYa1273d71d802012-08-15 03:47:03 -0700358FunctionType* FuncTy_38 = FunctionType::get(
359 /*Result=*/PointerTy_1,
360 /*Params=*/FuncTy_38_args,
361 /*isVarArg=*/false);
362
363std::vector<Type*>FuncTy_39_args;
TDYa1273d71d802012-08-15 03:47:03 -0700364FunctionType* FuncTy_39 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700365 /*Result=*/IntegerType::get(mod->getContext(), 1),
TDYa1273d71d802012-08-15 03:47:03 -0700366 /*Params=*/FuncTy_39_args,
367 /*isVarArg=*/false);
368
369std::vector<Type*>FuncTy_40_args;
jeffhao9a4f0032012-08-30 16:17:40 -0700370FuncTy_40_args.push_back(PointerTy_1);
TDYa1273d71d802012-08-15 03:47:03 -0700371FunctionType* FuncTy_40 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700372 /*Result=*/Type::getVoidTy(mod->getContext()),
jeffhao9a4f0032012-08-30 16:17:40 -0700373 /*Params=*/FuncTy_40_args,
TDYa1275bb86012012-04-11 05:57:28 -0700374 /*isVarArg=*/true);
375
Logan Chien42e0e152012-01-13 15:42:36 +0800376
377// Function Declarations
378
379Function* func___art_type_list = mod->getFunction("__art_type_list");
380if (!func___art_type_list) {
381func___art_type_list = Function::Create(
382 /*Type=*/FuncTy_0,
383 /*Linkage=*/GlobalValue::ExternalLinkage,
384 /*Name=*/"__art_type_list", mod); // (external, no body)
385func___art_type_list->setCallingConv(CallingConv::C);
386}
387AttrListPtr func___art_type_list_PAL;
388func___art_type_list->setAttributes(func___art_type_list_PAL);
389
390Function* func_art_get_current_thread_from_code = mod->getFunction("art_get_current_thread_from_code");
391if (!func_art_get_current_thread_from_code) {
392func_art_get_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800393 /*Type=*/FuncTy_3,
Logan Chien42e0e152012-01-13 15:42:36 +0800394 /*Linkage=*/GlobalValue::ExternalLinkage,
395 /*Name=*/"art_get_current_thread_from_code", mod); // (external, no body)
396func_art_get_current_thread_from_code->setCallingConv(CallingConv::C);
397}
398AttrListPtr func_art_get_current_thread_from_code_PAL;
399func_art_get_current_thread_from_code->setAttributes(func_art_get_current_thread_from_code_PAL);
400
401Function* func_art_set_current_thread_from_code = mod->getFunction("art_set_current_thread_from_code");
402if (!func_art_set_current_thread_from_code) {
403func_art_set_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800404 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800405 /*Linkage=*/GlobalValue::ExternalLinkage,
406 /*Name=*/"art_set_current_thread_from_code", mod); // (external, no body)
407func_art_set_current_thread_from_code->setCallingConv(CallingConv::C);
408}
409AttrListPtr func_art_set_current_thread_from_code_PAL;
410func_art_set_current_thread_from_code->setAttributes(func_art_set_current_thread_from_code_PAL);
411
412Function* func_art_lock_object_from_code = mod->getFunction("art_lock_object_from_code");
413if (!func_art_lock_object_from_code) {
414func_art_lock_object_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700415 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800416 /*Linkage=*/GlobalValue::ExternalLinkage,
417 /*Name=*/"art_lock_object_from_code", mod); // (external, no body)
418func_art_lock_object_from_code->setCallingConv(CallingConv::C);
419}
420AttrListPtr func_art_lock_object_from_code_PAL;
421func_art_lock_object_from_code->setAttributes(func_art_lock_object_from_code_PAL);
422
423Function* func_art_unlock_object_from_code = mod->getFunction("art_unlock_object_from_code");
424if (!func_art_unlock_object_from_code) {
425func_art_unlock_object_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700426 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800427 /*Linkage=*/GlobalValue::ExternalLinkage,
428 /*Name=*/"art_unlock_object_from_code", mod); // (external, no body)
429func_art_unlock_object_from_code->setCallingConv(CallingConv::C);
430}
431AttrListPtr func_art_unlock_object_from_code_PAL;
432func_art_unlock_object_from_code->setAttributes(func_art_unlock_object_from_code_PAL);
433
434Function* func_art_test_suspend_from_code = mod->getFunction("art_test_suspend_from_code");
435if (!func_art_test_suspend_from_code) {
436func_art_test_suspend_from_code = Function::Create(
TDYa127c1478262012-06-20 20:22:27 -0700437 /*Type=*/FuncTy_6,
Logan Chien42e0e152012-01-13 15:42:36 +0800438 /*Linkage=*/GlobalValue::ExternalLinkage,
439 /*Name=*/"art_test_suspend_from_code", mod); // (external, no body)
440func_art_test_suspend_from_code->setCallingConv(CallingConv::C);
441}
442AttrListPtr func_art_test_suspend_from_code_PAL;
443func_art_test_suspend_from_code->setAttributes(func_art_test_suspend_from_code_PAL);
444
Logan Chien3f71e702012-02-17 18:45:27 +0800445Function* func_art_push_shadow_frame_from_code = mod->getFunction("art_push_shadow_frame_from_code");
446if (!func_art_push_shadow_frame_from_code) {
447func_art_push_shadow_frame_from_code = Function::Create(
TDYa127c1478262012-06-20 20:22:27 -0700448 /*Type=*/FuncTy_7,
Logan Chien3f71e702012-02-17 18:45:27 +0800449 /*Linkage=*/GlobalValue::ExternalLinkage,
450 /*Name=*/"art_push_shadow_frame_from_code", mod); // (external, no body)
451func_art_push_shadow_frame_from_code->setCallingConv(CallingConv::C);
452}
453AttrListPtr func_art_push_shadow_frame_from_code_PAL;
454func_art_push_shadow_frame_from_code->setAttributes(func_art_push_shadow_frame_from_code_PAL);
455
456Function* func_art_pop_shadow_frame_from_code = mod->getFunction("art_pop_shadow_frame_from_code");
457if (!func_art_pop_shadow_frame_from_code) {
458func_art_pop_shadow_frame_from_code = Function::Create(
TDYa127c1478262012-06-20 20:22:27 -0700459 /*Type=*/FuncTy_8,
Logan Chien3f71e702012-02-17 18:45:27 +0800460 /*Linkage=*/GlobalValue::ExternalLinkage,
461 /*Name=*/"art_pop_shadow_frame_from_code", mod); // (external, no body)
462func_art_pop_shadow_frame_from_code->setCallingConv(CallingConv::C);
463}
464AttrListPtr func_art_pop_shadow_frame_from_code_PAL;
465func_art_pop_shadow_frame_from_code->setAttributes(func_art_pop_shadow_frame_from_code_PAL);
466
TDYa127823433d2012-09-26 16:03:51 -0700467Function* func_art_get_and_clear_exception = mod->getFunction("art_get_and_clear_exception");
468if (!func_art_get_and_clear_exception) {
469func_art_get_and_clear_exception = Function::Create(
470 /*Type=*/FuncTy_4,
471 /*Linkage=*/GlobalValue::ExternalLinkage,
472 /*Name=*/"art_get_and_clear_exception", mod); // (external, no body)
473func_art_get_and_clear_exception->setCallingConv(CallingConv::C);
474}
475AttrListPtr func_art_get_and_clear_exception_PAL;
476func_art_get_and_clear_exception->setAttributes(func_art_get_and_clear_exception_PAL);
477
Logan Chien42e0e152012-01-13 15:42:36 +0800478Function* func_art_throw_div_zero_from_code = mod->getFunction("art_throw_div_zero_from_code");
479if (!func_art_throw_div_zero_from_code) {
480func_art_throw_div_zero_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700481 /*Type=*/FuncTy_9,
Logan Chien42e0e152012-01-13 15:42:36 +0800482 /*Linkage=*/GlobalValue::ExternalLinkage,
483 /*Name=*/"art_throw_div_zero_from_code", mod); // (external, no body)
484func_art_throw_div_zero_from_code->setCallingConv(CallingConv::C);
485}
486AttrListPtr func_art_throw_div_zero_from_code_PAL;
487func_art_throw_div_zero_from_code->setAttributes(func_art_throw_div_zero_from_code_PAL);
488
489Function* func_art_throw_array_bounds_from_code = mod->getFunction("art_throw_array_bounds_from_code");
490if (!func_art_throw_array_bounds_from_code) {
491func_art_throw_array_bounds_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700492 /*Type=*/FuncTy_10,
Logan Chien42e0e152012-01-13 15:42:36 +0800493 /*Linkage=*/GlobalValue::ExternalLinkage,
494 /*Name=*/"art_throw_array_bounds_from_code", mod); // (external, no body)
495func_art_throw_array_bounds_from_code->setCallingConv(CallingConv::C);
496}
497AttrListPtr func_art_throw_array_bounds_from_code_PAL;
498func_art_throw_array_bounds_from_code->setAttributes(func_art_throw_array_bounds_from_code_PAL);
499
500Function* func_art_throw_no_such_method_from_code = mod->getFunction("art_throw_no_such_method_from_code");
501if (!func_art_throw_no_such_method_from_code) {
502func_art_throw_no_such_method_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700503 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800504 /*Linkage=*/GlobalValue::ExternalLinkage,
505 /*Name=*/"art_throw_no_such_method_from_code", mod); // (external, no body)
506func_art_throw_no_such_method_from_code->setCallingConv(CallingConv::C);
507}
508AttrListPtr func_art_throw_no_such_method_from_code_PAL;
509func_art_throw_no_such_method_from_code->setAttributes(func_art_throw_no_such_method_from_code_PAL);
510
511Function* func_art_throw_null_pointer_exception_from_code = mod->getFunction("art_throw_null_pointer_exception_from_code");
512if (!func_art_throw_null_pointer_exception_from_code) {
513func_art_throw_null_pointer_exception_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700514 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800515 /*Linkage=*/GlobalValue::ExternalLinkage,
516 /*Name=*/"art_throw_null_pointer_exception_from_code", mod); // (external, no body)
517func_art_throw_null_pointer_exception_from_code->setCallingConv(CallingConv::C);
518}
519AttrListPtr func_art_throw_null_pointer_exception_from_code_PAL;
520func_art_throw_null_pointer_exception_from_code->setAttributes(func_art_throw_null_pointer_exception_from_code_PAL);
521
522Function* func_art_throw_stack_overflow_from_code = mod->getFunction("art_throw_stack_overflow_from_code");
523if (!func_art_throw_stack_overflow_from_code) {
524func_art_throw_stack_overflow_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700525 /*Type=*/FuncTy_9,
Logan Chien42e0e152012-01-13 15:42:36 +0800526 /*Linkage=*/GlobalValue::ExternalLinkage,
527 /*Name=*/"art_throw_stack_overflow_from_code", mod); // (external, no body)
528func_art_throw_stack_overflow_from_code->setCallingConv(CallingConv::C);
529}
530AttrListPtr func_art_throw_stack_overflow_from_code_PAL;
531func_art_throw_stack_overflow_from_code->setAttributes(func_art_throw_stack_overflow_from_code_PAL);
532
533Function* func_art_throw_exception_from_code = mod->getFunction("art_throw_exception_from_code");
534if (!func_art_throw_exception_from_code) {
535func_art_throw_exception_from_code = Function::Create(
TDYa127c1478262012-06-20 20:22:27 -0700536 /*Type=*/FuncTy_6,
Logan Chien42e0e152012-01-13 15:42:36 +0800537 /*Linkage=*/GlobalValue::ExternalLinkage,
538 /*Name=*/"art_throw_exception_from_code", mod); // (external, no body)
539func_art_throw_exception_from_code->setCallingConv(CallingConv::C);
540}
541AttrListPtr func_art_throw_exception_from_code_PAL;
542func_art_throw_exception_from_code->setAttributes(func_art_throw_exception_from_code_PAL);
543
544Function* func_art_find_catch_block_from_code = mod->getFunction("art_find_catch_block_from_code");
545if (!func_art_find_catch_block_from_code) {
546func_art_find_catch_block_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700547 /*Type=*/FuncTy_12,
Logan Chien42e0e152012-01-13 15:42:36 +0800548 /*Linkage=*/GlobalValue::ExternalLinkage,
549 /*Name=*/"art_find_catch_block_from_code", mod); // (external, no body)
550func_art_find_catch_block_from_code->setCallingConv(CallingConv::C);
551}
552AttrListPtr func_art_find_catch_block_from_code_PAL;
553func_art_find_catch_block_from_code->setAttributes(func_art_find_catch_block_from_code_PAL);
554
555Function* func_art_alloc_object_from_code = mod->getFunction("art_alloc_object_from_code");
556if (!func_art_alloc_object_from_code) {
557func_art_alloc_object_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700558 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800559 /*Linkage=*/GlobalValue::ExternalLinkage,
560 /*Name=*/"art_alloc_object_from_code", mod); // (external, no body)
561func_art_alloc_object_from_code->setCallingConv(CallingConv::C);
562}
563AttrListPtr func_art_alloc_object_from_code_PAL;
564func_art_alloc_object_from_code->setAttributes(func_art_alloc_object_from_code_PAL);
565
566Function* func_art_alloc_object_from_code_with_access_check = mod->getFunction("art_alloc_object_from_code_with_access_check");
567if (!func_art_alloc_object_from_code_with_access_check) {
568func_art_alloc_object_from_code_with_access_check = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700569 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800570 /*Linkage=*/GlobalValue::ExternalLinkage,
571 /*Name=*/"art_alloc_object_from_code_with_access_check", mod); // (external, no body)
572func_art_alloc_object_from_code_with_access_check->setCallingConv(CallingConv::C);
573}
574AttrListPtr func_art_alloc_object_from_code_with_access_check_PAL;
575func_art_alloc_object_from_code_with_access_check->setAttributes(func_art_alloc_object_from_code_with_access_check_PAL);
576
577Function* func_art_alloc_array_from_code = mod->getFunction("art_alloc_array_from_code");
578if (!func_art_alloc_array_from_code) {
579func_art_alloc_array_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700580 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800581 /*Linkage=*/GlobalValue::ExternalLinkage,
582 /*Name=*/"art_alloc_array_from_code", mod); // (external, no body)
583func_art_alloc_array_from_code->setCallingConv(CallingConv::C);
584}
585AttrListPtr func_art_alloc_array_from_code_PAL;
586func_art_alloc_array_from_code->setAttributes(func_art_alloc_array_from_code_PAL);
587
588Function* func_art_alloc_array_from_code_with_access_check = mod->getFunction("art_alloc_array_from_code_with_access_check");
589if (!func_art_alloc_array_from_code_with_access_check) {
590func_art_alloc_array_from_code_with_access_check = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700591 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800592 /*Linkage=*/GlobalValue::ExternalLinkage,
593 /*Name=*/"art_alloc_array_from_code_with_access_check", mod); // (external, no body)
594func_art_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
595}
596AttrListPtr func_art_alloc_array_from_code_with_access_check_PAL;
597func_art_alloc_array_from_code_with_access_check->setAttributes(func_art_alloc_array_from_code_with_access_check_PAL);
598
599Function* func_art_check_and_alloc_array_from_code = mod->getFunction("art_check_and_alloc_array_from_code");
600if (!func_art_check_and_alloc_array_from_code) {
601func_art_check_and_alloc_array_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700602 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800603 /*Linkage=*/GlobalValue::ExternalLinkage,
604 /*Name=*/"art_check_and_alloc_array_from_code", mod); // (external, no body)
605func_art_check_and_alloc_array_from_code->setCallingConv(CallingConv::C);
606}
607AttrListPtr func_art_check_and_alloc_array_from_code_PAL;
608func_art_check_and_alloc_array_from_code->setAttributes(func_art_check_and_alloc_array_from_code_PAL);
609
610Function* func_art_check_and_alloc_array_from_code_with_access_check = mod->getFunction("art_check_and_alloc_array_from_code_with_access_check");
611if (!func_art_check_and_alloc_array_from_code_with_access_check) {
612func_art_check_and_alloc_array_from_code_with_access_check = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700613 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800614 /*Linkage=*/GlobalValue::ExternalLinkage,
615 /*Name=*/"art_check_and_alloc_array_from_code_with_access_check", mod); // (external, no body)
616func_art_check_and_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
617}
618AttrListPtr func_art_check_and_alloc_array_from_code_with_access_check_PAL;
619func_art_check_and_alloc_array_from_code_with_access_check->setAttributes(func_art_check_and_alloc_array_from_code_with_access_check_PAL);
620
Logan Chien42e0e152012-01-13 15:42:36 +0800621Function* func_art_find_instance_field_from_code = mod->getFunction("art_find_instance_field_from_code");
622if (!func_art_find_instance_field_from_code) {
623func_art_find_instance_field_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700624 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800625 /*Linkage=*/GlobalValue::ExternalLinkage,
626 /*Name=*/"art_find_instance_field_from_code", mod); // (external, no body)
627func_art_find_instance_field_from_code->setCallingConv(CallingConv::C);
628}
629AttrListPtr func_art_find_instance_field_from_code_PAL;
630func_art_find_instance_field_from_code->setAttributes(func_art_find_instance_field_from_code_PAL);
631
632Function* func_art_find_static_field_from_code = mod->getFunction("art_find_static_field_from_code");
633if (!func_art_find_static_field_from_code) {
634func_art_find_static_field_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700635 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800636 /*Linkage=*/GlobalValue::ExternalLinkage,
637 /*Name=*/"art_find_static_field_from_code", mod); // (external, no body)
638func_art_find_static_field_from_code->setCallingConv(CallingConv::C);
639}
640AttrListPtr func_art_find_static_field_from_code_PAL;
641func_art_find_static_field_from_code->setAttributes(func_art_find_static_field_from_code_PAL);
642
Logan Chien7e7fabc2012-04-10 18:59:11 +0800643Function* func_art_find_static_method_from_code_with_access_check = mod->getFunction("art_find_static_method_from_code_with_access_check");
644if (!func_art_find_static_method_from_code_with_access_check) {
645func_art_find_static_method_from_code_with_access_check = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700646 /*Type=*/FuncTy_16,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800647 /*Linkage=*/GlobalValue::ExternalLinkage,
648 /*Name=*/"art_find_static_method_from_code_with_access_check", mod); // (external, no body)
649func_art_find_static_method_from_code_with_access_check->setCallingConv(CallingConv::C);
650}
651AttrListPtr func_art_find_static_method_from_code_with_access_check_PAL;
652func_art_find_static_method_from_code_with_access_check->setAttributes(func_art_find_static_method_from_code_with_access_check_PAL);
653
654Function* func_art_find_direct_method_from_code_with_access_check = mod->getFunction("art_find_direct_method_from_code_with_access_check");
655if (!func_art_find_direct_method_from_code_with_access_check) {
656func_art_find_direct_method_from_code_with_access_check = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700657 /*Type=*/FuncTy_16,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800658 /*Linkage=*/GlobalValue::ExternalLinkage,
659 /*Name=*/"art_find_direct_method_from_code_with_access_check", mod); // (external, no body)
660func_art_find_direct_method_from_code_with_access_check->setCallingConv(CallingConv::C);
661}
662AttrListPtr func_art_find_direct_method_from_code_with_access_check_PAL;
663func_art_find_direct_method_from_code_with_access_check->setAttributes(func_art_find_direct_method_from_code_with_access_check_PAL);
664
665Function* func_art_find_virtual_method_from_code_with_access_check = mod->getFunction("art_find_virtual_method_from_code_with_access_check");
666if (!func_art_find_virtual_method_from_code_with_access_check) {
667func_art_find_virtual_method_from_code_with_access_check = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700668 /*Type=*/FuncTy_16,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800669 /*Linkage=*/GlobalValue::ExternalLinkage,
670 /*Name=*/"art_find_virtual_method_from_code_with_access_check", mod); // (external, no body)
671func_art_find_virtual_method_from_code_with_access_check->setCallingConv(CallingConv::C);
672}
673AttrListPtr func_art_find_virtual_method_from_code_with_access_check_PAL;
674func_art_find_virtual_method_from_code_with_access_check->setAttributes(func_art_find_virtual_method_from_code_with_access_check_PAL);
675
676Function* func_art_find_super_method_from_code_with_access_check = mod->getFunction("art_find_super_method_from_code_with_access_check");
677if (!func_art_find_super_method_from_code_with_access_check) {
678func_art_find_super_method_from_code_with_access_check = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700679 /*Type=*/FuncTy_16,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800680 /*Linkage=*/GlobalValue::ExternalLinkage,
681 /*Name=*/"art_find_super_method_from_code_with_access_check", mod); // (external, no body)
682func_art_find_super_method_from_code_with_access_check->setCallingConv(CallingConv::C);
683}
684AttrListPtr func_art_find_super_method_from_code_with_access_check_PAL;
685func_art_find_super_method_from_code_with_access_check->setAttributes(func_art_find_super_method_from_code_with_access_check_PAL);
686
687Function* func_art_find_interface_method_from_code_with_access_check = mod->getFunction("art_find_interface_method_from_code_with_access_check");
688if (!func_art_find_interface_method_from_code_with_access_check) {
689func_art_find_interface_method_from_code_with_access_check = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700690 /*Type=*/FuncTy_16,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800691 /*Linkage=*/GlobalValue::ExternalLinkage,
692 /*Name=*/"art_find_interface_method_from_code_with_access_check", mod); // (external, no body)
693func_art_find_interface_method_from_code_with_access_check->setCallingConv(CallingConv::C);
694}
695AttrListPtr func_art_find_interface_method_from_code_with_access_check_PAL;
696func_art_find_interface_method_from_code_with_access_check->setAttributes(func_art_find_interface_method_from_code_with_access_check_PAL);
697
Logan Chien42e0e152012-01-13 15:42:36 +0800698Function* func_art_find_interface_method_from_code = mod->getFunction("art_find_interface_method_from_code");
699if (!func_art_find_interface_method_from_code) {
700func_art_find_interface_method_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700701 /*Type=*/FuncTy_16,
Logan Chien42e0e152012-01-13 15:42:36 +0800702 /*Linkage=*/GlobalValue::ExternalLinkage,
703 /*Name=*/"art_find_interface_method_from_code", mod); // (external, no body)
704func_art_find_interface_method_from_code->setCallingConv(CallingConv::C);
705}
706AttrListPtr func_art_find_interface_method_from_code_PAL;
707func_art_find_interface_method_from_code->setAttributes(func_art_find_interface_method_from_code_PAL);
708
709Function* func_art_initialize_static_storage_from_code = mod->getFunction("art_initialize_static_storage_from_code");
710if (!func_art_initialize_static_storage_from_code) {
711func_art_initialize_static_storage_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700712 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800713 /*Linkage=*/GlobalValue::ExternalLinkage,
714 /*Name=*/"art_initialize_static_storage_from_code", mod); // (external, no body)
715func_art_initialize_static_storage_from_code->setCallingConv(CallingConv::C);
716}
717AttrListPtr func_art_initialize_static_storage_from_code_PAL;
718func_art_initialize_static_storage_from_code->setAttributes(func_art_initialize_static_storage_from_code_PAL);
719
720Function* func_art_initialize_type_from_code = mod->getFunction("art_initialize_type_from_code");
721if (!func_art_initialize_type_from_code) {
722func_art_initialize_type_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700723 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800724 /*Linkage=*/GlobalValue::ExternalLinkage,
725 /*Name=*/"art_initialize_type_from_code", mod); // (external, no body)
726func_art_initialize_type_from_code->setCallingConv(CallingConv::C);
727}
728AttrListPtr func_art_initialize_type_from_code_PAL;
729func_art_initialize_type_from_code->setAttributes(func_art_initialize_type_from_code_PAL);
730
731Function* func_art_initialize_type_and_verify_access_from_code = mod->getFunction("art_initialize_type_and_verify_access_from_code");
732if (!func_art_initialize_type_and_verify_access_from_code) {
733func_art_initialize_type_and_verify_access_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700734 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800735 /*Linkage=*/GlobalValue::ExternalLinkage,
736 /*Name=*/"art_initialize_type_and_verify_access_from_code", mod); // (external, no body)
737func_art_initialize_type_and_verify_access_from_code->setCallingConv(CallingConv::C);
738}
739AttrListPtr func_art_initialize_type_and_verify_access_from_code_PAL;
740func_art_initialize_type_and_verify_access_from_code->setAttributes(func_art_initialize_type_and_verify_access_from_code_PAL);
741
742Function* func_art_resolve_string_from_code = mod->getFunction("art_resolve_string_from_code");
743if (!func_art_resolve_string_from_code) {
744func_art_resolve_string_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700745 /*Type=*/FuncTy_17,
Logan Chien42e0e152012-01-13 15:42:36 +0800746 /*Linkage=*/GlobalValue::ExternalLinkage,
747 /*Name=*/"art_resolve_string_from_code", mod); // (external, no body)
748func_art_resolve_string_from_code->setCallingConv(CallingConv::C);
749}
750AttrListPtr func_art_resolve_string_from_code_PAL;
751func_art_resolve_string_from_code->setAttributes(func_art_resolve_string_from_code_PAL);
752
Logan Chien42e0e152012-01-13 15:42:36 +0800753Function* func_art_set32_static_from_code = mod->getFunction("art_set32_static_from_code");
754if (!func_art_set32_static_from_code) {
755func_art_set32_static_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700756 /*Type=*/FuncTy_18,
Logan Chien42e0e152012-01-13 15:42:36 +0800757 /*Linkage=*/GlobalValue::ExternalLinkage,
758 /*Name=*/"art_set32_static_from_code", mod); // (external, no body)
759func_art_set32_static_from_code->setCallingConv(CallingConv::C);
760}
761AttrListPtr func_art_set32_static_from_code_PAL;
762func_art_set32_static_from_code->setAttributes(func_art_set32_static_from_code_PAL);
763
764Function* func_art_set64_static_from_code = mod->getFunction("art_set64_static_from_code");
765if (!func_art_set64_static_from_code) {
766func_art_set64_static_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700767 /*Type=*/FuncTy_19,
Logan Chien42e0e152012-01-13 15:42:36 +0800768 /*Linkage=*/GlobalValue::ExternalLinkage,
769 /*Name=*/"art_set64_static_from_code", mod); // (external, no body)
770func_art_set64_static_from_code->setCallingConv(CallingConv::C);
771}
772AttrListPtr func_art_set64_static_from_code_PAL;
773func_art_set64_static_from_code->setAttributes(func_art_set64_static_from_code_PAL);
774
775Function* func_art_set_obj_static_from_code = mod->getFunction("art_set_obj_static_from_code");
776if (!func_art_set_obj_static_from_code) {
777func_art_set_obj_static_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700778 /*Type=*/FuncTy_20,
Logan Chien42e0e152012-01-13 15:42:36 +0800779 /*Linkage=*/GlobalValue::ExternalLinkage,
780 /*Name=*/"art_set_obj_static_from_code", mod); // (external, no body)
781func_art_set_obj_static_from_code->setCallingConv(CallingConv::C);
782}
783AttrListPtr func_art_set_obj_static_from_code_PAL;
784func_art_set_obj_static_from_code->setAttributes(func_art_set_obj_static_from_code_PAL);
785
786Function* func_art_get32_static_from_code = mod->getFunction("art_get32_static_from_code");
787if (!func_art_get32_static_from_code) {
788func_art_get32_static_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700789 /*Type=*/FuncTy_21,
Logan Chien42e0e152012-01-13 15:42:36 +0800790 /*Linkage=*/GlobalValue::ExternalLinkage,
791 /*Name=*/"art_get32_static_from_code", mod); // (external, no body)
792func_art_get32_static_from_code->setCallingConv(CallingConv::C);
793}
794AttrListPtr func_art_get32_static_from_code_PAL;
795func_art_get32_static_from_code->setAttributes(func_art_get32_static_from_code_PAL);
796
797Function* func_art_get64_static_from_code = mod->getFunction("art_get64_static_from_code");
798if (!func_art_get64_static_from_code) {
799func_art_get64_static_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700800 /*Type=*/FuncTy_22,
Logan Chien42e0e152012-01-13 15:42:36 +0800801 /*Linkage=*/GlobalValue::ExternalLinkage,
802 /*Name=*/"art_get64_static_from_code", mod); // (external, no body)
803func_art_get64_static_from_code->setCallingConv(CallingConv::C);
804}
805AttrListPtr func_art_get64_static_from_code_PAL;
806func_art_get64_static_from_code->setAttributes(func_art_get64_static_from_code_PAL);
807
808Function* func_art_get_obj_static_from_code = mod->getFunction("art_get_obj_static_from_code");
809if (!func_art_get_obj_static_from_code) {
810func_art_get_obj_static_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700811 /*Type=*/FuncTy_23,
Logan Chien42e0e152012-01-13 15:42:36 +0800812 /*Linkage=*/GlobalValue::ExternalLinkage,
813 /*Name=*/"art_get_obj_static_from_code", mod); // (external, no body)
814func_art_get_obj_static_from_code->setCallingConv(CallingConv::C);
815}
816AttrListPtr func_art_get_obj_static_from_code_PAL;
817func_art_get_obj_static_from_code->setAttributes(func_art_get_obj_static_from_code_PAL);
818
819Function* func_art_set32_instance_from_code = mod->getFunction("art_set32_instance_from_code");
820if (!func_art_set32_instance_from_code) {
821func_art_set32_instance_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700822 /*Type=*/FuncTy_24,
Logan Chien42e0e152012-01-13 15:42:36 +0800823 /*Linkage=*/GlobalValue::ExternalLinkage,
824 /*Name=*/"art_set32_instance_from_code", mod); // (external, no body)
825func_art_set32_instance_from_code->setCallingConv(CallingConv::C);
826}
827AttrListPtr func_art_set32_instance_from_code_PAL;
828func_art_set32_instance_from_code->setAttributes(func_art_set32_instance_from_code_PAL);
829
830Function* func_art_set64_instance_from_code = mod->getFunction("art_set64_instance_from_code");
831if (!func_art_set64_instance_from_code) {
832func_art_set64_instance_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700833 /*Type=*/FuncTy_25,
Logan Chien42e0e152012-01-13 15:42:36 +0800834 /*Linkage=*/GlobalValue::ExternalLinkage,
835 /*Name=*/"art_set64_instance_from_code", mod); // (external, no body)
836func_art_set64_instance_from_code->setCallingConv(CallingConv::C);
837}
838AttrListPtr func_art_set64_instance_from_code_PAL;
839func_art_set64_instance_from_code->setAttributes(func_art_set64_instance_from_code_PAL);
840
841Function* func_art_set_obj_instance_from_code = mod->getFunction("art_set_obj_instance_from_code");
842if (!func_art_set_obj_instance_from_code) {
843func_art_set_obj_instance_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700844 /*Type=*/FuncTy_26,
Logan Chien42e0e152012-01-13 15:42:36 +0800845 /*Linkage=*/GlobalValue::ExternalLinkage,
846 /*Name=*/"art_set_obj_instance_from_code", mod); // (external, no body)
847func_art_set_obj_instance_from_code->setCallingConv(CallingConv::C);
848}
849AttrListPtr func_art_set_obj_instance_from_code_PAL;
850func_art_set_obj_instance_from_code->setAttributes(func_art_set_obj_instance_from_code_PAL);
851
852Function* func_art_get32_instance_from_code = mod->getFunction("art_get32_instance_from_code");
853if (!func_art_get32_instance_from_code) {
854func_art_get32_instance_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700855 /*Type=*/FuncTy_20,
Logan Chien42e0e152012-01-13 15:42:36 +0800856 /*Linkage=*/GlobalValue::ExternalLinkage,
857 /*Name=*/"art_get32_instance_from_code", mod); // (external, no body)
858func_art_get32_instance_from_code->setCallingConv(CallingConv::C);
859}
860AttrListPtr func_art_get32_instance_from_code_PAL;
861func_art_get32_instance_from_code->setAttributes(func_art_get32_instance_from_code_PAL);
862
863Function* func_art_get64_instance_from_code = mod->getFunction("art_get64_instance_from_code");
864if (!func_art_get64_instance_from_code) {
865func_art_get64_instance_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700866 /*Type=*/FuncTy_27,
Logan Chien42e0e152012-01-13 15:42:36 +0800867 /*Linkage=*/GlobalValue::ExternalLinkage,
868 /*Name=*/"art_get64_instance_from_code", mod); // (external, no body)
869func_art_get64_instance_from_code->setCallingConv(CallingConv::C);
870}
871AttrListPtr func_art_get64_instance_from_code_PAL;
872func_art_get64_instance_from_code->setAttributes(func_art_get64_instance_from_code_PAL);
873
874Function* func_art_get_obj_instance_from_code = mod->getFunction("art_get_obj_instance_from_code");
875if (!func_art_get_obj_instance_from_code) {
876func_art_get_obj_instance_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700877 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800878 /*Linkage=*/GlobalValue::ExternalLinkage,
879 /*Name=*/"art_get_obj_instance_from_code", mod); // (external, no body)
880func_art_get_obj_instance_from_code->setCallingConv(CallingConv::C);
881}
882AttrListPtr func_art_get_obj_instance_from_code_PAL;
883func_art_get_obj_instance_from_code->setAttributes(func_art_get_obj_instance_from_code_PAL);
884
TDYa12728f1a142012-03-15 21:51:52 -0700885Function* func_art_decode_jobject_in_thread = mod->getFunction("art_decode_jobject_in_thread");
886if (!func_art_decode_jobject_in_thread) {
887func_art_decode_jobject_in_thread = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700888 /*Type=*/FuncTy_28,
TDYa12728f1a142012-03-15 21:51:52 -0700889 /*Linkage=*/GlobalValue::ExternalLinkage,
890 /*Name=*/"art_decode_jobject_in_thread", mod); // (external, no body)
891func_art_decode_jobject_in_thread->setCallingConv(CallingConv::C);
892}
893AttrListPtr func_art_decode_jobject_in_thread_PAL;
894func_art_decode_jobject_in_thread->setAttributes(func_art_decode_jobject_in_thread_PAL);
895
Logan Chien86f50672012-04-24 13:08:45 +0800896Function* func_art_fill_array_data_from_code = mod->getFunction("art_fill_array_data_from_code");
897if (!func_art_fill_array_data_from_code) {
898func_art_fill_array_data_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700899 /*Type=*/FuncTy_29,
Logan Chien86f50672012-04-24 13:08:45 +0800900 /*Linkage=*/GlobalValue::ExternalLinkage,
901 /*Name=*/"art_fill_array_data_from_code", mod); // (external, no body)
902func_art_fill_array_data_from_code->setCallingConv(CallingConv::C);
903}
904AttrListPtr func_art_fill_array_data_from_code_PAL;
905func_art_fill_array_data_from_code->setAttributes(func_art_fill_array_data_from_code_PAL);
906
Logan Chien42e0e152012-01-13 15:42:36 +0800907Function* func_art_is_assignable_from_code = mod->getFunction("art_is_assignable_from_code");
908if (!func_art_is_assignable_from_code) {
909func_art_is_assignable_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700910 /*Type=*/FuncTy_30,
Logan Chien42e0e152012-01-13 15:42:36 +0800911 /*Linkage=*/GlobalValue::ExternalLinkage,
912 /*Name=*/"art_is_assignable_from_code", mod); // (external, no body)
913func_art_is_assignable_from_code->setCallingConv(CallingConv::C);
914}
915AttrListPtr func_art_is_assignable_from_code_PAL;
916func_art_is_assignable_from_code->setAttributes(func_art_is_assignable_from_code_PAL);
917
918Function* func_art_check_cast_from_code = mod->getFunction("art_check_cast_from_code");
919if (!func_art_check_cast_from_code) {
920func_art_check_cast_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700921 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800922 /*Linkage=*/GlobalValue::ExternalLinkage,
923 /*Name=*/"art_check_cast_from_code", mod); // (external, no body)
924func_art_check_cast_from_code->setCallingConv(CallingConv::C);
925}
926AttrListPtr func_art_check_cast_from_code_PAL;
927func_art_check_cast_from_code->setAttributes(func_art_check_cast_from_code_PAL);
928
TDYa1271b86d072012-04-05 17:38:56 -0700929Function* func_art_check_put_array_element_from_code = mod->getFunction("art_check_put_array_element_from_code");
930if (!func_art_check_put_array_element_from_code) {
931func_art_check_put_array_element_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700932 /*Type=*/FuncTy_5,
TDYa1271b86d072012-04-05 17:38:56 -0700933 /*Linkage=*/GlobalValue::ExternalLinkage,
934 /*Name=*/"art_check_put_array_element_from_code", mod); // (external, no body)
935func_art_check_put_array_element_from_code->setCallingConv(CallingConv::C);
936}
937AttrListPtr func_art_check_put_array_element_from_code_PAL;
938func_art_check_put_array_element_from_code->setAttributes(func_art_check_put_array_element_from_code_PAL);
939
jeffhao41005dd2012-05-09 17:58:52 -0700940Function* func_art_d2l = mod->getFunction("art_d2l");
941if (!func_art_d2l) {
942func_art_d2l = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700943 /*Type=*/FuncTy_31,
TDYa127a4746872012-04-11 23:48:55 -0700944 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700945 /*Name=*/"art_d2l", mod); // (external, no body)
946func_art_d2l->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700947}
jeffhao41005dd2012-05-09 17:58:52 -0700948AttrListPtr func_art_d2l_PAL;
949func_art_d2l->setAttributes(func_art_d2l_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700950
jeffhao41005dd2012-05-09 17:58:52 -0700951Function* func_art_d2i = mod->getFunction("art_d2i");
952if (!func_art_d2i) {
953func_art_d2i = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700954 /*Type=*/FuncTy_32,
TDYa127a4746872012-04-11 23:48:55 -0700955 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700956 /*Name=*/"art_d2i", mod); // (external, no body)
957func_art_d2i->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700958}
jeffhao41005dd2012-05-09 17:58:52 -0700959AttrListPtr func_art_d2i_PAL;
960func_art_d2i->setAttributes(func_art_d2i_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700961
jeffhao41005dd2012-05-09 17:58:52 -0700962Function* func_art_f2l = mod->getFunction("art_f2l");
963if (!func_art_f2l) {
964func_art_f2l = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700965 /*Type=*/FuncTy_33,
TDYa127a4746872012-04-11 23:48:55 -0700966 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700967 /*Name=*/"art_f2l", mod); // (external, no body)
968func_art_f2l->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700969}
jeffhao41005dd2012-05-09 17:58:52 -0700970AttrListPtr func_art_f2l_PAL;
971func_art_f2l->setAttributes(func_art_f2l_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700972
jeffhao41005dd2012-05-09 17:58:52 -0700973Function* func_art_f2i = mod->getFunction("art_f2i");
974if (!func_art_f2i) {
975func_art_f2i = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700976 /*Type=*/FuncTy_34,
TDYa127a4746872012-04-11 23:48:55 -0700977 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700978 /*Name=*/"art_f2i", mod); // (external, no body)
979func_art_f2i->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700980}
jeffhao41005dd2012-05-09 17:58:52 -0700981AttrListPtr func_art_f2i_PAL;
982func_art_f2i->setAttributes(func_art_f2i_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700983
TDYa1273d71d802012-08-15 03:47:03 -0700984Function* func_art_jni_method_start = mod->getFunction("art_jni_method_start");
985if (!func_art_jni_method_start) {
986func_art_jni_method_start = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700987 /*Type=*/FuncTy_35,
TDYa1273d71d802012-08-15 03:47:03 -0700988 /*Linkage=*/GlobalValue::ExternalLinkage,
989 /*Name=*/"art_jni_method_start", mod); // (external, no body)
990func_art_jni_method_start->setCallingConv(CallingConv::C);
991}
992AttrListPtr func_art_jni_method_start_PAL;
993func_art_jni_method_start->setAttributes(func_art_jni_method_start_PAL);
994
995Function* func_art_jni_method_start_synchronized = mod->getFunction("art_jni_method_start_synchronized");
996if (!func_art_jni_method_start_synchronized) {
997func_art_jni_method_start_synchronized = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700998 /*Type=*/FuncTy_30,
TDYa1273d71d802012-08-15 03:47:03 -0700999 /*Linkage=*/GlobalValue::ExternalLinkage,
1000 /*Name=*/"art_jni_method_start_synchronized", mod); // (external, no body)
1001func_art_jni_method_start_synchronized->setCallingConv(CallingConv::C);
1002}
1003AttrListPtr func_art_jni_method_start_synchronized_PAL;
1004func_art_jni_method_start_synchronized->setAttributes(func_art_jni_method_start_synchronized_PAL);
1005
1006Function* func_art_jni_method_end = mod->getFunction("art_jni_method_end");
1007if (!func_art_jni_method_end) {
1008func_art_jni_method_end = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -07001009 /*Type=*/FuncTy_15,
TDYa1273d71d802012-08-15 03:47:03 -07001010 /*Linkage=*/GlobalValue::ExternalLinkage,
1011 /*Name=*/"art_jni_method_end", mod); // (external, no body)
1012func_art_jni_method_end->setCallingConv(CallingConv::C);
1013}
1014AttrListPtr func_art_jni_method_end_PAL;
1015func_art_jni_method_end->setAttributes(func_art_jni_method_end_PAL);
1016
1017Function* func_art_jni_method_end_synchronized = mod->getFunction("art_jni_method_end_synchronized");
1018if (!func_art_jni_method_end_synchronized) {
1019func_art_jni_method_end_synchronized = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -07001020 /*Type=*/FuncTy_36,
TDYa1273d71d802012-08-15 03:47:03 -07001021 /*Linkage=*/GlobalValue::ExternalLinkage,
1022 /*Name=*/"art_jni_method_end_synchronized", mod); // (external, no body)
1023func_art_jni_method_end_synchronized->setCallingConv(CallingConv::C);
1024}
1025AttrListPtr func_art_jni_method_end_synchronized_PAL;
1026func_art_jni_method_end_synchronized->setAttributes(func_art_jni_method_end_synchronized_PAL);
1027
1028Function* func_art_jni_method_end_with_reference = mod->getFunction("art_jni_method_end_with_reference");
1029if (!func_art_jni_method_end_with_reference) {
1030func_art_jni_method_end_with_reference = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -07001031 /*Type=*/FuncTy_37,
TDYa1273d71d802012-08-15 03:47:03 -07001032 /*Linkage=*/GlobalValue::ExternalLinkage,
1033 /*Name=*/"art_jni_method_end_with_reference", mod); // (external, no body)
1034func_art_jni_method_end_with_reference->setCallingConv(CallingConv::C);
1035}
1036AttrListPtr func_art_jni_method_end_with_reference_PAL;
1037func_art_jni_method_end_with_reference->setAttributes(func_art_jni_method_end_with_reference_PAL);
1038
1039Function* func_art_jni_method_end_with_reference_synchronized = mod->getFunction("art_jni_method_end_with_reference_synchronized");
1040if (!func_art_jni_method_end_with_reference_synchronized) {
1041func_art_jni_method_end_with_reference_synchronized = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -07001042 /*Type=*/FuncTy_38,
TDYa1273d71d802012-08-15 03:47:03 -07001043 /*Linkage=*/GlobalValue::ExternalLinkage,
1044 /*Name=*/"art_jni_method_end_with_reference_synchronized", mod); // (external, no body)
1045func_art_jni_method_end_with_reference_synchronized->setCallingConv(CallingConv::C);
1046}
1047AttrListPtr func_art_jni_method_end_with_reference_synchronized_PAL;
1048func_art_jni_method_end_with_reference_synchronized->setAttributes(func_art_jni_method_end_with_reference_synchronized_PAL);
1049
1050Function* func_art_is_exception_pending_from_code = mod->getFunction("art_is_exception_pending_from_code");
1051if (!func_art_is_exception_pending_from_code) {
1052func_art_is_exception_pending_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -07001053 /*Type=*/FuncTy_39,
TDYa1273d71d802012-08-15 03:47:03 -07001054 /*Linkage=*/GlobalValue::ExternalLinkage,
1055 /*Name=*/"art_is_exception_pending_from_code", mod); // (external, no body)
1056func_art_is_exception_pending_from_code->setCallingConv(CallingConv::C);
1057}
1058AttrListPtr func_art_is_exception_pending_from_code_PAL;
1059func_art_is_exception_pending_from_code->setAttributes(func_art_is_exception_pending_from_code_PAL);
1060
TDYa12783bb6622012-04-17 02:20:34 -07001061Function* func_art_mark_gc_card_from_code = mod->getFunction("art_mark_gc_card_from_code");
1062if (!func_art_mark_gc_card_from_code) {
1063func_art_mark_gc_card_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -07001064 /*Type=*/FuncTy_5,
TDYa12783bb6622012-04-17 02:20:34 -07001065 /*Linkage=*/GlobalValue::ExternalLinkage,
1066 /*Name=*/"art_mark_gc_card_from_code", mod); // (external, no body)
1067func_art_mark_gc_card_from_code->setCallingConv(CallingConv::C);
1068}
1069AttrListPtr func_art_mark_gc_card_from_code_PAL;
1070func_art_mark_gc_card_from_code->setAttributes(func_art_mark_gc_card_from_code_PAL);
1071
TDYa1275bb86012012-04-11 05:57:28 -07001072Function* func_art_proxy_invoke_handler_from_code = mod->getFunction("art_proxy_invoke_handler_from_code");
1073if (!func_art_proxy_invoke_handler_from_code) {
1074func_art_proxy_invoke_handler_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -07001075 /*Type=*/FuncTy_40,
TDYa1275bb86012012-04-11 05:57:28 -07001076 /*Linkage=*/GlobalValue::ExternalLinkage,
1077 /*Name=*/"art_proxy_invoke_handler_from_code", mod); // (external, no body)
1078func_art_proxy_invoke_handler_from_code->setCallingConv(CallingConv::C);
1079}
1080AttrListPtr func_art_proxy_invoke_handler_from_code_PAL;
1081func_art_proxy_invoke_handler_from_code->setAttributes(func_art_proxy_invoke_handler_from_code_PAL);
1082
Logan Chien42e0e152012-01-13 15:42:36 +08001083// Global Variable Declarations
1084
1085
1086// Constant Definitions
1087
1088// Global Variable Definitions
1089
1090// Function Definitions
1091
1092return mod;
1093
1094}
Logan Chiene75a8cc2012-02-24 12:26:43 +08001095
1096} // namespace compiler_llvm
1097} // namespace art