blob: f3c5a5a6c6646960cff3a0743364109e485354e4 [file] [log] [blame]
Brian Carlstrom37d48792013-03-22 14:14:45 -07001// Generated with ./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
Brian Carlstrom37d48792013-03-22 14:14:45 -07008#include <llvm/IR/DerivedTypes.h>
9#include <llvm/IR/Function.h>
10#include <llvm/IR/Module.h>
11#include <llvm/IR/Type.h>
Logan Chiene75a8cc2012-02-24 12:26:43 +080012
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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700383 /*Name=*/"__art_type_list", mod); // (external, no body)
Logan Chien42e0e152012-01-13 15:42:36 +0800384func___art_type_list->setCallingConv(CallingConv::C);
385}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700386AttributeSet func___art_type_list_PAL;
Logan Chien42e0e152012-01-13 15:42:36 +0800387func___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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700394 /*Name=*/"art_portable_get_current_thread_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800395func_art_portable_get_current_thread_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800396}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700397AttributeSet func_art_portable_get_current_thread_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800398func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700405 /*Name=*/"art_portable_set_current_thread_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800406func_art_portable_set_current_thread_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800407}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700408AttributeSet func_art_portable_set_current_thread_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800409func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700416 /*Name=*/"art_portable_lock_object_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800417func_art_portable_lock_object_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800418}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700419AttributeSet func_art_portable_lock_object_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800420func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700427 /*Name=*/"art_portable_unlock_object_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800428func_art_portable_unlock_object_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800429}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700430AttributeSet func_art_portable_unlock_object_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800431func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700438 /*Name=*/"art_portable_test_suspend_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800439func_art_portable_test_suspend_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800440}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700441AttributeSet func_art_portable_test_suspend_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800442func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700449 /*Name=*/"art_portable_push_shadow_frame_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800450func_art_portable_push_shadow_frame_from_code->setCallingConv(CallingConv::C);
Logan Chien3f71e702012-02-17 18:45:27 +0800451}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700452AttributeSet func_art_portable_push_shadow_frame_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800453func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700460 /*Name=*/"art_portable_pop_shadow_frame_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800461func_art_portable_pop_shadow_frame_from_code->setCallingConv(CallingConv::C);
Logan Chien3f71e702012-02-17 18:45:27 +0800462}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700463AttributeSet func_art_portable_pop_shadow_frame_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800464func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700471 /*Name=*/"art_portable_get_and_clear_exception", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800472func_art_portable_get_and_clear_exception->setCallingConv(CallingConv::C);
TDYa127823433d2012-09-26 16:03:51 -0700473}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700474AttributeSet func_art_portable_get_and_clear_exception_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800475func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700482 /*Name=*/"art_portable_throw_div_zero_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800483func_art_portable_throw_div_zero_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800484}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700485AttributeSet func_art_portable_throw_div_zero_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800486func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700493 /*Name=*/"art_portable_throw_array_bounds_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800494func_art_portable_throw_array_bounds_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800495}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700496AttributeSet func_art_portable_throw_array_bounds_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800497func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700504 /*Name=*/"art_portable_throw_no_such_method_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800505func_art_portable_throw_no_such_method_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800506}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700507AttributeSet func_art_portable_throw_no_such_method_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800508func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700515 /*Name=*/"art_portable_throw_null_pointer_exception_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800516func_art_portable_throw_null_pointer_exception_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800517}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700518AttributeSet func_art_portable_throw_null_pointer_exception_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800519func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700526 /*Name=*/"art_portable_throw_stack_overflow_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800527func_art_portable_throw_stack_overflow_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800528}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700529AttributeSet func_art_portable_throw_stack_overflow_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800530func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700537 /*Name=*/"art_portable_throw_exception_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800538func_art_portable_throw_exception_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800539}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700540AttributeSet func_art_portable_throw_exception_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800541func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700548 /*Name=*/"art_portable_find_catch_block_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800549func_art_portable_find_catch_block_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800550}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700551AttributeSet func_art_portable_find_catch_block_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800552func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700559 /*Name=*/"art_portable_alloc_object_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800560func_art_portable_alloc_object_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800561}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700562AttributeSet func_art_portable_alloc_object_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800563func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700570 /*Name=*/"art_portable_alloc_object_from_code_with_access_check", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800571func_art_portable_alloc_object_from_code_with_access_check->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800572}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700573AttributeSet func_art_portable_alloc_object_from_code_with_access_check_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800574func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700581 /*Name=*/"art_portable_alloc_array_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800582func_art_portable_alloc_array_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800583}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700584AttributeSet func_art_portable_alloc_array_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800585func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700592 /*Name=*/"art_portable_alloc_array_from_code_with_access_check", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800593func_art_portable_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800594}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700595AttributeSet func_art_portable_alloc_array_from_code_with_access_check_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800596func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700603 /*Name=*/"art_portable_check_and_alloc_array_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800604func_art_portable_check_and_alloc_array_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800605}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700606AttributeSet func_art_portable_check_and_alloc_array_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800607func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700614 /*Name=*/"art_portable_check_and_alloc_array_from_code_with_access_check", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800615func_art_portable_check_and_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800616}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700617AttributeSet func_art_portable_check_and_alloc_array_from_code_with_access_check_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800618func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700625 /*Name=*/"art_portable_find_instance_field_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800626func_art_portable_find_instance_field_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800627}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700628AttributeSet func_art_portable_find_instance_field_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800629func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700636 /*Name=*/"art_portable_find_static_field_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800637func_art_portable_find_static_field_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800638}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700639AttributeSet func_art_portable_find_static_field_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800640func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700647 /*Name=*/"art_portable_find_static_method_from_code_with_access_check", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800648func_art_portable_find_static_method_from_code_with_access_check->setCallingConv(CallingConv::C);
Logan Chien7e7fabc2012-04-10 18:59:11 +0800649}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700650AttributeSet func_art_portable_find_static_method_from_code_with_access_check_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800651func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700658 /*Name=*/"art_portable_find_direct_method_from_code_with_access_check", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800659func_art_portable_find_direct_method_from_code_with_access_check->setCallingConv(CallingConv::C);
Logan Chien7e7fabc2012-04-10 18:59:11 +0800660}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700661AttributeSet func_art_portable_find_direct_method_from_code_with_access_check_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800662func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700669 /*Name=*/"art_portable_find_virtual_method_from_code_with_access_check", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800670func_art_portable_find_virtual_method_from_code_with_access_check->setCallingConv(CallingConv::C);
Logan Chien7e7fabc2012-04-10 18:59:11 +0800671}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700672AttributeSet func_art_portable_find_virtual_method_from_code_with_access_check_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800673func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700680 /*Name=*/"art_portable_find_super_method_from_code_with_access_check", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800681func_art_portable_find_super_method_from_code_with_access_check->setCallingConv(CallingConv::C);
Logan Chien7e7fabc2012-04-10 18:59:11 +0800682}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700683AttributeSet func_art_portable_find_super_method_from_code_with_access_check_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800684func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700691 /*Name=*/"art_portable_find_interface_method_from_code_with_access_check", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800692func_art_portable_find_interface_method_from_code_with_access_check->setCallingConv(CallingConv::C);
Logan Chien7e7fabc2012-04-10 18:59:11 +0800693}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700694AttributeSet func_art_portable_find_interface_method_from_code_with_access_check_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800695func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700702 /*Name=*/"art_portable_find_interface_method_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800703func_art_portable_find_interface_method_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800704}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700705AttributeSet func_art_portable_find_interface_method_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800706func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700713 /*Name=*/"art_portable_initialize_static_storage_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800714func_art_portable_initialize_static_storage_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800715}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700716AttributeSet func_art_portable_initialize_static_storage_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800717func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700724 /*Name=*/"art_portable_initialize_type_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800725func_art_portable_initialize_type_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800726}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700727AttributeSet func_art_portable_initialize_type_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800728func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700735 /*Name=*/"art_portable_initialize_type_and_verify_access_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800736func_art_portable_initialize_type_and_verify_access_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800737}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700738AttributeSet func_art_portable_initialize_type_and_verify_access_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800739func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700746 /*Name=*/"art_portable_resolve_string_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800747func_art_portable_resolve_string_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800748}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700749AttributeSet func_art_portable_resolve_string_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800750func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700757 /*Name=*/"art_portable_set32_static_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800758func_art_portable_set32_static_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800759}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700760AttributeSet func_art_portable_set32_static_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800761func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700768 /*Name=*/"art_portable_set64_static_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800769func_art_portable_set64_static_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800770}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700771AttributeSet func_art_portable_set64_static_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800772func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700779 /*Name=*/"art_portable_set_obj_static_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800780func_art_portable_set_obj_static_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800781}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700782AttributeSet func_art_portable_set_obj_static_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800783func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700790 /*Name=*/"art_portable_get32_static_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800791func_art_portable_get32_static_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800792}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700793AttributeSet func_art_portable_get32_static_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800794func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700801 /*Name=*/"art_portable_get64_static_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800802func_art_portable_get64_static_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800803}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700804AttributeSet func_art_portable_get64_static_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800805func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700812 /*Name=*/"art_portable_get_obj_static_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800813func_art_portable_get_obj_static_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800814}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700815AttributeSet func_art_portable_get_obj_static_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800816func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700823 /*Name=*/"art_portable_set32_instance_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800824func_art_portable_set32_instance_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800825}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700826AttributeSet func_art_portable_set32_instance_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800827func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700834 /*Name=*/"art_portable_set64_instance_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800835func_art_portable_set64_instance_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800836}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700837AttributeSet func_art_portable_set64_instance_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800838func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700845 /*Name=*/"art_portable_set_obj_instance_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800846func_art_portable_set_obj_instance_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800847}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700848AttributeSet func_art_portable_set_obj_instance_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800849func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700856 /*Name=*/"art_portable_get32_instance_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800857func_art_portable_get32_instance_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800858}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700859AttributeSet func_art_portable_get32_instance_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800860func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700867 /*Name=*/"art_portable_get64_instance_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800868func_art_portable_get64_instance_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800869}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700870AttributeSet func_art_portable_get64_instance_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800871func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700878 /*Name=*/"art_portable_get_obj_instance_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800879func_art_portable_get_obj_instance_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800880}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700881AttributeSet func_art_portable_get_obj_instance_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800882func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700889 /*Name=*/"art_portable_decode_jobject_in_thread", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800890func_art_portable_decode_jobject_in_thread->setCallingConv(CallingConv::C);
TDYa12728f1a142012-03-15 21:51:52 -0700891}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700892AttributeSet func_art_portable_decode_jobject_in_thread_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800893func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700900 /*Name=*/"art_portable_fill_array_data_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800901func_art_portable_fill_array_data_from_code->setCallingConv(CallingConv::C);
Logan Chien86f50672012-04-24 13:08:45 +0800902}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700903AttributeSet func_art_portable_fill_array_data_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800904func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700911 /*Name=*/"art_portable_is_assignable_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800912func_art_portable_is_assignable_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800913}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700914AttributeSet func_art_portable_is_assignable_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800915func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700922 /*Name=*/"art_portable_check_cast_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800923func_art_portable_check_cast_from_code->setCallingConv(CallingConv::C);
Logan Chien42e0e152012-01-13 15:42:36 +0800924}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700925AttributeSet func_art_portable_check_cast_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800926func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700933 /*Name=*/"art_portable_check_put_array_element_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800934func_art_portable_check_put_array_element_from_code->setCallingConv(CallingConv::C);
TDYa1271b86d072012-04-05 17:38:56 -0700935}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700936AttributeSet func_art_portable_check_put_array_element_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800937func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700944 /*Name=*/"art_d2l", mod); // (external, no body)
jeffhao41005dd2012-05-09 17:58:52 -0700945func_art_d2l->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700946}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700947AttributeSet func_art_d2l_PAL;
jeffhao41005dd2012-05-09 17:58:52 -0700948func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700955 /*Name=*/"art_d2i", mod); // (external, no body)
jeffhao41005dd2012-05-09 17:58:52 -0700956func_art_d2i->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700957}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700958AttributeSet func_art_d2i_PAL;
jeffhao41005dd2012-05-09 17:58:52 -0700959func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700966 /*Name=*/"art_f2l", mod); // (external, no body)
jeffhao41005dd2012-05-09 17:58:52 -0700967func_art_f2l->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700968}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700969AttributeSet func_art_f2l_PAL;
jeffhao41005dd2012-05-09 17:58:52 -0700970func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700977 /*Name=*/"art_f2i", mod); // (external, no body)
jeffhao41005dd2012-05-09 17:58:52 -0700978func_art_f2i->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700979}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700980AttributeSet func_art_f2i_PAL;
jeffhao41005dd2012-05-09 17:58:52 -0700981func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700988 /*Name=*/"art_portable_jni_method_start", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +0800989func_art_portable_jni_method_start->setCallingConv(CallingConv::C);
TDYa1273d71d802012-08-15 03:47:03 -0700990}
Brian Carlstrom37d48792013-03-22 14:14:45 -0700991AttributeSet func_art_portable_jni_method_start_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +0800992func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700999 /*Name=*/"art_portable_jni_method_start_synchronized", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +08001000func_art_portable_jni_method_start_synchronized->setCallingConv(CallingConv::C);
TDYa1273d71d802012-08-15 03:47:03 -07001001}
Brian Carlstrom37d48792013-03-22 14:14:45 -07001002AttributeSet func_art_portable_jni_method_start_synchronized_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +08001003func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -07001010 /*Name=*/"art_portable_jni_method_end", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +08001011func_art_portable_jni_method_end->setCallingConv(CallingConv::C);
TDYa1273d71d802012-08-15 03:47:03 -07001012}
Brian Carlstrom37d48792013-03-22 14:14:45 -07001013AttributeSet func_art_portable_jni_method_end_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +08001014func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -07001021 /*Name=*/"art_portable_jni_method_end_synchronized", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +08001022func_art_portable_jni_method_end_synchronized->setCallingConv(CallingConv::C);
TDYa1273d71d802012-08-15 03:47:03 -07001023}
Brian Carlstrom37d48792013-03-22 14:14:45 -07001024AttributeSet func_art_portable_jni_method_end_synchronized_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +08001025func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -07001032 /*Name=*/"art_portable_jni_method_end_with_reference", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +08001033func_art_portable_jni_method_end_with_reference->setCallingConv(CallingConv::C);
TDYa1273d71d802012-08-15 03:47:03 -07001034}
Brian Carlstrom37d48792013-03-22 14:14:45 -07001035AttributeSet func_art_portable_jni_method_end_with_reference_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +08001036func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -07001043 /*Name=*/"art_portable_jni_method_end_with_reference_synchronized", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +08001044func_art_portable_jni_method_end_with_reference_synchronized->setCallingConv(CallingConv::C);
TDYa1273d71d802012-08-15 03:47:03 -07001045}
Brian Carlstrom37d48792013-03-22 14:14:45 -07001046AttributeSet func_art_portable_jni_method_end_with_reference_synchronized_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +08001047func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -07001054 /*Name=*/"art_portable_is_exception_pending_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +08001055func_art_portable_is_exception_pending_from_code->setCallingConv(CallingConv::C);
TDYa1273d71d802012-08-15 03:47:03 -07001056}
Brian Carlstrom37d48792013-03-22 14:14:45 -07001057AttributeSet func_art_portable_is_exception_pending_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +08001058func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -07001065 /*Name=*/"art_portable_mark_gc_card_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +08001066func_art_portable_mark_gc_card_from_code->setCallingConv(CallingConv::C);
TDYa12783bb6622012-04-17 02:20:34 -07001067}
Brian Carlstrom37d48792013-03-22 14:14:45 -07001068AttributeSet func_art_portable_mark_gc_card_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +08001069func_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,
Brian Carlstrom7934ac22013-07-26 10:54:15 -07001076 /*Name=*/"art_portable_proxy_invoke_handler_from_code", mod); // (external, no body)
Logan Chien8dbb7082013-01-25 20:31:17 +08001077func_art_portable_proxy_invoke_handler_from_code->setCallingConv(CallingConv::C);
TDYa1275bb86012012-04-11 05:57:28 -07001078}
Brian Carlstrom37d48792013-03-22 14:14:45 -07001079AttributeSet func_art_portable_proxy_invoke_handler_from_code_PAL;
Logan Chien8dbb7082013-01-25 20:31:17 +08001080func_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
Brian Carlstrom7934ac22013-07-26 10:54:15 -07001095} // namespace llvm
1096} // namespace art