blob: 872701d054050c977d102d03a04389dfadb1e4a3 [file] [log] [blame]
TDYa1270de52be2012-05-27 20:49:31 -07001// Generated with tools/gen_art_module_cc.sh
Logan Chiene75a8cc2012-02-24 12:26:43 +08002
3
4#pragma GCC diagnostic ignored "-Wframe-larger-than="
5// TODO: Remove this pragma after llc can generate makeLLVMModuleContents()
6// with smaller frame size.
7
8#include <llvm/DerivedTypes.h>
9#include <llvm/Function.h>
10#include <llvm/Module.h>
11#include <llvm/Type.h>
12
13#include <vector>
14
15using namespace llvm;
16
17namespace art {
18namespace compiler_llvm {
19
Logan Chien42e0e152012-01-13 15:42:36 +080020
21// Generated by llvm2cpp - DO NOT MODIFY!
22
23
24Module* makeLLVMModuleContents(Module *mod) {
25
26mod->setModuleIdentifier("art_module.ll");
27
28// Type Definitions
29std::vector<Type*>FuncTy_0_args;
30StructType *StructTy_JavaObject = mod->getTypeByName("JavaObject");
31if (!StructTy_JavaObject) {
32StructTy_JavaObject = StructType::create(mod->getContext(), "JavaObject");
33}
34std::vector<Type*>StructTy_JavaObject_fields;
35if (StructTy_JavaObject->isOpaque()) {
36StructTy_JavaObject->setBody(StructTy_JavaObject_fields, /*isPacked=*/false);
37}
38
39PointerType* PointerTy_1 = PointerType::get(StructTy_JavaObject, 0);
40
41FuncTy_0_args.push_back(PointerTy_1);
Logan Chien1b0a1b72012-03-15 06:20:17 +080042StructType *StructTy_ShadowFrame = mod->getTypeByName("ShadowFrame");
43if (!StructTy_ShadowFrame) {
44StructTy_ShadowFrame = StructType::create(mod->getContext(), "ShadowFrame");
Logan Chien3f71e702012-02-17 18:45:27 +080045}
Logan Chien1b0a1b72012-03-15 06:20:17 +080046std::vector<Type*>StructTy_ShadowFrame_fields;
47PointerType* PointerTy_2 = PointerType::get(StructTy_ShadowFrame, 0);
Logan Chien3f71e702012-02-17 18:45:27 +080048
Logan Chien1b0a1b72012-03-15 06:20:17 +080049StructTy_ShadowFrame_fields.push_back(PointerTy_2);
50StructTy_ShadowFrame_fields.push_back(PointerTy_1);
51StructTy_ShadowFrame_fields.push_back(IntegerType::get(mod->getContext(), 32));
TDYa12785321912012-04-01 15:24:56 -070052StructTy_ShadowFrame_fields.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien1b0a1b72012-03-15 06:20:17 +080053if (StructTy_ShadowFrame->isOpaque()) {
54StructTy_ShadowFrame->setBody(StructTy_ShadowFrame_fields, /*isPacked=*/false);
Logan Chien3f71e702012-02-17 18:45:27 +080055}
56
57
58FuncTy_0_args.push_back(PointerTy_2);
Logan Chien42e0e152012-01-13 15:42:36 +080059FunctionType* FuncTy_0 = FunctionType::get(
60 /*Result=*/Type::getVoidTy(mod->getContext()),
61 /*Params=*/FuncTy_0_args,
62 /*isVarArg=*/false);
63
Logan Chien42e0e152012-01-13 15:42:36 +080064std::vector<Type*>FuncTy_3_args;
65FunctionType* FuncTy_3 = FunctionType::get(
Logan Chien3f71e702012-02-17 18:45:27 +080066 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +080067 /*Params=*/FuncTy_3_args,
68 /*isVarArg=*/false);
69
70std::vector<Type*>FuncTy_4_args;
Logan Chien3f71e702012-02-17 18:45:27 +080071FuncTy_4_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +080072FunctionType* FuncTy_4 = FunctionType::get(
TDYa127c1478262012-06-20 20:22:27 -070073 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +080074 /*Params=*/FuncTy_4_args,
75 /*isVarArg=*/false);
76
77std::vector<Type*>FuncTy_5_args;
TDYa127706e9b62012-04-19 12:24:26 -070078FuncTy_5_args.push_back(PointerTy_1);
79FuncTy_5_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +080080FunctionType* FuncTy_5 = FunctionType::get(
81 /*Result=*/Type::getVoidTy(mod->getContext()),
82 /*Params=*/FuncTy_5_args,
83 /*isVarArg=*/false);
84
85std::vector<Type*>FuncTy_6_args;
TDYa127de479be2012-05-31 08:03:26 -070086FuncTy_6_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +080087FunctionType* FuncTy_6 = FunctionType::get(
TDYa127c1478262012-06-20 20:22:27 -070088 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +080089 /*Params=*/FuncTy_6_args,
90 /*isVarArg=*/false);
91
92std::vector<Type*>FuncTy_7_args;
TDYa127c1478262012-06-20 20:22:27 -070093FuncTy_7_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -070094FuncTy_7_args.push_back(PointerTy_2);
TDYa127c1478262012-06-20 20:22:27 -070095FuncTy_7_args.push_back(PointerTy_1);
96FuncTy_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
389Function* func_art_get_current_thread_from_code = mod->getFunction("art_get_current_thread_from_code");
390if (!func_art_get_current_thread_from_code) {
391func_art_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,
394 /*Name=*/"art_get_current_thread_from_code", mod); // (external, no body)
395func_art_get_current_thread_from_code->setCallingConv(CallingConv::C);
396}
397AttrListPtr func_art_get_current_thread_from_code_PAL;
398func_art_get_current_thread_from_code->setAttributes(func_art_get_current_thread_from_code_PAL);
399
400Function* func_art_set_current_thread_from_code = mod->getFunction("art_set_current_thread_from_code");
401if (!func_art_set_current_thread_from_code) {
402func_art_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,
405 /*Name=*/"art_set_current_thread_from_code", mod); // (external, no body)
406func_art_set_current_thread_from_code->setCallingConv(CallingConv::C);
407}
408AttrListPtr func_art_set_current_thread_from_code_PAL;
409func_art_set_current_thread_from_code->setAttributes(func_art_set_current_thread_from_code_PAL);
410
411Function* func_art_lock_object_from_code = mod->getFunction("art_lock_object_from_code");
412if (!func_art_lock_object_from_code) {
413func_art_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,
416 /*Name=*/"art_lock_object_from_code", mod); // (external, no body)
417func_art_lock_object_from_code->setCallingConv(CallingConv::C);
418}
419AttrListPtr func_art_lock_object_from_code_PAL;
420func_art_lock_object_from_code->setAttributes(func_art_lock_object_from_code_PAL);
421
422Function* func_art_unlock_object_from_code = mod->getFunction("art_unlock_object_from_code");
423if (!func_art_unlock_object_from_code) {
424func_art_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,
427 /*Name=*/"art_unlock_object_from_code", mod); // (external, no body)
428func_art_unlock_object_from_code->setCallingConv(CallingConv::C);
429}
430AttrListPtr func_art_unlock_object_from_code_PAL;
431func_art_unlock_object_from_code->setAttributes(func_art_unlock_object_from_code_PAL);
432
433Function* func_art_test_suspend_from_code = mod->getFunction("art_test_suspend_from_code");
434if (!func_art_test_suspend_from_code) {
435func_art_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,
438 /*Name=*/"art_test_suspend_from_code", mod); // (external, no body)
439func_art_test_suspend_from_code->setCallingConv(CallingConv::C);
440}
441AttrListPtr func_art_test_suspend_from_code_PAL;
442func_art_test_suspend_from_code->setAttributes(func_art_test_suspend_from_code_PAL);
443
Logan Chien3f71e702012-02-17 18:45:27 +0800444Function* func_art_push_shadow_frame_from_code = mod->getFunction("art_push_shadow_frame_from_code");
445if (!func_art_push_shadow_frame_from_code) {
446func_art_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,
449 /*Name=*/"art_push_shadow_frame_from_code", mod); // (external, no body)
450func_art_push_shadow_frame_from_code->setCallingConv(CallingConv::C);
451}
452AttrListPtr func_art_push_shadow_frame_from_code_PAL;
453func_art_push_shadow_frame_from_code->setAttributes(func_art_push_shadow_frame_from_code_PAL);
454
455Function* func_art_pop_shadow_frame_from_code = mod->getFunction("art_pop_shadow_frame_from_code");
456if (!func_art_pop_shadow_frame_from_code) {
457func_art_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,
460 /*Name=*/"art_pop_shadow_frame_from_code", mod); // (external, no body)
461func_art_pop_shadow_frame_from_code->setCallingConv(CallingConv::C);
462}
463AttrListPtr func_art_pop_shadow_frame_from_code_PAL;
464func_art_pop_shadow_frame_from_code->setAttributes(func_art_pop_shadow_frame_from_code_PAL);
465
TDYa127823433d2012-09-26 16:03:51 -0700466Function* func_art_get_and_clear_exception = mod->getFunction("art_get_and_clear_exception");
467if (!func_art_get_and_clear_exception) {
468func_art_get_and_clear_exception = Function::Create(
469 /*Type=*/FuncTy_4,
470 /*Linkage=*/GlobalValue::ExternalLinkage,
471 /*Name=*/"art_get_and_clear_exception", mod); // (external, no body)
472func_art_get_and_clear_exception->setCallingConv(CallingConv::C);
473}
474AttrListPtr func_art_get_and_clear_exception_PAL;
475func_art_get_and_clear_exception->setAttributes(func_art_get_and_clear_exception_PAL);
476
Logan Chien42e0e152012-01-13 15:42:36 +0800477Function* func_art_throw_div_zero_from_code = mod->getFunction("art_throw_div_zero_from_code");
478if (!func_art_throw_div_zero_from_code) {
479func_art_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,
482 /*Name=*/"art_throw_div_zero_from_code", mod); // (external, no body)
483func_art_throw_div_zero_from_code->setCallingConv(CallingConv::C);
484}
485AttrListPtr func_art_throw_div_zero_from_code_PAL;
486func_art_throw_div_zero_from_code->setAttributes(func_art_throw_div_zero_from_code_PAL);
487
488Function* func_art_throw_array_bounds_from_code = mod->getFunction("art_throw_array_bounds_from_code");
489if (!func_art_throw_array_bounds_from_code) {
490func_art_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,
493 /*Name=*/"art_throw_array_bounds_from_code", mod); // (external, no body)
494func_art_throw_array_bounds_from_code->setCallingConv(CallingConv::C);
495}
496AttrListPtr func_art_throw_array_bounds_from_code_PAL;
497func_art_throw_array_bounds_from_code->setAttributes(func_art_throw_array_bounds_from_code_PAL);
498
499Function* func_art_throw_no_such_method_from_code = mod->getFunction("art_throw_no_such_method_from_code");
500if (!func_art_throw_no_such_method_from_code) {
501func_art_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,
504 /*Name=*/"art_throw_no_such_method_from_code", mod); // (external, no body)
505func_art_throw_no_such_method_from_code->setCallingConv(CallingConv::C);
506}
507AttrListPtr func_art_throw_no_such_method_from_code_PAL;
508func_art_throw_no_such_method_from_code->setAttributes(func_art_throw_no_such_method_from_code_PAL);
509
510Function* func_art_throw_null_pointer_exception_from_code = mod->getFunction("art_throw_null_pointer_exception_from_code");
511if (!func_art_throw_null_pointer_exception_from_code) {
512func_art_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,
515 /*Name=*/"art_throw_null_pointer_exception_from_code", mod); // (external, no body)
516func_art_throw_null_pointer_exception_from_code->setCallingConv(CallingConv::C);
517}
518AttrListPtr func_art_throw_null_pointer_exception_from_code_PAL;
519func_art_throw_null_pointer_exception_from_code->setAttributes(func_art_throw_null_pointer_exception_from_code_PAL);
520
521Function* func_art_throw_stack_overflow_from_code = mod->getFunction("art_throw_stack_overflow_from_code");
522if (!func_art_throw_stack_overflow_from_code) {
523func_art_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,
526 /*Name=*/"art_throw_stack_overflow_from_code", mod); // (external, no body)
527func_art_throw_stack_overflow_from_code->setCallingConv(CallingConv::C);
528}
529AttrListPtr func_art_throw_stack_overflow_from_code_PAL;
530func_art_throw_stack_overflow_from_code->setAttributes(func_art_throw_stack_overflow_from_code_PAL);
531
532Function* func_art_throw_exception_from_code = mod->getFunction("art_throw_exception_from_code");
533if (!func_art_throw_exception_from_code) {
534func_art_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,
537 /*Name=*/"art_throw_exception_from_code", mod); // (external, no body)
538func_art_throw_exception_from_code->setCallingConv(CallingConv::C);
539}
540AttrListPtr func_art_throw_exception_from_code_PAL;
541func_art_throw_exception_from_code->setAttributes(func_art_throw_exception_from_code_PAL);
542
543Function* func_art_find_catch_block_from_code = mod->getFunction("art_find_catch_block_from_code");
544if (!func_art_find_catch_block_from_code) {
545func_art_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,
548 /*Name=*/"art_find_catch_block_from_code", mod); // (external, no body)
549func_art_find_catch_block_from_code->setCallingConv(CallingConv::C);
550}
551AttrListPtr func_art_find_catch_block_from_code_PAL;
552func_art_find_catch_block_from_code->setAttributes(func_art_find_catch_block_from_code_PAL);
553
554Function* func_art_alloc_object_from_code = mod->getFunction("art_alloc_object_from_code");
555if (!func_art_alloc_object_from_code) {
556func_art_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,
559 /*Name=*/"art_alloc_object_from_code", mod); // (external, no body)
560func_art_alloc_object_from_code->setCallingConv(CallingConv::C);
561}
562AttrListPtr func_art_alloc_object_from_code_PAL;
563func_art_alloc_object_from_code->setAttributes(func_art_alloc_object_from_code_PAL);
564
565Function* func_art_alloc_object_from_code_with_access_check = mod->getFunction("art_alloc_object_from_code_with_access_check");
566if (!func_art_alloc_object_from_code_with_access_check) {
567func_art_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,
570 /*Name=*/"art_alloc_object_from_code_with_access_check", mod); // (external, no body)
571func_art_alloc_object_from_code_with_access_check->setCallingConv(CallingConv::C);
572}
573AttrListPtr func_art_alloc_object_from_code_with_access_check_PAL;
574func_art_alloc_object_from_code_with_access_check->setAttributes(func_art_alloc_object_from_code_with_access_check_PAL);
575
576Function* func_art_alloc_array_from_code = mod->getFunction("art_alloc_array_from_code");
577if (!func_art_alloc_array_from_code) {
578func_art_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,
581 /*Name=*/"art_alloc_array_from_code", mod); // (external, no body)
582func_art_alloc_array_from_code->setCallingConv(CallingConv::C);
583}
584AttrListPtr func_art_alloc_array_from_code_PAL;
585func_art_alloc_array_from_code->setAttributes(func_art_alloc_array_from_code_PAL);
586
587Function* func_art_alloc_array_from_code_with_access_check = mod->getFunction("art_alloc_array_from_code_with_access_check");
588if (!func_art_alloc_array_from_code_with_access_check) {
589func_art_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,
592 /*Name=*/"art_alloc_array_from_code_with_access_check", mod); // (external, no body)
593func_art_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
594}
595AttrListPtr func_art_alloc_array_from_code_with_access_check_PAL;
596func_art_alloc_array_from_code_with_access_check->setAttributes(func_art_alloc_array_from_code_with_access_check_PAL);
597
598Function* func_art_check_and_alloc_array_from_code = mod->getFunction("art_check_and_alloc_array_from_code");
599if (!func_art_check_and_alloc_array_from_code) {
600func_art_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,
603 /*Name=*/"art_check_and_alloc_array_from_code", mod); // (external, no body)
604func_art_check_and_alloc_array_from_code->setCallingConv(CallingConv::C);
605}
606AttrListPtr func_art_check_and_alloc_array_from_code_PAL;
607func_art_check_and_alloc_array_from_code->setAttributes(func_art_check_and_alloc_array_from_code_PAL);
608
609Function* func_art_check_and_alloc_array_from_code_with_access_check = mod->getFunction("art_check_and_alloc_array_from_code_with_access_check");
610if (!func_art_check_and_alloc_array_from_code_with_access_check) {
611func_art_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,
614 /*Name=*/"art_check_and_alloc_array_from_code_with_access_check", mod); // (external, no body)
615func_art_check_and_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
616}
617AttrListPtr func_art_check_and_alloc_array_from_code_with_access_check_PAL;
618func_art_check_and_alloc_array_from_code_with_access_check->setAttributes(func_art_check_and_alloc_array_from_code_with_access_check_PAL);
619
Logan Chien42e0e152012-01-13 15:42:36 +0800620Function* func_art_find_instance_field_from_code = mod->getFunction("art_find_instance_field_from_code");
621if (!func_art_find_instance_field_from_code) {
622func_art_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,
625 /*Name=*/"art_find_instance_field_from_code", mod); // (external, no body)
626func_art_find_instance_field_from_code->setCallingConv(CallingConv::C);
627}
628AttrListPtr func_art_find_instance_field_from_code_PAL;
629func_art_find_instance_field_from_code->setAttributes(func_art_find_instance_field_from_code_PAL);
630
631Function* func_art_find_static_field_from_code = mod->getFunction("art_find_static_field_from_code");
632if (!func_art_find_static_field_from_code) {
633func_art_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,
636 /*Name=*/"art_find_static_field_from_code", mod); // (external, no body)
637func_art_find_static_field_from_code->setCallingConv(CallingConv::C);
638}
639AttrListPtr func_art_find_static_field_from_code_PAL;
640func_art_find_static_field_from_code->setAttributes(func_art_find_static_field_from_code_PAL);
641
Logan Chien7e7fabc2012-04-10 18:59:11 +0800642Function* func_art_find_static_method_from_code_with_access_check = mod->getFunction("art_find_static_method_from_code_with_access_check");
643if (!func_art_find_static_method_from_code_with_access_check) {
644func_art_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,
647 /*Name=*/"art_find_static_method_from_code_with_access_check", mod); // (external, no body)
648func_art_find_static_method_from_code_with_access_check->setCallingConv(CallingConv::C);
649}
650AttrListPtr func_art_find_static_method_from_code_with_access_check_PAL;
651func_art_find_static_method_from_code_with_access_check->setAttributes(func_art_find_static_method_from_code_with_access_check_PAL);
652
653Function* func_art_find_direct_method_from_code_with_access_check = mod->getFunction("art_find_direct_method_from_code_with_access_check");
654if (!func_art_find_direct_method_from_code_with_access_check) {
655func_art_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,
658 /*Name=*/"art_find_direct_method_from_code_with_access_check", mod); // (external, no body)
659func_art_find_direct_method_from_code_with_access_check->setCallingConv(CallingConv::C);
660}
661AttrListPtr func_art_find_direct_method_from_code_with_access_check_PAL;
662func_art_find_direct_method_from_code_with_access_check->setAttributes(func_art_find_direct_method_from_code_with_access_check_PAL);
663
664Function* func_art_find_virtual_method_from_code_with_access_check = mod->getFunction("art_find_virtual_method_from_code_with_access_check");
665if (!func_art_find_virtual_method_from_code_with_access_check) {
666func_art_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,
669 /*Name=*/"art_find_virtual_method_from_code_with_access_check", mod); // (external, no body)
670func_art_find_virtual_method_from_code_with_access_check->setCallingConv(CallingConv::C);
671}
672AttrListPtr func_art_find_virtual_method_from_code_with_access_check_PAL;
673func_art_find_virtual_method_from_code_with_access_check->setAttributes(func_art_find_virtual_method_from_code_with_access_check_PAL);
674
675Function* func_art_find_super_method_from_code_with_access_check = mod->getFunction("art_find_super_method_from_code_with_access_check");
676if (!func_art_find_super_method_from_code_with_access_check) {
677func_art_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,
680 /*Name=*/"art_find_super_method_from_code_with_access_check", mod); // (external, no body)
681func_art_find_super_method_from_code_with_access_check->setCallingConv(CallingConv::C);
682}
683AttrListPtr func_art_find_super_method_from_code_with_access_check_PAL;
684func_art_find_super_method_from_code_with_access_check->setAttributes(func_art_find_super_method_from_code_with_access_check_PAL);
685
686Function* func_art_find_interface_method_from_code_with_access_check = mod->getFunction("art_find_interface_method_from_code_with_access_check");
687if (!func_art_find_interface_method_from_code_with_access_check) {
688func_art_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,
691 /*Name=*/"art_find_interface_method_from_code_with_access_check", mod); // (external, no body)
692func_art_find_interface_method_from_code_with_access_check->setCallingConv(CallingConv::C);
693}
694AttrListPtr func_art_find_interface_method_from_code_with_access_check_PAL;
695func_art_find_interface_method_from_code_with_access_check->setAttributes(func_art_find_interface_method_from_code_with_access_check_PAL);
696
Logan Chien42e0e152012-01-13 15:42:36 +0800697Function* func_art_find_interface_method_from_code = mod->getFunction("art_find_interface_method_from_code");
698if (!func_art_find_interface_method_from_code) {
699func_art_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,
702 /*Name=*/"art_find_interface_method_from_code", mod); // (external, no body)
703func_art_find_interface_method_from_code->setCallingConv(CallingConv::C);
704}
705AttrListPtr func_art_find_interface_method_from_code_PAL;
706func_art_find_interface_method_from_code->setAttributes(func_art_find_interface_method_from_code_PAL);
707
708Function* func_art_initialize_static_storage_from_code = mod->getFunction("art_initialize_static_storage_from_code");
709if (!func_art_initialize_static_storage_from_code) {
710func_art_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,
713 /*Name=*/"art_initialize_static_storage_from_code", mod); // (external, no body)
714func_art_initialize_static_storage_from_code->setCallingConv(CallingConv::C);
715}
716AttrListPtr func_art_initialize_static_storage_from_code_PAL;
717func_art_initialize_static_storage_from_code->setAttributes(func_art_initialize_static_storage_from_code_PAL);
718
719Function* func_art_initialize_type_from_code = mod->getFunction("art_initialize_type_from_code");
720if (!func_art_initialize_type_from_code) {
721func_art_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,
724 /*Name=*/"art_initialize_type_from_code", mod); // (external, no body)
725func_art_initialize_type_from_code->setCallingConv(CallingConv::C);
726}
727AttrListPtr func_art_initialize_type_from_code_PAL;
728func_art_initialize_type_from_code->setAttributes(func_art_initialize_type_from_code_PAL);
729
730Function* func_art_initialize_type_and_verify_access_from_code = mod->getFunction("art_initialize_type_and_verify_access_from_code");
731if (!func_art_initialize_type_and_verify_access_from_code) {
732func_art_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,
735 /*Name=*/"art_initialize_type_and_verify_access_from_code", mod); // (external, no body)
736func_art_initialize_type_and_verify_access_from_code->setCallingConv(CallingConv::C);
737}
738AttrListPtr func_art_initialize_type_and_verify_access_from_code_PAL;
739func_art_initialize_type_and_verify_access_from_code->setAttributes(func_art_initialize_type_and_verify_access_from_code_PAL);
740
741Function* func_art_resolve_string_from_code = mod->getFunction("art_resolve_string_from_code");
742if (!func_art_resolve_string_from_code) {
743func_art_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,
746 /*Name=*/"art_resolve_string_from_code", mod); // (external, no body)
747func_art_resolve_string_from_code->setCallingConv(CallingConv::C);
748}
749AttrListPtr func_art_resolve_string_from_code_PAL;
750func_art_resolve_string_from_code->setAttributes(func_art_resolve_string_from_code_PAL);
751
Logan Chien42e0e152012-01-13 15:42:36 +0800752Function* func_art_set32_static_from_code = mod->getFunction("art_set32_static_from_code");
753if (!func_art_set32_static_from_code) {
754func_art_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,
757 /*Name=*/"art_set32_static_from_code", mod); // (external, no body)
758func_art_set32_static_from_code->setCallingConv(CallingConv::C);
759}
760AttrListPtr func_art_set32_static_from_code_PAL;
761func_art_set32_static_from_code->setAttributes(func_art_set32_static_from_code_PAL);
762
763Function* func_art_set64_static_from_code = mod->getFunction("art_set64_static_from_code");
764if (!func_art_set64_static_from_code) {
765func_art_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,
768 /*Name=*/"art_set64_static_from_code", mod); // (external, no body)
769func_art_set64_static_from_code->setCallingConv(CallingConv::C);
770}
771AttrListPtr func_art_set64_static_from_code_PAL;
772func_art_set64_static_from_code->setAttributes(func_art_set64_static_from_code_PAL);
773
774Function* func_art_set_obj_static_from_code = mod->getFunction("art_set_obj_static_from_code");
775if (!func_art_set_obj_static_from_code) {
776func_art_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,
779 /*Name=*/"art_set_obj_static_from_code", mod); // (external, no body)
780func_art_set_obj_static_from_code->setCallingConv(CallingConv::C);
781}
782AttrListPtr func_art_set_obj_static_from_code_PAL;
783func_art_set_obj_static_from_code->setAttributes(func_art_set_obj_static_from_code_PAL);
784
785Function* func_art_get32_static_from_code = mod->getFunction("art_get32_static_from_code");
786if (!func_art_get32_static_from_code) {
787func_art_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,
790 /*Name=*/"art_get32_static_from_code", mod); // (external, no body)
791func_art_get32_static_from_code->setCallingConv(CallingConv::C);
792}
793AttrListPtr func_art_get32_static_from_code_PAL;
794func_art_get32_static_from_code->setAttributes(func_art_get32_static_from_code_PAL);
795
796Function* func_art_get64_static_from_code = mod->getFunction("art_get64_static_from_code");
797if (!func_art_get64_static_from_code) {
798func_art_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,
801 /*Name=*/"art_get64_static_from_code", mod); // (external, no body)
802func_art_get64_static_from_code->setCallingConv(CallingConv::C);
803}
804AttrListPtr func_art_get64_static_from_code_PAL;
805func_art_get64_static_from_code->setAttributes(func_art_get64_static_from_code_PAL);
806
807Function* func_art_get_obj_static_from_code = mod->getFunction("art_get_obj_static_from_code");
808if (!func_art_get_obj_static_from_code) {
809func_art_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,
812 /*Name=*/"art_get_obj_static_from_code", mod); // (external, no body)
813func_art_get_obj_static_from_code->setCallingConv(CallingConv::C);
814}
815AttrListPtr func_art_get_obj_static_from_code_PAL;
816func_art_get_obj_static_from_code->setAttributes(func_art_get_obj_static_from_code_PAL);
817
818Function* func_art_set32_instance_from_code = mod->getFunction("art_set32_instance_from_code");
819if (!func_art_set32_instance_from_code) {
820func_art_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,
823 /*Name=*/"art_set32_instance_from_code", mod); // (external, no body)
824func_art_set32_instance_from_code->setCallingConv(CallingConv::C);
825}
826AttrListPtr func_art_set32_instance_from_code_PAL;
827func_art_set32_instance_from_code->setAttributes(func_art_set32_instance_from_code_PAL);
828
829Function* func_art_set64_instance_from_code = mod->getFunction("art_set64_instance_from_code");
830if (!func_art_set64_instance_from_code) {
831func_art_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,
834 /*Name=*/"art_set64_instance_from_code", mod); // (external, no body)
835func_art_set64_instance_from_code->setCallingConv(CallingConv::C);
836}
837AttrListPtr func_art_set64_instance_from_code_PAL;
838func_art_set64_instance_from_code->setAttributes(func_art_set64_instance_from_code_PAL);
839
840Function* func_art_set_obj_instance_from_code = mod->getFunction("art_set_obj_instance_from_code");
841if (!func_art_set_obj_instance_from_code) {
842func_art_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,
845 /*Name=*/"art_set_obj_instance_from_code", mod); // (external, no body)
846func_art_set_obj_instance_from_code->setCallingConv(CallingConv::C);
847}
848AttrListPtr func_art_set_obj_instance_from_code_PAL;
849func_art_set_obj_instance_from_code->setAttributes(func_art_set_obj_instance_from_code_PAL);
850
851Function* func_art_get32_instance_from_code = mod->getFunction("art_get32_instance_from_code");
852if (!func_art_get32_instance_from_code) {
853func_art_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,
856 /*Name=*/"art_get32_instance_from_code", mod); // (external, no body)
857func_art_get32_instance_from_code->setCallingConv(CallingConv::C);
858}
859AttrListPtr func_art_get32_instance_from_code_PAL;
860func_art_get32_instance_from_code->setAttributes(func_art_get32_instance_from_code_PAL);
861
862Function* func_art_get64_instance_from_code = mod->getFunction("art_get64_instance_from_code");
863if (!func_art_get64_instance_from_code) {
864func_art_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,
867 /*Name=*/"art_get64_instance_from_code", mod); // (external, no body)
868func_art_get64_instance_from_code->setCallingConv(CallingConv::C);
869}
870AttrListPtr func_art_get64_instance_from_code_PAL;
871func_art_get64_instance_from_code->setAttributes(func_art_get64_instance_from_code_PAL);
872
873Function* func_art_get_obj_instance_from_code = mod->getFunction("art_get_obj_instance_from_code");
874if (!func_art_get_obj_instance_from_code) {
875func_art_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,
878 /*Name=*/"art_get_obj_instance_from_code", mod); // (external, no body)
879func_art_get_obj_instance_from_code->setCallingConv(CallingConv::C);
880}
881AttrListPtr func_art_get_obj_instance_from_code_PAL;
882func_art_get_obj_instance_from_code->setAttributes(func_art_get_obj_instance_from_code_PAL);
883
TDYa12728f1a142012-03-15 21:51:52 -0700884Function* func_art_decode_jobject_in_thread = mod->getFunction("art_decode_jobject_in_thread");
885if (!func_art_decode_jobject_in_thread) {
886func_art_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,
889 /*Name=*/"art_decode_jobject_in_thread", mod); // (external, no body)
890func_art_decode_jobject_in_thread->setCallingConv(CallingConv::C);
891}
892AttrListPtr func_art_decode_jobject_in_thread_PAL;
893func_art_decode_jobject_in_thread->setAttributes(func_art_decode_jobject_in_thread_PAL);
894
Logan Chien86f50672012-04-24 13:08:45 +0800895Function* func_art_fill_array_data_from_code = mod->getFunction("art_fill_array_data_from_code");
896if (!func_art_fill_array_data_from_code) {
897func_art_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,
900 /*Name=*/"art_fill_array_data_from_code", mod); // (external, no body)
901func_art_fill_array_data_from_code->setCallingConv(CallingConv::C);
902}
903AttrListPtr func_art_fill_array_data_from_code_PAL;
904func_art_fill_array_data_from_code->setAttributes(func_art_fill_array_data_from_code_PAL);
905
Logan Chien42e0e152012-01-13 15:42:36 +0800906Function* func_art_is_assignable_from_code = mod->getFunction("art_is_assignable_from_code");
907if (!func_art_is_assignable_from_code) {
908func_art_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,
911 /*Name=*/"art_is_assignable_from_code", mod); // (external, no body)
912func_art_is_assignable_from_code->setCallingConv(CallingConv::C);
913}
914AttrListPtr func_art_is_assignable_from_code_PAL;
915func_art_is_assignable_from_code->setAttributes(func_art_is_assignable_from_code_PAL);
916
917Function* func_art_check_cast_from_code = mod->getFunction("art_check_cast_from_code");
918if (!func_art_check_cast_from_code) {
919func_art_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,
922 /*Name=*/"art_check_cast_from_code", mod); // (external, no body)
923func_art_check_cast_from_code->setCallingConv(CallingConv::C);
924}
925AttrListPtr func_art_check_cast_from_code_PAL;
926func_art_check_cast_from_code->setAttributes(func_art_check_cast_from_code_PAL);
927
TDYa1271b86d072012-04-05 17:38:56 -0700928Function* func_art_check_put_array_element_from_code = mod->getFunction("art_check_put_array_element_from_code");
929if (!func_art_check_put_array_element_from_code) {
930func_art_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,
933 /*Name=*/"art_check_put_array_element_from_code", mod); // (external, no body)
934func_art_check_put_array_element_from_code->setCallingConv(CallingConv::C);
935}
936AttrListPtr func_art_check_put_array_element_from_code_PAL;
937func_art_check_put_array_element_from_code->setAttributes(func_art_check_put_array_element_from_code_PAL);
938
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
TDYa1273d71d802012-08-15 03:47:03 -0700983Function* func_art_jni_method_start = mod->getFunction("art_jni_method_start");
984if (!func_art_jni_method_start) {
985func_art_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,
988 /*Name=*/"art_jni_method_start", mod); // (external, no body)
989func_art_jni_method_start->setCallingConv(CallingConv::C);
990}
991AttrListPtr func_art_jni_method_start_PAL;
992func_art_jni_method_start->setAttributes(func_art_jni_method_start_PAL);
993
994Function* func_art_jni_method_start_synchronized = mod->getFunction("art_jni_method_start_synchronized");
995if (!func_art_jni_method_start_synchronized) {
996func_art_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,
999 /*Name=*/"art_jni_method_start_synchronized", mod); // (external, no body)
1000func_art_jni_method_start_synchronized->setCallingConv(CallingConv::C);
1001}
1002AttrListPtr func_art_jni_method_start_synchronized_PAL;
1003func_art_jni_method_start_synchronized->setAttributes(func_art_jni_method_start_synchronized_PAL);
1004
1005Function* func_art_jni_method_end = mod->getFunction("art_jni_method_end");
1006if (!func_art_jni_method_end) {
1007func_art_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,
1010 /*Name=*/"art_jni_method_end", mod); // (external, no body)
1011func_art_jni_method_end->setCallingConv(CallingConv::C);
1012}
1013AttrListPtr func_art_jni_method_end_PAL;
1014func_art_jni_method_end->setAttributes(func_art_jni_method_end_PAL);
1015
1016Function* func_art_jni_method_end_synchronized = mod->getFunction("art_jni_method_end_synchronized");
1017if (!func_art_jni_method_end_synchronized) {
1018func_art_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,
1021 /*Name=*/"art_jni_method_end_synchronized", mod); // (external, no body)
1022func_art_jni_method_end_synchronized->setCallingConv(CallingConv::C);
1023}
1024AttrListPtr func_art_jni_method_end_synchronized_PAL;
1025func_art_jni_method_end_synchronized->setAttributes(func_art_jni_method_end_synchronized_PAL);
1026
1027Function* func_art_jni_method_end_with_reference = mod->getFunction("art_jni_method_end_with_reference");
1028if (!func_art_jni_method_end_with_reference) {
1029func_art_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,
1032 /*Name=*/"art_jni_method_end_with_reference", mod); // (external, no body)
1033func_art_jni_method_end_with_reference->setCallingConv(CallingConv::C);
1034}
1035AttrListPtr func_art_jni_method_end_with_reference_PAL;
1036func_art_jni_method_end_with_reference->setAttributes(func_art_jni_method_end_with_reference_PAL);
1037
1038Function* func_art_jni_method_end_with_reference_synchronized = mod->getFunction("art_jni_method_end_with_reference_synchronized");
1039if (!func_art_jni_method_end_with_reference_synchronized) {
1040func_art_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,
1043 /*Name=*/"art_jni_method_end_with_reference_synchronized", mod); // (external, no body)
1044func_art_jni_method_end_with_reference_synchronized->setCallingConv(CallingConv::C);
1045}
1046AttrListPtr func_art_jni_method_end_with_reference_synchronized_PAL;
1047func_art_jni_method_end_with_reference_synchronized->setAttributes(func_art_jni_method_end_with_reference_synchronized_PAL);
1048
1049Function* func_art_is_exception_pending_from_code = mod->getFunction("art_is_exception_pending_from_code");
1050if (!func_art_is_exception_pending_from_code) {
1051func_art_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,
1054 /*Name=*/"art_is_exception_pending_from_code", mod); // (external, no body)
1055func_art_is_exception_pending_from_code->setCallingConv(CallingConv::C);
1056}
1057AttrListPtr func_art_is_exception_pending_from_code_PAL;
1058func_art_is_exception_pending_from_code->setAttributes(func_art_is_exception_pending_from_code_PAL);
1059
TDYa12783bb6622012-04-17 02:20:34 -07001060Function* func_art_mark_gc_card_from_code = mod->getFunction("art_mark_gc_card_from_code");
1061if (!func_art_mark_gc_card_from_code) {
1062func_art_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,
1065 /*Name=*/"art_mark_gc_card_from_code", mod); // (external, no body)
1066func_art_mark_gc_card_from_code->setCallingConv(CallingConv::C);
1067}
1068AttrListPtr func_art_mark_gc_card_from_code_PAL;
1069func_art_mark_gc_card_from_code->setAttributes(func_art_mark_gc_card_from_code_PAL);
1070
TDYa1275bb86012012-04-11 05:57:28 -07001071Function* func_art_proxy_invoke_handler_from_code = mod->getFunction("art_proxy_invoke_handler_from_code");
1072if (!func_art_proxy_invoke_handler_from_code) {
1073func_art_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,
1076 /*Name=*/"art_proxy_invoke_handler_from_code", mod); // (external, no body)
1077func_art_proxy_invoke_handler_from_code->setCallingConv(CallingConv::C);
1078}
1079AttrListPtr func_art_proxy_invoke_handler_from_code_PAL;
1080func_art_proxy_invoke_handler_from_code->setAttributes(func_art_proxy_invoke_handler_from_code_PAL);
1081
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
1095} // namespace compiler_llvm
1096} // namespace art