blob: 2111339c6562128b0fecbb7aae95269207c8b072 [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));
TDYa1270de52be2012-05-27 20:49:31 -0700133FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800134FunctionType* FuncTy_12 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700135 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800136 /*Params=*/FuncTy_12_args,
137 /*isVarArg=*/false);
138
139std::vector<Type*>FuncTy_13_args;
TDYa1270de52be2012-05-27 20:49:31 -0700140FuncTy_13_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800141FuncTy_13_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800142FunctionType* FuncTy_13 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700143 /*Result=*/IntegerType::get(mod->getContext(), 32),
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);
150FuncTy_14_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800151FunctionType* FuncTy_14 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700152 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800153 /*Params=*/FuncTy_14_args,
154 /*isVarArg=*/false);
155
156std::vector<Type*>FuncTy_15_args;
157FuncTy_15_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien9e5f5c12012-04-10 13:51:45 +0800158FuncTy_15_args.push_back(PointerTy_1);
TDYa1273d71d802012-08-15 03:47:03 -0700159FuncTy_15_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1270de52be2012-05-27 20:49:31 -0700160FuncTy_15_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800161FunctionType* FuncTy_15 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700162 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800163 /*Params=*/FuncTy_15_args,
164 /*isVarArg=*/false);
165
166std::vector<Type*>FuncTy_16_args;
Logan Chien1b0a1b72012-03-15 06:20:17 +0800167FuncTy_16_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa127da83d972012-04-18 00:21:49 -0700168FuncTy_16_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800169FunctionType* FuncTy_16 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700170 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800171 /*Params=*/FuncTy_16_args,
172 /*isVarArg=*/false);
173
174std::vector<Type*>FuncTy_17_args;
Logan Chien9e5f5c12012-04-10 13:51:45 +0800175FuncTy_17_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1270de52be2012-05-27 20:49:31 -0700176FuncTy_17_args.push_back(PointerTy_1);
TDYa1273d71d802012-08-15 03:47:03 -0700177FuncTy_17_args.push_back(PointerTy_1);
178FuncTy_17_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800179FunctionType* FuncTy_17 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700180 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800181 /*Params=*/FuncTy_17_args,
182 /*isVarArg=*/false);
183
184std::vector<Type*>FuncTy_18_args;
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(
TDYa1270de52be2012-05-27 20:49:31 -0700188 /*Result=*/PointerTy_1,
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);
TDYa1270de52be2012-05-27 20:49:31 -0700195FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 32));
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);
TDYa1273d71d802012-08-15 03:47:03 -0700204FuncTy_20_args.push_back(IntegerType::get(mod->getContext(), 64));
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);
TDYa1273d71d802012-08-15 03:47:03 -0700213FuncTy_21_args.push_back(PointerTy_1);
Logan Chien3f71e702012-02-17 18:45:27 +0800214FunctionType* FuncTy_21 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700215 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chiena6b2ca62012-03-06 15:50:54 +0800216 /*Params=*/FuncTy_21_args,
Logan Chien3f71e702012-02-17 18:45:27 +0800217 /*isVarArg=*/false);
218
Logan Chien3b2b2e72012-03-06 16:11:45 +0800219std::vector<Type*>FuncTy_22_args;
220FuncTy_22_args.push_back(IntegerType::get(mod->getContext(), 32));
221FuncTy_22_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800222FunctionType* FuncTy_22 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700223 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800224 /*Params=*/FuncTy_22_args,
225 /*isVarArg=*/false);
226
227std::vector<Type*>FuncTy_23_args;
228FuncTy_23_args.push_back(IntegerType::get(mod->getContext(), 32));
229FuncTy_23_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800230FunctionType* FuncTy_23 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700231 /*Result=*/IntegerType::get(mod->getContext(), 64),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800232 /*Params=*/FuncTy_23_args,
233 /*isVarArg=*/false);
234
235std::vector<Type*>FuncTy_24_args;
236FuncTy_24_args.push_back(IntegerType::get(mod->getContext(), 32));
237FuncTy_24_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800238FunctionType* FuncTy_24 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700239 /*Result=*/PointerTy_1,
Logan Chien3b2b2e72012-03-06 16:11:45 +0800240 /*Params=*/FuncTy_24_args,
241 /*isVarArg=*/false);
242
243std::vector<Type*>FuncTy_25_args;
Logan Chien9e5f5c12012-04-10 13:51:45 +0800244FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800245FuncTy_25_args.push_back(PointerTy_1);
TDYa1273d71d802012-08-15 03:47:03 -0700246FuncTy_25_args.push_back(PointerTy_1);
247FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800248FunctionType* FuncTy_25 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700249 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800250 /*Params=*/FuncTy_25_args,
251 /*isVarArg=*/false);
252
253std::vector<Type*>FuncTy_26_args;
TDYa127da83d972012-04-18 00:21:49 -0700254FuncTy_26_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800255FuncTy_26_args.push_back(PointerTy_1);
256FuncTy_26_args.push_back(PointerTy_1);
TDYa1273d71d802012-08-15 03:47:03 -0700257FuncTy_26_args.push_back(IntegerType::get(mod->getContext(), 64));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800258FunctionType* FuncTy_26 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700259 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800260 /*Params=*/FuncTy_26_args,
261 /*isVarArg=*/false);
262
TDYa12728f1a142012-03-15 21:51:52 -0700263std::vector<Type*>FuncTy_27_args;
TDYa127706e9b62012-04-19 12:24:26 -0700264FuncTy_27_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa12728f1a142012-03-15 21:51:52 -0700265FuncTy_27_args.push_back(PointerTy_1);
266FuncTy_27_args.push_back(PointerTy_1);
TDYa1273d71d802012-08-15 03:47:03 -0700267FuncTy_27_args.push_back(PointerTy_1);
TDYa12728f1a142012-03-15 21:51:52 -0700268FunctionType* FuncTy_27 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700269 /*Result=*/IntegerType::get(mod->getContext(), 32),
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;
TDYa1270de52be2012-05-27 20:49:31 -0700274FuncTy_28_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa12785321912012-04-01 15:24:56 -0700275FuncTy_28_args.push_back(PointerTy_1);
276FuncTy_28_args.push_back(PointerTy_1);
TDYa12785321912012-04-01 15:24:56 -0700277FunctionType* FuncTy_28 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700278 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa12785321912012-04-01 15:24:56 -0700279 /*Params=*/FuncTy_28_args,
280 /*isVarArg=*/false);
281
TDYa1270b686e52012-04-09 22:43:35 -0700282std::vector<Type*>FuncTy_29_args;
TDYa127da83d972012-04-18 00:21:49 -0700283FuncTy_29_args.push_back(PointerTy_1);
284FuncTy_29_args.push_back(PointerTy_1);
TDYa1270b686e52012-04-09 22:43:35 -0700285FunctionType* FuncTy_29 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700286 /*Result=*/PointerTy_1,
TDYa1270b686e52012-04-09 22:43:35 -0700287 /*Params=*/FuncTy_29_args,
288 /*isVarArg=*/false);
289
Logan Chien9e5f5c12012-04-10 13:51:45 +0800290std::vector<Type*>FuncTy_30_args;
Logan Chien86f50672012-04-24 13:08:45 +0800291FuncTy_30_args.push_back(PointerTy_1);
TDYa1273d71d802012-08-15 03:47:03 -0700292FuncTy_30_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien86f50672012-04-24 13:08:45 +0800293FuncTy_30_args.push_back(PointerTy_1);
TDYa1273d71d802012-08-15 03:47:03 -0700294FuncTy_30_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien9e5f5c12012-04-10 13:51:45 +0800295FunctionType* FuncTy_30 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700296 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien9e5f5c12012-04-10 13:51:45 +0800297 /*Params=*/FuncTy_30_args,
298 /*isVarArg=*/false);
299
TDYa1275bb86012012-04-11 05:57:28 -0700300std::vector<Type*>FuncTy_31_args;
TDYa1270de52be2012-05-27 20:49:31 -0700301FuncTy_31_args.push_back(PointerTy_1);
302FuncTy_31_args.push_back(PointerTy_1);
TDYa1275bb86012012-04-11 05:57:28 -0700303FunctionType* FuncTy_31 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700304 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa1275bb86012012-04-11 05:57:28 -0700305 /*Params=*/FuncTy_31_args,
TDYa127a4746872012-04-11 23:48:55 -0700306 /*isVarArg=*/false);
307
308std::vector<Type*>FuncTy_32_args;
TDYa1273d71d802012-08-15 03:47:03 -0700309FuncTy_32_args.push_back(Type::getDoubleTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700310FunctionType* FuncTy_32 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700311 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa127a4746872012-04-11 23:48:55 -0700312 /*Params=*/FuncTy_32_args,
313 /*isVarArg=*/false);
314
315std::vector<Type*>FuncTy_33_args;
TDYa1270de52be2012-05-27 20:49:31 -0700316FuncTy_33_args.push_back(Type::getDoubleTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700317FunctionType* FuncTy_33 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700318 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa127a4746872012-04-11 23:48:55 -0700319 /*Params=*/FuncTy_33_args,
320 /*isVarArg=*/false);
321
322std::vector<Type*>FuncTy_34_args;
TDYa1273d71d802012-08-15 03:47:03 -0700323FuncTy_34_args.push_back(Type::getFloatTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700324FunctionType* FuncTy_34 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700325 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa127a4746872012-04-11 23:48:55 -0700326 /*Params=*/FuncTy_34_args,
327 /*isVarArg=*/false);
328
329std::vector<Type*>FuncTy_35_args;
TDYa1270de52be2012-05-27 20:49:31 -0700330FuncTy_35_args.push_back(Type::getFloatTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700331FunctionType* FuncTy_35 = FunctionType::get(
TDYa1273d71d802012-08-15 03:47:03 -0700332 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa12705fe3b62012-04-21 00:28:54 -0700333 /*Params=*/FuncTy_35_args,
Logan Chien86f50672012-04-24 13:08:45 +0800334 /*isVarArg=*/false);
335
336std::vector<Type*>FuncTy_36_args;
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(
TDYa127c1478262012-06-20 20:22:27 -0700339 /*Result=*/IntegerType::get(mod->getContext(), 32),
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;
TDYa1273d71d802012-08-15 03:47:03 -0700344FuncTy_37_args.push_back(IntegerType::get(mod->getContext(), 32));
345FuncTy_37_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700346FuncTy_37_args.push_back(PointerTy_1);
347FunctionType* FuncTy_37 = FunctionType::get(
348 /*Result=*/Type::getVoidTy(mod->getContext()),
349 /*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);
356FunctionType* FuncTy_38 = FunctionType::get(
357 /*Result=*/PointerTy_1,
358 /*Params=*/FuncTy_38_args,
359 /*isVarArg=*/false);
360
361std::vector<Type*>FuncTy_39_args;
362FuncTy_39_args.push_back(PointerTy_1);
363FuncTy_39_args.push_back(IntegerType::get(mod->getContext(), 32));
364FuncTy_39_args.push_back(PointerTy_1);
365FuncTy_39_args.push_back(PointerTy_1);
366FunctionType* FuncTy_39 = FunctionType::get(
367 /*Result=*/PointerTy_1,
368 /*Params=*/FuncTy_39_args,
369 /*isVarArg=*/false);
370
371std::vector<Type*>FuncTy_40_args;
372FunctionType* FuncTy_40 = FunctionType::get(
373 /*Result=*/IntegerType::get(mod->getContext(), 1),
374 /*Params=*/FuncTy_40_args,
375 /*isVarArg=*/false);
376
377std::vector<Type*>FuncTy_41_args;
378FuncTy_41_args.push_back(PointerTy_1);
379FunctionType* FuncTy_41 = FunctionType::get(
380 /*Result=*/Type::getVoidTy(mod->getContext()),
381 /*Params=*/FuncTy_41_args,
TDYa1275bb86012012-04-11 05:57:28 -0700382 /*isVarArg=*/true);
383
Logan Chien42e0e152012-01-13 15:42:36 +0800384
385// Function Declarations
386
387Function* func___art_type_list = mod->getFunction("__art_type_list");
388if (!func___art_type_list) {
389func___art_type_list = Function::Create(
390 /*Type=*/FuncTy_0,
391 /*Linkage=*/GlobalValue::ExternalLinkage,
392 /*Name=*/"__art_type_list", mod); // (external, no body)
393func___art_type_list->setCallingConv(CallingConv::C);
394}
395AttrListPtr func___art_type_list_PAL;
396func___art_type_list->setAttributes(func___art_type_list_PAL);
397
398Function* func_art_get_current_thread_from_code = mod->getFunction("art_get_current_thread_from_code");
399if (!func_art_get_current_thread_from_code) {
400func_art_get_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800401 /*Type=*/FuncTy_3,
Logan Chien42e0e152012-01-13 15:42:36 +0800402 /*Linkage=*/GlobalValue::ExternalLinkage,
403 /*Name=*/"art_get_current_thread_from_code", mod); // (external, no body)
404func_art_get_current_thread_from_code->setCallingConv(CallingConv::C);
405}
406AttrListPtr func_art_get_current_thread_from_code_PAL;
407func_art_get_current_thread_from_code->setAttributes(func_art_get_current_thread_from_code_PAL);
408
409Function* func_art_set_current_thread_from_code = mod->getFunction("art_set_current_thread_from_code");
410if (!func_art_set_current_thread_from_code) {
411func_art_set_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800412 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800413 /*Linkage=*/GlobalValue::ExternalLinkage,
414 /*Name=*/"art_set_current_thread_from_code", mod); // (external, no body)
415func_art_set_current_thread_from_code->setCallingConv(CallingConv::C);
416}
417AttrListPtr func_art_set_current_thread_from_code_PAL;
418func_art_set_current_thread_from_code->setAttributes(func_art_set_current_thread_from_code_PAL);
419
420Function* func_art_lock_object_from_code = mod->getFunction("art_lock_object_from_code");
421if (!func_art_lock_object_from_code) {
422func_art_lock_object_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700423 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800424 /*Linkage=*/GlobalValue::ExternalLinkage,
425 /*Name=*/"art_lock_object_from_code", mod); // (external, no body)
426func_art_lock_object_from_code->setCallingConv(CallingConv::C);
427}
428AttrListPtr func_art_lock_object_from_code_PAL;
429func_art_lock_object_from_code->setAttributes(func_art_lock_object_from_code_PAL);
430
431Function* func_art_unlock_object_from_code = mod->getFunction("art_unlock_object_from_code");
432if (!func_art_unlock_object_from_code) {
433func_art_unlock_object_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700434 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800435 /*Linkage=*/GlobalValue::ExternalLinkage,
436 /*Name=*/"art_unlock_object_from_code", mod); // (external, no body)
437func_art_unlock_object_from_code->setCallingConv(CallingConv::C);
438}
439AttrListPtr func_art_unlock_object_from_code_PAL;
440func_art_unlock_object_from_code->setAttributes(func_art_unlock_object_from_code_PAL);
441
442Function* func_art_test_suspend_from_code = mod->getFunction("art_test_suspend_from_code");
443if (!func_art_test_suspend_from_code) {
444func_art_test_suspend_from_code = Function::Create(
TDYa127c1478262012-06-20 20:22:27 -0700445 /*Type=*/FuncTy_6,
Logan Chien42e0e152012-01-13 15:42:36 +0800446 /*Linkage=*/GlobalValue::ExternalLinkage,
447 /*Name=*/"art_test_suspend_from_code", mod); // (external, no body)
448func_art_test_suspend_from_code->setCallingConv(CallingConv::C);
449}
450AttrListPtr func_art_test_suspend_from_code_PAL;
451func_art_test_suspend_from_code->setAttributes(func_art_test_suspend_from_code_PAL);
452
Logan Chien3f71e702012-02-17 18:45:27 +0800453Function* func_art_push_shadow_frame_from_code = mod->getFunction("art_push_shadow_frame_from_code");
454if (!func_art_push_shadow_frame_from_code) {
455func_art_push_shadow_frame_from_code = Function::Create(
TDYa127c1478262012-06-20 20:22:27 -0700456 /*Type=*/FuncTy_7,
Logan Chien3f71e702012-02-17 18:45:27 +0800457 /*Linkage=*/GlobalValue::ExternalLinkage,
458 /*Name=*/"art_push_shadow_frame_from_code", mod); // (external, no body)
459func_art_push_shadow_frame_from_code->setCallingConv(CallingConv::C);
460}
461AttrListPtr func_art_push_shadow_frame_from_code_PAL;
462func_art_push_shadow_frame_from_code->setAttributes(func_art_push_shadow_frame_from_code_PAL);
463
464Function* func_art_pop_shadow_frame_from_code = mod->getFunction("art_pop_shadow_frame_from_code");
465if (!func_art_pop_shadow_frame_from_code) {
466func_art_pop_shadow_frame_from_code = Function::Create(
TDYa127c1478262012-06-20 20:22:27 -0700467 /*Type=*/FuncTy_8,
Logan Chien3f71e702012-02-17 18:45:27 +0800468 /*Linkage=*/GlobalValue::ExternalLinkage,
469 /*Name=*/"art_pop_shadow_frame_from_code", mod); // (external, no body)
470func_art_pop_shadow_frame_from_code->setCallingConv(CallingConv::C);
471}
472AttrListPtr func_art_pop_shadow_frame_from_code_PAL;
473func_art_pop_shadow_frame_from_code->setAttributes(func_art_pop_shadow_frame_from_code_PAL);
474
Logan Chien42e0e152012-01-13 15:42:36 +0800475Function* func_art_throw_div_zero_from_code = mod->getFunction("art_throw_div_zero_from_code");
476if (!func_art_throw_div_zero_from_code) {
477func_art_throw_div_zero_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700478 /*Type=*/FuncTy_9,
Logan Chien42e0e152012-01-13 15:42:36 +0800479 /*Linkage=*/GlobalValue::ExternalLinkage,
480 /*Name=*/"art_throw_div_zero_from_code", mod); // (external, no body)
481func_art_throw_div_zero_from_code->setCallingConv(CallingConv::C);
482}
483AttrListPtr func_art_throw_div_zero_from_code_PAL;
484func_art_throw_div_zero_from_code->setAttributes(func_art_throw_div_zero_from_code_PAL);
485
486Function* func_art_throw_array_bounds_from_code = mod->getFunction("art_throw_array_bounds_from_code");
487if (!func_art_throw_array_bounds_from_code) {
488func_art_throw_array_bounds_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700489 /*Type=*/FuncTy_10,
Logan Chien42e0e152012-01-13 15:42:36 +0800490 /*Linkage=*/GlobalValue::ExternalLinkage,
491 /*Name=*/"art_throw_array_bounds_from_code", mod); // (external, no body)
492func_art_throw_array_bounds_from_code->setCallingConv(CallingConv::C);
493}
494AttrListPtr func_art_throw_array_bounds_from_code_PAL;
495func_art_throw_array_bounds_from_code->setAttributes(func_art_throw_array_bounds_from_code_PAL);
496
497Function* func_art_throw_no_such_method_from_code = mod->getFunction("art_throw_no_such_method_from_code");
498if (!func_art_throw_no_such_method_from_code) {
499func_art_throw_no_such_method_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700500 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800501 /*Linkage=*/GlobalValue::ExternalLinkage,
502 /*Name=*/"art_throw_no_such_method_from_code", mod); // (external, no body)
503func_art_throw_no_such_method_from_code->setCallingConv(CallingConv::C);
504}
505AttrListPtr func_art_throw_no_such_method_from_code_PAL;
506func_art_throw_no_such_method_from_code->setAttributes(func_art_throw_no_such_method_from_code_PAL);
507
508Function* func_art_throw_null_pointer_exception_from_code = mod->getFunction("art_throw_null_pointer_exception_from_code");
509if (!func_art_throw_null_pointer_exception_from_code) {
510func_art_throw_null_pointer_exception_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700511 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800512 /*Linkage=*/GlobalValue::ExternalLinkage,
513 /*Name=*/"art_throw_null_pointer_exception_from_code", mod); // (external, no body)
514func_art_throw_null_pointer_exception_from_code->setCallingConv(CallingConv::C);
515}
516AttrListPtr func_art_throw_null_pointer_exception_from_code_PAL;
517func_art_throw_null_pointer_exception_from_code->setAttributes(func_art_throw_null_pointer_exception_from_code_PAL);
518
519Function* func_art_throw_stack_overflow_from_code = mod->getFunction("art_throw_stack_overflow_from_code");
520if (!func_art_throw_stack_overflow_from_code) {
521func_art_throw_stack_overflow_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700522 /*Type=*/FuncTy_9,
Logan Chien42e0e152012-01-13 15:42:36 +0800523 /*Linkage=*/GlobalValue::ExternalLinkage,
524 /*Name=*/"art_throw_stack_overflow_from_code", mod); // (external, no body)
525func_art_throw_stack_overflow_from_code->setCallingConv(CallingConv::C);
526}
527AttrListPtr func_art_throw_stack_overflow_from_code_PAL;
528func_art_throw_stack_overflow_from_code->setAttributes(func_art_throw_stack_overflow_from_code_PAL);
529
530Function* func_art_throw_exception_from_code = mod->getFunction("art_throw_exception_from_code");
531if (!func_art_throw_exception_from_code) {
532func_art_throw_exception_from_code = Function::Create(
TDYa127c1478262012-06-20 20:22:27 -0700533 /*Type=*/FuncTy_6,
Logan Chien42e0e152012-01-13 15:42:36 +0800534 /*Linkage=*/GlobalValue::ExternalLinkage,
535 /*Name=*/"art_throw_exception_from_code", mod); // (external, no body)
536func_art_throw_exception_from_code->setCallingConv(CallingConv::C);
537}
538AttrListPtr func_art_throw_exception_from_code_PAL;
539func_art_throw_exception_from_code->setAttributes(func_art_throw_exception_from_code_PAL);
540
Logan Chien9e5f5c12012-04-10 13:51:45 +0800541Function* func_art_throw_verification_error_from_code = mod->getFunction("art_throw_verification_error_from_code");
542if (!func_art_throw_verification_error_from_code) {
543func_art_throw_verification_error_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700544 /*Type=*/FuncTy_12,
Logan Chien9e5f5c12012-04-10 13:51:45 +0800545 /*Linkage=*/GlobalValue::ExternalLinkage,
546 /*Name=*/"art_throw_verification_error_from_code", mod); // (external, no body)
547func_art_throw_verification_error_from_code->setCallingConv(CallingConv::C);
548}
549AttrListPtr func_art_throw_verification_error_from_code_PAL;
550func_art_throw_verification_error_from_code->setAttributes(func_art_throw_verification_error_from_code_PAL);
551
Logan Chien42e0e152012-01-13 15:42:36 +0800552Function* func_art_find_catch_block_from_code = mod->getFunction("art_find_catch_block_from_code");
553if (!func_art_find_catch_block_from_code) {
554func_art_find_catch_block_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700555 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800556 /*Linkage=*/GlobalValue::ExternalLinkage,
557 /*Name=*/"art_find_catch_block_from_code", mod); // (external, no body)
558func_art_find_catch_block_from_code->setCallingConv(CallingConv::C);
559}
560AttrListPtr func_art_find_catch_block_from_code_PAL;
561func_art_find_catch_block_from_code->setAttributes(func_art_find_catch_block_from_code_PAL);
562
563Function* func_art_alloc_object_from_code = mod->getFunction("art_alloc_object_from_code");
564if (!func_art_alloc_object_from_code) {
565func_art_alloc_object_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700566 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800567 /*Linkage=*/GlobalValue::ExternalLinkage,
568 /*Name=*/"art_alloc_object_from_code", mod); // (external, no body)
569func_art_alloc_object_from_code->setCallingConv(CallingConv::C);
570}
571AttrListPtr func_art_alloc_object_from_code_PAL;
572func_art_alloc_object_from_code->setAttributes(func_art_alloc_object_from_code_PAL);
573
574Function* func_art_alloc_object_from_code_with_access_check = mod->getFunction("art_alloc_object_from_code_with_access_check");
575if (!func_art_alloc_object_from_code_with_access_check) {
576func_art_alloc_object_from_code_with_access_check = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700577 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800578 /*Linkage=*/GlobalValue::ExternalLinkage,
579 /*Name=*/"art_alloc_object_from_code_with_access_check", mod); // (external, no body)
580func_art_alloc_object_from_code_with_access_check->setCallingConv(CallingConv::C);
581}
582AttrListPtr func_art_alloc_object_from_code_with_access_check_PAL;
583func_art_alloc_object_from_code_with_access_check->setAttributes(func_art_alloc_object_from_code_with_access_check_PAL);
584
585Function* func_art_alloc_array_from_code = mod->getFunction("art_alloc_array_from_code");
586if (!func_art_alloc_array_from_code) {
587func_art_alloc_array_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700588 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800589 /*Linkage=*/GlobalValue::ExternalLinkage,
590 /*Name=*/"art_alloc_array_from_code", mod); // (external, no body)
591func_art_alloc_array_from_code->setCallingConv(CallingConv::C);
592}
593AttrListPtr func_art_alloc_array_from_code_PAL;
594func_art_alloc_array_from_code->setAttributes(func_art_alloc_array_from_code_PAL);
595
596Function* func_art_alloc_array_from_code_with_access_check = mod->getFunction("art_alloc_array_from_code_with_access_check");
597if (!func_art_alloc_array_from_code_with_access_check) {
598func_art_alloc_array_from_code_with_access_check = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700599 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800600 /*Linkage=*/GlobalValue::ExternalLinkage,
601 /*Name=*/"art_alloc_array_from_code_with_access_check", mod); // (external, no body)
602func_art_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
603}
604AttrListPtr func_art_alloc_array_from_code_with_access_check_PAL;
605func_art_alloc_array_from_code_with_access_check->setAttributes(func_art_alloc_array_from_code_with_access_check_PAL);
606
607Function* func_art_check_and_alloc_array_from_code = mod->getFunction("art_check_and_alloc_array_from_code");
608if (!func_art_check_and_alloc_array_from_code) {
609func_art_check_and_alloc_array_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700610 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800611 /*Linkage=*/GlobalValue::ExternalLinkage,
612 /*Name=*/"art_check_and_alloc_array_from_code", mod); // (external, no body)
613func_art_check_and_alloc_array_from_code->setCallingConv(CallingConv::C);
614}
615AttrListPtr func_art_check_and_alloc_array_from_code_PAL;
616func_art_check_and_alloc_array_from_code->setAttributes(func_art_check_and_alloc_array_from_code_PAL);
617
618Function* func_art_check_and_alloc_array_from_code_with_access_check = mod->getFunction("art_check_and_alloc_array_from_code_with_access_check");
619if (!func_art_check_and_alloc_array_from_code_with_access_check) {
620func_art_check_and_alloc_array_from_code_with_access_check = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700621 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800622 /*Linkage=*/GlobalValue::ExternalLinkage,
623 /*Name=*/"art_check_and_alloc_array_from_code_with_access_check", mod); // (external, no body)
624func_art_check_and_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
625}
626AttrListPtr func_art_check_and_alloc_array_from_code_with_access_check_PAL;
627func_art_check_and_alloc_array_from_code_with_access_check->setAttributes(func_art_check_and_alloc_array_from_code_with_access_check_PAL);
628
Logan Chien42e0e152012-01-13 15:42:36 +0800629Function* func_art_find_instance_field_from_code = mod->getFunction("art_find_instance_field_from_code");
630if (!func_art_find_instance_field_from_code) {
631func_art_find_instance_field_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700632 /*Type=*/FuncTy_16,
Logan Chien42e0e152012-01-13 15:42:36 +0800633 /*Linkage=*/GlobalValue::ExternalLinkage,
634 /*Name=*/"art_find_instance_field_from_code", mod); // (external, no body)
635func_art_find_instance_field_from_code->setCallingConv(CallingConv::C);
636}
637AttrListPtr func_art_find_instance_field_from_code_PAL;
638func_art_find_instance_field_from_code->setAttributes(func_art_find_instance_field_from_code_PAL);
639
640Function* func_art_find_static_field_from_code = mod->getFunction("art_find_static_field_from_code");
641if (!func_art_find_static_field_from_code) {
642func_art_find_static_field_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700643 /*Type=*/FuncTy_16,
Logan Chien42e0e152012-01-13 15:42:36 +0800644 /*Linkage=*/GlobalValue::ExternalLinkage,
645 /*Name=*/"art_find_static_field_from_code", mod); // (external, no body)
646func_art_find_static_field_from_code->setCallingConv(CallingConv::C);
647}
648AttrListPtr func_art_find_static_field_from_code_PAL;
649func_art_find_static_field_from_code->setAttributes(func_art_find_static_field_from_code_PAL);
650
Logan Chien7e7fabc2012-04-10 18:59:11 +0800651Function* func_art_find_static_method_from_code_with_access_check = mod->getFunction("art_find_static_method_from_code_with_access_check");
652if (!func_art_find_static_method_from_code_with_access_check) {
653func_art_find_static_method_from_code_with_access_check = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700654 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800655 /*Linkage=*/GlobalValue::ExternalLinkage,
656 /*Name=*/"art_find_static_method_from_code_with_access_check", mod); // (external, no body)
657func_art_find_static_method_from_code_with_access_check->setCallingConv(CallingConv::C);
658}
659AttrListPtr func_art_find_static_method_from_code_with_access_check_PAL;
660func_art_find_static_method_from_code_with_access_check->setAttributes(func_art_find_static_method_from_code_with_access_check_PAL);
661
662Function* func_art_find_direct_method_from_code_with_access_check = mod->getFunction("art_find_direct_method_from_code_with_access_check");
663if (!func_art_find_direct_method_from_code_with_access_check) {
664func_art_find_direct_method_from_code_with_access_check = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700665 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800666 /*Linkage=*/GlobalValue::ExternalLinkage,
667 /*Name=*/"art_find_direct_method_from_code_with_access_check", mod); // (external, no body)
668func_art_find_direct_method_from_code_with_access_check->setCallingConv(CallingConv::C);
669}
670AttrListPtr func_art_find_direct_method_from_code_with_access_check_PAL;
671func_art_find_direct_method_from_code_with_access_check->setAttributes(func_art_find_direct_method_from_code_with_access_check_PAL);
672
673Function* func_art_find_virtual_method_from_code_with_access_check = mod->getFunction("art_find_virtual_method_from_code_with_access_check");
674if (!func_art_find_virtual_method_from_code_with_access_check) {
675func_art_find_virtual_method_from_code_with_access_check = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700676 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800677 /*Linkage=*/GlobalValue::ExternalLinkage,
678 /*Name=*/"art_find_virtual_method_from_code_with_access_check", mod); // (external, no body)
679func_art_find_virtual_method_from_code_with_access_check->setCallingConv(CallingConv::C);
680}
681AttrListPtr func_art_find_virtual_method_from_code_with_access_check_PAL;
682func_art_find_virtual_method_from_code_with_access_check->setAttributes(func_art_find_virtual_method_from_code_with_access_check_PAL);
683
684Function* func_art_find_super_method_from_code_with_access_check = mod->getFunction("art_find_super_method_from_code_with_access_check");
685if (!func_art_find_super_method_from_code_with_access_check) {
686func_art_find_super_method_from_code_with_access_check = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700687 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800688 /*Linkage=*/GlobalValue::ExternalLinkage,
689 /*Name=*/"art_find_super_method_from_code_with_access_check", mod); // (external, no body)
690func_art_find_super_method_from_code_with_access_check->setCallingConv(CallingConv::C);
691}
692AttrListPtr func_art_find_super_method_from_code_with_access_check_PAL;
693func_art_find_super_method_from_code_with_access_check->setAttributes(func_art_find_super_method_from_code_with_access_check_PAL);
694
695Function* func_art_find_interface_method_from_code_with_access_check = mod->getFunction("art_find_interface_method_from_code_with_access_check");
696if (!func_art_find_interface_method_from_code_with_access_check) {
697func_art_find_interface_method_from_code_with_access_check = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700698 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800699 /*Linkage=*/GlobalValue::ExternalLinkage,
700 /*Name=*/"art_find_interface_method_from_code_with_access_check", mod); // (external, no body)
701func_art_find_interface_method_from_code_with_access_check->setCallingConv(CallingConv::C);
702}
703AttrListPtr func_art_find_interface_method_from_code_with_access_check_PAL;
704func_art_find_interface_method_from_code_with_access_check->setAttributes(func_art_find_interface_method_from_code_with_access_check_PAL);
705
Logan Chien42e0e152012-01-13 15:42:36 +0800706Function* func_art_find_interface_method_from_code = mod->getFunction("art_find_interface_method_from_code");
707if (!func_art_find_interface_method_from_code) {
708func_art_find_interface_method_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700709 /*Type=*/FuncTy_17,
Logan Chien42e0e152012-01-13 15:42:36 +0800710 /*Linkage=*/GlobalValue::ExternalLinkage,
711 /*Name=*/"art_find_interface_method_from_code", mod); // (external, no body)
712func_art_find_interface_method_from_code->setCallingConv(CallingConv::C);
713}
714AttrListPtr func_art_find_interface_method_from_code_PAL;
715func_art_find_interface_method_from_code->setAttributes(func_art_find_interface_method_from_code_PAL);
716
717Function* func_art_initialize_static_storage_from_code = mod->getFunction("art_initialize_static_storage_from_code");
718if (!func_art_initialize_static_storage_from_code) {
719func_art_initialize_static_storage_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700720 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800721 /*Linkage=*/GlobalValue::ExternalLinkage,
722 /*Name=*/"art_initialize_static_storage_from_code", mod); // (external, no body)
723func_art_initialize_static_storage_from_code->setCallingConv(CallingConv::C);
724}
725AttrListPtr func_art_initialize_static_storage_from_code_PAL;
726func_art_initialize_static_storage_from_code->setAttributes(func_art_initialize_static_storage_from_code_PAL);
727
728Function* func_art_initialize_type_from_code = mod->getFunction("art_initialize_type_from_code");
729if (!func_art_initialize_type_from_code) {
730func_art_initialize_type_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700731 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800732 /*Linkage=*/GlobalValue::ExternalLinkage,
733 /*Name=*/"art_initialize_type_from_code", mod); // (external, no body)
734func_art_initialize_type_from_code->setCallingConv(CallingConv::C);
735}
736AttrListPtr func_art_initialize_type_from_code_PAL;
737func_art_initialize_type_from_code->setAttributes(func_art_initialize_type_from_code_PAL);
738
739Function* func_art_initialize_type_and_verify_access_from_code = mod->getFunction("art_initialize_type_and_verify_access_from_code");
740if (!func_art_initialize_type_and_verify_access_from_code) {
741func_art_initialize_type_and_verify_access_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700742 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800743 /*Linkage=*/GlobalValue::ExternalLinkage,
744 /*Name=*/"art_initialize_type_and_verify_access_from_code", mod); // (external, no body)
745func_art_initialize_type_and_verify_access_from_code->setCallingConv(CallingConv::C);
746}
747AttrListPtr func_art_initialize_type_and_verify_access_from_code_PAL;
748func_art_initialize_type_and_verify_access_from_code->setAttributes(func_art_initialize_type_and_verify_access_from_code_PAL);
749
750Function* func_art_resolve_string_from_code = mod->getFunction("art_resolve_string_from_code");
751if (!func_art_resolve_string_from_code) {
752func_art_resolve_string_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700753 /*Type=*/FuncTy_18,
Logan Chien42e0e152012-01-13 15:42:36 +0800754 /*Linkage=*/GlobalValue::ExternalLinkage,
755 /*Name=*/"art_resolve_string_from_code", mod); // (external, no body)
756func_art_resolve_string_from_code->setCallingConv(CallingConv::C);
757}
758AttrListPtr func_art_resolve_string_from_code_PAL;
759func_art_resolve_string_from_code->setAttributes(func_art_resolve_string_from_code_PAL);
760
Logan Chien42e0e152012-01-13 15:42:36 +0800761Function* func_art_set32_static_from_code = mod->getFunction("art_set32_static_from_code");
762if (!func_art_set32_static_from_code) {
763func_art_set32_static_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700764 /*Type=*/FuncTy_19,
Logan Chien42e0e152012-01-13 15:42:36 +0800765 /*Linkage=*/GlobalValue::ExternalLinkage,
766 /*Name=*/"art_set32_static_from_code", mod); // (external, no body)
767func_art_set32_static_from_code->setCallingConv(CallingConv::C);
768}
769AttrListPtr func_art_set32_static_from_code_PAL;
770func_art_set32_static_from_code->setAttributes(func_art_set32_static_from_code_PAL);
771
772Function* func_art_set64_static_from_code = mod->getFunction("art_set64_static_from_code");
773if (!func_art_set64_static_from_code) {
774func_art_set64_static_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700775 /*Type=*/FuncTy_20,
Logan Chien42e0e152012-01-13 15:42:36 +0800776 /*Linkage=*/GlobalValue::ExternalLinkage,
777 /*Name=*/"art_set64_static_from_code", mod); // (external, no body)
778func_art_set64_static_from_code->setCallingConv(CallingConv::C);
779}
780AttrListPtr func_art_set64_static_from_code_PAL;
781func_art_set64_static_from_code->setAttributes(func_art_set64_static_from_code_PAL);
782
783Function* func_art_set_obj_static_from_code = mod->getFunction("art_set_obj_static_from_code");
784if (!func_art_set_obj_static_from_code) {
785func_art_set_obj_static_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700786 /*Type=*/FuncTy_21,
Logan Chien42e0e152012-01-13 15:42:36 +0800787 /*Linkage=*/GlobalValue::ExternalLinkage,
788 /*Name=*/"art_set_obj_static_from_code", mod); // (external, no body)
789func_art_set_obj_static_from_code->setCallingConv(CallingConv::C);
790}
791AttrListPtr func_art_set_obj_static_from_code_PAL;
792func_art_set_obj_static_from_code->setAttributes(func_art_set_obj_static_from_code_PAL);
793
794Function* func_art_get32_static_from_code = mod->getFunction("art_get32_static_from_code");
795if (!func_art_get32_static_from_code) {
796func_art_get32_static_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700797 /*Type=*/FuncTy_22,
Logan Chien42e0e152012-01-13 15:42:36 +0800798 /*Linkage=*/GlobalValue::ExternalLinkage,
799 /*Name=*/"art_get32_static_from_code", mod); // (external, no body)
800func_art_get32_static_from_code->setCallingConv(CallingConv::C);
801}
802AttrListPtr func_art_get32_static_from_code_PAL;
803func_art_get32_static_from_code->setAttributes(func_art_get32_static_from_code_PAL);
804
805Function* func_art_get64_static_from_code = mod->getFunction("art_get64_static_from_code");
806if (!func_art_get64_static_from_code) {
807func_art_get64_static_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700808 /*Type=*/FuncTy_23,
Logan Chien42e0e152012-01-13 15:42:36 +0800809 /*Linkage=*/GlobalValue::ExternalLinkage,
810 /*Name=*/"art_get64_static_from_code", mod); // (external, no body)
811func_art_get64_static_from_code->setCallingConv(CallingConv::C);
812}
813AttrListPtr func_art_get64_static_from_code_PAL;
814func_art_get64_static_from_code->setAttributes(func_art_get64_static_from_code_PAL);
815
816Function* func_art_get_obj_static_from_code = mod->getFunction("art_get_obj_static_from_code");
817if (!func_art_get_obj_static_from_code) {
818func_art_get_obj_static_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700819 /*Type=*/FuncTy_24,
Logan Chien42e0e152012-01-13 15:42:36 +0800820 /*Linkage=*/GlobalValue::ExternalLinkage,
821 /*Name=*/"art_get_obj_static_from_code", mod); // (external, no body)
822func_art_get_obj_static_from_code->setCallingConv(CallingConv::C);
823}
824AttrListPtr func_art_get_obj_static_from_code_PAL;
825func_art_get_obj_static_from_code->setAttributes(func_art_get_obj_static_from_code_PAL);
826
827Function* func_art_set32_instance_from_code = mod->getFunction("art_set32_instance_from_code");
828if (!func_art_set32_instance_from_code) {
829func_art_set32_instance_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700830 /*Type=*/FuncTy_25,
Logan Chien42e0e152012-01-13 15:42:36 +0800831 /*Linkage=*/GlobalValue::ExternalLinkage,
832 /*Name=*/"art_set32_instance_from_code", mod); // (external, no body)
833func_art_set32_instance_from_code->setCallingConv(CallingConv::C);
834}
835AttrListPtr func_art_set32_instance_from_code_PAL;
836func_art_set32_instance_from_code->setAttributes(func_art_set32_instance_from_code_PAL);
837
838Function* func_art_set64_instance_from_code = mod->getFunction("art_set64_instance_from_code");
839if (!func_art_set64_instance_from_code) {
840func_art_set64_instance_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700841 /*Type=*/FuncTy_26,
Logan Chien42e0e152012-01-13 15:42:36 +0800842 /*Linkage=*/GlobalValue::ExternalLinkage,
843 /*Name=*/"art_set64_instance_from_code", mod); // (external, no body)
844func_art_set64_instance_from_code->setCallingConv(CallingConv::C);
845}
846AttrListPtr func_art_set64_instance_from_code_PAL;
847func_art_set64_instance_from_code->setAttributes(func_art_set64_instance_from_code_PAL);
848
849Function* func_art_set_obj_instance_from_code = mod->getFunction("art_set_obj_instance_from_code");
850if (!func_art_set_obj_instance_from_code) {
851func_art_set_obj_instance_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700852 /*Type=*/FuncTy_27,
Logan Chien42e0e152012-01-13 15:42:36 +0800853 /*Linkage=*/GlobalValue::ExternalLinkage,
854 /*Name=*/"art_set_obj_instance_from_code", mod); // (external, no body)
855func_art_set_obj_instance_from_code->setCallingConv(CallingConv::C);
856}
857AttrListPtr func_art_set_obj_instance_from_code_PAL;
858func_art_set_obj_instance_from_code->setAttributes(func_art_set_obj_instance_from_code_PAL);
859
860Function* func_art_get32_instance_from_code = mod->getFunction("art_get32_instance_from_code");
861if (!func_art_get32_instance_from_code) {
862func_art_get32_instance_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700863 /*Type=*/FuncTy_21,
Logan Chien42e0e152012-01-13 15:42:36 +0800864 /*Linkage=*/GlobalValue::ExternalLinkage,
865 /*Name=*/"art_get32_instance_from_code", mod); // (external, no body)
866func_art_get32_instance_from_code->setCallingConv(CallingConv::C);
867}
868AttrListPtr func_art_get32_instance_from_code_PAL;
869func_art_get32_instance_from_code->setAttributes(func_art_get32_instance_from_code_PAL);
870
871Function* func_art_get64_instance_from_code = mod->getFunction("art_get64_instance_from_code");
872if (!func_art_get64_instance_from_code) {
873func_art_get64_instance_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700874 /*Type=*/FuncTy_28,
Logan Chien42e0e152012-01-13 15:42:36 +0800875 /*Linkage=*/GlobalValue::ExternalLinkage,
876 /*Name=*/"art_get64_instance_from_code", mod); // (external, no body)
877func_art_get64_instance_from_code->setCallingConv(CallingConv::C);
878}
879AttrListPtr func_art_get64_instance_from_code_PAL;
880func_art_get64_instance_from_code->setAttributes(func_art_get64_instance_from_code_PAL);
881
882Function* func_art_get_obj_instance_from_code = mod->getFunction("art_get_obj_instance_from_code");
883if (!func_art_get_obj_instance_from_code) {
884func_art_get_obj_instance_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700885 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800886 /*Linkage=*/GlobalValue::ExternalLinkage,
887 /*Name=*/"art_get_obj_instance_from_code", mod); // (external, no body)
888func_art_get_obj_instance_from_code->setCallingConv(CallingConv::C);
889}
890AttrListPtr func_art_get_obj_instance_from_code_PAL;
891func_art_get_obj_instance_from_code->setAttributes(func_art_get_obj_instance_from_code_PAL);
892
TDYa12728f1a142012-03-15 21:51:52 -0700893Function* func_art_decode_jobject_in_thread = mod->getFunction("art_decode_jobject_in_thread");
894if (!func_art_decode_jobject_in_thread) {
895func_art_decode_jobject_in_thread = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700896 /*Type=*/FuncTy_29,
TDYa12728f1a142012-03-15 21:51:52 -0700897 /*Linkage=*/GlobalValue::ExternalLinkage,
898 /*Name=*/"art_decode_jobject_in_thread", mod); // (external, no body)
899func_art_decode_jobject_in_thread->setCallingConv(CallingConv::C);
900}
901AttrListPtr func_art_decode_jobject_in_thread_PAL;
902func_art_decode_jobject_in_thread->setAttributes(func_art_decode_jobject_in_thread_PAL);
903
Logan Chien86f50672012-04-24 13:08:45 +0800904Function* func_art_fill_array_data_from_code = mod->getFunction("art_fill_array_data_from_code");
905if (!func_art_fill_array_data_from_code) {
906func_art_fill_array_data_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700907 /*Type=*/FuncTy_30,
Logan Chien86f50672012-04-24 13:08:45 +0800908 /*Linkage=*/GlobalValue::ExternalLinkage,
909 /*Name=*/"art_fill_array_data_from_code", mod); // (external, no body)
910func_art_fill_array_data_from_code->setCallingConv(CallingConv::C);
911}
912AttrListPtr func_art_fill_array_data_from_code_PAL;
913func_art_fill_array_data_from_code->setAttributes(func_art_fill_array_data_from_code_PAL);
914
Logan Chien42e0e152012-01-13 15:42:36 +0800915Function* func_art_is_assignable_from_code = mod->getFunction("art_is_assignable_from_code");
916if (!func_art_is_assignable_from_code) {
917func_art_is_assignable_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700918 /*Type=*/FuncTy_31,
Logan Chien42e0e152012-01-13 15:42:36 +0800919 /*Linkage=*/GlobalValue::ExternalLinkage,
920 /*Name=*/"art_is_assignable_from_code", mod); // (external, no body)
921func_art_is_assignable_from_code->setCallingConv(CallingConv::C);
922}
923AttrListPtr func_art_is_assignable_from_code_PAL;
924func_art_is_assignable_from_code->setAttributes(func_art_is_assignable_from_code_PAL);
925
926Function* func_art_check_cast_from_code = mod->getFunction("art_check_cast_from_code");
927if (!func_art_check_cast_from_code) {
928func_art_check_cast_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700929 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800930 /*Linkage=*/GlobalValue::ExternalLinkage,
931 /*Name=*/"art_check_cast_from_code", mod); // (external, no body)
932func_art_check_cast_from_code->setCallingConv(CallingConv::C);
933}
934AttrListPtr func_art_check_cast_from_code_PAL;
935func_art_check_cast_from_code->setAttributes(func_art_check_cast_from_code_PAL);
936
TDYa1271b86d072012-04-05 17:38:56 -0700937Function* func_art_check_put_array_element_from_code = mod->getFunction("art_check_put_array_element_from_code");
938if (!func_art_check_put_array_element_from_code) {
939func_art_check_put_array_element_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700940 /*Type=*/FuncTy_5,
TDYa1271b86d072012-04-05 17:38:56 -0700941 /*Linkage=*/GlobalValue::ExternalLinkage,
942 /*Name=*/"art_check_put_array_element_from_code", mod); // (external, no body)
943func_art_check_put_array_element_from_code->setCallingConv(CallingConv::C);
944}
945AttrListPtr func_art_check_put_array_element_from_code_PAL;
946func_art_check_put_array_element_from_code->setAttributes(func_art_check_put_array_element_from_code_PAL);
947
jeffhao41005dd2012-05-09 17:58:52 -0700948Function* func_art_d2l = mod->getFunction("art_d2l");
949if (!func_art_d2l) {
950func_art_d2l = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700951 /*Type=*/FuncTy_32,
TDYa127a4746872012-04-11 23:48:55 -0700952 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700953 /*Name=*/"art_d2l", mod); // (external, no body)
954func_art_d2l->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700955}
jeffhao41005dd2012-05-09 17:58:52 -0700956AttrListPtr func_art_d2l_PAL;
957func_art_d2l->setAttributes(func_art_d2l_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700958
jeffhao41005dd2012-05-09 17:58:52 -0700959Function* func_art_d2i = mod->getFunction("art_d2i");
960if (!func_art_d2i) {
961func_art_d2i = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700962 /*Type=*/FuncTy_33,
TDYa127a4746872012-04-11 23:48:55 -0700963 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700964 /*Name=*/"art_d2i", mod); // (external, no body)
965func_art_d2i->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700966}
jeffhao41005dd2012-05-09 17:58:52 -0700967AttrListPtr func_art_d2i_PAL;
968func_art_d2i->setAttributes(func_art_d2i_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700969
jeffhao41005dd2012-05-09 17:58:52 -0700970Function* func_art_f2l = mod->getFunction("art_f2l");
971if (!func_art_f2l) {
972func_art_f2l = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700973 /*Type=*/FuncTy_34,
TDYa127a4746872012-04-11 23:48:55 -0700974 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700975 /*Name=*/"art_f2l", mod); // (external, no body)
976func_art_f2l->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700977}
jeffhao41005dd2012-05-09 17:58:52 -0700978AttrListPtr func_art_f2l_PAL;
979func_art_f2l->setAttributes(func_art_f2l_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700980
jeffhao41005dd2012-05-09 17:58:52 -0700981Function* func_art_f2i = mod->getFunction("art_f2i");
982if (!func_art_f2i) {
983func_art_f2i = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -0700984 /*Type=*/FuncTy_35,
TDYa127a4746872012-04-11 23:48:55 -0700985 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700986 /*Name=*/"art_f2i", mod); // (external, no body)
987func_art_f2i->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700988}
jeffhao41005dd2012-05-09 17:58:52 -0700989AttrListPtr func_art_f2i_PAL;
990func_art_f2i->setAttributes(func_art_f2i_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700991
TDYa1273d71d802012-08-15 03:47:03 -0700992Function* func_art_jni_method_start = mod->getFunction("art_jni_method_start");
993if (!func_art_jni_method_start) {
994func_art_jni_method_start = Function::Create(
995 /*Type=*/FuncTy_36,
996 /*Linkage=*/GlobalValue::ExternalLinkage,
997 /*Name=*/"art_jni_method_start", mod); // (external, no body)
998func_art_jni_method_start->setCallingConv(CallingConv::C);
999}
1000AttrListPtr func_art_jni_method_start_PAL;
1001func_art_jni_method_start->setAttributes(func_art_jni_method_start_PAL);
1002
1003Function* func_art_jni_method_start_synchronized = mod->getFunction("art_jni_method_start_synchronized");
1004if (!func_art_jni_method_start_synchronized) {
1005func_art_jni_method_start_synchronized = Function::Create(
1006 /*Type=*/FuncTy_31,
1007 /*Linkage=*/GlobalValue::ExternalLinkage,
1008 /*Name=*/"art_jni_method_start_synchronized", mod); // (external, no body)
1009func_art_jni_method_start_synchronized->setCallingConv(CallingConv::C);
1010}
1011AttrListPtr func_art_jni_method_start_synchronized_PAL;
1012func_art_jni_method_start_synchronized->setAttributes(func_art_jni_method_start_synchronized_PAL);
1013
1014Function* func_art_jni_method_end = mod->getFunction("art_jni_method_end");
1015if (!func_art_jni_method_end) {
1016func_art_jni_method_end = Function::Create(
1017 /*Type=*/FuncTy_16,
1018 /*Linkage=*/GlobalValue::ExternalLinkage,
1019 /*Name=*/"art_jni_method_end", mod); // (external, no body)
1020func_art_jni_method_end->setCallingConv(CallingConv::C);
1021}
1022AttrListPtr func_art_jni_method_end_PAL;
1023func_art_jni_method_end->setAttributes(func_art_jni_method_end_PAL);
1024
1025Function* func_art_jni_method_end_synchronized = mod->getFunction("art_jni_method_end_synchronized");
1026if (!func_art_jni_method_end_synchronized) {
1027func_art_jni_method_end_synchronized = Function::Create(
1028 /*Type=*/FuncTy_37,
1029 /*Linkage=*/GlobalValue::ExternalLinkage,
1030 /*Name=*/"art_jni_method_end_synchronized", mod); // (external, no body)
1031func_art_jni_method_end_synchronized->setCallingConv(CallingConv::C);
1032}
1033AttrListPtr func_art_jni_method_end_synchronized_PAL;
1034func_art_jni_method_end_synchronized->setAttributes(func_art_jni_method_end_synchronized_PAL);
1035
1036Function* func_art_jni_method_end_with_reference = mod->getFunction("art_jni_method_end_with_reference");
1037if (!func_art_jni_method_end_with_reference) {
1038func_art_jni_method_end_with_reference = Function::Create(
1039 /*Type=*/FuncTy_38,
1040 /*Linkage=*/GlobalValue::ExternalLinkage,
1041 /*Name=*/"art_jni_method_end_with_reference", mod); // (external, no body)
1042func_art_jni_method_end_with_reference->setCallingConv(CallingConv::C);
1043}
1044AttrListPtr func_art_jni_method_end_with_reference_PAL;
1045func_art_jni_method_end_with_reference->setAttributes(func_art_jni_method_end_with_reference_PAL);
1046
1047Function* func_art_jni_method_end_with_reference_synchronized = mod->getFunction("art_jni_method_end_with_reference_synchronized");
1048if (!func_art_jni_method_end_with_reference_synchronized) {
1049func_art_jni_method_end_with_reference_synchronized = Function::Create(
1050 /*Type=*/FuncTy_39,
1051 /*Linkage=*/GlobalValue::ExternalLinkage,
1052 /*Name=*/"art_jni_method_end_with_reference_synchronized", mod); // (external, no body)
1053func_art_jni_method_end_with_reference_synchronized->setCallingConv(CallingConv::C);
1054}
1055AttrListPtr func_art_jni_method_end_with_reference_synchronized_PAL;
1056func_art_jni_method_end_with_reference_synchronized->setAttributes(func_art_jni_method_end_with_reference_synchronized_PAL);
1057
1058Function* func_art_is_exception_pending_from_code = mod->getFunction("art_is_exception_pending_from_code");
1059if (!func_art_is_exception_pending_from_code) {
1060func_art_is_exception_pending_from_code = Function::Create(
1061 /*Type=*/FuncTy_40,
1062 /*Linkage=*/GlobalValue::ExternalLinkage,
1063 /*Name=*/"art_is_exception_pending_from_code", mod); // (external, no body)
1064func_art_is_exception_pending_from_code->setCallingConv(CallingConv::C);
1065}
1066AttrListPtr func_art_is_exception_pending_from_code_PAL;
1067func_art_is_exception_pending_from_code->setAttributes(func_art_is_exception_pending_from_code_PAL);
1068
TDYa12783bb6622012-04-17 02:20:34 -07001069Function* func_art_mark_gc_card_from_code = mod->getFunction("art_mark_gc_card_from_code");
1070if (!func_art_mark_gc_card_from_code) {
1071func_art_mark_gc_card_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -07001072 /*Type=*/FuncTy_5,
TDYa12783bb6622012-04-17 02:20:34 -07001073 /*Linkage=*/GlobalValue::ExternalLinkage,
1074 /*Name=*/"art_mark_gc_card_from_code", mod); // (external, no body)
1075func_art_mark_gc_card_from_code->setCallingConv(CallingConv::C);
1076}
1077AttrListPtr func_art_mark_gc_card_from_code_PAL;
1078func_art_mark_gc_card_from_code->setAttributes(func_art_mark_gc_card_from_code_PAL);
1079
TDYa1275bb86012012-04-11 05:57:28 -07001080Function* func_art_proxy_invoke_handler_from_code = mod->getFunction("art_proxy_invoke_handler_from_code");
1081if (!func_art_proxy_invoke_handler_from_code) {
1082func_art_proxy_invoke_handler_from_code = Function::Create(
TDYa1273d71d802012-08-15 03:47:03 -07001083 /*Type=*/FuncTy_41,
TDYa1275bb86012012-04-11 05:57:28 -07001084 /*Linkage=*/GlobalValue::ExternalLinkage,
1085 /*Name=*/"art_proxy_invoke_handler_from_code", mod); // (external, no body)
1086func_art_proxy_invoke_handler_from_code->setCallingConv(CallingConv::C);
1087}
1088AttrListPtr func_art_proxy_invoke_handler_from_code_PAL;
1089func_art_proxy_invoke_handler_from_code->setAttributes(func_art_proxy_invoke_handler_from_code_PAL);
1090
Logan Chien42e0e152012-01-13 15:42:36 +08001091// Global Variable Declarations
1092
1093
1094// Constant Definitions
1095
1096// Global Variable Definitions
1097
1098// Function Definitions
1099
1100return mod;
1101
1102}
Logan Chiene75a8cc2012-02-24 12:26:43 +08001103
1104} // namespace compiler_llvm
1105} // namespace art