blob: 2748cd6293b6c73b06a259c9fef139a80e60a408 [file] [log] [blame]
Logan Chien8dbb7082013-01-25 20:31:17 +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 {
Ian Rogers4c1c2832013-03-04 18:30:13 -080018namespace llvm {
Logan Chiene75a8cc2012-02-24 12:26:43 +080019
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;
TDYa127ce4cc0d2012-11-18 16:59:53 -080047StructTy_ShadowFrame_fields.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien1b0a1b72012-03-15 06:20:17 +080048PointerType* PointerTy_2 = PointerType::get(StructTy_ShadowFrame, 0);
Logan Chien3f71e702012-02-17 18:45:27 +080049
Logan Chien1b0a1b72012-03-15 06:20:17 +080050StructTy_ShadowFrame_fields.push_back(PointerTy_2);
51StructTy_ShadowFrame_fields.push_back(PointerTy_1);
52StructTy_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);
TDYa127ce4cc0d2012-11-18 16:59:53 -080096FuncTy_7_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +080097FunctionType* FuncTy_7 = FunctionType::get(
TDYa127c1478262012-06-20 20:22:27 -070098 /*Result=*/PointerTy_2,
Logan Chien42e0e152012-01-13 15:42:36 +080099 /*Params=*/FuncTy_7_args,
100 /*isVarArg=*/false);
101
102std::vector<Type*>FuncTy_8_args;
TDYa127c1478262012-06-20 20:22:27 -0700103FuncTy_8_args.push_back(PointerTy_2);
Logan Chien42e0e152012-01-13 15:42:36 +0800104FunctionType* FuncTy_8 = FunctionType::get(
TDYa127c1478262012-06-20 20:22:27 -0700105 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800106 /*Params=*/FuncTy_8_args,
107 /*isVarArg=*/false);
108
109std::vector<Type*>FuncTy_9_args;
Logan Chien42e0e152012-01-13 15:42:36 +0800110FunctionType* FuncTy_9 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700111 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800112 /*Params=*/FuncTy_9_args,
113 /*isVarArg=*/false);
114
115std::vector<Type*>FuncTy_10_args;
TDYa1273d71d802012-08-15 03:47:03 -0700116FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32));
117FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800118FunctionType* FuncTy_10 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800119 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800120 /*Params=*/FuncTy_10_args,
121 /*isVarArg=*/false);
122
123std::vector<Type*>FuncTy_11_args;
TDYa127706e9b62012-04-19 12:24:26 -0700124FuncTy_11_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800125FunctionType* FuncTy_11 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700126 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800127 /*Params=*/FuncTy_11_args,
128 /*isVarArg=*/false);
129
130std::vector<Type*>FuncTy_12_args;
TDYa1273d71d802012-08-15 03:47:03 -0700131FuncTy_12_args.push_back(PointerTy_1);
132FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800133FunctionType* FuncTy_12 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700134 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800135 /*Params=*/FuncTy_12_args,
136 /*isVarArg=*/false);
137
138std::vector<Type*>FuncTy_13_args;
139FuncTy_13_args.push_back(IntegerType::get(mod->getContext(), 32));
jeffhao9a4f0032012-08-30 16:17:40 -0700140FuncTy_13_args.push_back(PointerTy_1);
141FuncTy_13_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800142FunctionType* FuncTy_13 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700143 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800144 /*Params=*/FuncTy_13_args,
145 /*isVarArg=*/false);
146
147std::vector<Type*>FuncTy_14_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800148FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1273d71d802012-08-15 03:47:03 -0700149FuncTy_14_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700150FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1273d71d802012-08-15 03:47:03 -0700151FuncTy_14_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800152FunctionType* FuncTy_14 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700153 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800154 /*Params=*/FuncTy_14_args,
155 /*isVarArg=*/false);
156
157std::vector<Type*>FuncTy_15_args;
158FuncTy_15_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien9e5f5c12012-04-10 13:51:45 +0800159FuncTy_15_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800160FunctionType* FuncTy_15 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700161 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800162 /*Params=*/FuncTy_15_args,
163 /*isVarArg=*/false);
164
165std::vector<Type*>FuncTy_16_args;
Logan Chien1b0a1b72012-03-15 06:20:17 +0800166FuncTy_16_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa127da83d972012-04-18 00:21:49 -0700167FuncTy_16_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700168FuncTy_16_args.push_back(PointerTy_1);
169FuncTy_16_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800170FunctionType* FuncTy_16 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700171 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800172 /*Params=*/FuncTy_16_args,
173 /*isVarArg=*/false);
174
175std::vector<Type*>FuncTy_17_args;
jeffhao9a4f0032012-08-30 16:17:40 -0700176FuncTy_17_args.push_back(PointerTy_1);
Logan Chien9e5f5c12012-04-10 13:51:45 +0800177FuncTy_17_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800178FunctionType* FuncTy_17 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700179 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800180 /*Params=*/FuncTy_17_args,
181 /*isVarArg=*/false);
182
183std::vector<Type*>FuncTy_18_args;
jeffhao9a4f0032012-08-30 16:17:40 -0700184FuncTy_18_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1273d71d802012-08-15 03:47:03 -0700185FuncTy_18_args.push_back(PointerTy_1);
TDYa127da83d972012-04-18 00:21:49 -0700186FuncTy_18_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800187FunctionType* FuncTy_18 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700188 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800189 /*Params=*/FuncTy_18_args,
190 /*isVarArg=*/false);
191
192std::vector<Type*>FuncTy_19_args;
TDYa1273d71d802012-08-15 03:47:03 -0700193FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800194FuncTy_19_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700195FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 64));
Logan Chien42e0e152012-01-13 15:42:36 +0800196FunctionType* FuncTy_19 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700197 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800198 /*Params=*/FuncTy_19_args,
199 /*isVarArg=*/false);
200
Logan Chien3f71e702012-02-17 18:45:27 +0800201std::vector<Type*>FuncTy_20_args;
Logan Chien3b2b2e72012-03-06 16:11:45 +0800202FuncTy_20_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chiena6b2ca62012-03-06 15:50:54 +0800203FuncTy_20_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700204FuncTy_20_args.push_back(PointerTy_1);
Logan Chien3f71e702012-02-17 18:45:27 +0800205FunctionType* FuncTy_20 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800206 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3f71e702012-02-17 18:45:27 +0800207 /*Params=*/FuncTy_20_args,
208 /*isVarArg=*/false);
209
210std::vector<Type*>FuncTy_21_args;
Logan Chien3b2b2e72012-03-06 16:11:45 +0800211FuncTy_21_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3f71e702012-02-17 18:45:27 +0800212FuncTy_21_args.push_back(PointerTy_1);
Logan Chien3f71e702012-02-17 18:45:27 +0800213FunctionType* FuncTy_21 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700214 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chiena6b2ca62012-03-06 15:50:54 +0800215 /*Params=*/FuncTy_21_args,
Logan Chien3f71e702012-02-17 18:45:27 +0800216 /*isVarArg=*/false);
217
Logan Chien3b2b2e72012-03-06 16:11:45 +0800218std::vector<Type*>FuncTy_22_args;
219FuncTy_22_args.push_back(IntegerType::get(mod->getContext(), 32));
220FuncTy_22_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800221FunctionType* FuncTy_22 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700222 /*Result=*/IntegerType::get(mod->getContext(), 64),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800223 /*Params=*/FuncTy_22_args,
224 /*isVarArg=*/false);
225
226std::vector<Type*>FuncTy_23_args;
227FuncTy_23_args.push_back(IntegerType::get(mod->getContext(), 32));
228FuncTy_23_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800229FunctionType* FuncTy_23 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700230 /*Result=*/PointerTy_1,
Logan Chien3b2b2e72012-03-06 16:11:45 +0800231 /*Params=*/FuncTy_23_args,
232 /*isVarArg=*/false);
233
234std::vector<Type*>FuncTy_24_args;
235FuncTy_24_args.push_back(IntegerType::get(mod->getContext(), 32));
236FuncTy_24_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700237FuncTy_24_args.push_back(PointerTy_1);
238FuncTy_24_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800239FunctionType* FuncTy_24 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700240 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800241 /*Params=*/FuncTy_24_args,
242 /*isVarArg=*/false);
243
244std::vector<Type*>FuncTy_25_args;
Logan Chien9e5f5c12012-04-10 13:51:45 +0800245FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800246FuncTy_25_args.push_back(PointerTy_1);
TDYa1273d71d802012-08-15 03:47:03 -0700247FuncTy_25_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700248FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 64));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800249FunctionType* FuncTy_25 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700250 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800251 /*Params=*/FuncTy_25_args,
252 /*isVarArg=*/false);
253
254std::vector<Type*>FuncTy_26_args;
TDYa127da83d972012-04-18 00:21:49 -0700255FuncTy_26_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800256FuncTy_26_args.push_back(PointerTy_1);
257FuncTy_26_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700258FuncTy_26_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800259FunctionType* FuncTy_26 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700260 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800261 /*Params=*/FuncTy_26_args,
262 /*isVarArg=*/false);
263
TDYa12728f1a142012-03-15 21:51:52 -0700264std::vector<Type*>FuncTy_27_args;
TDYa127706e9b62012-04-19 12:24:26 -0700265FuncTy_27_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa12728f1a142012-03-15 21:51:52 -0700266FuncTy_27_args.push_back(PointerTy_1);
267FuncTy_27_args.push_back(PointerTy_1);
268FunctionType* FuncTy_27 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700269 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa12728f1a142012-03-15 21:51:52 -0700270 /*Params=*/FuncTy_27_args,
271 /*isVarArg=*/false);
272
TDYa12785321912012-04-01 15:24:56 -0700273std::vector<Type*>FuncTy_28_args;
274FuncTy_28_args.push_back(PointerTy_1);
275FuncTy_28_args.push_back(PointerTy_1);
TDYa12785321912012-04-01 15:24:56 -0700276FunctionType* FuncTy_28 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700277 /*Result=*/PointerTy_1,
TDYa12785321912012-04-01 15:24:56 -0700278 /*Params=*/FuncTy_28_args,
279 /*isVarArg=*/false);
280
TDYa1270b686e52012-04-09 22:43:35 -0700281std::vector<Type*>FuncTy_29_args;
TDYa127da83d972012-04-18 00:21:49 -0700282FuncTy_29_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700283FuncTy_29_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa127da83d972012-04-18 00:21:49 -0700284FuncTy_29_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700285FuncTy_29_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1270b686e52012-04-09 22:43:35 -0700286FunctionType* FuncTy_29 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700287 /*Result=*/Type::getVoidTy(mod->getContext()),
TDYa1270b686e52012-04-09 22:43:35 -0700288 /*Params=*/FuncTy_29_args,
289 /*isVarArg=*/false);
290
Logan Chien9e5f5c12012-04-10 13:51:45 +0800291std::vector<Type*>FuncTy_30_args;
Logan Chien86f50672012-04-24 13:08:45 +0800292FuncTy_30_args.push_back(PointerTy_1);
293FuncTy_30_args.push_back(PointerTy_1);
Logan Chien9e5f5c12012-04-10 13:51:45 +0800294FunctionType* FuncTy_30 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700295 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien9e5f5c12012-04-10 13:51:45 +0800296 /*Params=*/FuncTy_30_args,
297 /*isVarArg=*/false);
298
TDYa1275bb86012012-04-11 05:57:28 -0700299std::vector<Type*>FuncTy_31_args;
jeffhao9a4f0032012-08-30 16:17:40 -0700300FuncTy_31_args.push_back(Type::getDoubleTy(mod->getContext()));
TDYa1275bb86012012-04-11 05:57:28 -0700301FunctionType* FuncTy_31 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700302 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa1275bb86012012-04-11 05:57:28 -0700303 /*Params=*/FuncTy_31_args,
TDYa127a4746872012-04-11 23:48:55 -0700304 /*isVarArg=*/false);
305
306std::vector<Type*>FuncTy_32_args;
TDYa1273d71d802012-08-15 03:47:03 -0700307FuncTy_32_args.push_back(Type::getDoubleTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700308FunctionType* FuncTy_32 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700309 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa127a4746872012-04-11 23:48:55 -0700310 /*Params=*/FuncTy_32_args,
311 /*isVarArg=*/false);
312
313std::vector<Type*>FuncTy_33_args;
jeffhao9a4f0032012-08-30 16:17:40 -0700314FuncTy_33_args.push_back(Type::getFloatTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700315FunctionType* FuncTy_33 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700316 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa127a4746872012-04-11 23:48:55 -0700317 /*Params=*/FuncTy_33_args,
318 /*isVarArg=*/false);
319
320std::vector<Type*>FuncTy_34_args;
TDYa1273d71d802012-08-15 03:47:03 -0700321FuncTy_34_args.push_back(Type::getFloatTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700322FunctionType* FuncTy_34 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700323 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa127a4746872012-04-11 23:48:55 -0700324 /*Params=*/FuncTy_34_args,
325 /*isVarArg=*/false);
326
327std::vector<Type*>FuncTy_35_args;
jeffhao9a4f0032012-08-30 16:17:40 -0700328FuncTy_35_args.push_back(PointerTy_1);
TDYa127a4746872012-04-11 23:48:55 -0700329FunctionType* FuncTy_35 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700330 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa12705fe3b62012-04-21 00:28:54 -0700331 /*Params=*/FuncTy_35_args,
Logan Chien86f50672012-04-24 13:08:45 +0800332 /*isVarArg=*/false);
333
334std::vector<Type*>FuncTy_36_args;
jeffhao9a4f0032012-08-30 16:17:40 -0700335FuncTy_36_args.push_back(IntegerType::get(mod->getContext(), 32));
336FuncTy_36_args.push_back(PointerTy_1);
TDYa1273d71d802012-08-15 03:47:03 -0700337FuncTy_36_args.push_back(PointerTy_1);
Logan Chien86f50672012-04-24 13:08:45 +0800338FunctionType* FuncTy_36 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700339 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien86f50672012-04-24 13:08:45 +0800340 /*Params=*/FuncTy_36_args,
TDYa1270de52be2012-05-27 20:49:31 -0700341 /*isVarArg=*/false);
342
343std::vector<Type*>FuncTy_37_args;
jeffhao9a4f0032012-08-30 16:17:40 -0700344FuncTy_37_args.push_back(PointerTy_1);
TDYa1273d71d802012-08-15 03:47:03 -0700345FuncTy_37_args.push_back(IntegerType::get(mod->getContext(), 32));
346FuncTy_37_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700347FunctionType* FuncTy_37 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700348 /*Result=*/PointerTy_1,
TDYa1270de52be2012-05-27 20:49:31 -0700349 /*Params=*/FuncTy_37_args,
TDYa1273d71d802012-08-15 03:47:03 -0700350 /*isVarArg=*/false);
351
352std::vector<Type*>FuncTy_38_args;
353FuncTy_38_args.push_back(PointerTy_1);
354FuncTy_38_args.push_back(IntegerType::get(mod->getContext(), 32));
355FuncTy_38_args.push_back(PointerTy_1);
jeffhao9a4f0032012-08-30 16:17:40 -0700356FuncTy_38_args.push_back(PointerTy_1);
TDYa1273d71d802012-08-15 03:47:03 -0700357FunctionType* FuncTy_38 = FunctionType::get(
358 /*Result=*/PointerTy_1,
359 /*Params=*/FuncTy_38_args,
360 /*isVarArg=*/false);
361
362std::vector<Type*>FuncTy_39_args;
TDYa1273d71d802012-08-15 03:47:03 -0700363FunctionType* FuncTy_39 = FunctionType::get(
jeffhao9a4f0032012-08-30 16:17:40 -0700364 /*Result=*/IntegerType::get(mod->getContext(), 1),
TDYa1273d71d802012-08-15 03:47:03 -0700365 /*Params=*/FuncTy_39_args,
366 /*isVarArg=*/false);
367
368std::vector<Type*>FuncTy_40_args;
jeffhao9a4f0032012-08-30 16:17:40 -0700369FuncTy_40_args.push_back(PointerTy_1);
TDYa1273d71d802012-08-15 03:47:03 -0700370FunctionType* FuncTy_40 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700371 /*Result=*/Type::getVoidTy(mod->getContext()),
jeffhao9a4f0032012-08-30 16:17:40 -0700372 /*Params=*/FuncTy_40_args,
TDYa1275bb86012012-04-11 05:57:28 -0700373 /*isVarArg=*/true);
374
Logan Chien42e0e152012-01-13 15:42:36 +0800375
376// Function Declarations
377
378Function* func___art_type_list = mod->getFunction("__art_type_list");
379if (!func___art_type_list) {
380func___art_type_list = Function::Create(
381 /*Type=*/FuncTy_0,
382 /*Linkage=*/GlobalValue::ExternalLinkage,
383 /*Name=*/"__art_type_list", mod); // (external, no body)
384func___art_type_list->setCallingConv(CallingConv::C);
385}
386AttrListPtr func___art_type_list_PAL;
387func___art_type_list->setAttributes(func___art_type_list_PAL);
388
Logan Chien8dbb7082013-01-25 20:31:17 +0800389Function* func_art_portable_get_current_thread_from_code = mod->getFunction("art_portable_get_current_thread_from_code");
390if (!func_art_portable_get_current_thread_from_code) {
391func_art_portable_get_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800392 /*Type=*/FuncTy_3,
Logan Chien42e0e152012-01-13 15:42:36 +0800393 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800394 /*Name=*/"art_portable_get_current_thread_from_code", mod); // (external, no body)
395func_art_portable_get_current_thread_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800396}
Logan Chien8dbb7082013-01-25 20:31:17 +0800397AttrListPtr func_art_portable_get_current_thread_from_code_PAL;
398func_art_portable_get_current_thread_from_code->setAttributes(func_art_portable_get_current_thread_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800399
Logan Chien8dbb7082013-01-25 20:31:17 +0800400Function* func_art_portable_set_current_thread_from_code = mod->getFunction("art_portable_set_current_thread_from_code");
401if (!func_art_portable_set_current_thread_from_code) {
402func_art_portable_set_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800403 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800404 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800405 /*Name=*/"art_portable_set_current_thread_from_code", mod); // (external, no body)
406func_art_portable_set_current_thread_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800407}
Logan Chien8dbb7082013-01-25 20:31:17 +0800408AttrListPtr func_art_portable_set_current_thread_from_code_PAL;
409func_art_portable_set_current_thread_from_code->setAttributes(func_art_portable_set_current_thread_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800410
Logan Chien8dbb7082013-01-25 20:31:17 +0800411Function* func_art_portable_lock_object_from_code = mod->getFunction("art_portable_lock_object_from_code");
412if (!func_art_portable_lock_object_from_code) {
413func_art_portable_lock_object_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700414 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800415 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800416 /*Name=*/"art_portable_lock_object_from_code", mod); // (external, no body)
417func_art_portable_lock_object_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800418}
Logan Chien8dbb7082013-01-25 20:31:17 +0800419AttrListPtr func_art_portable_lock_object_from_code_PAL;
420func_art_portable_lock_object_from_code->setAttributes(func_art_portable_lock_object_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800421
Logan Chien8dbb7082013-01-25 20:31:17 +0800422Function* func_art_portable_unlock_object_from_code = mod->getFunction("art_portable_unlock_object_from_code");
423if (!func_art_portable_unlock_object_from_code) {
424func_art_portable_unlock_object_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700425 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800426 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800427 /*Name=*/"art_portable_unlock_object_from_code", mod); // (external, no body)
428func_art_portable_unlock_object_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800429}
Logan Chien8dbb7082013-01-25 20:31:17 +0800430AttrListPtr func_art_portable_unlock_object_from_code_PAL;
431func_art_portable_unlock_object_from_code->setAttributes(func_art_portable_unlock_object_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800432
Logan Chien8dbb7082013-01-25 20:31:17 +0800433Function* func_art_portable_test_suspend_from_code = mod->getFunction("art_portable_test_suspend_from_code");
434if (!func_art_portable_test_suspend_from_code) {
435func_art_portable_test_suspend_from_code = Function::Create(
TDYa127c1478262012-06-20 20:22:27 -0700436 /*Type=*/FuncTy_6,
Logan Chien42e0e152012-01-13 15:42:36 +0800437 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800438 /*Name=*/"art_portable_test_suspend_from_code", mod); // (external, no body)
439func_art_portable_test_suspend_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800440}
Logan Chien8dbb7082013-01-25 20:31:17 +0800441AttrListPtr func_art_portable_test_suspend_from_code_PAL;
442func_art_portable_test_suspend_from_code->setAttributes(func_art_portable_test_suspend_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800443
Logan Chien8dbb7082013-01-25 20:31:17 +0800444Function* func_art_portable_push_shadow_frame_from_code = mod->getFunction("art_portable_push_shadow_frame_from_code");
445if (!func_art_portable_push_shadow_frame_from_code) {
446func_art_portable_push_shadow_frame_from_code = Function::Create(
TDYa127c1478262012-06-20 20:22:27 -0700447 /*Type=*/FuncTy_7,
Logan Chien3f71e702012-02-17 18:45:27 +0800448 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800449 /*Name=*/"art_portable_push_shadow_frame_from_code", mod); // (external, no body)
450func_art_portable_push_shadow_frame_from_code->setCallingConv(CallingConv::C);
Logan Chien3f71e702012-02-17 18:45:27 +0800451}
Logan Chien8dbb7082013-01-25 20:31:17 +0800452AttrListPtr func_art_portable_push_shadow_frame_from_code_PAL;
453func_art_portable_push_shadow_frame_from_code->setAttributes(func_art_portable_push_shadow_frame_from_code_PAL);
Logan Chien3f71e702012-02-17 18:45:27 +0800454
Logan Chien8dbb7082013-01-25 20:31:17 +0800455Function* func_art_portable_pop_shadow_frame_from_code = mod->getFunction("art_portable_pop_shadow_frame_from_code");
456if (!func_art_portable_pop_shadow_frame_from_code) {
457func_art_portable_pop_shadow_frame_from_code = Function::Create(
TDYa127c1478262012-06-20 20:22:27 -0700458 /*Type=*/FuncTy_8,
Logan Chien3f71e702012-02-17 18:45:27 +0800459 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800460 /*Name=*/"art_portable_pop_shadow_frame_from_code", mod); // (external, no body)
461func_art_portable_pop_shadow_frame_from_code->setCallingConv(CallingConv::C);
Logan Chien3f71e702012-02-17 18:45:27 +0800462}
Logan Chien8dbb7082013-01-25 20:31:17 +0800463AttrListPtr func_art_portable_pop_shadow_frame_from_code_PAL;
464func_art_portable_pop_shadow_frame_from_code->setAttributes(func_art_portable_pop_shadow_frame_from_code_PAL);
Logan Chien3f71e702012-02-17 18:45:27 +0800465
Logan Chien8dbb7082013-01-25 20:31:17 +0800466Function* func_art_portable_get_and_clear_exception = mod->getFunction("art_portable_get_and_clear_exception");
467if (!func_art_portable_get_and_clear_exception) {
468func_art_portable_get_and_clear_exception = Function::Create(
TDYa127823433d2012-09-26 16:03:51 -0700469 /*Type=*/FuncTy_4,
470 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800471 /*Name=*/"art_portable_get_and_clear_exception", mod); // (external, no body)
472func_art_portable_get_and_clear_exception->setCallingConv(CallingConv::C);
TDYa127823433d2012-09-26 16:03:51 -0700473}
Logan Chien8dbb7082013-01-25 20:31:17 +0800474AttrListPtr func_art_portable_get_and_clear_exception_PAL;
475func_art_portable_get_and_clear_exception->setAttributes(func_art_portable_get_and_clear_exception_PAL);
TDYa127823433d2012-09-26 16:03:51 -0700476
Logan Chien8dbb7082013-01-25 20:31:17 +0800477Function* func_art_portable_throw_div_zero_from_code = mod->getFunction("art_portable_throw_div_zero_from_code");
478if (!func_art_portable_throw_div_zero_from_code) {
479func_art_portable_throw_div_zero_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700480 /*Type=*/FuncTy_9,
Logan Chien42e0e152012-01-13 15:42:36 +0800481 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800482 /*Name=*/"art_portable_throw_div_zero_from_code", mod); // (external, no body)
483func_art_portable_throw_div_zero_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800484}
Logan Chien8dbb7082013-01-25 20:31:17 +0800485AttrListPtr func_art_portable_throw_div_zero_from_code_PAL;
486func_art_portable_throw_div_zero_from_code->setAttributes(func_art_portable_throw_div_zero_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800487
Logan Chien8dbb7082013-01-25 20:31:17 +0800488Function* func_art_portable_throw_array_bounds_from_code = mod->getFunction("art_portable_throw_array_bounds_from_code");
489if (!func_art_portable_throw_array_bounds_from_code) {
490func_art_portable_throw_array_bounds_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700491 /*Type=*/FuncTy_10,
Logan Chien42e0e152012-01-13 15:42:36 +0800492 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800493 /*Name=*/"art_portable_throw_array_bounds_from_code", mod); // (external, no body)
494func_art_portable_throw_array_bounds_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800495}
Logan Chien8dbb7082013-01-25 20:31:17 +0800496AttrListPtr func_art_portable_throw_array_bounds_from_code_PAL;
497func_art_portable_throw_array_bounds_from_code->setAttributes(func_art_portable_throw_array_bounds_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800498
Logan Chien8dbb7082013-01-25 20:31:17 +0800499Function* func_art_portable_throw_no_such_method_from_code = mod->getFunction("art_portable_throw_no_such_method_from_code");
500if (!func_art_portable_throw_no_such_method_from_code) {
501func_art_portable_throw_no_such_method_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700502 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800503 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800504 /*Name=*/"art_portable_throw_no_such_method_from_code", mod); // (external, no body)
505func_art_portable_throw_no_such_method_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800506}
Logan Chien8dbb7082013-01-25 20:31:17 +0800507AttrListPtr func_art_portable_throw_no_such_method_from_code_PAL;
508func_art_portable_throw_no_such_method_from_code->setAttributes(func_art_portable_throw_no_such_method_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800509
Logan Chien8dbb7082013-01-25 20:31:17 +0800510Function* func_art_portable_throw_null_pointer_exception_from_code = mod->getFunction("art_portable_throw_null_pointer_exception_from_code");
511if (!func_art_portable_throw_null_pointer_exception_from_code) {
512func_art_portable_throw_null_pointer_exception_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700513 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800514 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800515 /*Name=*/"art_portable_throw_null_pointer_exception_from_code", mod); // (external, no body)
516func_art_portable_throw_null_pointer_exception_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800517}
Logan Chien8dbb7082013-01-25 20:31:17 +0800518AttrListPtr func_art_portable_throw_null_pointer_exception_from_code_PAL;
519func_art_portable_throw_null_pointer_exception_from_code->setAttributes(func_art_portable_throw_null_pointer_exception_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800520
Logan Chien8dbb7082013-01-25 20:31:17 +0800521Function* func_art_portable_throw_stack_overflow_from_code = mod->getFunction("art_portable_throw_stack_overflow_from_code");
522if (!func_art_portable_throw_stack_overflow_from_code) {
523func_art_portable_throw_stack_overflow_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700524 /*Type=*/FuncTy_9,
Logan Chien42e0e152012-01-13 15:42:36 +0800525 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800526 /*Name=*/"art_portable_throw_stack_overflow_from_code", mod); // (external, no body)
527func_art_portable_throw_stack_overflow_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800528}
Logan Chien8dbb7082013-01-25 20:31:17 +0800529AttrListPtr func_art_portable_throw_stack_overflow_from_code_PAL;
530func_art_portable_throw_stack_overflow_from_code->setAttributes(func_art_portable_throw_stack_overflow_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800531
Logan Chien8dbb7082013-01-25 20:31:17 +0800532Function* func_art_portable_throw_exception_from_code = mod->getFunction("art_portable_throw_exception_from_code");
533if (!func_art_portable_throw_exception_from_code) {
534func_art_portable_throw_exception_from_code = Function::Create(
TDYa127c1478262012-06-20 20:22:27 -0700535 /*Type=*/FuncTy_6,
Logan Chien42e0e152012-01-13 15:42:36 +0800536 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800537 /*Name=*/"art_portable_throw_exception_from_code", mod); // (external, no body)
538func_art_portable_throw_exception_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800539}
Logan Chien8dbb7082013-01-25 20:31:17 +0800540AttrListPtr func_art_portable_throw_exception_from_code_PAL;
541func_art_portable_throw_exception_from_code->setAttributes(func_art_portable_throw_exception_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800542
Logan Chien8dbb7082013-01-25 20:31:17 +0800543Function* func_art_portable_find_catch_block_from_code = mod->getFunction("art_portable_find_catch_block_from_code");
544if (!func_art_portable_find_catch_block_from_code) {
545func_art_portable_find_catch_block_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700546 /*Type=*/FuncTy_12,
Logan Chien42e0e152012-01-13 15:42:36 +0800547 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800548 /*Name=*/"art_portable_find_catch_block_from_code", mod); // (external, no body)
549func_art_portable_find_catch_block_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800550}
Logan Chien8dbb7082013-01-25 20:31:17 +0800551AttrListPtr func_art_portable_find_catch_block_from_code_PAL;
552func_art_portable_find_catch_block_from_code->setAttributes(func_art_portable_find_catch_block_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800553
Logan Chien8dbb7082013-01-25 20:31:17 +0800554Function* func_art_portable_alloc_object_from_code = mod->getFunction("art_portable_alloc_object_from_code");
555if (!func_art_portable_alloc_object_from_code) {
556func_art_portable_alloc_object_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700557 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800558 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800559 /*Name=*/"art_portable_alloc_object_from_code", mod); // (external, no body)
560func_art_portable_alloc_object_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800561}
Logan Chien8dbb7082013-01-25 20:31:17 +0800562AttrListPtr func_art_portable_alloc_object_from_code_PAL;
563func_art_portable_alloc_object_from_code->setAttributes(func_art_portable_alloc_object_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800564
Logan Chien8dbb7082013-01-25 20:31:17 +0800565Function* func_art_portable_alloc_object_from_code_with_access_check = mod->getFunction("art_portable_alloc_object_from_code_with_access_check");
566if (!func_art_portable_alloc_object_from_code_with_access_check) {
567func_art_portable_alloc_object_from_code_with_access_check = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700568 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800569 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800570 /*Name=*/"art_portable_alloc_object_from_code_with_access_check", mod); // (external, no body)
571func_art_portable_alloc_object_from_code_with_access_check->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800572}
Logan Chien8dbb7082013-01-25 20:31:17 +0800573AttrListPtr func_art_portable_alloc_object_from_code_with_access_check_PAL;
574func_art_portable_alloc_object_from_code_with_access_check->setAttributes(func_art_portable_alloc_object_from_code_with_access_check_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800575
Logan Chien8dbb7082013-01-25 20:31:17 +0800576Function* func_art_portable_alloc_array_from_code = mod->getFunction("art_portable_alloc_array_from_code");
577if (!func_art_portable_alloc_array_from_code) {
578func_art_portable_alloc_array_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700579 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800580 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800581 /*Name=*/"art_portable_alloc_array_from_code", mod); // (external, no body)
582func_art_portable_alloc_array_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800583}
Logan Chien8dbb7082013-01-25 20:31:17 +0800584AttrListPtr func_art_portable_alloc_array_from_code_PAL;
585func_art_portable_alloc_array_from_code->setAttributes(func_art_portable_alloc_array_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800586
Logan Chien8dbb7082013-01-25 20:31:17 +0800587Function* func_art_portable_alloc_array_from_code_with_access_check = mod->getFunction("art_portable_alloc_array_from_code_with_access_check");
588if (!func_art_portable_alloc_array_from_code_with_access_check) {
589func_art_portable_alloc_array_from_code_with_access_check = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700590 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800591 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800592 /*Name=*/"art_portable_alloc_array_from_code_with_access_check", mod); // (external, no body)
593func_art_portable_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800594}
Logan Chien8dbb7082013-01-25 20:31:17 +0800595AttrListPtr func_art_portable_alloc_array_from_code_with_access_check_PAL;
596func_art_portable_alloc_array_from_code_with_access_check->setAttributes(func_art_portable_alloc_array_from_code_with_access_check_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800597
Logan Chien8dbb7082013-01-25 20:31:17 +0800598Function* func_art_portable_check_and_alloc_array_from_code = mod->getFunction("art_portable_check_and_alloc_array_from_code");
599if (!func_art_portable_check_and_alloc_array_from_code) {
600func_art_portable_check_and_alloc_array_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700601 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800602 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800603 /*Name=*/"art_portable_check_and_alloc_array_from_code", mod); // (external, no body)
604func_art_portable_check_and_alloc_array_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800605}
Logan Chien8dbb7082013-01-25 20:31:17 +0800606AttrListPtr func_art_portable_check_and_alloc_array_from_code_PAL;
607func_art_portable_check_and_alloc_array_from_code->setAttributes(func_art_portable_check_and_alloc_array_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800608
Logan Chien8dbb7082013-01-25 20:31:17 +0800609Function* func_art_portable_check_and_alloc_array_from_code_with_access_check = mod->getFunction("art_portable_check_and_alloc_array_from_code_with_access_check");
610if (!func_art_portable_check_and_alloc_array_from_code_with_access_check) {
611func_art_portable_check_and_alloc_array_from_code_with_access_check = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700612 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800613 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800614 /*Name=*/"art_portable_check_and_alloc_array_from_code_with_access_check", mod); // (external, no body)
615func_art_portable_check_and_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800616}
Logan Chien8dbb7082013-01-25 20:31:17 +0800617AttrListPtr func_art_portable_check_and_alloc_array_from_code_with_access_check_PAL;
618func_art_portable_check_and_alloc_array_from_code_with_access_check->setAttributes(func_art_portable_check_and_alloc_array_from_code_with_access_check_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800619
Logan Chien8dbb7082013-01-25 20:31:17 +0800620Function* func_art_portable_find_instance_field_from_code = mod->getFunction("art_portable_find_instance_field_from_code");
621if (!func_art_portable_find_instance_field_from_code) {
622func_art_portable_find_instance_field_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700623 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800624 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800625 /*Name=*/"art_portable_find_instance_field_from_code", mod); // (external, no body)
626func_art_portable_find_instance_field_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800627}
Logan Chien8dbb7082013-01-25 20:31:17 +0800628AttrListPtr func_art_portable_find_instance_field_from_code_PAL;
629func_art_portable_find_instance_field_from_code->setAttributes(func_art_portable_find_instance_field_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800630
Logan Chien8dbb7082013-01-25 20:31:17 +0800631Function* func_art_portable_find_static_field_from_code = mod->getFunction("art_portable_find_static_field_from_code");
632if (!func_art_portable_find_static_field_from_code) {
633func_art_portable_find_static_field_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700634 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800635 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800636 /*Name=*/"art_portable_find_static_field_from_code", mod); // (external, no body)
637func_art_portable_find_static_field_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800638}
Logan Chien8dbb7082013-01-25 20:31:17 +0800639AttrListPtr func_art_portable_find_static_field_from_code_PAL;
640func_art_portable_find_static_field_from_code->setAttributes(func_art_portable_find_static_field_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800641
Logan Chien8dbb7082013-01-25 20:31:17 +0800642Function* func_art_portable_find_static_method_from_code_with_access_check = mod->getFunction("art_portable_find_static_method_from_code_with_access_check");
643if (!func_art_portable_find_static_method_from_code_with_access_check) {
644func_art_portable_find_static_method_from_code_with_access_check = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700645 /*Type=*/FuncTy_16,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800646 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800647 /*Name=*/"art_portable_find_static_method_from_code_with_access_check", mod); // (external, no body)
648func_art_portable_find_static_method_from_code_with_access_check->setCallingConv(CallingConv::C);
Logan Chien7e7fabc2012-04-10 18:59:11 +0800649}
Logan Chien8dbb7082013-01-25 20:31:17 +0800650AttrListPtr func_art_portable_find_static_method_from_code_with_access_check_PAL;
651func_art_portable_find_static_method_from_code_with_access_check->setAttributes(func_art_portable_find_static_method_from_code_with_access_check_PAL);
Logan Chien7e7fabc2012-04-10 18:59:11 +0800652
Logan Chien8dbb7082013-01-25 20:31:17 +0800653Function* func_art_portable_find_direct_method_from_code_with_access_check = mod->getFunction("art_portable_find_direct_method_from_code_with_access_check");
654if (!func_art_portable_find_direct_method_from_code_with_access_check) {
655func_art_portable_find_direct_method_from_code_with_access_check = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700656 /*Type=*/FuncTy_16,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800657 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800658 /*Name=*/"art_portable_find_direct_method_from_code_with_access_check", mod); // (external, no body)
659func_art_portable_find_direct_method_from_code_with_access_check->setCallingConv(CallingConv::C);
Logan Chien7e7fabc2012-04-10 18:59:11 +0800660}
Logan Chien8dbb7082013-01-25 20:31:17 +0800661AttrListPtr func_art_portable_find_direct_method_from_code_with_access_check_PAL;
662func_art_portable_find_direct_method_from_code_with_access_check->setAttributes(func_art_portable_find_direct_method_from_code_with_access_check_PAL);
Logan Chien7e7fabc2012-04-10 18:59:11 +0800663
Logan Chien8dbb7082013-01-25 20:31:17 +0800664Function* func_art_portable_find_virtual_method_from_code_with_access_check = mod->getFunction("art_portable_find_virtual_method_from_code_with_access_check");
665if (!func_art_portable_find_virtual_method_from_code_with_access_check) {
666func_art_portable_find_virtual_method_from_code_with_access_check = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700667 /*Type=*/FuncTy_16,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800668 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800669 /*Name=*/"art_portable_find_virtual_method_from_code_with_access_check", mod); // (external, no body)
670func_art_portable_find_virtual_method_from_code_with_access_check->setCallingConv(CallingConv::C);
Logan Chien7e7fabc2012-04-10 18:59:11 +0800671}
Logan Chien8dbb7082013-01-25 20:31:17 +0800672AttrListPtr func_art_portable_find_virtual_method_from_code_with_access_check_PAL;
673func_art_portable_find_virtual_method_from_code_with_access_check->setAttributes(func_art_portable_find_virtual_method_from_code_with_access_check_PAL);
Logan Chien7e7fabc2012-04-10 18:59:11 +0800674
Logan Chien8dbb7082013-01-25 20:31:17 +0800675Function* func_art_portable_find_super_method_from_code_with_access_check = mod->getFunction("art_portable_find_super_method_from_code_with_access_check");
676if (!func_art_portable_find_super_method_from_code_with_access_check) {
677func_art_portable_find_super_method_from_code_with_access_check = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700678 /*Type=*/FuncTy_16,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800679 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800680 /*Name=*/"art_portable_find_super_method_from_code_with_access_check", mod); // (external, no body)
681func_art_portable_find_super_method_from_code_with_access_check->setCallingConv(CallingConv::C);
Logan Chien7e7fabc2012-04-10 18:59:11 +0800682}
Logan Chien8dbb7082013-01-25 20:31:17 +0800683AttrListPtr func_art_portable_find_super_method_from_code_with_access_check_PAL;
684func_art_portable_find_super_method_from_code_with_access_check->setAttributes(func_art_portable_find_super_method_from_code_with_access_check_PAL);
Logan Chien7e7fabc2012-04-10 18:59:11 +0800685
Logan Chien8dbb7082013-01-25 20:31:17 +0800686Function* func_art_portable_find_interface_method_from_code_with_access_check = mod->getFunction("art_portable_find_interface_method_from_code_with_access_check");
687if (!func_art_portable_find_interface_method_from_code_with_access_check) {
688func_art_portable_find_interface_method_from_code_with_access_check = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700689 /*Type=*/FuncTy_16,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800690 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800691 /*Name=*/"art_portable_find_interface_method_from_code_with_access_check", mod); // (external, no body)
692func_art_portable_find_interface_method_from_code_with_access_check->setCallingConv(CallingConv::C);
Logan Chien7e7fabc2012-04-10 18:59:11 +0800693}
Logan Chien8dbb7082013-01-25 20:31:17 +0800694AttrListPtr func_art_portable_find_interface_method_from_code_with_access_check_PAL;
695func_art_portable_find_interface_method_from_code_with_access_check->setAttributes(func_art_portable_find_interface_method_from_code_with_access_check_PAL);
Logan Chien7e7fabc2012-04-10 18:59:11 +0800696
Logan Chien8dbb7082013-01-25 20:31:17 +0800697Function* func_art_portable_find_interface_method_from_code = mod->getFunction("art_portable_find_interface_method_from_code");
698if (!func_art_portable_find_interface_method_from_code) {
699func_art_portable_find_interface_method_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700700 /*Type=*/FuncTy_16,
Logan Chien42e0e152012-01-13 15:42:36 +0800701 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800702 /*Name=*/"art_portable_find_interface_method_from_code", mod); // (external, no body)
703func_art_portable_find_interface_method_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800704}
Logan Chien8dbb7082013-01-25 20:31:17 +0800705AttrListPtr func_art_portable_find_interface_method_from_code_PAL;
706func_art_portable_find_interface_method_from_code->setAttributes(func_art_portable_find_interface_method_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800707
Logan Chien8dbb7082013-01-25 20:31:17 +0800708Function* func_art_portable_initialize_static_storage_from_code = mod->getFunction("art_portable_initialize_static_storage_from_code");
709if (!func_art_portable_initialize_static_storage_from_code) {
710func_art_portable_initialize_static_storage_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700711 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800712 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800713 /*Name=*/"art_portable_initialize_static_storage_from_code", mod); // (external, no body)
714func_art_portable_initialize_static_storage_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800715}
Logan Chien8dbb7082013-01-25 20:31:17 +0800716AttrListPtr func_art_portable_initialize_static_storage_from_code_PAL;
717func_art_portable_initialize_static_storage_from_code->setAttributes(func_art_portable_initialize_static_storage_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800718
Logan Chien8dbb7082013-01-25 20:31:17 +0800719Function* func_art_portable_initialize_type_from_code = mod->getFunction("art_portable_initialize_type_from_code");
720if (!func_art_portable_initialize_type_from_code) {
721func_art_portable_initialize_type_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700722 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800723 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800724 /*Name=*/"art_portable_initialize_type_from_code", mod); // (external, no body)
725func_art_portable_initialize_type_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800726}
Logan Chien8dbb7082013-01-25 20:31:17 +0800727AttrListPtr func_art_portable_initialize_type_from_code_PAL;
728func_art_portable_initialize_type_from_code->setAttributes(func_art_portable_initialize_type_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800729
Logan Chien8dbb7082013-01-25 20:31:17 +0800730Function* func_art_portable_initialize_type_and_verify_access_from_code = mod->getFunction("art_portable_initialize_type_and_verify_access_from_code");
731if (!func_art_portable_initialize_type_and_verify_access_from_code) {
732func_art_portable_initialize_type_and_verify_access_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700733 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800734 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800735 /*Name=*/"art_portable_initialize_type_and_verify_access_from_code", mod); // (external, no body)
736func_art_portable_initialize_type_and_verify_access_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800737}
Logan Chien8dbb7082013-01-25 20:31:17 +0800738AttrListPtr func_art_portable_initialize_type_and_verify_access_from_code_PAL;
739func_art_portable_initialize_type_and_verify_access_from_code->setAttributes(func_art_portable_initialize_type_and_verify_access_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800740
Logan Chien8dbb7082013-01-25 20:31:17 +0800741Function* func_art_portable_resolve_string_from_code = mod->getFunction("art_portable_resolve_string_from_code");
742if (!func_art_portable_resolve_string_from_code) {
743func_art_portable_resolve_string_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700744 /*Type=*/FuncTy_17,
Logan Chien42e0e152012-01-13 15:42:36 +0800745 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800746 /*Name=*/"art_portable_resolve_string_from_code", mod); // (external, no body)
747func_art_portable_resolve_string_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800748}
Logan Chien8dbb7082013-01-25 20:31:17 +0800749AttrListPtr func_art_portable_resolve_string_from_code_PAL;
750func_art_portable_resolve_string_from_code->setAttributes(func_art_portable_resolve_string_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800751
Logan Chien8dbb7082013-01-25 20:31:17 +0800752Function* func_art_portable_set32_static_from_code = mod->getFunction("art_portable_set32_static_from_code");
753if (!func_art_portable_set32_static_from_code) {
754func_art_portable_set32_static_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700755 /*Type=*/FuncTy_18,
Logan Chien42e0e152012-01-13 15:42:36 +0800756 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800757 /*Name=*/"art_portable_set32_static_from_code", mod); // (external, no body)
758func_art_portable_set32_static_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800759}
Logan Chien8dbb7082013-01-25 20:31:17 +0800760AttrListPtr func_art_portable_set32_static_from_code_PAL;
761func_art_portable_set32_static_from_code->setAttributes(func_art_portable_set32_static_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800762
Logan Chien8dbb7082013-01-25 20:31:17 +0800763Function* func_art_portable_set64_static_from_code = mod->getFunction("art_portable_set64_static_from_code");
764if (!func_art_portable_set64_static_from_code) {
765func_art_portable_set64_static_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700766 /*Type=*/FuncTy_19,
Logan Chien42e0e152012-01-13 15:42:36 +0800767 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800768 /*Name=*/"art_portable_set64_static_from_code", mod); // (external, no body)
769func_art_portable_set64_static_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800770}
Logan Chien8dbb7082013-01-25 20:31:17 +0800771AttrListPtr func_art_portable_set64_static_from_code_PAL;
772func_art_portable_set64_static_from_code->setAttributes(func_art_portable_set64_static_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800773
Logan Chien8dbb7082013-01-25 20:31:17 +0800774Function* func_art_portable_set_obj_static_from_code = mod->getFunction("art_portable_set_obj_static_from_code");
775if (!func_art_portable_set_obj_static_from_code) {
776func_art_portable_set_obj_static_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700777 /*Type=*/FuncTy_20,
Logan Chien42e0e152012-01-13 15:42:36 +0800778 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800779 /*Name=*/"art_portable_set_obj_static_from_code", mod); // (external, no body)
780func_art_portable_set_obj_static_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800781}
Logan Chien8dbb7082013-01-25 20:31:17 +0800782AttrListPtr func_art_portable_set_obj_static_from_code_PAL;
783func_art_portable_set_obj_static_from_code->setAttributes(func_art_portable_set_obj_static_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800784
Logan Chien8dbb7082013-01-25 20:31:17 +0800785Function* func_art_portable_get32_static_from_code = mod->getFunction("art_portable_get32_static_from_code");
786if (!func_art_portable_get32_static_from_code) {
787func_art_portable_get32_static_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700788 /*Type=*/FuncTy_21,
Logan Chien42e0e152012-01-13 15:42:36 +0800789 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800790 /*Name=*/"art_portable_get32_static_from_code", mod); // (external, no body)
791func_art_portable_get32_static_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800792}
Logan Chien8dbb7082013-01-25 20:31:17 +0800793AttrListPtr func_art_portable_get32_static_from_code_PAL;
794func_art_portable_get32_static_from_code->setAttributes(func_art_portable_get32_static_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800795
Logan Chien8dbb7082013-01-25 20:31:17 +0800796Function* func_art_portable_get64_static_from_code = mod->getFunction("art_portable_get64_static_from_code");
797if (!func_art_portable_get64_static_from_code) {
798func_art_portable_get64_static_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700799 /*Type=*/FuncTy_22,
Logan Chien42e0e152012-01-13 15:42:36 +0800800 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800801 /*Name=*/"art_portable_get64_static_from_code", mod); // (external, no body)
802func_art_portable_get64_static_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800803}
Logan Chien8dbb7082013-01-25 20:31:17 +0800804AttrListPtr func_art_portable_get64_static_from_code_PAL;
805func_art_portable_get64_static_from_code->setAttributes(func_art_portable_get64_static_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800806
Logan Chien8dbb7082013-01-25 20:31:17 +0800807Function* func_art_portable_get_obj_static_from_code = mod->getFunction("art_portable_get_obj_static_from_code");
808if (!func_art_portable_get_obj_static_from_code) {
809func_art_portable_get_obj_static_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700810 /*Type=*/FuncTy_23,
Logan Chien42e0e152012-01-13 15:42:36 +0800811 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800812 /*Name=*/"art_portable_get_obj_static_from_code", mod); // (external, no body)
813func_art_portable_get_obj_static_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800814}
Logan Chien8dbb7082013-01-25 20:31:17 +0800815AttrListPtr func_art_portable_get_obj_static_from_code_PAL;
816func_art_portable_get_obj_static_from_code->setAttributes(func_art_portable_get_obj_static_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800817
Logan Chien8dbb7082013-01-25 20:31:17 +0800818Function* func_art_portable_set32_instance_from_code = mod->getFunction("art_portable_set32_instance_from_code");
819if (!func_art_portable_set32_instance_from_code) {
820func_art_portable_set32_instance_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700821 /*Type=*/FuncTy_24,
Logan Chien42e0e152012-01-13 15:42:36 +0800822 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800823 /*Name=*/"art_portable_set32_instance_from_code", mod); // (external, no body)
824func_art_portable_set32_instance_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800825}
Logan Chien8dbb7082013-01-25 20:31:17 +0800826AttrListPtr func_art_portable_set32_instance_from_code_PAL;
827func_art_portable_set32_instance_from_code->setAttributes(func_art_portable_set32_instance_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800828
Logan Chien8dbb7082013-01-25 20:31:17 +0800829Function* func_art_portable_set64_instance_from_code = mod->getFunction("art_portable_set64_instance_from_code");
830if (!func_art_portable_set64_instance_from_code) {
831func_art_portable_set64_instance_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700832 /*Type=*/FuncTy_25,
Logan Chien42e0e152012-01-13 15:42:36 +0800833 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800834 /*Name=*/"art_portable_set64_instance_from_code", mod); // (external, no body)
835func_art_portable_set64_instance_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800836}
Logan Chien8dbb7082013-01-25 20:31:17 +0800837AttrListPtr func_art_portable_set64_instance_from_code_PAL;
838func_art_portable_set64_instance_from_code->setAttributes(func_art_portable_set64_instance_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800839
Logan Chien8dbb7082013-01-25 20:31:17 +0800840Function* func_art_portable_set_obj_instance_from_code = mod->getFunction("art_portable_set_obj_instance_from_code");
841if (!func_art_portable_set_obj_instance_from_code) {
842func_art_portable_set_obj_instance_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700843 /*Type=*/FuncTy_26,
Logan Chien42e0e152012-01-13 15:42:36 +0800844 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800845 /*Name=*/"art_portable_set_obj_instance_from_code", mod); // (external, no body)
846func_art_portable_set_obj_instance_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800847}
Logan Chien8dbb7082013-01-25 20:31:17 +0800848AttrListPtr func_art_portable_set_obj_instance_from_code_PAL;
849func_art_portable_set_obj_instance_from_code->setAttributes(func_art_portable_set_obj_instance_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800850
Logan Chien8dbb7082013-01-25 20:31:17 +0800851Function* func_art_portable_get32_instance_from_code = mod->getFunction("art_portable_get32_instance_from_code");
852if (!func_art_portable_get32_instance_from_code) {
853func_art_portable_get32_instance_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700854 /*Type=*/FuncTy_20,
Logan Chien42e0e152012-01-13 15:42:36 +0800855 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800856 /*Name=*/"art_portable_get32_instance_from_code", mod); // (external, no body)
857func_art_portable_get32_instance_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800858}
Logan Chien8dbb7082013-01-25 20:31:17 +0800859AttrListPtr func_art_portable_get32_instance_from_code_PAL;
860func_art_portable_get32_instance_from_code->setAttributes(func_art_portable_get32_instance_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800861
Logan Chien8dbb7082013-01-25 20:31:17 +0800862Function* func_art_portable_get64_instance_from_code = mod->getFunction("art_portable_get64_instance_from_code");
863if (!func_art_portable_get64_instance_from_code) {
864func_art_portable_get64_instance_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700865 /*Type=*/FuncTy_27,
Logan Chien42e0e152012-01-13 15:42:36 +0800866 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800867 /*Name=*/"art_portable_get64_instance_from_code", mod); // (external, no body)
868func_art_portable_get64_instance_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800869}
Logan Chien8dbb7082013-01-25 20:31:17 +0800870AttrListPtr func_art_portable_get64_instance_from_code_PAL;
871func_art_portable_get64_instance_from_code->setAttributes(func_art_portable_get64_instance_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800872
Logan Chien8dbb7082013-01-25 20:31:17 +0800873Function* func_art_portable_get_obj_instance_from_code = mod->getFunction("art_portable_get_obj_instance_from_code");
874if (!func_art_portable_get_obj_instance_from_code) {
875func_art_portable_get_obj_instance_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700876 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800877 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800878 /*Name=*/"art_portable_get_obj_instance_from_code", mod); // (external, no body)
879func_art_portable_get_obj_instance_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800880}
Logan Chien8dbb7082013-01-25 20:31:17 +0800881AttrListPtr func_art_portable_get_obj_instance_from_code_PAL;
882func_art_portable_get_obj_instance_from_code->setAttributes(func_art_portable_get_obj_instance_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800883
Logan Chien8dbb7082013-01-25 20:31:17 +0800884Function* func_art_portable_decode_jobject_in_thread = mod->getFunction("art_portable_decode_jobject_in_thread");
885if (!func_art_portable_decode_jobject_in_thread) {
886func_art_portable_decode_jobject_in_thread = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700887 /*Type=*/FuncTy_28,
TDYa12728f1a142012-03-15 21:51:52 -0700888 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800889 /*Name=*/"art_portable_decode_jobject_in_thread", mod); // (external, no body)
890func_art_portable_decode_jobject_in_thread->setCallingConv(CallingConv::C);
TDYa12728f1a142012-03-15 21:51:52 -0700891}
Logan Chien8dbb7082013-01-25 20:31:17 +0800892AttrListPtr func_art_portable_decode_jobject_in_thread_PAL;
893func_art_portable_decode_jobject_in_thread->setAttributes(func_art_portable_decode_jobject_in_thread_PAL);
TDYa12728f1a142012-03-15 21:51:52 -0700894
Logan Chien8dbb7082013-01-25 20:31:17 +0800895Function* func_art_portable_fill_array_data_from_code = mod->getFunction("art_portable_fill_array_data_from_code");
896if (!func_art_portable_fill_array_data_from_code) {
897func_art_portable_fill_array_data_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700898 /*Type=*/FuncTy_29,
Logan Chien86f50672012-04-24 13:08:45 +0800899 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800900 /*Name=*/"art_portable_fill_array_data_from_code", mod); // (external, no body)
901func_art_portable_fill_array_data_from_code->setCallingConv(CallingConv::C);
Logan Chien86f50672012-04-24 13:08:45 +0800902}
Logan Chien8dbb7082013-01-25 20:31:17 +0800903AttrListPtr func_art_portable_fill_array_data_from_code_PAL;
904func_art_portable_fill_array_data_from_code->setAttributes(func_art_portable_fill_array_data_from_code_PAL);
Logan Chien86f50672012-04-24 13:08:45 +0800905
Logan Chien8dbb7082013-01-25 20:31:17 +0800906Function* func_art_portable_is_assignable_from_code = mod->getFunction("art_portable_is_assignable_from_code");
907if (!func_art_portable_is_assignable_from_code) {
908func_art_portable_is_assignable_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700909 /*Type=*/FuncTy_30,
Logan Chien42e0e152012-01-13 15:42:36 +0800910 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800911 /*Name=*/"art_portable_is_assignable_from_code", mod); // (external, no body)
912func_art_portable_is_assignable_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800913}
Logan Chien8dbb7082013-01-25 20:31:17 +0800914AttrListPtr func_art_portable_is_assignable_from_code_PAL;
915func_art_portable_is_assignable_from_code->setAttributes(func_art_portable_is_assignable_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800916
Logan Chien8dbb7082013-01-25 20:31:17 +0800917Function* func_art_portable_check_cast_from_code = mod->getFunction("art_portable_check_cast_from_code");
918if (!func_art_portable_check_cast_from_code) {
919func_art_portable_check_cast_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700920 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800921 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800922 /*Name=*/"art_portable_check_cast_from_code", mod); // (external, no body)
923func_art_portable_check_cast_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800924}
Logan Chien8dbb7082013-01-25 20:31:17 +0800925AttrListPtr func_art_portable_check_cast_from_code_PAL;
926func_art_portable_check_cast_from_code->setAttributes(func_art_portable_check_cast_from_code_PAL);
Logan Chien42e0e152012-01-13 15:42:36 +0800927
Logan Chien8dbb7082013-01-25 20:31:17 +0800928Function* func_art_portable_check_put_array_element_from_code = mod->getFunction("art_portable_check_put_array_element_from_code");
929if (!func_art_portable_check_put_array_element_from_code) {
930func_art_portable_check_put_array_element_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700931 /*Type=*/FuncTy_5,
TDYa1271b86d072012-04-05 17:38:56 -0700932 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800933 /*Name=*/"art_portable_check_put_array_element_from_code", mod); // (external, no body)
934func_art_portable_check_put_array_element_from_code->setCallingConv(CallingConv::C);
TDYa1271b86d072012-04-05 17:38:56 -0700935}
Logan Chien8dbb7082013-01-25 20:31:17 +0800936AttrListPtr func_art_portable_check_put_array_element_from_code_PAL;
937func_art_portable_check_put_array_element_from_code->setAttributes(func_art_portable_check_put_array_element_from_code_PAL);
TDYa1271b86d072012-04-05 17:38:56 -0700938
jeffhao41005dd2012-05-09 17:58:52 -0700939Function* func_art_d2l = mod->getFunction("art_d2l");
940if (!func_art_d2l) {
941func_art_d2l = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700942 /*Type=*/FuncTy_31,
TDYa127a4746872012-04-11 23:48:55 -0700943 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700944 /*Name=*/"art_d2l", mod); // (external, no body)
945func_art_d2l->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700946}
jeffhao41005dd2012-05-09 17:58:52 -0700947AttrListPtr func_art_d2l_PAL;
948func_art_d2l->setAttributes(func_art_d2l_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700949
jeffhao41005dd2012-05-09 17:58:52 -0700950Function* func_art_d2i = mod->getFunction("art_d2i");
951if (!func_art_d2i) {
952func_art_d2i = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700953 /*Type=*/FuncTy_32,
TDYa127a4746872012-04-11 23:48:55 -0700954 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700955 /*Name=*/"art_d2i", mod); // (external, no body)
956func_art_d2i->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700957}
jeffhao41005dd2012-05-09 17:58:52 -0700958AttrListPtr func_art_d2i_PAL;
959func_art_d2i->setAttributes(func_art_d2i_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700960
jeffhao41005dd2012-05-09 17:58:52 -0700961Function* func_art_f2l = mod->getFunction("art_f2l");
962if (!func_art_f2l) {
963func_art_f2l = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700964 /*Type=*/FuncTy_33,
TDYa127a4746872012-04-11 23:48:55 -0700965 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700966 /*Name=*/"art_f2l", mod); // (external, no body)
967func_art_f2l->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700968}
jeffhao41005dd2012-05-09 17:58:52 -0700969AttrListPtr func_art_f2l_PAL;
970func_art_f2l->setAttributes(func_art_f2l_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700971
jeffhao41005dd2012-05-09 17:58:52 -0700972Function* func_art_f2i = mod->getFunction("art_f2i");
973if (!func_art_f2i) {
974func_art_f2i = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700975 /*Type=*/FuncTy_34,
TDYa127a4746872012-04-11 23:48:55 -0700976 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700977 /*Name=*/"art_f2i", mod); // (external, no body)
978func_art_f2i->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700979}
jeffhao41005dd2012-05-09 17:58:52 -0700980AttrListPtr func_art_f2i_PAL;
981func_art_f2i->setAttributes(func_art_f2i_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700982
Logan Chien8dbb7082013-01-25 20:31:17 +0800983Function* func_art_portable_jni_method_start = mod->getFunction("art_portable_jni_method_start");
984if (!func_art_portable_jni_method_start) {
985func_art_portable_jni_method_start = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700986 /*Type=*/FuncTy_35,
TDYa1273d71d802012-08-15 03:47:03 -0700987 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800988 /*Name=*/"art_portable_jni_method_start", mod); // (external, no body)
989func_art_portable_jni_method_start->setCallingConv(CallingConv::C);
TDYa1273d71d802012-08-15 03:47:03 -0700990}
Logan Chien8dbb7082013-01-25 20:31:17 +0800991AttrListPtr func_art_portable_jni_method_start_PAL;
992func_art_portable_jni_method_start->setAttributes(func_art_portable_jni_method_start_PAL);
TDYa1273d71d802012-08-15 03:47:03 -0700993
Logan Chien8dbb7082013-01-25 20:31:17 +0800994Function* func_art_portable_jni_method_start_synchronized = mod->getFunction("art_portable_jni_method_start_synchronized");
995if (!func_art_portable_jni_method_start_synchronized) {
996func_art_portable_jni_method_start_synchronized = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -0700997 /*Type=*/FuncTy_30,
TDYa1273d71d802012-08-15 03:47:03 -0700998 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +0800999 /*Name=*/"art_portable_jni_method_start_synchronized", mod); // (external, no body)
1000func_art_portable_jni_method_start_synchronized->setCallingConv(CallingConv::C);
TDYa1273d71d802012-08-15 03:47:03 -07001001}
Logan Chien8dbb7082013-01-25 20:31:17 +08001002AttrListPtr func_art_portable_jni_method_start_synchronized_PAL;
1003func_art_portable_jni_method_start_synchronized->setAttributes(func_art_portable_jni_method_start_synchronized_PAL);
TDYa1273d71d802012-08-15 03:47:03 -07001004
Logan Chien8dbb7082013-01-25 20:31:17 +08001005Function* func_art_portable_jni_method_end = mod->getFunction("art_portable_jni_method_end");
1006if (!func_art_portable_jni_method_end) {
1007func_art_portable_jni_method_end = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -07001008 /*Type=*/FuncTy_15,
TDYa1273d71d802012-08-15 03:47:03 -07001009 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +08001010 /*Name=*/"art_portable_jni_method_end", mod); // (external, no body)
1011func_art_portable_jni_method_end->setCallingConv(CallingConv::C);
TDYa1273d71d802012-08-15 03:47:03 -07001012}
Logan Chien8dbb7082013-01-25 20:31:17 +08001013AttrListPtr func_art_portable_jni_method_end_PAL;
1014func_art_portable_jni_method_end->setAttributes(func_art_portable_jni_method_end_PAL);
TDYa1273d71d802012-08-15 03:47:03 -07001015
Logan Chien8dbb7082013-01-25 20:31:17 +08001016Function* func_art_portable_jni_method_end_synchronized = mod->getFunction("art_portable_jni_method_end_synchronized");
1017if (!func_art_portable_jni_method_end_synchronized) {
1018func_art_portable_jni_method_end_synchronized = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -07001019 /*Type=*/FuncTy_36,
TDYa1273d71d802012-08-15 03:47:03 -07001020 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +08001021 /*Name=*/"art_portable_jni_method_end_synchronized", mod); // (external, no body)
1022func_art_portable_jni_method_end_synchronized->setCallingConv(CallingConv::C);
TDYa1273d71d802012-08-15 03:47:03 -07001023}
Logan Chien8dbb7082013-01-25 20:31:17 +08001024AttrListPtr func_art_portable_jni_method_end_synchronized_PAL;
1025func_art_portable_jni_method_end_synchronized->setAttributes(func_art_portable_jni_method_end_synchronized_PAL);
TDYa1273d71d802012-08-15 03:47:03 -07001026
Logan Chien8dbb7082013-01-25 20:31:17 +08001027Function* func_art_portable_jni_method_end_with_reference = mod->getFunction("art_portable_jni_method_end_with_reference");
1028if (!func_art_portable_jni_method_end_with_reference) {
1029func_art_portable_jni_method_end_with_reference = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -07001030 /*Type=*/FuncTy_37,
TDYa1273d71d802012-08-15 03:47:03 -07001031 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +08001032 /*Name=*/"art_portable_jni_method_end_with_reference", mod); // (external, no body)
1033func_art_portable_jni_method_end_with_reference->setCallingConv(CallingConv::C);
TDYa1273d71d802012-08-15 03:47:03 -07001034}
Logan Chien8dbb7082013-01-25 20:31:17 +08001035AttrListPtr func_art_portable_jni_method_end_with_reference_PAL;
1036func_art_portable_jni_method_end_with_reference->setAttributes(func_art_portable_jni_method_end_with_reference_PAL);
TDYa1273d71d802012-08-15 03:47:03 -07001037
Logan Chien8dbb7082013-01-25 20:31:17 +08001038Function* func_art_portable_jni_method_end_with_reference_synchronized = mod->getFunction("art_portable_jni_method_end_with_reference_synchronized");
1039if (!func_art_portable_jni_method_end_with_reference_synchronized) {
1040func_art_portable_jni_method_end_with_reference_synchronized = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -07001041 /*Type=*/FuncTy_38,
TDYa1273d71d802012-08-15 03:47:03 -07001042 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +08001043 /*Name=*/"art_portable_jni_method_end_with_reference_synchronized", mod); // (external, no body)
1044func_art_portable_jni_method_end_with_reference_synchronized->setCallingConv(CallingConv::C);
TDYa1273d71d802012-08-15 03:47:03 -07001045}
Logan Chien8dbb7082013-01-25 20:31:17 +08001046AttrListPtr func_art_portable_jni_method_end_with_reference_synchronized_PAL;
1047func_art_portable_jni_method_end_with_reference_synchronized->setAttributes(func_art_portable_jni_method_end_with_reference_synchronized_PAL);
TDYa1273d71d802012-08-15 03:47:03 -07001048
Logan Chien8dbb7082013-01-25 20:31:17 +08001049Function* func_art_portable_is_exception_pending_from_code = mod->getFunction("art_portable_is_exception_pending_from_code");
1050if (!func_art_portable_is_exception_pending_from_code) {
1051func_art_portable_is_exception_pending_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -07001052 /*Type=*/FuncTy_39,
TDYa1273d71d802012-08-15 03:47:03 -07001053 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +08001054 /*Name=*/"art_portable_is_exception_pending_from_code", mod); // (external, no body)
1055func_art_portable_is_exception_pending_from_code->setCallingConv(CallingConv::C);
TDYa1273d71d802012-08-15 03:47:03 -07001056}
Logan Chien8dbb7082013-01-25 20:31:17 +08001057AttrListPtr func_art_portable_is_exception_pending_from_code_PAL;
1058func_art_portable_is_exception_pending_from_code->setAttributes(func_art_portable_is_exception_pending_from_code_PAL);
TDYa1273d71d802012-08-15 03:47:03 -07001059
Logan Chien8dbb7082013-01-25 20:31:17 +08001060Function* func_art_portable_mark_gc_card_from_code = mod->getFunction("art_portable_mark_gc_card_from_code");
1061if (!func_art_portable_mark_gc_card_from_code) {
1062func_art_portable_mark_gc_card_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -07001063 /*Type=*/FuncTy_5,
TDYa12783bb6622012-04-17 02:20:34 -07001064 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +08001065 /*Name=*/"art_portable_mark_gc_card_from_code", mod); // (external, no body)
1066func_art_portable_mark_gc_card_from_code->setCallingConv(CallingConv::C);
TDYa12783bb6622012-04-17 02:20:34 -07001067}
Logan Chien8dbb7082013-01-25 20:31:17 +08001068AttrListPtr func_art_portable_mark_gc_card_from_code_PAL;
1069func_art_portable_mark_gc_card_from_code->setAttributes(func_art_portable_mark_gc_card_from_code_PAL);
TDYa12783bb6622012-04-17 02:20:34 -07001070
Logan Chien8dbb7082013-01-25 20:31:17 +08001071Function* func_art_portable_proxy_invoke_handler_from_code = mod->getFunction("art_portable_proxy_invoke_handler_from_code");
1072if (!func_art_portable_proxy_invoke_handler_from_code) {
1073func_art_portable_proxy_invoke_handler_from_code = Function::Create(
jeffhao9a4f0032012-08-30 16:17:40 -07001074 /*Type=*/FuncTy_40,
TDYa1275bb86012012-04-11 05:57:28 -07001075 /*Linkage=*/GlobalValue::ExternalLinkage,
Logan Chien8dbb7082013-01-25 20:31:17 +08001076 /*Name=*/"art_portable_proxy_invoke_handler_from_code", mod); // (external, no body)
1077func_art_portable_proxy_invoke_handler_from_code->setCallingConv(CallingConv::C);
TDYa1275bb86012012-04-11 05:57:28 -07001078}
Logan Chien8dbb7082013-01-25 20:31:17 +08001079AttrListPtr func_art_portable_proxy_invoke_handler_from_code_PAL;
1080func_art_portable_proxy_invoke_handler_from_code->setAttributes(func_art_portable_proxy_invoke_handler_from_code_PAL);
TDYa1275bb86012012-04-11 05:57:28 -07001081
Logan Chien42e0e152012-01-13 15:42:36 +08001082// Global Variable Declarations
1083
1084
1085// Constant Definitions
1086
1087// Global Variable Definitions
1088
1089// Function Definitions
1090
1091return mod;
1092
1093}
Logan Chiene75a8cc2012-02-24 12:26:43 +08001094
Ian Rogers4c1c2832013-03-04 18:30:13 -08001095} // namespace llvm
Logan Chiene75a8cc2012-02-24 12:26:43 +08001096} // namespace art