blob: 2a8100bdef122d801985a99c9a844d0dbdd660a1 [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(
Logan Chien3f71e702012-02-17 18:45:27 +080073 /*Result=*/Type::getVoidTy(mod->getContext()),
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);
TDYa127853cd092012-04-21 22:15:31 -070087FuncTy_6_args.push_back(PointerTy_2);
TDYa127af543472012-05-28 21:49:23 -070088FuncTy_6_args.push_back(PointerTy_1);
89FuncTy_6_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +080090FunctionType* FuncTy_6 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -070091 /*Result=*/PointerTy_2,
Logan Chien42e0e152012-01-13 15:42:36 +080092 /*Params=*/FuncTy_6_args,
93 /*isVarArg=*/false);
94
95std::vector<Type*>FuncTy_7_args;
TDYa1270de52be2012-05-27 20:49:31 -070096FuncTy_7_args.push_back(PointerTy_2);
Logan Chien42e0e152012-01-13 15:42:36 +080097FunctionType* FuncTy_7 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -070098 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +080099 /*Params=*/FuncTy_7_args,
100 /*isVarArg=*/false);
101
102std::vector<Type*>FuncTy_8_args;
Logan Chien42e0e152012-01-13 15:42:36 +0800103FunctionType* FuncTy_8 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700104 /*Result=*/IntegerType::get(mod->getContext(), 1),
Logan Chien42e0e152012-01-13 15:42:36 +0800105 /*Params=*/FuncTy_8_args,
106 /*isVarArg=*/false);
107
108std::vector<Type*>FuncTy_9_args;
Logan Chien42e0e152012-01-13 15:42:36 +0800109FunctionType* FuncTy_9 = FunctionType::get(
Logan Chien3f71e702012-02-17 18:45:27 +0800110 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800111 /*Params=*/FuncTy_9_args,
112 /*isVarArg=*/false);
113
114std::vector<Type*>FuncTy_10_args;
Logan Chien9e5f5c12012-04-10 13:51:45 +0800115FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1270de52be2012-05-27 20:49:31 -0700116FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800117FunctionType* FuncTy_10 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800118 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800119 /*Params=*/FuncTy_10_args,
120 /*isVarArg=*/false);
121
122std::vector<Type*>FuncTy_11_args;
TDYa127706e9b62012-04-19 12:24:26 -0700123FuncTy_11_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800124FunctionType* FuncTy_11 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700125 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800126 /*Params=*/FuncTy_11_args,
127 /*isVarArg=*/false);
128
129std::vector<Type*>FuncTy_12_args;
TDYa127706e9b62012-04-19 12:24:26 -0700130FuncTy_12_args.push_back(PointerTy_1);
Logan Chien3f71e702012-02-17 18:45:27 +0800131FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1270de52be2012-05-27 20:49:31 -0700132FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800133FunctionType* FuncTy_12 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700134 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800135 /*Params=*/FuncTy_12_args,
136 /*isVarArg=*/false);
137
138std::vector<Type*>FuncTy_13_args;
TDYa1270de52be2012-05-27 20:49:31 -0700139FuncTy_13_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800140FuncTy_13_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800141FunctionType* FuncTy_13 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700142 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800143 /*Params=*/FuncTy_13_args,
144 /*isVarArg=*/false);
145
146std::vector<Type*>FuncTy_14_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800147FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien1b0a1b72012-03-15 06:20:17 +0800148FuncTy_14_args.push_back(PointerTy_1);
TDYa127706e9b62012-04-19 12:24:26 -0700149FuncTy_14_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800150FunctionType* FuncTy_14 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700151 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800152 /*Params=*/FuncTy_14_args,
153 /*isVarArg=*/false);
154
155std::vector<Type*>FuncTy_15_args;
156FuncTy_15_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien9e5f5c12012-04-10 13:51:45 +0800157FuncTy_15_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700158FuncTy_15_args.push_back(IntegerType::get(mod->getContext(), 32));
159FuncTy_15_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800160FunctionType* FuncTy_15 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700161 /*Result=*/PointerTy_1,
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);
Logan Chien42e0e152012-01-13 15:42:36 +0800168FunctionType* FuncTy_16 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700169 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800170 /*Params=*/FuncTy_16_args,
171 /*isVarArg=*/false);
172
173std::vector<Type*>FuncTy_17_args;
Logan Chien9e5f5c12012-04-10 13:51:45 +0800174FuncTy_17_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1270de52be2012-05-27 20:49:31 -0700175FuncTy_17_args.push_back(PointerTy_1);
176FuncTy_17_args.push_back(PointerTy_1);
177FuncTy_17_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800178FunctionType* FuncTy_17 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -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;
184FuncTy_18_args.push_back(PointerTy_1);
TDYa127da83d972012-04-18 00:21:49 -0700185FuncTy_18_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800186FunctionType* FuncTy_18 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700187 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800188 /*Params=*/FuncTy_18_args,
189 /*isVarArg=*/false);
190
191std::vector<Type*>FuncTy_19_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800192FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800193FuncTy_19_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700194FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800195FunctionType* FuncTy_19 = FunctionType::get(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800196 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800197 /*Params=*/FuncTy_19_args,
198 /*isVarArg=*/false);
199
Logan Chien3f71e702012-02-17 18:45:27 +0800200std::vector<Type*>FuncTy_20_args;
Logan Chien3b2b2e72012-03-06 16:11:45 +0800201FuncTy_20_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chiena6b2ca62012-03-06 15:50:54 +0800202FuncTy_20_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700203FuncTy_20_args.push_back(IntegerType::get(mod->getContext(), 64));
Logan Chien3f71e702012-02-17 18:45:27 +0800204FunctionType* FuncTy_20 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800205 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3f71e702012-02-17 18:45:27 +0800206 /*Params=*/FuncTy_20_args,
207 /*isVarArg=*/false);
208
209std::vector<Type*>FuncTy_21_args;
Logan Chien3b2b2e72012-03-06 16:11:45 +0800210FuncTy_21_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3f71e702012-02-17 18:45:27 +0800211FuncTy_21_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700212FuncTy_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(
TDYa1270de52be2012-05-27 20:49:31 -0700222 /*Result=*/IntegerType::get(mod->getContext(), 32),
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(
TDYa1270de52be2012-05-27 20:49:31 -0700230 /*Result=*/IntegerType::get(mod->getContext(), 64),
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);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800237FunctionType* FuncTy_24 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700238 /*Result=*/PointerTy_1,
Logan Chien3b2b2e72012-03-06 16:11:45 +0800239 /*Params=*/FuncTy_24_args,
240 /*isVarArg=*/false);
241
242std::vector<Type*>FuncTy_25_args;
Logan Chien9e5f5c12012-04-10 13:51:45 +0800243FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800244FuncTy_25_args.push_back(PointerTy_1);
245FuncTy_25_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700246FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800247FunctionType* FuncTy_25 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700248 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800249 /*Params=*/FuncTy_25_args,
250 /*isVarArg=*/false);
251
252std::vector<Type*>FuncTy_26_args;
TDYa127da83d972012-04-18 00:21:49 -0700253FuncTy_26_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800254FuncTy_26_args.push_back(PointerTy_1);
255FuncTy_26_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700256FuncTy_26_args.push_back(IntegerType::get(mod->getContext(), 64));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800257FunctionType* FuncTy_26 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700258 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800259 /*Params=*/FuncTy_26_args,
260 /*isVarArg=*/false);
261
TDYa12728f1a142012-03-15 21:51:52 -0700262std::vector<Type*>FuncTy_27_args;
TDYa127706e9b62012-04-19 12:24:26 -0700263FuncTy_27_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa12728f1a142012-03-15 21:51:52 -0700264FuncTy_27_args.push_back(PointerTy_1);
265FuncTy_27_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700266FuncTy_27_args.push_back(PointerTy_1);
TDYa12728f1a142012-03-15 21:51:52 -0700267FunctionType* FuncTy_27 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700268 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa12728f1a142012-03-15 21:51:52 -0700269 /*Params=*/FuncTy_27_args,
270 /*isVarArg=*/false);
271
TDYa12785321912012-04-01 15:24:56 -0700272std::vector<Type*>FuncTy_28_args;
TDYa1270de52be2012-05-27 20:49:31 -0700273FuncTy_28_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa12785321912012-04-01 15:24:56 -0700274FuncTy_28_args.push_back(PointerTy_1);
275FuncTy_28_args.push_back(PointerTy_1);
TDYa12785321912012-04-01 15:24:56 -0700276FunctionType* FuncTy_28 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700277 /*Result=*/IntegerType::get(mod->getContext(), 64),
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);
283FuncTy_29_args.push_back(PointerTy_1);
TDYa1270b686e52012-04-09 22:43:35 -0700284FunctionType* FuncTy_29 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700285 /*Result=*/PointerTy_1,
TDYa1270b686e52012-04-09 22:43:35 -0700286 /*Params=*/FuncTy_29_args,
287 /*isVarArg=*/false);
288
Logan Chien9e5f5c12012-04-10 13:51:45 +0800289std::vector<Type*>FuncTy_30_args;
Logan Chien86f50672012-04-24 13:08:45 +0800290FuncTy_30_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700291FuncTy_30_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien86f50672012-04-24 13:08:45 +0800292FuncTy_30_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700293FuncTy_30_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien9e5f5c12012-04-10 13:51:45 +0800294FunctionType* FuncTy_30 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700295 /*Result=*/Type::getVoidTy(mod->getContext()),
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;
TDYa1270de52be2012-05-27 20:49:31 -0700300FuncTy_31_args.push_back(PointerTy_1);
301FuncTy_31_args.push_back(PointerTy_1);
TDYa1275bb86012012-04-11 05:57:28 -0700302FunctionType* FuncTy_31 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700303 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa1275bb86012012-04-11 05:57:28 -0700304 /*Params=*/FuncTy_31_args,
TDYa127a4746872012-04-11 23:48:55 -0700305 /*isVarArg=*/false);
306
307std::vector<Type*>FuncTy_32_args;
Logan Chien86f50672012-04-24 13:08:45 +0800308FuncTy_32_args.push_back(Type::getDoubleTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700309FunctionType* FuncTy_32 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700310 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa127a4746872012-04-11 23:48:55 -0700311 /*Params=*/FuncTy_32_args,
312 /*isVarArg=*/false);
313
314std::vector<Type*>FuncTy_33_args;
TDYa1270de52be2012-05-27 20:49:31 -0700315FuncTy_33_args.push_back(Type::getDoubleTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700316FunctionType* FuncTy_33 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700317 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa127a4746872012-04-11 23:48:55 -0700318 /*Params=*/FuncTy_33_args,
319 /*isVarArg=*/false);
320
321std::vector<Type*>FuncTy_34_args;
Logan Chien86f50672012-04-24 13:08:45 +0800322FuncTy_34_args.push_back(Type::getFloatTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700323FunctionType* FuncTy_34 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700324 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa127a4746872012-04-11 23:48:55 -0700325 /*Params=*/FuncTy_34_args,
326 /*isVarArg=*/false);
327
328std::vector<Type*>FuncTy_35_args;
TDYa1270de52be2012-05-27 20:49:31 -0700329FuncTy_35_args.push_back(Type::getFloatTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700330FunctionType* FuncTy_35 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700331 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa12705fe3b62012-04-21 00:28:54 -0700332 /*Params=*/FuncTy_35_args,
Logan Chien86f50672012-04-24 13:08:45 +0800333 /*isVarArg=*/false);
334
335std::vector<Type*>FuncTy_36_args;
336FuncTy_36_args.push_back(PointerTy_1);
337FunctionType* FuncTy_36 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700338 /*Result=*/PointerTy_1,
Logan Chien86f50672012-04-24 13:08:45 +0800339 /*Params=*/FuncTy_36_args,
TDYa1270de52be2012-05-27 20:49:31 -0700340 /*isVarArg=*/false);
341
342std::vector<Type*>FuncTy_37_args;
343FuncTy_37_args.push_back(PointerTy_1);
344FunctionType* FuncTy_37 = FunctionType::get(
345 /*Result=*/Type::getVoidTy(mod->getContext()),
346 /*Params=*/FuncTy_37_args,
TDYa1275bb86012012-04-11 05:57:28 -0700347 /*isVarArg=*/true);
348
Logan Chien42e0e152012-01-13 15:42:36 +0800349
350// Function Declarations
351
352Function* func___art_type_list = mod->getFunction("__art_type_list");
353if (!func___art_type_list) {
354func___art_type_list = Function::Create(
355 /*Type=*/FuncTy_0,
356 /*Linkage=*/GlobalValue::ExternalLinkage,
357 /*Name=*/"__art_type_list", mod); // (external, no body)
358func___art_type_list->setCallingConv(CallingConv::C);
359}
360AttrListPtr func___art_type_list_PAL;
361func___art_type_list->setAttributes(func___art_type_list_PAL);
362
363Function* func_art_get_current_thread_from_code = mod->getFunction("art_get_current_thread_from_code");
364if (!func_art_get_current_thread_from_code) {
365func_art_get_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800366 /*Type=*/FuncTy_3,
Logan Chien42e0e152012-01-13 15:42:36 +0800367 /*Linkage=*/GlobalValue::ExternalLinkage,
368 /*Name=*/"art_get_current_thread_from_code", mod); // (external, no body)
369func_art_get_current_thread_from_code->setCallingConv(CallingConv::C);
370}
371AttrListPtr func_art_get_current_thread_from_code_PAL;
372func_art_get_current_thread_from_code->setAttributes(func_art_get_current_thread_from_code_PAL);
373
374Function* func_art_set_current_thread_from_code = mod->getFunction("art_set_current_thread_from_code");
375if (!func_art_set_current_thread_from_code) {
376func_art_set_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800377 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800378 /*Linkage=*/GlobalValue::ExternalLinkage,
379 /*Name=*/"art_set_current_thread_from_code", mod); // (external, no body)
380func_art_set_current_thread_from_code->setCallingConv(CallingConv::C);
381}
382AttrListPtr func_art_set_current_thread_from_code_PAL;
383func_art_set_current_thread_from_code->setAttributes(func_art_set_current_thread_from_code_PAL);
384
385Function* func_art_lock_object_from_code = mod->getFunction("art_lock_object_from_code");
386if (!func_art_lock_object_from_code) {
387func_art_lock_object_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700388 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800389 /*Linkage=*/GlobalValue::ExternalLinkage,
390 /*Name=*/"art_lock_object_from_code", mod); // (external, no body)
391func_art_lock_object_from_code->setCallingConv(CallingConv::C);
392}
393AttrListPtr func_art_lock_object_from_code_PAL;
394func_art_lock_object_from_code->setAttributes(func_art_lock_object_from_code_PAL);
395
396Function* func_art_unlock_object_from_code = mod->getFunction("art_unlock_object_from_code");
397if (!func_art_unlock_object_from_code) {
398func_art_unlock_object_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700399 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800400 /*Linkage=*/GlobalValue::ExternalLinkage,
401 /*Name=*/"art_unlock_object_from_code", mod); // (external, no body)
402func_art_unlock_object_from_code->setCallingConv(CallingConv::C);
403}
404AttrListPtr func_art_unlock_object_from_code_PAL;
405func_art_unlock_object_from_code->setAttributes(func_art_unlock_object_from_code_PAL);
406
407Function* func_art_test_suspend_from_code = mod->getFunction("art_test_suspend_from_code");
408if (!func_art_test_suspend_from_code) {
409func_art_test_suspend_from_code = Function::Create(
TDYa127853cd092012-04-21 22:15:31 -0700410 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800411 /*Linkage=*/GlobalValue::ExternalLinkage,
412 /*Name=*/"art_test_suspend_from_code", mod); // (external, no body)
413func_art_test_suspend_from_code->setCallingConv(CallingConv::C);
414}
415AttrListPtr func_art_test_suspend_from_code_PAL;
416func_art_test_suspend_from_code->setAttributes(func_art_test_suspend_from_code_PAL);
417
Logan Chien3f71e702012-02-17 18:45:27 +0800418Function* func_art_push_shadow_frame_from_code = mod->getFunction("art_push_shadow_frame_from_code");
419if (!func_art_push_shadow_frame_from_code) {
420func_art_push_shadow_frame_from_code = Function::Create(
TDYa127853cd092012-04-21 22:15:31 -0700421 /*Type=*/FuncTy_6,
Logan Chien3f71e702012-02-17 18:45:27 +0800422 /*Linkage=*/GlobalValue::ExternalLinkage,
423 /*Name=*/"art_push_shadow_frame_from_code", mod); // (external, no body)
424func_art_push_shadow_frame_from_code->setCallingConv(CallingConv::C);
425}
426AttrListPtr func_art_push_shadow_frame_from_code_PAL;
427func_art_push_shadow_frame_from_code->setAttributes(func_art_push_shadow_frame_from_code_PAL);
428
429Function* func_art_pop_shadow_frame_from_code = mod->getFunction("art_pop_shadow_frame_from_code");
430if (!func_art_pop_shadow_frame_from_code) {
431func_art_pop_shadow_frame_from_code = Function::Create(
TDYa127853cd092012-04-21 22:15:31 -0700432 /*Type=*/FuncTy_7,
Logan Chien3f71e702012-02-17 18:45:27 +0800433 /*Linkage=*/GlobalValue::ExternalLinkage,
434 /*Name=*/"art_pop_shadow_frame_from_code", mod); // (external, no body)
435func_art_pop_shadow_frame_from_code->setCallingConv(CallingConv::C);
436}
437AttrListPtr func_art_pop_shadow_frame_from_code_PAL;
438func_art_pop_shadow_frame_from_code->setAttributes(func_art_pop_shadow_frame_from_code_PAL);
439
Logan Chien42e0e152012-01-13 15:42:36 +0800440Function* func_art_is_exception_pending_from_code = mod->getFunction("art_is_exception_pending_from_code");
441if (!func_art_is_exception_pending_from_code) {
442func_art_is_exception_pending_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700443 /*Type=*/FuncTy_8,
Logan Chien42e0e152012-01-13 15:42:36 +0800444 /*Linkage=*/GlobalValue::ExternalLinkage,
445 /*Name=*/"art_is_exception_pending_from_code", mod); // (external, no body)
446func_art_is_exception_pending_from_code->setCallingConv(CallingConv::C);
447}
448AttrListPtr func_art_is_exception_pending_from_code_PAL;
449func_art_is_exception_pending_from_code->setAttributes(func_art_is_exception_pending_from_code_PAL);
450
451Function* func_art_throw_div_zero_from_code = mod->getFunction("art_throw_div_zero_from_code");
452if (!func_art_throw_div_zero_from_code) {
453func_art_throw_div_zero_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700454 /*Type=*/FuncTy_9,
Logan Chien42e0e152012-01-13 15:42:36 +0800455 /*Linkage=*/GlobalValue::ExternalLinkage,
456 /*Name=*/"art_throw_div_zero_from_code", mod); // (external, no body)
457func_art_throw_div_zero_from_code->setCallingConv(CallingConv::C);
458}
459AttrListPtr func_art_throw_div_zero_from_code_PAL;
460func_art_throw_div_zero_from_code->setAttributes(func_art_throw_div_zero_from_code_PAL);
461
462Function* func_art_throw_array_bounds_from_code = mod->getFunction("art_throw_array_bounds_from_code");
463if (!func_art_throw_array_bounds_from_code) {
464func_art_throw_array_bounds_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700465 /*Type=*/FuncTy_10,
Logan Chien42e0e152012-01-13 15:42:36 +0800466 /*Linkage=*/GlobalValue::ExternalLinkage,
467 /*Name=*/"art_throw_array_bounds_from_code", mod); // (external, no body)
468func_art_throw_array_bounds_from_code->setCallingConv(CallingConv::C);
469}
470AttrListPtr func_art_throw_array_bounds_from_code_PAL;
471func_art_throw_array_bounds_from_code->setAttributes(func_art_throw_array_bounds_from_code_PAL);
472
473Function* func_art_throw_no_such_method_from_code = mod->getFunction("art_throw_no_such_method_from_code");
474if (!func_art_throw_no_such_method_from_code) {
475func_art_throw_no_such_method_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700476 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800477 /*Linkage=*/GlobalValue::ExternalLinkage,
478 /*Name=*/"art_throw_no_such_method_from_code", mod); // (external, no body)
479func_art_throw_no_such_method_from_code->setCallingConv(CallingConv::C);
480}
481AttrListPtr func_art_throw_no_such_method_from_code_PAL;
482func_art_throw_no_such_method_from_code->setAttributes(func_art_throw_no_such_method_from_code_PAL);
483
484Function* func_art_throw_null_pointer_exception_from_code = mod->getFunction("art_throw_null_pointer_exception_from_code");
485if (!func_art_throw_null_pointer_exception_from_code) {
486func_art_throw_null_pointer_exception_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700487 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800488 /*Linkage=*/GlobalValue::ExternalLinkage,
489 /*Name=*/"art_throw_null_pointer_exception_from_code", mod); // (external, no body)
490func_art_throw_null_pointer_exception_from_code->setCallingConv(CallingConv::C);
491}
492AttrListPtr func_art_throw_null_pointer_exception_from_code_PAL;
493func_art_throw_null_pointer_exception_from_code->setAttributes(func_art_throw_null_pointer_exception_from_code_PAL);
494
495Function* func_art_throw_stack_overflow_from_code = mod->getFunction("art_throw_stack_overflow_from_code");
496if (!func_art_throw_stack_overflow_from_code) {
497func_art_throw_stack_overflow_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700498 /*Type=*/FuncTy_9,
Logan Chien42e0e152012-01-13 15:42:36 +0800499 /*Linkage=*/GlobalValue::ExternalLinkage,
500 /*Name=*/"art_throw_stack_overflow_from_code", mod); // (external, no body)
501func_art_throw_stack_overflow_from_code->setCallingConv(CallingConv::C);
502}
503AttrListPtr func_art_throw_stack_overflow_from_code_PAL;
504func_art_throw_stack_overflow_from_code->setAttributes(func_art_throw_stack_overflow_from_code_PAL);
505
506Function* func_art_throw_exception_from_code = mod->getFunction("art_throw_exception_from_code");
507if (!func_art_throw_exception_from_code) {
508func_art_throw_exception_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800509 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800510 /*Linkage=*/GlobalValue::ExternalLinkage,
511 /*Name=*/"art_throw_exception_from_code", mod); // (external, no body)
512func_art_throw_exception_from_code->setCallingConv(CallingConv::C);
513}
514AttrListPtr func_art_throw_exception_from_code_PAL;
515func_art_throw_exception_from_code->setAttributes(func_art_throw_exception_from_code_PAL);
516
Logan Chien9e5f5c12012-04-10 13:51:45 +0800517Function* func_art_throw_verification_error_from_code = mod->getFunction("art_throw_verification_error_from_code");
518if (!func_art_throw_verification_error_from_code) {
519func_art_throw_verification_error_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700520 /*Type=*/FuncTy_12,
Logan Chien9e5f5c12012-04-10 13:51:45 +0800521 /*Linkage=*/GlobalValue::ExternalLinkage,
522 /*Name=*/"art_throw_verification_error_from_code", mod); // (external, no body)
523func_art_throw_verification_error_from_code->setCallingConv(CallingConv::C);
524}
525AttrListPtr func_art_throw_verification_error_from_code_PAL;
526func_art_throw_verification_error_from_code->setAttributes(func_art_throw_verification_error_from_code_PAL);
527
Logan Chien42e0e152012-01-13 15:42:36 +0800528Function* func_art_find_catch_block_from_code = mod->getFunction("art_find_catch_block_from_code");
529if (!func_art_find_catch_block_from_code) {
530func_art_find_catch_block_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700531 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800532 /*Linkage=*/GlobalValue::ExternalLinkage,
533 /*Name=*/"art_find_catch_block_from_code", mod); // (external, no body)
534func_art_find_catch_block_from_code->setCallingConv(CallingConv::C);
535}
536AttrListPtr func_art_find_catch_block_from_code_PAL;
537func_art_find_catch_block_from_code->setAttributes(func_art_find_catch_block_from_code_PAL);
538
539Function* func_art_alloc_object_from_code = mod->getFunction("art_alloc_object_from_code");
540if (!func_art_alloc_object_from_code) {
541func_art_alloc_object_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700542 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800543 /*Linkage=*/GlobalValue::ExternalLinkage,
544 /*Name=*/"art_alloc_object_from_code", mod); // (external, no body)
545func_art_alloc_object_from_code->setCallingConv(CallingConv::C);
546}
547AttrListPtr func_art_alloc_object_from_code_PAL;
548func_art_alloc_object_from_code->setAttributes(func_art_alloc_object_from_code_PAL);
549
550Function* func_art_alloc_object_from_code_with_access_check = mod->getFunction("art_alloc_object_from_code_with_access_check");
551if (!func_art_alloc_object_from_code_with_access_check) {
552func_art_alloc_object_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700553 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800554 /*Linkage=*/GlobalValue::ExternalLinkage,
555 /*Name=*/"art_alloc_object_from_code_with_access_check", mod); // (external, no body)
556func_art_alloc_object_from_code_with_access_check->setCallingConv(CallingConv::C);
557}
558AttrListPtr func_art_alloc_object_from_code_with_access_check_PAL;
559func_art_alloc_object_from_code_with_access_check->setAttributes(func_art_alloc_object_from_code_with_access_check_PAL);
560
561Function* func_art_alloc_array_from_code = mod->getFunction("art_alloc_array_from_code");
562if (!func_art_alloc_array_from_code) {
563func_art_alloc_array_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700564 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800565 /*Linkage=*/GlobalValue::ExternalLinkage,
566 /*Name=*/"art_alloc_array_from_code", mod); // (external, no body)
567func_art_alloc_array_from_code->setCallingConv(CallingConv::C);
568}
569AttrListPtr func_art_alloc_array_from_code_PAL;
570func_art_alloc_array_from_code->setAttributes(func_art_alloc_array_from_code_PAL);
571
572Function* func_art_alloc_array_from_code_with_access_check = mod->getFunction("art_alloc_array_from_code_with_access_check");
573if (!func_art_alloc_array_from_code_with_access_check) {
574func_art_alloc_array_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700575 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800576 /*Linkage=*/GlobalValue::ExternalLinkage,
577 /*Name=*/"art_alloc_array_from_code_with_access_check", mod); // (external, no body)
578func_art_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
579}
580AttrListPtr func_art_alloc_array_from_code_with_access_check_PAL;
581func_art_alloc_array_from_code_with_access_check->setAttributes(func_art_alloc_array_from_code_with_access_check_PAL);
582
583Function* func_art_check_and_alloc_array_from_code = mod->getFunction("art_check_and_alloc_array_from_code");
584if (!func_art_check_and_alloc_array_from_code) {
585func_art_check_and_alloc_array_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700586 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800587 /*Linkage=*/GlobalValue::ExternalLinkage,
588 /*Name=*/"art_check_and_alloc_array_from_code", mod); // (external, no body)
589func_art_check_and_alloc_array_from_code->setCallingConv(CallingConv::C);
590}
591AttrListPtr func_art_check_and_alloc_array_from_code_PAL;
592func_art_check_and_alloc_array_from_code->setAttributes(func_art_check_and_alloc_array_from_code_PAL);
593
594Function* func_art_check_and_alloc_array_from_code_with_access_check = mod->getFunction("art_check_and_alloc_array_from_code_with_access_check");
595if (!func_art_check_and_alloc_array_from_code_with_access_check) {
596func_art_check_and_alloc_array_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700597 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800598 /*Linkage=*/GlobalValue::ExternalLinkage,
599 /*Name=*/"art_check_and_alloc_array_from_code_with_access_check", mod); // (external, no body)
600func_art_check_and_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
601}
602AttrListPtr func_art_check_and_alloc_array_from_code_with_access_check_PAL;
603func_art_check_and_alloc_array_from_code_with_access_check->setAttributes(func_art_check_and_alloc_array_from_code_with_access_check_PAL);
604
Logan Chien42e0e152012-01-13 15:42:36 +0800605Function* func_art_find_instance_field_from_code = mod->getFunction("art_find_instance_field_from_code");
606if (!func_art_find_instance_field_from_code) {
607func_art_find_instance_field_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700608 /*Type=*/FuncTy_16,
Logan Chien42e0e152012-01-13 15:42:36 +0800609 /*Linkage=*/GlobalValue::ExternalLinkage,
610 /*Name=*/"art_find_instance_field_from_code", mod); // (external, no body)
611func_art_find_instance_field_from_code->setCallingConv(CallingConv::C);
612}
613AttrListPtr func_art_find_instance_field_from_code_PAL;
614func_art_find_instance_field_from_code->setAttributes(func_art_find_instance_field_from_code_PAL);
615
616Function* func_art_find_static_field_from_code = mod->getFunction("art_find_static_field_from_code");
617if (!func_art_find_static_field_from_code) {
618func_art_find_static_field_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700619 /*Type=*/FuncTy_16,
Logan Chien42e0e152012-01-13 15:42:36 +0800620 /*Linkage=*/GlobalValue::ExternalLinkage,
621 /*Name=*/"art_find_static_field_from_code", mod); // (external, no body)
622func_art_find_static_field_from_code->setCallingConv(CallingConv::C);
623}
624AttrListPtr func_art_find_static_field_from_code_PAL;
625func_art_find_static_field_from_code->setAttributes(func_art_find_static_field_from_code_PAL);
626
Logan Chien7e7fabc2012-04-10 18:59:11 +0800627Function* func_art_find_static_method_from_code_with_access_check = mod->getFunction("art_find_static_method_from_code_with_access_check");
628if (!func_art_find_static_method_from_code_with_access_check) {
629func_art_find_static_method_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700630 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800631 /*Linkage=*/GlobalValue::ExternalLinkage,
632 /*Name=*/"art_find_static_method_from_code_with_access_check", mod); // (external, no body)
633func_art_find_static_method_from_code_with_access_check->setCallingConv(CallingConv::C);
634}
635AttrListPtr func_art_find_static_method_from_code_with_access_check_PAL;
636func_art_find_static_method_from_code_with_access_check->setAttributes(func_art_find_static_method_from_code_with_access_check_PAL);
637
638Function* func_art_find_direct_method_from_code_with_access_check = mod->getFunction("art_find_direct_method_from_code_with_access_check");
639if (!func_art_find_direct_method_from_code_with_access_check) {
640func_art_find_direct_method_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700641 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800642 /*Linkage=*/GlobalValue::ExternalLinkage,
643 /*Name=*/"art_find_direct_method_from_code_with_access_check", mod); // (external, no body)
644func_art_find_direct_method_from_code_with_access_check->setCallingConv(CallingConv::C);
645}
646AttrListPtr func_art_find_direct_method_from_code_with_access_check_PAL;
647func_art_find_direct_method_from_code_with_access_check->setAttributes(func_art_find_direct_method_from_code_with_access_check_PAL);
648
649Function* func_art_find_virtual_method_from_code_with_access_check = mod->getFunction("art_find_virtual_method_from_code_with_access_check");
650if (!func_art_find_virtual_method_from_code_with_access_check) {
651func_art_find_virtual_method_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700652 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800653 /*Linkage=*/GlobalValue::ExternalLinkage,
654 /*Name=*/"art_find_virtual_method_from_code_with_access_check", mod); // (external, no body)
655func_art_find_virtual_method_from_code_with_access_check->setCallingConv(CallingConv::C);
656}
657AttrListPtr func_art_find_virtual_method_from_code_with_access_check_PAL;
658func_art_find_virtual_method_from_code_with_access_check->setAttributes(func_art_find_virtual_method_from_code_with_access_check_PAL);
659
660Function* func_art_find_super_method_from_code_with_access_check = mod->getFunction("art_find_super_method_from_code_with_access_check");
661if (!func_art_find_super_method_from_code_with_access_check) {
662func_art_find_super_method_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700663 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800664 /*Linkage=*/GlobalValue::ExternalLinkage,
665 /*Name=*/"art_find_super_method_from_code_with_access_check", mod); // (external, no body)
666func_art_find_super_method_from_code_with_access_check->setCallingConv(CallingConv::C);
667}
668AttrListPtr func_art_find_super_method_from_code_with_access_check_PAL;
669func_art_find_super_method_from_code_with_access_check->setAttributes(func_art_find_super_method_from_code_with_access_check_PAL);
670
671Function* func_art_find_interface_method_from_code_with_access_check = mod->getFunction("art_find_interface_method_from_code_with_access_check");
672if (!func_art_find_interface_method_from_code_with_access_check) {
673func_art_find_interface_method_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700674 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800675 /*Linkage=*/GlobalValue::ExternalLinkage,
676 /*Name=*/"art_find_interface_method_from_code_with_access_check", mod); // (external, no body)
677func_art_find_interface_method_from_code_with_access_check->setCallingConv(CallingConv::C);
678}
679AttrListPtr func_art_find_interface_method_from_code_with_access_check_PAL;
680func_art_find_interface_method_from_code_with_access_check->setAttributes(func_art_find_interface_method_from_code_with_access_check_PAL);
681
Logan Chien42e0e152012-01-13 15:42:36 +0800682Function* func_art_find_interface_method_from_code = mod->getFunction("art_find_interface_method_from_code");
683if (!func_art_find_interface_method_from_code) {
684func_art_find_interface_method_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700685 /*Type=*/FuncTy_17,
Logan Chien42e0e152012-01-13 15:42:36 +0800686 /*Linkage=*/GlobalValue::ExternalLinkage,
687 /*Name=*/"art_find_interface_method_from_code", mod); // (external, no body)
688func_art_find_interface_method_from_code->setCallingConv(CallingConv::C);
689}
690AttrListPtr func_art_find_interface_method_from_code_PAL;
691func_art_find_interface_method_from_code->setAttributes(func_art_find_interface_method_from_code_PAL);
692
693Function* func_art_initialize_static_storage_from_code = mod->getFunction("art_initialize_static_storage_from_code");
694if (!func_art_initialize_static_storage_from_code) {
695func_art_initialize_static_storage_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700696 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800697 /*Linkage=*/GlobalValue::ExternalLinkage,
698 /*Name=*/"art_initialize_static_storage_from_code", mod); // (external, no body)
699func_art_initialize_static_storage_from_code->setCallingConv(CallingConv::C);
700}
701AttrListPtr func_art_initialize_static_storage_from_code_PAL;
702func_art_initialize_static_storage_from_code->setAttributes(func_art_initialize_static_storage_from_code_PAL);
703
704Function* func_art_initialize_type_from_code = mod->getFunction("art_initialize_type_from_code");
705if (!func_art_initialize_type_from_code) {
706func_art_initialize_type_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700707 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800708 /*Linkage=*/GlobalValue::ExternalLinkage,
709 /*Name=*/"art_initialize_type_from_code", mod); // (external, no body)
710func_art_initialize_type_from_code->setCallingConv(CallingConv::C);
711}
712AttrListPtr func_art_initialize_type_from_code_PAL;
713func_art_initialize_type_from_code->setAttributes(func_art_initialize_type_from_code_PAL);
714
715Function* func_art_initialize_type_and_verify_access_from_code = mod->getFunction("art_initialize_type_and_verify_access_from_code");
716if (!func_art_initialize_type_and_verify_access_from_code) {
717func_art_initialize_type_and_verify_access_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700718 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800719 /*Linkage=*/GlobalValue::ExternalLinkage,
720 /*Name=*/"art_initialize_type_and_verify_access_from_code", mod); // (external, no body)
721func_art_initialize_type_and_verify_access_from_code->setCallingConv(CallingConv::C);
722}
723AttrListPtr func_art_initialize_type_and_verify_access_from_code_PAL;
724func_art_initialize_type_and_verify_access_from_code->setAttributes(func_art_initialize_type_and_verify_access_from_code_PAL);
725
726Function* func_art_resolve_string_from_code = mod->getFunction("art_resolve_string_from_code");
727if (!func_art_resolve_string_from_code) {
728func_art_resolve_string_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700729 /*Type=*/FuncTy_18,
Logan Chien42e0e152012-01-13 15:42:36 +0800730 /*Linkage=*/GlobalValue::ExternalLinkage,
731 /*Name=*/"art_resolve_string_from_code", mod); // (external, no body)
732func_art_resolve_string_from_code->setCallingConv(CallingConv::C);
733}
734AttrListPtr func_art_resolve_string_from_code_PAL;
735func_art_resolve_string_from_code->setAttributes(func_art_resolve_string_from_code_PAL);
736
Logan Chien42e0e152012-01-13 15:42:36 +0800737Function* func_art_set32_static_from_code = mod->getFunction("art_set32_static_from_code");
738if (!func_art_set32_static_from_code) {
739func_art_set32_static_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700740 /*Type=*/FuncTy_19,
Logan Chien42e0e152012-01-13 15:42:36 +0800741 /*Linkage=*/GlobalValue::ExternalLinkage,
742 /*Name=*/"art_set32_static_from_code", mod); // (external, no body)
743func_art_set32_static_from_code->setCallingConv(CallingConv::C);
744}
745AttrListPtr func_art_set32_static_from_code_PAL;
746func_art_set32_static_from_code->setAttributes(func_art_set32_static_from_code_PAL);
747
748Function* func_art_set64_static_from_code = mod->getFunction("art_set64_static_from_code");
749if (!func_art_set64_static_from_code) {
750func_art_set64_static_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700751 /*Type=*/FuncTy_20,
Logan Chien42e0e152012-01-13 15:42:36 +0800752 /*Linkage=*/GlobalValue::ExternalLinkage,
753 /*Name=*/"art_set64_static_from_code", mod); // (external, no body)
754func_art_set64_static_from_code->setCallingConv(CallingConv::C);
755}
756AttrListPtr func_art_set64_static_from_code_PAL;
757func_art_set64_static_from_code->setAttributes(func_art_set64_static_from_code_PAL);
758
759Function* func_art_set_obj_static_from_code = mod->getFunction("art_set_obj_static_from_code");
760if (!func_art_set_obj_static_from_code) {
761func_art_set_obj_static_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700762 /*Type=*/FuncTy_21,
Logan Chien42e0e152012-01-13 15:42:36 +0800763 /*Linkage=*/GlobalValue::ExternalLinkage,
764 /*Name=*/"art_set_obj_static_from_code", mod); // (external, no body)
765func_art_set_obj_static_from_code->setCallingConv(CallingConv::C);
766}
767AttrListPtr func_art_set_obj_static_from_code_PAL;
768func_art_set_obj_static_from_code->setAttributes(func_art_set_obj_static_from_code_PAL);
769
770Function* func_art_get32_static_from_code = mod->getFunction("art_get32_static_from_code");
771if (!func_art_get32_static_from_code) {
772func_art_get32_static_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700773 /*Type=*/FuncTy_22,
Logan Chien42e0e152012-01-13 15:42:36 +0800774 /*Linkage=*/GlobalValue::ExternalLinkage,
775 /*Name=*/"art_get32_static_from_code", mod); // (external, no body)
776func_art_get32_static_from_code->setCallingConv(CallingConv::C);
777}
778AttrListPtr func_art_get32_static_from_code_PAL;
779func_art_get32_static_from_code->setAttributes(func_art_get32_static_from_code_PAL);
780
781Function* func_art_get64_static_from_code = mod->getFunction("art_get64_static_from_code");
782if (!func_art_get64_static_from_code) {
783func_art_get64_static_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700784 /*Type=*/FuncTy_23,
Logan Chien42e0e152012-01-13 15:42:36 +0800785 /*Linkage=*/GlobalValue::ExternalLinkage,
786 /*Name=*/"art_get64_static_from_code", mod); // (external, no body)
787func_art_get64_static_from_code->setCallingConv(CallingConv::C);
788}
789AttrListPtr func_art_get64_static_from_code_PAL;
790func_art_get64_static_from_code->setAttributes(func_art_get64_static_from_code_PAL);
791
792Function* func_art_get_obj_static_from_code = mod->getFunction("art_get_obj_static_from_code");
793if (!func_art_get_obj_static_from_code) {
794func_art_get_obj_static_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700795 /*Type=*/FuncTy_24,
Logan Chien42e0e152012-01-13 15:42:36 +0800796 /*Linkage=*/GlobalValue::ExternalLinkage,
797 /*Name=*/"art_get_obj_static_from_code", mod); // (external, no body)
798func_art_get_obj_static_from_code->setCallingConv(CallingConv::C);
799}
800AttrListPtr func_art_get_obj_static_from_code_PAL;
801func_art_get_obj_static_from_code->setAttributes(func_art_get_obj_static_from_code_PAL);
802
803Function* func_art_set32_instance_from_code = mod->getFunction("art_set32_instance_from_code");
804if (!func_art_set32_instance_from_code) {
805func_art_set32_instance_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700806 /*Type=*/FuncTy_25,
Logan Chien42e0e152012-01-13 15:42:36 +0800807 /*Linkage=*/GlobalValue::ExternalLinkage,
808 /*Name=*/"art_set32_instance_from_code", mod); // (external, no body)
809func_art_set32_instance_from_code->setCallingConv(CallingConv::C);
810}
811AttrListPtr func_art_set32_instance_from_code_PAL;
812func_art_set32_instance_from_code->setAttributes(func_art_set32_instance_from_code_PAL);
813
814Function* func_art_set64_instance_from_code = mod->getFunction("art_set64_instance_from_code");
815if (!func_art_set64_instance_from_code) {
816func_art_set64_instance_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700817 /*Type=*/FuncTy_26,
Logan Chien42e0e152012-01-13 15:42:36 +0800818 /*Linkage=*/GlobalValue::ExternalLinkage,
819 /*Name=*/"art_set64_instance_from_code", mod); // (external, no body)
820func_art_set64_instance_from_code->setCallingConv(CallingConv::C);
821}
822AttrListPtr func_art_set64_instance_from_code_PAL;
823func_art_set64_instance_from_code->setAttributes(func_art_set64_instance_from_code_PAL);
824
825Function* func_art_set_obj_instance_from_code = mod->getFunction("art_set_obj_instance_from_code");
826if (!func_art_set_obj_instance_from_code) {
827func_art_set_obj_instance_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700828 /*Type=*/FuncTy_27,
Logan Chien42e0e152012-01-13 15:42:36 +0800829 /*Linkage=*/GlobalValue::ExternalLinkage,
830 /*Name=*/"art_set_obj_instance_from_code", mod); // (external, no body)
831func_art_set_obj_instance_from_code->setCallingConv(CallingConv::C);
832}
833AttrListPtr func_art_set_obj_instance_from_code_PAL;
834func_art_set_obj_instance_from_code->setAttributes(func_art_set_obj_instance_from_code_PAL);
835
836Function* func_art_get32_instance_from_code = mod->getFunction("art_get32_instance_from_code");
837if (!func_art_get32_instance_from_code) {
838func_art_get32_instance_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700839 /*Type=*/FuncTy_21,
Logan Chien42e0e152012-01-13 15:42:36 +0800840 /*Linkage=*/GlobalValue::ExternalLinkage,
841 /*Name=*/"art_get32_instance_from_code", mod); // (external, no body)
842func_art_get32_instance_from_code->setCallingConv(CallingConv::C);
843}
844AttrListPtr func_art_get32_instance_from_code_PAL;
845func_art_get32_instance_from_code->setAttributes(func_art_get32_instance_from_code_PAL);
846
847Function* func_art_get64_instance_from_code = mod->getFunction("art_get64_instance_from_code");
848if (!func_art_get64_instance_from_code) {
849func_art_get64_instance_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700850 /*Type=*/FuncTy_28,
Logan Chien42e0e152012-01-13 15:42:36 +0800851 /*Linkage=*/GlobalValue::ExternalLinkage,
852 /*Name=*/"art_get64_instance_from_code", mod); // (external, no body)
853func_art_get64_instance_from_code->setCallingConv(CallingConv::C);
854}
855AttrListPtr func_art_get64_instance_from_code_PAL;
856func_art_get64_instance_from_code->setAttributes(func_art_get64_instance_from_code_PAL);
857
858Function* func_art_get_obj_instance_from_code = mod->getFunction("art_get_obj_instance_from_code");
859if (!func_art_get_obj_instance_from_code) {
860func_art_get_obj_instance_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700861 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800862 /*Linkage=*/GlobalValue::ExternalLinkage,
863 /*Name=*/"art_get_obj_instance_from_code", mod); // (external, no body)
864func_art_get_obj_instance_from_code->setCallingConv(CallingConv::C);
865}
866AttrListPtr func_art_get_obj_instance_from_code_PAL;
867func_art_get_obj_instance_from_code->setAttributes(func_art_get_obj_instance_from_code_PAL);
868
TDYa12728f1a142012-03-15 21:51:52 -0700869Function* func_art_decode_jobject_in_thread = mod->getFunction("art_decode_jobject_in_thread");
870if (!func_art_decode_jobject_in_thread) {
871func_art_decode_jobject_in_thread = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700872 /*Type=*/FuncTy_29,
TDYa12728f1a142012-03-15 21:51:52 -0700873 /*Linkage=*/GlobalValue::ExternalLinkage,
874 /*Name=*/"art_decode_jobject_in_thread", mod); // (external, no body)
875func_art_decode_jobject_in_thread->setCallingConv(CallingConv::C);
876}
877AttrListPtr func_art_decode_jobject_in_thread_PAL;
878func_art_decode_jobject_in_thread->setAttributes(func_art_decode_jobject_in_thread_PAL);
879
Logan Chien86f50672012-04-24 13:08:45 +0800880Function* func_art_fill_array_data_from_code = mod->getFunction("art_fill_array_data_from_code");
881if (!func_art_fill_array_data_from_code) {
882func_art_fill_array_data_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700883 /*Type=*/FuncTy_30,
Logan Chien86f50672012-04-24 13:08:45 +0800884 /*Linkage=*/GlobalValue::ExternalLinkage,
885 /*Name=*/"art_fill_array_data_from_code", mod); // (external, no body)
886func_art_fill_array_data_from_code->setCallingConv(CallingConv::C);
887}
888AttrListPtr func_art_fill_array_data_from_code_PAL;
889func_art_fill_array_data_from_code->setAttributes(func_art_fill_array_data_from_code_PAL);
890
Logan Chien42e0e152012-01-13 15:42:36 +0800891Function* func_art_is_assignable_from_code = mod->getFunction("art_is_assignable_from_code");
892if (!func_art_is_assignable_from_code) {
893func_art_is_assignable_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700894 /*Type=*/FuncTy_31,
Logan Chien42e0e152012-01-13 15:42:36 +0800895 /*Linkage=*/GlobalValue::ExternalLinkage,
896 /*Name=*/"art_is_assignable_from_code", mod); // (external, no body)
897func_art_is_assignable_from_code->setCallingConv(CallingConv::C);
898}
899AttrListPtr func_art_is_assignable_from_code_PAL;
900func_art_is_assignable_from_code->setAttributes(func_art_is_assignable_from_code_PAL);
901
902Function* func_art_check_cast_from_code = mod->getFunction("art_check_cast_from_code");
903if (!func_art_check_cast_from_code) {
904func_art_check_cast_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700905 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800906 /*Linkage=*/GlobalValue::ExternalLinkage,
907 /*Name=*/"art_check_cast_from_code", mod); // (external, no body)
908func_art_check_cast_from_code->setCallingConv(CallingConv::C);
909}
910AttrListPtr func_art_check_cast_from_code_PAL;
911func_art_check_cast_from_code->setAttributes(func_art_check_cast_from_code_PAL);
912
TDYa1271b86d072012-04-05 17:38:56 -0700913Function* func_art_check_put_array_element_from_code = mod->getFunction("art_check_put_array_element_from_code");
914if (!func_art_check_put_array_element_from_code) {
915func_art_check_put_array_element_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700916 /*Type=*/FuncTy_5,
TDYa1271b86d072012-04-05 17:38:56 -0700917 /*Linkage=*/GlobalValue::ExternalLinkage,
918 /*Name=*/"art_check_put_array_element_from_code", mod); // (external, no body)
919func_art_check_put_array_element_from_code->setCallingConv(CallingConv::C);
920}
921AttrListPtr func_art_check_put_array_element_from_code_PAL;
922func_art_check_put_array_element_from_code->setAttributes(func_art_check_put_array_element_from_code_PAL);
923
jeffhao41005dd2012-05-09 17:58:52 -0700924Function* func_art_d2l = mod->getFunction("art_d2l");
925if (!func_art_d2l) {
926func_art_d2l = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700927 /*Type=*/FuncTy_32,
TDYa127a4746872012-04-11 23:48:55 -0700928 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700929 /*Name=*/"art_d2l", mod); // (external, no body)
930func_art_d2l->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700931}
jeffhao41005dd2012-05-09 17:58:52 -0700932AttrListPtr func_art_d2l_PAL;
933func_art_d2l->setAttributes(func_art_d2l_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700934
jeffhao41005dd2012-05-09 17:58:52 -0700935Function* func_art_d2i = mod->getFunction("art_d2i");
936if (!func_art_d2i) {
937func_art_d2i = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700938 /*Type=*/FuncTy_33,
TDYa127a4746872012-04-11 23:48:55 -0700939 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700940 /*Name=*/"art_d2i", mod); // (external, no body)
941func_art_d2i->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700942}
jeffhao41005dd2012-05-09 17:58:52 -0700943AttrListPtr func_art_d2i_PAL;
944func_art_d2i->setAttributes(func_art_d2i_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700945
jeffhao41005dd2012-05-09 17:58:52 -0700946Function* func_art_f2l = mod->getFunction("art_f2l");
947if (!func_art_f2l) {
948func_art_f2l = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700949 /*Type=*/FuncTy_34,
TDYa127a4746872012-04-11 23:48:55 -0700950 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700951 /*Name=*/"art_f2l", mod); // (external, no body)
952func_art_f2l->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700953}
jeffhao41005dd2012-05-09 17:58:52 -0700954AttrListPtr func_art_f2l_PAL;
955func_art_f2l->setAttributes(func_art_f2l_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700956
jeffhao41005dd2012-05-09 17:58:52 -0700957Function* func_art_f2i = mod->getFunction("art_f2i");
958if (!func_art_f2i) {
959func_art_f2i = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700960 /*Type=*/FuncTy_35,
TDYa127a4746872012-04-11 23:48:55 -0700961 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700962 /*Name=*/"art_f2i", mod); // (external, no body)
963func_art_f2i->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700964}
jeffhao41005dd2012-05-09 17:58:52 -0700965AttrListPtr func_art_f2i_PAL;
966func_art_f2i->setAttributes(func_art_f2i_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700967
TDYa12783bb6622012-04-17 02:20:34 -0700968Function* func_art_mark_gc_card_from_code = mod->getFunction("art_mark_gc_card_from_code");
969if (!func_art_mark_gc_card_from_code) {
970func_art_mark_gc_card_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700971 /*Type=*/FuncTy_5,
TDYa12783bb6622012-04-17 02:20:34 -0700972 /*Linkage=*/GlobalValue::ExternalLinkage,
973 /*Name=*/"art_mark_gc_card_from_code", mod); // (external, no body)
974func_art_mark_gc_card_from_code->setCallingConv(CallingConv::C);
975}
976AttrListPtr func_art_mark_gc_card_from_code_PAL;
977func_art_mark_gc_card_from_code->setAttributes(func_art_mark_gc_card_from_code_PAL);
978
TDYa1270b686e52012-04-09 22:43:35 -0700979Function* func_art_fix_stub_from_code = mod->getFunction("art_fix_stub_from_code");
980if (!func_art_fix_stub_from_code) {
981func_art_fix_stub_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700982 /*Type=*/FuncTy_36,
TDYa12785321912012-04-01 15:24:56 -0700983 /*Linkage=*/GlobalValue::ExternalLinkage,
TDYa1270b686e52012-04-09 22:43:35 -0700984 /*Name=*/"art_fix_stub_from_code", mod); // (external, no body)
985func_art_fix_stub_from_code->setCallingConv(CallingConv::C);
TDYa12785321912012-04-01 15:24:56 -0700986}
TDYa1270b686e52012-04-09 22:43:35 -0700987AttrListPtr func_art_fix_stub_from_code_PAL;
988func_art_fix_stub_from_code->setAttributes(func_art_fix_stub_from_code_PAL);
TDYa12785321912012-04-01 15:24:56 -0700989
TDYa1275bb86012012-04-11 05:57:28 -0700990Function* func_art_proxy_invoke_handler_from_code = mod->getFunction("art_proxy_invoke_handler_from_code");
991if (!func_art_proxy_invoke_handler_from_code) {
992func_art_proxy_invoke_handler_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700993 /*Type=*/FuncTy_37,
TDYa1275bb86012012-04-11 05:57:28 -0700994 /*Linkage=*/GlobalValue::ExternalLinkage,
995 /*Name=*/"art_proxy_invoke_handler_from_code", mod); // (external, no body)
996func_art_proxy_invoke_handler_from_code->setCallingConv(CallingConv::C);
997}
998AttrListPtr func_art_proxy_invoke_handler_from_code_PAL;
999func_art_proxy_invoke_handler_from_code->setAttributes(func_art_proxy_invoke_handler_from_code_PAL);
1000
Logan Chien42e0e152012-01-13 15:42:36 +08001001// Global Variable Declarations
1002
1003
1004// Constant Definitions
1005
1006// Global Variable Definitions
1007
1008// Function Definitions
1009
1010return mod;
1011
1012}
Logan Chiene75a8cc2012-02-24 12:26:43 +08001013
1014} // namespace compiler_llvm
1015} // namespace art