blob: f25a88bd63eb50541ef3ae37409bd739712c1352 [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;
TDYa127853cd092012-04-21 22:15:31 -070086FuncTy_6_args.push_back(PointerTy_2);
Logan Chien42e0e152012-01-13 15:42:36 +080087FunctionType* FuncTy_6 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -070088 /*Result=*/PointerTy_2,
Logan Chien42e0e152012-01-13 15:42:36 +080089 /*Params=*/FuncTy_6_args,
90 /*isVarArg=*/false);
91
92std::vector<Type*>FuncTy_7_args;
TDYa1270de52be2012-05-27 20:49:31 -070093FuncTy_7_args.push_back(PointerTy_2);
Logan Chien42e0e152012-01-13 15:42:36 +080094FunctionType* FuncTy_7 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -070095 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +080096 /*Params=*/FuncTy_7_args,
97 /*isVarArg=*/false);
98
99std::vector<Type*>FuncTy_8_args;
Logan Chien42e0e152012-01-13 15:42:36 +0800100FunctionType* FuncTy_8 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700101 /*Result=*/IntegerType::get(mod->getContext(), 1),
Logan Chien42e0e152012-01-13 15:42:36 +0800102 /*Params=*/FuncTy_8_args,
103 /*isVarArg=*/false);
104
105std::vector<Type*>FuncTy_9_args;
Logan Chien42e0e152012-01-13 15:42:36 +0800106FunctionType* FuncTy_9 = FunctionType::get(
Logan Chien3f71e702012-02-17 18:45:27 +0800107 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800108 /*Params=*/FuncTy_9_args,
109 /*isVarArg=*/false);
110
111std::vector<Type*>FuncTy_10_args;
Logan Chien9e5f5c12012-04-10 13:51:45 +0800112FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1270de52be2012-05-27 20:49:31 -0700113FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800114FunctionType* FuncTy_10 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800115 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800116 /*Params=*/FuncTy_10_args,
117 /*isVarArg=*/false);
118
119std::vector<Type*>FuncTy_11_args;
TDYa127706e9b62012-04-19 12:24:26 -0700120FuncTy_11_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800121FunctionType* FuncTy_11 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700122 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800123 /*Params=*/FuncTy_11_args,
124 /*isVarArg=*/false);
125
126std::vector<Type*>FuncTy_12_args;
TDYa127706e9b62012-04-19 12:24:26 -0700127FuncTy_12_args.push_back(PointerTy_1);
Logan Chien3f71e702012-02-17 18:45:27 +0800128FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1270de52be2012-05-27 20:49:31 -0700129FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800130FunctionType* FuncTy_12 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700131 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800132 /*Params=*/FuncTy_12_args,
133 /*isVarArg=*/false);
134
135std::vector<Type*>FuncTy_13_args;
TDYa1270de52be2012-05-27 20:49:31 -0700136FuncTy_13_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800137FuncTy_13_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800138FunctionType* FuncTy_13 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700139 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800140 /*Params=*/FuncTy_13_args,
141 /*isVarArg=*/false);
142
143std::vector<Type*>FuncTy_14_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800144FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien1b0a1b72012-03-15 06:20:17 +0800145FuncTy_14_args.push_back(PointerTy_1);
TDYa127706e9b62012-04-19 12:24:26 -0700146FuncTy_14_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800147FunctionType* FuncTy_14 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700148 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800149 /*Params=*/FuncTy_14_args,
150 /*isVarArg=*/false);
151
152std::vector<Type*>FuncTy_15_args;
153FuncTy_15_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien9e5f5c12012-04-10 13:51:45 +0800154FuncTy_15_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700155FuncTy_15_args.push_back(IntegerType::get(mod->getContext(), 32));
156FuncTy_15_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800157FunctionType* FuncTy_15 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700158 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800159 /*Params=*/FuncTy_15_args,
160 /*isVarArg=*/false);
161
162std::vector<Type*>FuncTy_16_args;
Logan Chien1b0a1b72012-03-15 06:20:17 +0800163FuncTy_16_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa127da83d972012-04-18 00:21:49 -0700164FuncTy_16_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800165FunctionType* FuncTy_16 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700166 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800167 /*Params=*/FuncTy_16_args,
168 /*isVarArg=*/false);
169
170std::vector<Type*>FuncTy_17_args;
Logan Chien9e5f5c12012-04-10 13:51:45 +0800171FuncTy_17_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1270de52be2012-05-27 20:49:31 -0700172FuncTy_17_args.push_back(PointerTy_1);
173FuncTy_17_args.push_back(PointerTy_1);
174FuncTy_17_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800175FunctionType* FuncTy_17 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700176 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800177 /*Params=*/FuncTy_17_args,
178 /*isVarArg=*/false);
179
180std::vector<Type*>FuncTy_18_args;
181FuncTy_18_args.push_back(PointerTy_1);
TDYa127da83d972012-04-18 00:21:49 -0700182FuncTy_18_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800183FunctionType* FuncTy_18 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700184 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800185 /*Params=*/FuncTy_18_args,
186 /*isVarArg=*/false);
187
188std::vector<Type*>FuncTy_19_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800189FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800190FuncTy_19_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700191FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800192FunctionType* FuncTy_19 = FunctionType::get(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800193 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800194 /*Params=*/FuncTy_19_args,
195 /*isVarArg=*/false);
196
Logan Chien3f71e702012-02-17 18:45:27 +0800197std::vector<Type*>FuncTy_20_args;
Logan Chien3b2b2e72012-03-06 16:11:45 +0800198FuncTy_20_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chiena6b2ca62012-03-06 15:50:54 +0800199FuncTy_20_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700200FuncTy_20_args.push_back(IntegerType::get(mod->getContext(), 64));
Logan Chien3f71e702012-02-17 18:45:27 +0800201FunctionType* FuncTy_20 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800202 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3f71e702012-02-17 18:45:27 +0800203 /*Params=*/FuncTy_20_args,
204 /*isVarArg=*/false);
205
206std::vector<Type*>FuncTy_21_args;
Logan Chien3b2b2e72012-03-06 16:11:45 +0800207FuncTy_21_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3f71e702012-02-17 18:45:27 +0800208FuncTy_21_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700209FuncTy_21_args.push_back(PointerTy_1);
Logan Chien3f71e702012-02-17 18:45:27 +0800210FunctionType* FuncTy_21 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700211 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chiena6b2ca62012-03-06 15:50:54 +0800212 /*Params=*/FuncTy_21_args,
Logan Chien3f71e702012-02-17 18:45:27 +0800213 /*isVarArg=*/false);
214
Logan Chien3b2b2e72012-03-06 16:11:45 +0800215std::vector<Type*>FuncTy_22_args;
216FuncTy_22_args.push_back(IntegerType::get(mod->getContext(), 32));
217FuncTy_22_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800218FunctionType* FuncTy_22 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700219 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800220 /*Params=*/FuncTy_22_args,
221 /*isVarArg=*/false);
222
223std::vector<Type*>FuncTy_23_args;
224FuncTy_23_args.push_back(IntegerType::get(mod->getContext(), 32));
225FuncTy_23_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800226FunctionType* FuncTy_23 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700227 /*Result=*/IntegerType::get(mod->getContext(), 64),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800228 /*Params=*/FuncTy_23_args,
229 /*isVarArg=*/false);
230
231std::vector<Type*>FuncTy_24_args;
232FuncTy_24_args.push_back(IntegerType::get(mod->getContext(), 32));
233FuncTy_24_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800234FunctionType* FuncTy_24 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700235 /*Result=*/PointerTy_1,
Logan Chien3b2b2e72012-03-06 16:11:45 +0800236 /*Params=*/FuncTy_24_args,
237 /*isVarArg=*/false);
238
239std::vector<Type*>FuncTy_25_args;
Logan Chien9e5f5c12012-04-10 13:51:45 +0800240FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800241FuncTy_25_args.push_back(PointerTy_1);
242FuncTy_25_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700243FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800244FunctionType* FuncTy_25 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700245 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800246 /*Params=*/FuncTy_25_args,
247 /*isVarArg=*/false);
248
249std::vector<Type*>FuncTy_26_args;
TDYa127da83d972012-04-18 00:21:49 -0700250FuncTy_26_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800251FuncTy_26_args.push_back(PointerTy_1);
252FuncTy_26_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700253FuncTy_26_args.push_back(IntegerType::get(mod->getContext(), 64));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800254FunctionType* FuncTy_26 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700255 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800256 /*Params=*/FuncTy_26_args,
257 /*isVarArg=*/false);
258
TDYa12728f1a142012-03-15 21:51:52 -0700259std::vector<Type*>FuncTy_27_args;
TDYa127706e9b62012-04-19 12:24:26 -0700260FuncTy_27_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa12728f1a142012-03-15 21:51:52 -0700261FuncTy_27_args.push_back(PointerTy_1);
262FuncTy_27_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700263FuncTy_27_args.push_back(PointerTy_1);
TDYa12728f1a142012-03-15 21:51:52 -0700264FunctionType* FuncTy_27 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700265 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa12728f1a142012-03-15 21:51:52 -0700266 /*Params=*/FuncTy_27_args,
267 /*isVarArg=*/false);
268
TDYa12785321912012-04-01 15:24:56 -0700269std::vector<Type*>FuncTy_28_args;
TDYa1270de52be2012-05-27 20:49:31 -0700270FuncTy_28_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa12785321912012-04-01 15:24:56 -0700271FuncTy_28_args.push_back(PointerTy_1);
272FuncTy_28_args.push_back(PointerTy_1);
TDYa12785321912012-04-01 15:24:56 -0700273FunctionType* FuncTy_28 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700274 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa12785321912012-04-01 15:24:56 -0700275 /*Params=*/FuncTy_28_args,
276 /*isVarArg=*/false);
277
TDYa1270b686e52012-04-09 22:43:35 -0700278std::vector<Type*>FuncTy_29_args;
TDYa127da83d972012-04-18 00:21:49 -0700279FuncTy_29_args.push_back(PointerTy_1);
280FuncTy_29_args.push_back(PointerTy_1);
TDYa1270b686e52012-04-09 22:43:35 -0700281FunctionType* FuncTy_29 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700282 /*Result=*/PointerTy_1,
TDYa1270b686e52012-04-09 22:43:35 -0700283 /*Params=*/FuncTy_29_args,
284 /*isVarArg=*/false);
285
Logan Chien9e5f5c12012-04-10 13:51:45 +0800286std::vector<Type*>FuncTy_30_args;
Logan Chien86f50672012-04-24 13:08:45 +0800287FuncTy_30_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700288FuncTy_30_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien86f50672012-04-24 13:08:45 +0800289FuncTy_30_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700290FuncTy_30_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien9e5f5c12012-04-10 13:51:45 +0800291FunctionType* FuncTy_30 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700292 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien9e5f5c12012-04-10 13:51:45 +0800293 /*Params=*/FuncTy_30_args,
294 /*isVarArg=*/false);
295
TDYa1275bb86012012-04-11 05:57:28 -0700296std::vector<Type*>FuncTy_31_args;
TDYa1270de52be2012-05-27 20:49:31 -0700297FuncTy_31_args.push_back(PointerTy_1);
298FuncTy_31_args.push_back(PointerTy_1);
TDYa1275bb86012012-04-11 05:57:28 -0700299FunctionType* FuncTy_31 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700300 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa1275bb86012012-04-11 05:57:28 -0700301 /*Params=*/FuncTy_31_args,
TDYa127a4746872012-04-11 23:48:55 -0700302 /*isVarArg=*/false);
303
304std::vector<Type*>FuncTy_32_args;
Logan Chien86f50672012-04-24 13:08:45 +0800305FuncTy_32_args.push_back(Type::getDoubleTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700306FunctionType* FuncTy_32 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700307 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa127a4746872012-04-11 23:48:55 -0700308 /*Params=*/FuncTy_32_args,
309 /*isVarArg=*/false);
310
311std::vector<Type*>FuncTy_33_args;
TDYa1270de52be2012-05-27 20:49:31 -0700312FuncTy_33_args.push_back(Type::getDoubleTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700313FunctionType* FuncTy_33 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700314 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa127a4746872012-04-11 23:48:55 -0700315 /*Params=*/FuncTy_33_args,
316 /*isVarArg=*/false);
317
318std::vector<Type*>FuncTy_34_args;
Logan Chien86f50672012-04-24 13:08:45 +0800319FuncTy_34_args.push_back(Type::getFloatTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700320FunctionType* FuncTy_34 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700321 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa127a4746872012-04-11 23:48:55 -0700322 /*Params=*/FuncTy_34_args,
323 /*isVarArg=*/false);
324
325std::vector<Type*>FuncTy_35_args;
TDYa1270de52be2012-05-27 20:49:31 -0700326FuncTy_35_args.push_back(Type::getFloatTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700327FunctionType* FuncTy_35 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700328 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa12705fe3b62012-04-21 00:28:54 -0700329 /*Params=*/FuncTy_35_args,
Logan Chien86f50672012-04-24 13:08:45 +0800330 /*isVarArg=*/false);
331
332std::vector<Type*>FuncTy_36_args;
333FuncTy_36_args.push_back(PointerTy_1);
334FunctionType* FuncTy_36 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700335 /*Result=*/PointerTy_1,
Logan Chien86f50672012-04-24 13:08:45 +0800336 /*Params=*/FuncTy_36_args,
TDYa1270de52be2012-05-27 20:49:31 -0700337 /*isVarArg=*/false);
338
339std::vector<Type*>FuncTy_37_args;
340FuncTy_37_args.push_back(PointerTy_1);
341FunctionType* FuncTy_37 = FunctionType::get(
342 /*Result=*/Type::getVoidTy(mod->getContext()),
343 /*Params=*/FuncTy_37_args,
TDYa1275bb86012012-04-11 05:57:28 -0700344 /*isVarArg=*/true);
345
Logan Chien42e0e152012-01-13 15:42:36 +0800346
347// Function Declarations
348
349Function* func___art_type_list = mod->getFunction("__art_type_list");
350if (!func___art_type_list) {
351func___art_type_list = Function::Create(
352 /*Type=*/FuncTy_0,
353 /*Linkage=*/GlobalValue::ExternalLinkage,
354 /*Name=*/"__art_type_list", mod); // (external, no body)
355func___art_type_list->setCallingConv(CallingConv::C);
356}
357AttrListPtr func___art_type_list_PAL;
358func___art_type_list->setAttributes(func___art_type_list_PAL);
359
360Function* func_art_get_current_thread_from_code = mod->getFunction("art_get_current_thread_from_code");
361if (!func_art_get_current_thread_from_code) {
362func_art_get_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800363 /*Type=*/FuncTy_3,
Logan Chien42e0e152012-01-13 15:42:36 +0800364 /*Linkage=*/GlobalValue::ExternalLinkage,
365 /*Name=*/"art_get_current_thread_from_code", mod); // (external, no body)
366func_art_get_current_thread_from_code->setCallingConv(CallingConv::C);
367}
368AttrListPtr func_art_get_current_thread_from_code_PAL;
369func_art_get_current_thread_from_code->setAttributes(func_art_get_current_thread_from_code_PAL);
370
371Function* func_art_set_current_thread_from_code = mod->getFunction("art_set_current_thread_from_code");
372if (!func_art_set_current_thread_from_code) {
373func_art_set_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800374 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800375 /*Linkage=*/GlobalValue::ExternalLinkage,
376 /*Name=*/"art_set_current_thread_from_code", mod); // (external, no body)
377func_art_set_current_thread_from_code->setCallingConv(CallingConv::C);
378}
379AttrListPtr func_art_set_current_thread_from_code_PAL;
380func_art_set_current_thread_from_code->setAttributes(func_art_set_current_thread_from_code_PAL);
381
382Function* func_art_lock_object_from_code = mod->getFunction("art_lock_object_from_code");
383if (!func_art_lock_object_from_code) {
384func_art_lock_object_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700385 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800386 /*Linkage=*/GlobalValue::ExternalLinkage,
387 /*Name=*/"art_lock_object_from_code", mod); // (external, no body)
388func_art_lock_object_from_code->setCallingConv(CallingConv::C);
389}
390AttrListPtr func_art_lock_object_from_code_PAL;
391func_art_lock_object_from_code->setAttributes(func_art_lock_object_from_code_PAL);
392
393Function* func_art_unlock_object_from_code = mod->getFunction("art_unlock_object_from_code");
394if (!func_art_unlock_object_from_code) {
395func_art_unlock_object_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700396 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800397 /*Linkage=*/GlobalValue::ExternalLinkage,
398 /*Name=*/"art_unlock_object_from_code", mod); // (external, no body)
399func_art_unlock_object_from_code->setCallingConv(CallingConv::C);
400}
401AttrListPtr func_art_unlock_object_from_code_PAL;
402func_art_unlock_object_from_code->setAttributes(func_art_unlock_object_from_code_PAL);
403
404Function* func_art_test_suspend_from_code = mod->getFunction("art_test_suspend_from_code");
405if (!func_art_test_suspend_from_code) {
406func_art_test_suspend_from_code = Function::Create(
TDYa127853cd092012-04-21 22:15:31 -0700407 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800408 /*Linkage=*/GlobalValue::ExternalLinkage,
409 /*Name=*/"art_test_suspend_from_code", mod); // (external, no body)
410func_art_test_suspend_from_code->setCallingConv(CallingConv::C);
411}
412AttrListPtr func_art_test_suspend_from_code_PAL;
413func_art_test_suspend_from_code->setAttributes(func_art_test_suspend_from_code_PAL);
414
Logan Chien3f71e702012-02-17 18:45:27 +0800415Function* func_art_push_shadow_frame_from_code = mod->getFunction("art_push_shadow_frame_from_code");
416if (!func_art_push_shadow_frame_from_code) {
417func_art_push_shadow_frame_from_code = Function::Create(
TDYa127853cd092012-04-21 22:15:31 -0700418 /*Type=*/FuncTy_6,
Logan Chien3f71e702012-02-17 18:45:27 +0800419 /*Linkage=*/GlobalValue::ExternalLinkage,
420 /*Name=*/"art_push_shadow_frame_from_code", mod); // (external, no body)
421func_art_push_shadow_frame_from_code->setCallingConv(CallingConv::C);
422}
423AttrListPtr func_art_push_shadow_frame_from_code_PAL;
424func_art_push_shadow_frame_from_code->setAttributes(func_art_push_shadow_frame_from_code_PAL);
425
426Function* func_art_pop_shadow_frame_from_code = mod->getFunction("art_pop_shadow_frame_from_code");
427if (!func_art_pop_shadow_frame_from_code) {
428func_art_pop_shadow_frame_from_code = Function::Create(
TDYa127853cd092012-04-21 22:15:31 -0700429 /*Type=*/FuncTy_7,
Logan Chien3f71e702012-02-17 18:45:27 +0800430 /*Linkage=*/GlobalValue::ExternalLinkage,
431 /*Name=*/"art_pop_shadow_frame_from_code", mod); // (external, no body)
432func_art_pop_shadow_frame_from_code->setCallingConv(CallingConv::C);
433}
434AttrListPtr func_art_pop_shadow_frame_from_code_PAL;
435func_art_pop_shadow_frame_from_code->setAttributes(func_art_pop_shadow_frame_from_code_PAL);
436
Logan Chien42e0e152012-01-13 15:42:36 +0800437Function* func_art_is_exception_pending_from_code = mod->getFunction("art_is_exception_pending_from_code");
438if (!func_art_is_exception_pending_from_code) {
439func_art_is_exception_pending_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700440 /*Type=*/FuncTy_8,
Logan Chien42e0e152012-01-13 15:42:36 +0800441 /*Linkage=*/GlobalValue::ExternalLinkage,
442 /*Name=*/"art_is_exception_pending_from_code", mod); // (external, no body)
443func_art_is_exception_pending_from_code->setCallingConv(CallingConv::C);
444}
445AttrListPtr func_art_is_exception_pending_from_code_PAL;
446func_art_is_exception_pending_from_code->setAttributes(func_art_is_exception_pending_from_code_PAL);
447
448Function* func_art_throw_div_zero_from_code = mod->getFunction("art_throw_div_zero_from_code");
449if (!func_art_throw_div_zero_from_code) {
450func_art_throw_div_zero_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700451 /*Type=*/FuncTy_9,
Logan Chien42e0e152012-01-13 15:42:36 +0800452 /*Linkage=*/GlobalValue::ExternalLinkage,
453 /*Name=*/"art_throw_div_zero_from_code", mod); // (external, no body)
454func_art_throw_div_zero_from_code->setCallingConv(CallingConv::C);
455}
456AttrListPtr func_art_throw_div_zero_from_code_PAL;
457func_art_throw_div_zero_from_code->setAttributes(func_art_throw_div_zero_from_code_PAL);
458
459Function* func_art_throw_array_bounds_from_code = mod->getFunction("art_throw_array_bounds_from_code");
460if (!func_art_throw_array_bounds_from_code) {
461func_art_throw_array_bounds_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700462 /*Type=*/FuncTy_10,
Logan Chien42e0e152012-01-13 15:42:36 +0800463 /*Linkage=*/GlobalValue::ExternalLinkage,
464 /*Name=*/"art_throw_array_bounds_from_code", mod); // (external, no body)
465func_art_throw_array_bounds_from_code->setCallingConv(CallingConv::C);
466}
467AttrListPtr func_art_throw_array_bounds_from_code_PAL;
468func_art_throw_array_bounds_from_code->setAttributes(func_art_throw_array_bounds_from_code_PAL);
469
470Function* func_art_throw_no_such_method_from_code = mod->getFunction("art_throw_no_such_method_from_code");
471if (!func_art_throw_no_such_method_from_code) {
472func_art_throw_no_such_method_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700473 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800474 /*Linkage=*/GlobalValue::ExternalLinkage,
475 /*Name=*/"art_throw_no_such_method_from_code", mod); // (external, no body)
476func_art_throw_no_such_method_from_code->setCallingConv(CallingConv::C);
477}
478AttrListPtr func_art_throw_no_such_method_from_code_PAL;
479func_art_throw_no_such_method_from_code->setAttributes(func_art_throw_no_such_method_from_code_PAL);
480
481Function* func_art_throw_null_pointer_exception_from_code = mod->getFunction("art_throw_null_pointer_exception_from_code");
482if (!func_art_throw_null_pointer_exception_from_code) {
483func_art_throw_null_pointer_exception_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700484 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800485 /*Linkage=*/GlobalValue::ExternalLinkage,
486 /*Name=*/"art_throw_null_pointer_exception_from_code", mod); // (external, no body)
487func_art_throw_null_pointer_exception_from_code->setCallingConv(CallingConv::C);
488}
489AttrListPtr func_art_throw_null_pointer_exception_from_code_PAL;
490func_art_throw_null_pointer_exception_from_code->setAttributes(func_art_throw_null_pointer_exception_from_code_PAL);
491
492Function* func_art_throw_stack_overflow_from_code = mod->getFunction("art_throw_stack_overflow_from_code");
493if (!func_art_throw_stack_overflow_from_code) {
494func_art_throw_stack_overflow_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700495 /*Type=*/FuncTy_9,
Logan Chien42e0e152012-01-13 15:42:36 +0800496 /*Linkage=*/GlobalValue::ExternalLinkage,
497 /*Name=*/"art_throw_stack_overflow_from_code", mod); // (external, no body)
498func_art_throw_stack_overflow_from_code->setCallingConv(CallingConv::C);
499}
500AttrListPtr func_art_throw_stack_overflow_from_code_PAL;
501func_art_throw_stack_overflow_from_code->setAttributes(func_art_throw_stack_overflow_from_code_PAL);
502
503Function* func_art_throw_exception_from_code = mod->getFunction("art_throw_exception_from_code");
504if (!func_art_throw_exception_from_code) {
505func_art_throw_exception_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800506 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800507 /*Linkage=*/GlobalValue::ExternalLinkage,
508 /*Name=*/"art_throw_exception_from_code", mod); // (external, no body)
509func_art_throw_exception_from_code->setCallingConv(CallingConv::C);
510}
511AttrListPtr func_art_throw_exception_from_code_PAL;
512func_art_throw_exception_from_code->setAttributes(func_art_throw_exception_from_code_PAL);
513
Logan Chien9e5f5c12012-04-10 13:51:45 +0800514Function* func_art_throw_verification_error_from_code = mod->getFunction("art_throw_verification_error_from_code");
515if (!func_art_throw_verification_error_from_code) {
516func_art_throw_verification_error_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700517 /*Type=*/FuncTy_12,
Logan Chien9e5f5c12012-04-10 13:51:45 +0800518 /*Linkage=*/GlobalValue::ExternalLinkage,
519 /*Name=*/"art_throw_verification_error_from_code", mod); // (external, no body)
520func_art_throw_verification_error_from_code->setCallingConv(CallingConv::C);
521}
522AttrListPtr func_art_throw_verification_error_from_code_PAL;
523func_art_throw_verification_error_from_code->setAttributes(func_art_throw_verification_error_from_code_PAL);
524
Logan Chien42e0e152012-01-13 15:42:36 +0800525Function* func_art_find_catch_block_from_code = mod->getFunction("art_find_catch_block_from_code");
526if (!func_art_find_catch_block_from_code) {
527func_art_find_catch_block_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700528 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800529 /*Linkage=*/GlobalValue::ExternalLinkage,
530 /*Name=*/"art_find_catch_block_from_code", mod); // (external, no body)
531func_art_find_catch_block_from_code->setCallingConv(CallingConv::C);
532}
533AttrListPtr func_art_find_catch_block_from_code_PAL;
534func_art_find_catch_block_from_code->setAttributes(func_art_find_catch_block_from_code_PAL);
535
536Function* func_art_alloc_object_from_code = mod->getFunction("art_alloc_object_from_code");
537if (!func_art_alloc_object_from_code) {
538func_art_alloc_object_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700539 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800540 /*Linkage=*/GlobalValue::ExternalLinkage,
541 /*Name=*/"art_alloc_object_from_code", mod); // (external, no body)
542func_art_alloc_object_from_code->setCallingConv(CallingConv::C);
543}
544AttrListPtr func_art_alloc_object_from_code_PAL;
545func_art_alloc_object_from_code->setAttributes(func_art_alloc_object_from_code_PAL);
546
547Function* func_art_alloc_object_from_code_with_access_check = mod->getFunction("art_alloc_object_from_code_with_access_check");
548if (!func_art_alloc_object_from_code_with_access_check) {
549func_art_alloc_object_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700550 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800551 /*Linkage=*/GlobalValue::ExternalLinkage,
552 /*Name=*/"art_alloc_object_from_code_with_access_check", mod); // (external, no body)
553func_art_alloc_object_from_code_with_access_check->setCallingConv(CallingConv::C);
554}
555AttrListPtr func_art_alloc_object_from_code_with_access_check_PAL;
556func_art_alloc_object_from_code_with_access_check->setAttributes(func_art_alloc_object_from_code_with_access_check_PAL);
557
558Function* func_art_alloc_array_from_code = mod->getFunction("art_alloc_array_from_code");
559if (!func_art_alloc_array_from_code) {
560func_art_alloc_array_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700561 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800562 /*Linkage=*/GlobalValue::ExternalLinkage,
563 /*Name=*/"art_alloc_array_from_code", mod); // (external, no body)
564func_art_alloc_array_from_code->setCallingConv(CallingConv::C);
565}
566AttrListPtr func_art_alloc_array_from_code_PAL;
567func_art_alloc_array_from_code->setAttributes(func_art_alloc_array_from_code_PAL);
568
569Function* func_art_alloc_array_from_code_with_access_check = mod->getFunction("art_alloc_array_from_code_with_access_check");
570if (!func_art_alloc_array_from_code_with_access_check) {
571func_art_alloc_array_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700572 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800573 /*Linkage=*/GlobalValue::ExternalLinkage,
574 /*Name=*/"art_alloc_array_from_code_with_access_check", mod); // (external, no body)
575func_art_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
576}
577AttrListPtr func_art_alloc_array_from_code_with_access_check_PAL;
578func_art_alloc_array_from_code_with_access_check->setAttributes(func_art_alloc_array_from_code_with_access_check_PAL);
579
580Function* func_art_check_and_alloc_array_from_code = mod->getFunction("art_check_and_alloc_array_from_code");
581if (!func_art_check_and_alloc_array_from_code) {
582func_art_check_and_alloc_array_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700583 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800584 /*Linkage=*/GlobalValue::ExternalLinkage,
585 /*Name=*/"art_check_and_alloc_array_from_code", mod); // (external, no body)
586func_art_check_and_alloc_array_from_code->setCallingConv(CallingConv::C);
587}
588AttrListPtr func_art_check_and_alloc_array_from_code_PAL;
589func_art_check_and_alloc_array_from_code->setAttributes(func_art_check_and_alloc_array_from_code_PAL);
590
591Function* func_art_check_and_alloc_array_from_code_with_access_check = mod->getFunction("art_check_and_alloc_array_from_code_with_access_check");
592if (!func_art_check_and_alloc_array_from_code_with_access_check) {
593func_art_check_and_alloc_array_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700594 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800595 /*Linkage=*/GlobalValue::ExternalLinkage,
596 /*Name=*/"art_check_and_alloc_array_from_code_with_access_check", mod); // (external, no body)
597func_art_check_and_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
598}
599AttrListPtr func_art_check_and_alloc_array_from_code_with_access_check_PAL;
600func_art_check_and_alloc_array_from_code_with_access_check->setAttributes(func_art_check_and_alloc_array_from_code_with_access_check_PAL);
601
Logan Chien42e0e152012-01-13 15:42:36 +0800602Function* func_art_find_instance_field_from_code = mod->getFunction("art_find_instance_field_from_code");
603if (!func_art_find_instance_field_from_code) {
604func_art_find_instance_field_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700605 /*Type=*/FuncTy_16,
Logan Chien42e0e152012-01-13 15:42:36 +0800606 /*Linkage=*/GlobalValue::ExternalLinkage,
607 /*Name=*/"art_find_instance_field_from_code", mod); // (external, no body)
608func_art_find_instance_field_from_code->setCallingConv(CallingConv::C);
609}
610AttrListPtr func_art_find_instance_field_from_code_PAL;
611func_art_find_instance_field_from_code->setAttributes(func_art_find_instance_field_from_code_PAL);
612
613Function* func_art_find_static_field_from_code = mod->getFunction("art_find_static_field_from_code");
614if (!func_art_find_static_field_from_code) {
615func_art_find_static_field_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700616 /*Type=*/FuncTy_16,
Logan Chien42e0e152012-01-13 15:42:36 +0800617 /*Linkage=*/GlobalValue::ExternalLinkage,
618 /*Name=*/"art_find_static_field_from_code", mod); // (external, no body)
619func_art_find_static_field_from_code->setCallingConv(CallingConv::C);
620}
621AttrListPtr func_art_find_static_field_from_code_PAL;
622func_art_find_static_field_from_code->setAttributes(func_art_find_static_field_from_code_PAL);
623
Logan Chien7e7fabc2012-04-10 18:59:11 +0800624Function* func_art_find_static_method_from_code_with_access_check = mod->getFunction("art_find_static_method_from_code_with_access_check");
625if (!func_art_find_static_method_from_code_with_access_check) {
626func_art_find_static_method_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700627 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800628 /*Linkage=*/GlobalValue::ExternalLinkage,
629 /*Name=*/"art_find_static_method_from_code_with_access_check", mod); // (external, no body)
630func_art_find_static_method_from_code_with_access_check->setCallingConv(CallingConv::C);
631}
632AttrListPtr func_art_find_static_method_from_code_with_access_check_PAL;
633func_art_find_static_method_from_code_with_access_check->setAttributes(func_art_find_static_method_from_code_with_access_check_PAL);
634
635Function* func_art_find_direct_method_from_code_with_access_check = mod->getFunction("art_find_direct_method_from_code_with_access_check");
636if (!func_art_find_direct_method_from_code_with_access_check) {
637func_art_find_direct_method_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700638 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800639 /*Linkage=*/GlobalValue::ExternalLinkage,
640 /*Name=*/"art_find_direct_method_from_code_with_access_check", mod); // (external, no body)
641func_art_find_direct_method_from_code_with_access_check->setCallingConv(CallingConv::C);
642}
643AttrListPtr func_art_find_direct_method_from_code_with_access_check_PAL;
644func_art_find_direct_method_from_code_with_access_check->setAttributes(func_art_find_direct_method_from_code_with_access_check_PAL);
645
646Function* func_art_find_virtual_method_from_code_with_access_check = mod->getFunction("art_find_virtual_method_from_code_with_access_check");
647if (!func_art_find_virtual_method_from_code_with_access_check) {
648func_art_find_virtual_method_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700649 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800650 /*Linkage=*/GlobalValue::ExternalLinkage,
651 /*Name=*/"art_find_virtual_method_from_code_with_access_check", mod); // (external, no body)
652func_art_find_virtual_method_from_code_with_access_check->setCallingConv(CallingConv::C);
653}
654AttrListPtr func_art_find_virtual_method_from_code_with_access_check_PAL;
655func_art_find_virtual_method_from_code_with_access_check->setAttributes(func_art_find_virtual_method_from_code_with_access_check_PAL);
656
657Function* func_art_find_super_method_from_code_with_access_check = mod->getFunction("art_find_super_method_from_code_with_access_check");
658if (!func_art_find_super_method_from_code_with_access_check) {
659func_art_find_super_method_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700660 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800661 /*Linkage=*/GlobalValue::ExternalLinkage,
662 /*Name=*/"art_find_super_method_from_code_with_access_check", mod); // (external, no body)
663func_art_find_super_method_from_code_with_access_check->setCallingConv(CallingConv::C);
664}
665AttrListPtr func_art_find_super_method_from_code_with_access_check_PAL;
666func_art_find_super_method_from_code_with_access_check->setAttributes(func_art_find_super_method_from_code_with_access_check_PAL);
667
668Function* func_art_find_interface_method_from_code_with_access_check = mod->getFunction("art_find_interface_method_from_code_with_access_check");
669if (!func_art_find_interface_method_from_code_with_access_check) {
670func_art_find_interface_method_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700671 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800672 /*Linkage=*/GlobalValue::ExternalLinkage,
673 /*Name=*/"art_find_interface_method_from_code_with_access_check", mod); // (external, no body)
674func_art_find_interface_method_from_code_with_access_check->setCallingConv(CallingConv::C);
675}
676AttrListPtr func_art_find_interface_method_from_code_with_access_check_PAL;
677func_art_find_interface_method_from_code_with_access_check->setAttributes(func_art_find_interface_method_from_code_with_access_check_PAL);
678
Logan Chien42e0e152012-01-13 15:42:36 +0800679Function* func_art_find_interface_method_from_code = mod->getFunction("art_find_interface_method_from_code");
680if (!func_art_find_interface_method_from_code) {
681func_art_find_interface_method_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700682 /*Type=*/FuncTy_17,
Logan Chien42e0e152012-01-13 15:42:36 +0800683 /*Linkage=*/GlobalValue::ExternalLinkage,
684 /*Name=*/"art_find_interface_method_from_code", mod); // (external, no body)
685func_art_find_interface_method_from_code->setCallingConv(CallingConv::C);
686}
687AttrListPtr func_art_find_interface_method_from_code_PAL;
688func_art_find_interface_method_from_code->setAttributes(func_art_find_interface_method_from_code_PAL);
689
690Function* func_art_initialize_static_storage_from_code = mod->getFunction("art_initialize_static_storage_from_code");
691if (!func_art_initialize_static_storage_from_code) {
692func_art_initialize_static_storage_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700693 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800694 /*Linkage=*/GlobalValue::ExternalLinkage,
695 /*Name=*/"art_initialize_static_storage_from_code", mod); // (external, no body)
696func_art_initialize_static_storage_from_code->setCallingConv(CallingConv::C);
697}
698AttrListPtr func_art_initialize_static_storage_from_code_PAL;
699func_art_initialize_static_storage_from_code->setAttributes(func_art_initialize_static_storage_from_code_PAL);
700
701Function* func_art_initialize_type_from_code = mod->getFunction("art_initialize_type_from_code");
702if (!func_art_initialize_type_from_code) {
703func_art_initialize_type_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700704 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800705 /*Linkage=*/GlobalValue::ExternalLinkage,
706 /*Name=*/"art_initialize_type_from_code", mod); // (external, no body)
707func_art_initialize_type_from_code->setCallingConv(CallingConv::C);
708}
709AttrListPtr func_art_initialize_type_from_code_PAL;
710func_art_initialize_type_from_code->setAttributes(func_art_initialize_type_from_code_PAL);
711
712Function* func_art_initialize_type_and_verify_access_from_code = mod->getFunction("art_initialize_type_and_verify_access_from_code");
713if (!func_art_initialize_type_and_verify_access_from_code) {
714func_art_initialize_type_and_verify_access_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700715 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800716 /*Linkage=*/GlobalValue::ExternalLinkage,
717 /*Name=*/"art_initialize_type_and_verify_access_from_code", mod); // (external, no body)
718func_art_initialize_type_and_verify_access_from_code->setCallingConv(CallingConv::C);
719}
720AttrListPtr func_art_initialize_type_and_verify_access_from_code_PAL;
721func_art_initialize_type_and_verify_access_from_code->setAttributes(func_art_initialize_type_and_verify_access_from_code_PAL);
722
723Function* func_art_resolve_string_from_code = mod->getFunction("art_resolve_string_from_code");
724if (!func_art_resolve_string_from_code) {
725func_art_resolve_string_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700726 /*Type=*/FuncTy_18,
Logan Chien42e0e152012-01-13 15:42:36 +0800727 /*Linkage=*/GlobalValue::ExternalLinkage,
728 /*Name=*/"art_resolve_string_from_code", mod); // (external, no body)
729func_art_resolve_string_from_code->setCallingConv(CallingConv::C);
730}
731AttrListPtr func_art_resolve_string_from_code_PAL;
732func_art_resolve_string_from_code->setAttributes(func_art_resolve_string_from_code_PAL);
733
Logan Chien42e0e152012-01-13 15:42:36 +0800734Function* func_art_set32_static_from_code = mod->getFunction("art_set32_static_from_code");
735if (!func_art_set32_static_from_code) {
736func_art_set32_static_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700737 /*Type=*/FuncTy_19,
Logan Chien42e0e152012-01-13 15:42:36 +0800738 /*Linkage=*/GlobalValue::ExternalLinkage,
739 /*Name=*/"art_set32_static_from_code", mod); // (external, no body)
740func_art_set32_static_from_code->setCallingConv(CallingConv::C);
741}
742AttrListPtr func_art_set32_static_from_code_PAL;
743func_art_set32_static_from_code->setAttributes(func_art_set32_static_from_code_PAL);
744
745Function* func_art_set64_static_from_code = mod->getFunction("art_set64_static_from_code");
746if (!func_art_set64_static_from_code) {
747func_art_set64_static_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700748 /*Type=*/FuncTy_20,
Logan Chien42e0e152012-01-13 15:42:36 +0800749 /*Linkage=*/GlobalValue::ExternalLinkage,
750 /*Name=*/"art_set64_static_from_code", mod); // (external, no body)
751func_art_set64_static_from_code->setCallingConv(CallingConv::C);
752}
753AttrListPtr func_art_set64_static_from_code_PAL;
754func_art_set64_static_from_code->setAttributes(func_art_set64_static_from_code_PAL);
755
756Function* func_art_set_obj_static_from_code = mod->getFunction("art_set_obj_static_from_code");
757if (!func_art_set_obj_static_from_code) {
758func_art_set_obj_static_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700759 /*Type=*/FuncTy_21,
Logan Chien42e0e152012-01-13 15:42:36 +0800760 /*Linkage=*/GlobalValue::ExternalLinkage,
761 /*Name=*/"art_set_obj_static_from_code", mod); // (external, no body)
762func_art_set_obj_static_from_code->setCallingConv(CallingConv::C);
763}
764AttrListPtr func_art_set_obj_static_from_code_PAL;
765func_art_set_obj_static_from_code->setAttributes(func_art_set_obj_static_from_code_PAL);
766
767Function* func_art_get32_static_from_code = mod->getFunction("art_get32_static_from_code");
768if (!func_art_get32_static_from_code) {
769func_art_get32_static_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700770 /*Type=*/FuncTy_22,
Logan Chien42e0e152012-01-13 15:42:36 +0800771 /*Linkage=*/GlobalValue::ExternalLinkage,
772 /*Name=*/"art_get32_static_from_code", mod); // (external, no body)
773func_art_get32_static_from_code->setCallingConv(CallingConv::C);
774}
775AttrListPtr func_art_get32_static_from_code_PAL;
776func_art_get32_static_from_code->setAttributes(func_art_get32_static_from_code_PAL);
777
778Function* func_art_get64_static_from_code = mod->getFunction("art_get64_static_from_code");
779if (!func_art_get64_static_from_code) {
780func_art_get64_static_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700781 /*Type=*/FuncTy_23,
Logan Chien42e0e152012-01-13 15:42:36 +0800782 /*Linkage=*/GlobalValue::ExternalLinkage,
783 /*Name=*/"art_get64_static_from_code", mod); // (external, no body)
784func_art_get64_static_from_code->setCallingConv(CallingConv::C);
785}
786AttrListPtr func_art_get64_static_from_code_PAL;
787func_art_get64_static_from_code->setAttributes(func_art_get64_static_from_code_PAL);
788
789Function* func_art_get_obj_static_from_code = mod->getFunction("art_get_obj_static_from_code");
790if (!func_art_get_obj_static_from_code) {
791func_art_get_obj_static_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700792 /*Type=*/FuncTy_24,
Logan Chien42e0e152012-01-13 15:42:36 +0800793 /*Linkage=*/GlobalValue::ExternalLinkage,
794 /*Name=*/"art_get_obj_static_from_code", mod); // (external, no body)
795func_art_get_obj_static_from_code->setCallingConv(CallingConv::C);
796}
797AttrListPtr func_art_get_obj_static_from_code_PAL;
798func_art_get_obj_static_from_code->setAttributes(func_art_get_obj_static_from_code_PAL);
799
800Function* func_art_set32_instance_from_code = mod->getFunction("art_set32_instance_from_code");
801if (!func_art_set32_instance_from_code) {
802func_art_set32_instance_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700803 /*Type=*/FuncTy_25,
Logan Chien42e0e152012-01-13 15:42:36 +0800804 /*Linkage=*/GlobalValue::ExternalLinkage,
805 /*Name=*/"art_set32_instance_from_code", mod); // (external, no body)
806func_art_set32_instance_from_code->setCallingConv(CallingConv::C);
807}
808AttrListPtr func_art_set32_instance_from_code_PAL;
809func_art_set32_instance_from_code->setAttributes(func_art_set32_instance_from_code_PAL);
810
811Function* func_art_set64_instance_from_code = mod->getFunction("art_set64_instance_from_code");
812if (!func_art_set64_instance_from_code) {
813func_art_set64_instance_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700814 /*Type=*/FuncTy_26,
Logan Chien42e0e152012-01-13 15:42:36 +0800815 /*Linkage=*/GlobalValue::ExternalLinkage,
816 /*Name=*/"art_set64_instance_from_code", mod); // (external, no body)
817func_art_set64_instance_from_code->setCallingConv(CallingConv::C);
818}
819AttrListPtr func_art_set64_instance_from_code_PAL;
820func_art_set64_instance_from_code->setAttributes(func_art_set64_instance_from_code_PAL);
821
822Function* func_art_set_obj_instance_from_code = mod->getFunction("art_set_obj_instance_from_code");
823if (!func_art_set_obj_instance_from_code) {
824func_art_set_obj_instance_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700825 /*Type=*/FuncTy_27,
Logan Chien42e0e152012-01-13 15:42:36 +0800826 /*Linkage=*/GlobalValue::ExternalLinkage,
827 /*Name=*/"art_set_obj_instance_from_code", mod); // (external, no body)
828func_art_set_obj_instance_from_code->setCallingConv(CallingConv::C);
829}
830AttrListPtr func_art_set_obj_instance_from_code_PAL;
831func_art_set_obj_instance_from_code->setAttributes(func_art_set_obj_instance_from_code_PAL);
832
833Function* func_art_get32_instance_from_code = mod->getFunction("art_get32_instance_from_code");
834if (!func_art_get32_instance_from_code) {
835func_art_get32_instance_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700836 /*Type=*/FuncTy_21,
Logan Chien42e0e152012-01-13 15:42:36 +0800837 /*Linkage=*/GlobalValue::ExternalLinkage,
838 /*Name=*/"art_get32_instance_from_code", mod); // (external, no body)
839func_art_get32_instance_from_code->setCallingConv(CallingConv::C);
840}
841AttrListPtr func_art_get32_instance_from_code_PAL;
842func_art_get32_instance_from_code->setAttributes(func_art_get32_instance_from_code_PAL);
843
844Function* func_art_get64_instance_from_code = mod->getFunction("art_get64_instance_from_code");
845if (!func_art_get64_instance_from_code) {
846func_art_get64_instance_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700847 /*Type=*/FuncTy_28,
Logan Chien42e0e152012-01-13 15:42:36 +0800848 /*Linkage=*/GlobalValue::ExternalLinkage,
849 /*Name=*/"art_get64_instance_from_code", mod); // (external, no body)
850func_art_get64_instance_from_code->setCallingConv(CallingConv::C);
851}
852AttrListPtr func_art_get64_instance_from_code_PAL;
853func_art_get64_instance_from_code->setAttributes(func_art_get64_instance_from_code_PAL);
854
855Function* func_art_get_obj_instance_from_code = mod->getFunction("art_get_obj_instance_from_code");
856if (!func_art_get_obj_instance_from_code) {
857func_art_get_obj_instance_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700858 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800859 /*Linkage=*/GlobalValue::ExternalLinkage,
860 /*Name=*/"art_get_obj_instance_from_code", mod); // (external, no body)
861func_art_get_obj_instance_from_code->setCallingConv(CallingConv::C);
862}
863AttrListPtr func_art_get_obj_instance_from_code_PAL;
864func_art_get_obj_instance_from_code->setAttributes(func_art_get_obj_instance_from_code_PAL);
865
TDYa12728f1a142012-03-15 21:51:52 -0700866Function* func_art_decode_jobject_in_thread = mod->getFunction("art_decode_jobject_in_thread");
867if (!func_art_decode_jobject_in_thread) {
868func_art_decode_jobject_in_thread = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700869 /*Type=*/FuncTy_29,
TDYa12728f1a142012-03-15 21:51:52 -0700870 /*Linkage=*/GlobalValue::ExternalLinkage,
871 /*Name=*/"art_decode_jobject_in_thread", mod); // (external, no body)
872func_art_decode_jobject_in_thread->setCallingConv(CallingConv::C);
873}
874AttrListPtr func_art_decode_jobject_in_thread_PAL;
875func_art_decode_jobject_in_thread->setAttributes(func_art_decode_jobject_in_thread_PAL);
876
Logan Chien86f50672012-04-24 13:08:45 +0800877Function* func_art_fill_array_data_from_code = mod->getFunction("art_fill_array_data_from_code");
878if (!func_art_fill_array_data_from_code) {
879func_art_fill_array_data_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700880 /*Type=*/FuncTy_30,
Logan Chien86f50672012-04-24 13:08:45 +0800881 /*Linkage=*/GlobalValue::ExternalLinkage,
882 /*Name=*/"art_fill_array_data_from_code", mod); // (external, no body)
883func_art_fill_array_data_from_code->setCallingConv(CallingConv::C);
884}
885AttrListPtr func_art_fill_array_data_from_code_PAL;
886func_art_fill_array_data_from_code->setAttributes(func_art_fill_array_data_from_code_PAL);
887
Logan Chien42e0e152012-01-13 15:42:36 +0800888Function* func_art_is_assignable_from_code = mod->getFunction("art_is_assignable_from_code");
889if (!func_art_is_assignable_from_code) {
890func_art_is_assignable_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700891 /*Type=*/FuncTy_31,
Logan Chien42e0e152012-01-13 15:42:36 +0800892 /*Linkage=*/GlobalValue::ExternalLinkage,
893 /*Name=*/"art_is_assignable_from_code", mod); // (external, no body)
894func_art_is_assignable_from_code->setCallingConv(CallingConv::C);
895}
896AttrListPtr func_art_is_assignable_from_code_PAL;
897func_art_is_assignable_from_code->setAttributes(func_art_is_assignable_from_code_PAL);
898
899Function* func_art_check_cast_from_code = mod->getFunction("art_check_cast_from_code");
900if (!func_art_check_cast_from_code) {
901func_art_check_cast_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700902 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800903 /*Linkage=*/GlobalValue::ExternalLinkage,
904 /*Name=*/"art_check_cast_from_code", mod); // (external, no body)
905func_art_check_cast_from_code->setCallingConv(CallingConv::C);
906}
907AttrListPtr func_art_check_cast_from_code_PAL;
908func_art_check_cast_from_code->setAttributes(func_art_check_cast_from_code_PAL);
909
TDYa1271b86d072012-04-05 17:38:56 -0700910Function* func_art_check_put_array_element_from_code = mod->getFunction("art_check_put_array_element_from_code");
911if (!func_art_check_put_array_element_from_code) {
912func_art_check_put_array_element_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700913 /*Type=*/FuncTy_5,
TDYa1271b86d072012-04-05 17:38:56 -0700914 /*Linkage=*/GlobalValue::ExternalLinkage,
915 /*Name=*/"art_check_put_array_element_from_code", mod); // (external, no body)
916func_art_check_put_array_element_from_code->setCallingConv(CallingConv::C);
917}
918AttrListPtr func_art_check_put_array_element_from_code_PAL;
919func_art_check_put_array_element_from_code->setAttributes(func_art_check_put_array_element_from_code_PAL);
920
jeffhao41005dd2012-05-09 17:58:52 -0700921Function* func_art_d2l = mod->getFunction("art_d2l");
922if (!func_art_d2l) {
923func_art_d2l = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700924 /*Type=*/FuncTy_32,
TDYa127a4746872012-04-11 23:48:55 -0700925 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700926 /*Name=*/"art_d2l", mod); // (external, no body)
927func_art_d2l->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700928}
jeffhao41005dd2012-05-09 17:58:52 -0700929AttrListPtr func_art_d2l_PAL;
930func_art_d2l->setAttributes(func_art_d2l_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700931
jeffhao41005dd2012-05-09 17:58:52 -0700932Function* func_art_d2i = mod->getFunction("art_d2i");
933if (!func_art_d2i) {
934func_art_d2i = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700935 /*Type=*/FuncTy_33,
TDYa127a4746872012-04-11 23:48:55 -0700936 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700937 /*Name=*/"art_d2i", mod); // (external, no body)
938func_art_d2i->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700939}
jeffhao41005dd2012-05-09 17:58:52 -0700940AttrListPtr func_art_d2i_PAL;
941func_art_d2i->setAttributes(func_art_d2i_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700942
jeffhao41005dd2012-05-09 17:58:52 -0700943Function* func_art_f2l = mod->getFunction("art_f2l");
944if (!func_art_f2l) {
945func_art_f2l = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700946 /*Type=*/FuncTy_34,
TDYa127a4746872012-04-11 23:48:55 -0700947 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700948 /*Name=*/"art_f2l", mod); // (external, no body)
949func_art_f2l->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700950}
jeffhao41005dd2012-05-09 17:58:52 -0700951AttrListPtr func_art_f2l_PAL;
952func_art_f2l->setAttributes(func_art_f2l_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700953
jeffhao41005dd2012-05-09 17:58:52 -0700954Function* func_art_f2i = mod->getFunction("art_f2i");
955if (!func_art_f2i) {
956func_art_f2i = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700957 /*Type=*/FuncTy_35,
TDYa127a4746872012-04-11 23:48:55 -0700958 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700959 /*Name=*/"art_f2i", mod); // (external, no body)
960func_art_f2i->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700961}
jeffhao41005dd2012-05-09 17:58:52 -0700962AttrListPtr func_art_f2i_PAL;
963func_art_f2i->setAttributes(func_art_f2i_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700964
TDYa12783bb6622012-04-17 02:20:34 -0700965Function* func_art_mark_gc_card_from_code = mod->getFunction("art_mark_gc_card_from_code");
966if (!func_art_mark_gc_card_from_code) {
967func_art_mark_gc_card_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700968 /*Type=*/FuncTy_5,
TDYa12783bb6622012-04-17 02:20:34 -0700969 /*Linkage=*/GlobalValue::ExternalLinkage,
970 /*Name=*/"art_mark_gc_card_from_code", mod); // (external, no body)
971func_art_mark_gc_card_from_code->setCallingConv(CallingConv::C);
972}
973AttrListPtr func_art_mark_gc_card_from_code_PAL;
974func_art_mark_gc_card_from_code->setAttributes(func_art_mark_gc_card_from_code_PAL);
975
TDYa1270b686e52012-04-09 22:43:35 -0700976Function* func_art_fix_stub_from_code = mod->getFunction("art_fix_stub_from_code");
977if (!func_art_fix_stub_from_code) {
978func_art_fix_stub_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700979 /*Type=*/FuncTy_36,
TDYa12785321912012-04-01 15:24:56 -0700980 /*Linkage=*/GlobalValue::ExternalLinkage,
TDYa1270b686e52012-04-09 22:43:35 -0700981 /*Name=*/"art_fix_stub_from_code", mod); // (external, no body)
982func_art_fix_stub_from_code->setCallingConv(CallingConv::C);
TDYa12785321912012-04-01 15:24:56 -0700983}
TDYa1270b686e52012-04-09 22:43:35 -0700984AttrListPtr func_art_fix_stub_from_code_PAL;
985func_art_fix_stub_from_code->setAttributes(func_art_fix_stub_from_code_PAL);
TDYa12785321912012-04-01 15:24:56 -0700986
TDYa1275bb86012012-04-11 05:57:28 -0700987Function* func_art_proxy_invoke_handler_from_code = mod->getFunction("art_proxy_invoke_handler_from_code");
988if (!func_art_proxy_invoke_handler_from_code) {
989func_art_proxy_invoke_handler_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700990 /*Type=*/FuncTy_37,
TDYa1275bb86012012-04-11 05:57:28 -0700991 /*Linkage=*/GlobalValue::ExternalLinkage,
992 /*Name=*/"art_proxy_invoke_handler_from_code", mod); // (external, no body)
993func_art_proxy_invoke_handler_from_code->setCallingConv(CallingConv::C);
994}
995AttrListPtr func_art_proxy_invoke_handler_from_code_PAL;
996func_art_proxy_invoke_handler_from_code->setAttributes(func_art_proxy_invoke_handler_from_code_PAL);
997
Logan Chien42e0e152012-01-13 15:42:36 +0800998// Global Variable Declarations
999
1000
1001// Constant Definitions
1002
1003// Global Variable Definitions
1004
1005// Function Definitions
1006
1007return mod;
1008
1009}
Logan Chiene75a8cc2012-02-24 12:26:43 +08001010
1011} // namespace compiler_llvm
1012} // namespace art