blob: 1f88e8d0d7d2c38dd4278d000c4c80818106f0e5 [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);
TDYa127af543472012-05-28 21:49:23 -070087FuncTy_6_args.push_back(PointerTy_1);
88FuncTy_6_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +080089FunctionType* FuncTy_6 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -070090 /*Result=*/PointerTy_2,
Logan Chien42e0e152012-01-13 15:42:36 +080091 /*Params=*/FuncTy_6_args,
92 /*isVarArg=*/false);
93
94std::vector<Type*>FuncTy_7_args;
TDYa1270de52be2012-05-27 20:49:31 -070095FuncTy_7_args.push_back(PointerTy_2);
Logan Chien42e0e152012-01-13 15:42:36 +080096FunctionType* FuncTy_7 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -070097 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +080098 /*Params=*/FuncTy_7_args,
99 /*isVarArg=*/false);
100
101std::vector<Type*>FuncTy_8_args;
Logan Chien42e0e152012-01-13 15:42:36 +0800102FunctionType* FuncTy_8 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700103 /*Result=*/IntegerType::get(mod->getContext(), 1),
Logan Chien42e0e152012-01-13 15:42:36 +0800104 /*Params=*/FuncTy_8_args,
105 /*isVarArg=*/false);
106
107std::vector<Type*>FuncTy_9_args;
Logan Chien42e0e152012-01-13 15:42:36 +0800108FunctionType* FuncTy_9 = FunctionType::get(
Logan Chien3f71e702012-02-17 18:45:27 +0800109 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800110 /*Params=*/FuncTy_9_args,
111 /*isVarArg=*/false);
112
113std::vector<Type*>FuncTy_10_args;
Logan Chien9e5f5c12012-04-10 13:51:45 +0800114FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1270de52be2012-05-27 20:49:31 -0700115FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800116FunctionType* FuncTy_10 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800117 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800118 /*Params=*/FuncTy_10_args,
119 /*isVarArg=*/false);
120
121std::vector<Type*>FuncTy_11_args;
TDYa127706e9b62012-04-19 12:24:26 -0700122FuncTy_11_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800123FunctionType* FuncTy_11 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700124 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800125 /*Params=*/FuncTy_11_args,
126 /*isVarArg=*/false);
127
128std::vector<Type*>FuncTy_12_args;
TDYa127706e9b62012-04-19 12:24:26 -0700129FuncTy_12_args.push_back(PointerTy_1);
Logan Chien3f71e702012-02-17 18:45:27 +0800130FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1270de52be2012-05-27 20:49:31 -0700131FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800132FunctionType* FuncTy_12 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700133 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800134 /*Params=*/FuncTy_12_args,
135 /*isVarArg=*/false);
136
137std::vector<Type*>FuncTy_13_args;
TDYa1270de52be2012-05-27 20:49:31 -0700138FuncTy_13_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800139FuncTy_13_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800140FunctionType* FuncTy_13 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700141 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800142 /*Params=*/FuncTy_13_args,
143 /*isVarArg=*/false);
144
145std::vector<Type*>FuncTy_14_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800146FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien1b0a1b72012-03-15 06:20:17 +0800147FuncTy_14_args.push_back(PointerTy_1);
TDYa127706e9b62012-04-19 12:24:26 -0700148FuncTy_14_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800149FunctionType* FuncTy_14 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700150 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800151 /*Params=*/FuncTy_14_args,
152 /*isVarArg=*/false);
153
154std::vector<Type*>FuncTy_15_args;
155FuncTy_15_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien9e5f5c12012-04-10 13:51:45 +0800156FuncTy_15_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700157FuncTy_15_args.push_back(IntegerType::get(mod->getContext(), 32));
158FuncTy_15_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800159FunctionType* FuncTy_15 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700160 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800161 /*Params=*/FuncTy_15_args,
162 /*isVarArg=*/false);
163
164std::vector<Type*>FuncTy_16_args;
Logan Chien1b0a1b72012-03-15 06:20:17 +0800165FuncTy_16_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa127da83d972012-04-18 00:21:49 -0700166FuncTy_16_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800167FunctionType* FuncTy_16 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700168 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien42e0e152012-01-13 15:42:36 +0800169 /*Params=*/FuncTy_16_args,
170 /*isVarArg=*/false);
171
172std::vector<Type*>FuncTy_17_args;
Logan Chien9e5f5c12012-04-10 13:51:45 +0800173FuncTy_17_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa1270de52be2012-05-27 20:49:31 -0700174FuncTy_17_args.push_back(PointerTy_1);
175FuncTy_17_args.push_back(PointerTy_1);
176FuncTy_17_args.push_back(PointerTy_1);
Logan Chien42e0e152012-01-13 15:42:36 +0800177FunctionType* FuncTy_17 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700178 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800179 /*Params=*/FuncTy_17_args,
180 /*isVarArg=*/false);
181
182std::vector<Type*>FuncTy_18_args;
183FuncTy_18_args.push_back(PointerTy_1);
TDYa127da83d972012-04-18 00:21:49 -0700184FuncTy_18_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800185FunctionType* FuncTy_18 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700186 /*Result=*/PointerTy_1,
Logan Chien42e0e152012-01-13 15:42:36 +0800187 /*Params=*/FuncTy_18_args,
188 /*isVarArg=*/false);
189
190std::vector<Type*>FuncTy_19_args;
Logan Chien3f71e702012-02-17 18:45:27 +0800191FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800192FuncTy_19_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700193FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien42e0e152012-01-13 15:42:36 +0800194FunctionType* FuncTy_19 = FunctionType::get(
Logan Chien1b0a1b72012-03-15 06:20:17 +0800195 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien42e0e152012-01-13 15:42:36 +0800196 /*Params=*/FuncTy_19_args,
197 /*isVarArg=*/false);
198
Logan Chien3f71e702012-02-17 18:45:27 +0800199std::vector<Type*>FuncTy_20_args;
Logan Chien3b2b2e72012-03-06 16:11:45 +0800200FuncTy_20_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chiena6b2ca62012-03-06 15:50:54 +0800201FuncTy_20_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700202FuncTy_20_args.push_back(IntegerType::get(mod->getContext(), 64));
Logan Chien3f71e702012-02-17 18:45:27 +0800203FunctionType* FuncTy_20 = FunctionType::get(
Logan Chien9e5f5c12012-04-10 13:51:45 +0800204 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3f71e702012-02-17 18:45:27 +0800205 /*Params=*/FuncTy_20_args,
206 /*isVarArg=*/false);
207
208std::vector<Type*>FuncTy_21_args;
Logan Chien3b2b2e72012-03-06 16:11:45 +0800209FuncTy_21_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3f71e702012-02-17 18:45:27 +0800210FuncTy_21_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700211FuncTy_21_args.push_back(PointerTy_1);
Logan Chien3f71e702012-02-17 18:45:27 +0800212FunctionType* FuncTy_21 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700213 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chiena6b2ca62012-03-06 15:50:54 +0800214 /*Params=*/FuncTy_21_args,
Logan Chien3f71e702012-02-17 18:45:27 +0800215 /*isVarArg=*/false);
216
Logan Chien3b2b2e72012-03-06 16:11:45 +0800217std::vector<Type*>FuncTy_22_args;
218FuncTy_22_args.push_back(IntegerType::get(mod->getContext(), 32));
219FuncTy_22_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800220FunctionType* FuncTy_22 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700221 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800222 /*Params=*/FuncTy_22_args,
223 /*isVarArg=*/false);
224
225std::vector<Type*>FuncTy_23_args;
226FuncTy_23_args.push_back(IntegerType::get(mod->getContext(), 32));
227FuncTy_23_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800228FunctionType* FuncTy_23 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700229 /*Result=*/IntegerType::get(mod->getContext(), 64),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800230 /*Params=*/FuncTy_23_args,
231 /*isVarArg=*/false);
232
233std::vector<Type*>FuncTy_24_args;
234FuncTy_24_args.push_back(IntegerType::get(mod->getContext(), 32));
235FuncTy_24_args.push_back(PointerTy_1);
Logan Chien3b2b2e72012-03-06 16:11:45 +0800236FunctionType* FuncTy_24 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700237 /*Result=*/PointerTy_1,
Logan Chien3b2b2e72012-03-06 16:11:45 +0800238 /*Params=*/FuncTy_24_args,
239 /*isVarArg=*/false);
240
241std::vector<Type*>FuncTy_25_args;
Logan Chien9e5f5c12012-04-10 13:51:45 +0800242FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800243FuncTy_25_args.push_back(PointerTy_1);
244FuncTy_25_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700245FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800246FunctionType* FuncTy_25 = FunctionType::get(
TDYa127da83d972012-04-18 00:21:49 -0700247 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800248 /*Params=*/FuncTy_25_args,
249 /*isVarArg=*/false);
250
251std::vector<Type*>FuncTy_26_args;
TDYa127da83d972012-04-18 00:21:49 -0700252FuncTy_26_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800253FuncTy_26_args.push_back(PointerTy_1);
254FuncTy_26_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700255FuncTy_26_args.push_back(IntegerType::get(mod->getContext(), 64));
Logan Chien3b2b2e72012-03-06 16:11:45 +0800256FunctionType* FuncTy_26 = FunctionType::get(
TDYa127706e9b62012-04-19 12:24:26 -0700257 /*Result=*/IntegerType::get(mod->getContext(), 32),
Logan Chien3b2b2e72012-03-06 16:11:45 +0800258 /*Params=*/FuncTy_26_args,
259 /*isVarArg=*/false);
260
TDYa12728f1a142012-03-15 21:51:52 -0700261std::vector<Type*>FuncTy_27_args;
TDYa127706e9b62012-04-19 12:24:26 -0700262FuncTy_27_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa12728f1a142012-03-15 21:51:52 -0700263FuncTy_27_args.push_back(PointerTy_1);
264FuncTy_27_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700265FuncTy_27_args.push_back(PointerTy_1);
TDYa12728f1a142012-03-15 21:51:52 -0700266FunctionType* FuncTy_27 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700267 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa12728f1a142012-03-15 21:51:52 -0700268 /*Params=*/FuncTy_27_args,
269 /*isVarArg=*/false);
270
TDYa12785321912012-04-01 15:24:56 -0700271std::vector<Type*>FuncTy_28_args;
TDYa1270de52be2012-05-27 20:49:31 -0700272FuncTy_28_args.push_back(IntegerType::get(mod->getContext(), 32));
TDYa12785321912012-04-01 15:24:56 -0700273FuncTy_28_args.push_back(PointerTy_1);
274FuncTy_28_args.push_back(PointerTy_1);
TDYa12785321912012-04-01 15:24:56 -0700275FunctionType* FuncTy_28 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700276 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa12785321912012-04-01 15:24:56 -0700277 /*Params=*/FuncTy_28_args,
278 /*isVarArg=*/false);
279
TDYa1270b686e52012-04-09 22:43:35 -0700280std::vector<Type*>FuncTy_29_args;
TDYa127da83d972012-04-18 00:21:49 -0700281FuncTy_29_args.push_back(PointerTy_1);
282FuncTy_29_args.push_back(PointerTy_1);
TDYa1270b686e52012-04-09 22:43:35 -0700283FunctionType* FuncTy_29 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700284 /*Result=*/PointerTy_1,
TDYa1270b686e52012-04-09 22:43:35 -0700285 /*Params=*/FuncTy_29_args,
286 /*isVarArg=*/false);
287
Logan Chien9e5f5c12012-04-10 13:51:45 +0800288std::vector<Type*>FuncTy_30_args;
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 Chien86f50672012-04-24 13:08:45 +0800291FuncTy_30_args.push_back(PointerTy_1);
TDYa1270de52be2012-05-27 20:49:31 -0700292FuncTy_30_args.push_back(IntegerType::get(mod->getContext(), 32));
Logan Chien9e5f5c12012-04-10 13:51:45 +0800293FunctionType* FuncTy_30 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700294 /*Result=*/Type::getVoidTy(mod->getContext()),
Logan Chien9e5f5c12012-04-10 13:51:45 +0800295 /*Params=*/FuncTy_30_args,
296 /*isVarArg=*/false);
297
TDYa1275bb86012012-04-11 05:57:28 -0700298std::vector<Type*>FuncTy_31_args;
TDYa1270de52be2012-05-27 20:49:31 -0700299FuncTy_31_args.push_back(PointerTy_1);
300FuncTy_31_args.push_back(PointerTy_1);
TDYa1275bb86012012-04-11 05:57:28 -0700301FunctionType* FuncTy_31 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700302 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa1275bb86012012-04-11 05:57:28 -0700303 /*Params=*/FuncTy_31_args,
TDYa127a4746872012-04-11 23:48:55 -0700304 /*isVarArg=*/false);
305
306std::vector<Type*>FuncTy_32_args;
Logan Chien86f50672012-04-24 13:08:45 +0800307FuncTy_32_args.push_back(Type::getDoubleTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700308FunctionType* FuncTy_32 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700309 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa127a4746872012-04-11 23:48:55 -0700310 /*Params=*/FuncTy_32_args,
311 /*isVarArg=*/false);
312
313std::vector<Type*>FuncTy_33_args;
TDYa1270de52be2012-05-27 20:49:31 -0700314FuncTy_33_args.push_back(Type::getDoubleTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700315FunctionType* FuncTy_33 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700316 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa127a4746872012-04-11 23:48:55 -0700317 /*Params=*/FuncTy_33_args,
318 /*isVarArg=*/false);
319
320std::vector<Type*>FuncTy_34_args;
Logan Chien86f50672012-04-24 13:08:45 +0800321FuncTy_34_args.push_back(Type::getFloatTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700322FunctionType* FuncTy_34 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700323 /*Result=*/IntegerType::get(mod->getContext(), 64),
TDYa127a4746872012-04-11 23:48:55 -0700324 /*Params=*/FuncTy_34_args,
325 /*isVarArg=*/false);
326
327std::vector<Type*>FuncTy_35_args;
TDYa1270de52be2012-05-27 20:49:31 -0700328FuncTy_35_args.push_back(Type::getFloatTy(mod->getContext()));
TDYa127a4746872012-04-11 23:48:55 -0700329FunctionType* FuncTy_35 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700330 /*Result=*/IntegerType::get(mod->getContext(), 32),
TDYa12705fe3b62012-04-21 00:28:54 -0700331 /*Params=*/FuncTy_35_args,
Logan Chien86f50672012-04-24 13:08:45 +0800332 /*isVarArg=*/false);
333
334std::vector<Type*>FuncTy_36_args;
335FuncTy_36_args.push_back(PointerTy_1);
336FunctionType* FuncTy_36 = FunctionType::get(
TDYa1270de52be2012-05-27 20:49:31 -0700337 /*Result=*/PointerTy_1,
Logan Chien86f50672012-04-24 13:08:45 +0800338 /*Params=*/FuncTy_36_args,
TDYa1270de52be2012-05-27 20:49:31 -0700339 /*isVarArg=*/false);
340
341std::vector<Type*>FuncTy_37_args;
342FuncTy_37_args.push_back(PointerTy_1);
343FunctionType* FuncTy_37 = FunctionType::get(
344 /*Result=*/Type::getVoidTy(mod->getContext()),
345 /*Params=*/FuncTy_37_args,
TDYa1275bb86012012-04-11 05:57:28 -0700346 /*isVarArg=*/true);
347
Logan Chien42e0e152012-01-13 15:42:36 +0800348
349// Function Declarations
350
351Function* func___art_type_list = mod->getFunction("__art_type_list");
352if (!func___art_type_list) {
353func___art_type_list = Function::Create(
354 /*Type=*/FuncTy_0,
355 /*Linkage=*/GlobalValue::ExternalLinkage,
356 /*Name=*/"__art_type_list", mod); // (external, no body)
357func___art_type_list->setCallingConv(CallingConv::C);
358}
359AttrListPtr func___art_type_list_PAL;
360func___art_type_list->setAttributes(func___art_type_list_PAL);
361
362Function* func_art_get_current_thread_from_code = mod->getFunction("art_get_current_thread_from_code");
363if (!func_art_get_current_thread_from_code) {
364func_art_get_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800365 /*Type=*/FuncTy_3,
Logan Chien42e0e152012-01-13 15:42:36 +0800366 /*Linkage=*/GlobalValue::ExternalLinkage,
367 /*Name=*/"art_get_current_thread_from_code", mod); // (external, no body)
368func_art_get_current_thread_from_code->setCallingConv(CallingConv::C);
369}
370AttrListPtr func_art_get_current_thread_from_code_PAL;
371func_art_get_current_thread_from_code->setAttributes(func_art_get_current_thread_from_code_PAL);
372
373Function* func_art_set_current_thread_from_code = mod->getFunction("art_set_current_thread_from_code");
374if (!func_art_set_current_thread_from_code) {
375func_art_set_current_thread_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800376 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800377 /*Linkage=*/GlobalValue::ExternalLinkage,
378 /*Name=*/"art_set_current_thread_from_code", mod); // (external, no body)
379func_art_set_current_thread_from_code->setCallingConv(CallingConv::C);
380}
381AttrListPtr func_art_set_current_thread_from_code_PAL;
382func_art_set_current_thread_from_code->setAttributes(func_art_set_current_thread_from_code_PAL);
383
384Function* func_art_lock_object_from_code = mod->getFunction("art_lock_object_from_code");
385if (!func_art_lock_object_from_code) {
386func_art_lock_object_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700387 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800388 /*Linkage=*/GlobalValue::ExternalLinkage,
389 /*Name=*/"art_lock_object_from_code", mod); // (external, no body)
390func_art_lock_object_from_code->setCallingConv(CallingConv::C);
391}
392AttrListPtr func_art_lock_object_from_code_PAL;
393func_art_lock_object_from_code->setAttributes(func_art_lock_object_from_code_PAL);
394
395Function* func_art_unlock_object_from_code = mod->getFunction("art_unlock_object_from_code");
396if (!func_art_unlock_object_from_code) {
397func_art_unlock_object_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700398 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800399 /*Linkage=*/GlobalValue::ExternalLinkage,
400 /*Name=*/"art_unlock_object_from_code", mod); // (external, no body)
401func_art_unlock_object_from_code->setCallingConv(CallingConv::C);
402}
403AttrListPtr func_art_unlock_object_from_code_PAL;
404func_art_unlock_object_from_code->setAttributes(func_art_unlock_object_from_code_PAL);
405
406Function* func_art_test_suspend_from_code = mod->getFunction("art_test_suspend_from_code");
407if (!func_art_test_suspend_from_code) {
408func_art_test_suspend_from_code = Function::Create(
TDYa127853cd092012-04-21 22:15:31 -0700409 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800410 /*Linkage=*/GlobalValue::ExternalLinkage,
411 /*Name=*/"art_test_suspend_from_code", mod); // (external, no body)
412func_art_test_suspend_from_code->setCallingConv(CallingConv::C);
413}
414AttrListPtr func_art_test_suspend_from_code_PAL;
415func_art_test_suspend_from_code->setAttributes(func_art_test_suspend_from_code_PAL);
416
Logan Chien3f71e702012-02-17 18:45:27 +0800417Function* func_art_push_shadow_frame_from_code = mod->getFunction("art_push_shadow_frame_from_code");
418if (!func_art_push_shadow_frame_from_code) {
419func_art_push_shadow_frame_from_code = Function::Create(
TDYa127853cd092012-04-21 22:15:31 -0700420 /*Type=*/FuncTy_6,
Logan Chien3f71e702012-02-17 18:45:27 +0800421 /*Linkage=*/GlobalValue::ExternalLinkage,
422 /*Name=*/"art_push_shadow_frame_from_code", mod); // (external, no body)
423func_art_push_shadow_frame_from_code->setCallingConv(CallingConv::C);
424}
425AttrListPtr func_art_push_shadow_frame_from_code_PAL;
426func_art_push_shadow_frame_from_code->setAttributes(func_art_push_shadow_frame_from_code_PAL);
427
TDYa127af543472012-05-28 21:49:23 -0700428Function* func_art_push_shadow_frame_noinline_from_code = mod->getFunction("art_push_shadow_frame_noinline_from_code");
429if (!func_art_push_shadow_frame_noinline_from_code) {
430func_art_push_shadow_frame_noinline_from_code = Function::Create(
431 /*Type=*/FuncTy_6,
432 /*Linkage=*/GlobalValue::ExternalLinkage,
433 /*Name=*/"art_push_shadow_frame_noinline_from_code", mod); // (external, no body)
434func_art_push_shadow_frame_noinline_from_code->setCallingConv(CallingConv::C);
435}
436AttrListPtr func_art_push_shadow_frame_noinline_from_code_PAL;
437func_art_push_shadow_frame_noinline_from_code->setAttributes(func_art_push_shadow_frame_noinline_from_code_PAL);
438
Logan Chien3f71e702012-02-17 18:45:27 +0800439Function* func_art_pop_shadow_frame_from_code = mod->getFunction("art_pop_shadow_frame_from_code");
440if (!func_art_pop_shadow_frame_from_code) {
441func_art_pop_shadow_frame_from_code = Function::Create(
TDYa127853cd092012-04-21 22:15:31 -0700442 /*Type=*/FuncTy_7,
Logan Chien3f71e702012-02-17 18:45:27 +0800443 /*Linkage=*/GlobalValue::ExternalLinkage,
444 /*Name=*/"art_pop_shadow_frame_from_code", mod); // (external, no body)
445func_art_pop_shadow_frame_from_code->setCallingConv(CallingConv::C);
446}
447AttrListPtr func_art_pop_shadow_frame_from_code_PAL;
448func_art_pop_shadow_frame_from_code->setAttributes(func_art_pop_shadow_frame_from_code_PAL);
449
Logan Chien42e0e152012-01-13 15:42:36 +0800450Function* func_art_is_exception_pending_from_code = mod->getFunction("art_is_exception_pending_from_code");
451if (!func_art_is_exception_pending_from_code) {
452func_art_is_exception_pending_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700453 /*Type=*/FuncTy_8,
Logan Chien42e0e152012-01-13 15:42:36 +0800454 /*Linkage=*/GlobalValue::ExternalLinkage,
455 /*Name=*/"art_is_exception_pending_from_code", mod); // (external, no body)
456func_art_is_exception_pending_from_code->setCallingConv(CallingConv::C);
457}
458AttrListPtr func_art_is_exception_pending_from_code_PAL;
459func_art_is_exception_pending_from_code->setAttributes(func_art_is_exception_pending_from_code_PAL);
460
461Function* func_art_throw_div_zero_from_code = mod->getFunction("art_throw_div_zero_from_code");
462if (!func_art_throw_div_zero_from_code) {
463func_art_throw_div_zero_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700464 /*Type=*/FuncTy_9,
Logan Chien42e0e152012-01-13 15:42:36 +0800465 /*Linkage=*/GlobalValue::ExternalLinkage,
466 /*Name=*/"art_throw_div_zero_from_code", mod); // (external, no body)
467func_art_throw_div_zero_from_code->setCallingConv(CallingConv::C);
468}
469AttrListPtr func_art_throw_div_zero_from_code_PAL;
470func_art_throw_div_zero_from_code->setAttributes(func_art_throw_div_zero_from_code_PAL);
471
472Function* func_art_throw_array_bounds_from_code = mod->getFunction("art_throw_array_bounds_from_code");
473if (!func_art_throw_array_bounds_from_code) {
474func_art_throw_array_bounds_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700475 /*Type=*/FuncTy_10,
Logan Chien42e0e152012-01-13 15:42:36 +0800476 /*Linkage=*/GlobalValue::ExternalLinkage,
477 /*Name=*/"art_throw_array_bounds_from_code", mod); // (external, no body)
478func_art_throw_array_bounds_from_code->setCallingConv(CallingConv::C);
479}
480AttrListPtr func_art_throw_array_bounds_from_code_PAL;
481func_art_throw_array_bounds_from_code->setAttributes(func_art_throw_array_bounds_from_code_PAL);
482
483Function* func_art_throw_no_such_method_from_code = mod->getFunction("art_throw_no_such_method_from_code");
484if (!func_art_throw_no_such_method_from_code) {
485func_art_throw_no_such_method_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700486 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800487 /*Linkage=*/GlobalValue::ExternalLinkage,
488 /*Name=*/"art_throw_no_such_method_from_code", mod); // (external, no body)
489func_art_throw_no_such_method_from_code->setCallingConv(CallingConv::C);
490}
491AttrListPtr func_art_throw_no_such_method_from_code_PAL;
492func_art_throw_no_such_method_from_code->setAttributes(func_art_throw_no_such_method_from_code_PAL);
493
494Function* func_art_throw_null_pointer_exception_from_code = mod->getFunction("art_throw_null_pointer_exception_from_code");
495if (!func_art_throw_null_pointer_exception_from_code) {
496func_art_throw_null_pointer_exception_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700497 /*Type=*/FuncTy_11,
Logan Chien42e0e152012-01-13 15:42:36 +0800498 /*Linkage=*/GlobalValue::ExternalLinkage,
499 /*Name=*/"art_throw_null_pointer_exception_from_code", mod); // (external, no body)
500func_art_throw_null_pointer_exception_from_code->setCallingConv(CallingConv::C);
501}
502AttrListPtr func_art_throw_null_pointer_exception_from_code_PAL;
503func_art_throw_null_pointer_exception_from_code->setAttributes(func_art_throw_null_pointer_exception_from_code_PAL);
504
505Function* func_art_throw_stack_overflow_from_code = mod->getFunction("art_throw_stack_overflow_from_code");
506if (!func_art_throw_stack_overflow_from_code) {
507func_art_throw_stack_overflow_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700508 /*Type=*/FuncTy_9,
Logan Chien42e0e152012-01-13 15:42:36 +0800509 /*Linkage=*/GlobalValue::ExternalLinkage,
510 /*Name=*/"art_throw_stack_overflow_from_code", mod); // (external, no body)
511func_art_throw_stack_overflow_from_code->setCallingConv(CallingConv::C);
512}
513AttrListPtr func_art_throw_stack_overflow_from_code_PAL;
514func_art_throw_stack_overflow_from_code->setAttributes(func_art_throw_stack_overflow_from_code_PAL);
515
516Function* func_art_throw_exception_from_code = mod->getFunction("art_throw_exception_from_code");
517if (!func_art_throw_exception_from_code) {
518func_art_throw_exception_from_code = Function::Create(
Logan Chien3f71e702012-02-17 18:45:27 +0800519 /*Type=*/FuncTy_4,
Logan Chien42e0e152012-01-13 15:42:36 +0800520 /*Linkage=*/GlobalValue::ExternalLinkage,
521 /*Name=*/"art_throw_exception_from_code", mod); // (external, no body)
522func_art_throw_exception_from_code->setCallingConv(CallingConv::C);
523}
524AttrListPtr func_art_throw_exception_from_code_PAL;
525func_art_throw_exception_from_code->setAttributes(func_art_throw_exception_from_code_PAL);
526
Logan Chien9e5f5c12012-04-10 13:51:45 +0800527Function* func_art_throw_verification_error_from_code = mod->getFunction("art_throw_verification_error_from_code");
528if (!func_art_throw_verification_error_from_code) {
529func_art_throw_verification_error_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700530 /*Type=*/FuncTy_12,
Logan Chien9e5f5c12012-04-10 13:51:45 +0800531 /*Linkage=*/GlobalValue::ExternalLinkage,
532 /*Name=*/"art_throw_verification_error_from_code", mod); // (external, no body)
533func_art_throw_verification_error_from_code->setCallingConv(CallingConv::C);
534}
535AttrListPtr func_art_throw_verification_error_from_code_PAL;
536func_art_throw_verification_error_from_code->setAttributes(func_art_throw_verification_error_from_code_PAL);
537
Logan Chien42e0e152012-01-13 15:42:36 +0800538Function* func_art_find_catch_block_from_code = mod->getFunction("art_find_catch_block_from_code");
539if (!func_art_find_catch_block_from_code) {
540func_art_find_catch_block_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700541 /*Type=*/FuncTy_13,
Logan Chien42e0e152012-01-13 15:42:36 +0800542 /*Linkage=*/GlobalValue::ExternalLinkage,
543 /*Name=*/"art_find_catch_block_from_code", mod); // (external, no body)
544func_art_find_catch_block_from_code->setCallingConv(CallingConv::C);
545}
546AttrListPtr func_art_find_catch_block_from_code_PAL;
547func_art_find_catch_block_from_code->setAttributes(func_art_find_catch_block_from_code_PAL);
548
549Function* func_art_alloc_object_from_code = mod->getFunction("art_alloc_object_from_code");
550if (!func_art_alloc_object_from_code) {
551func_art_alloc_object_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700552 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800553 /*Linkage=*/GlobalValue::ExternalLinkage,
554 /*Name=*/"art_alloc_object_from_code", mod); // (external, no body)
555func_art_alloc_object_from_code->setCallingConv(CallingConv::C);
556}
557AttrListPtr func_art_alloc_object_from_code_PAL;
558func_art_alloc_object_from_code->setAttributes(func_art_alloc_object_from_code_PAL);
559
560Function* func_art_alloc_object_from_code_with_access_check = mod->getFunction("art_alloc_object_from_code_with_access_check");
561if (!func_art_alloc_object_from_code_with_access_check) {
562func_art_alloc_object_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700563 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800564 /*Linkage=*/GlobalValue::ExternalLinkage,
565 /*Name=*/"art_alloc_object_from_code_with_access_check", mod); // (external, no body)
566func_art_alloc_object_from_code_with_access_check->setCallingConv(CallingConv::C);
567}
568AttrListPtr func_art_alloc_object_from_code_with_access_check_PAL;
569func_art_alloc_object_from_code_with_access_check->setAttributes(func_art_alloc_object_from_code_with_access_check_PAL);
570
571Function* func_art_alloc_array_from_code = mod->getFunction("art_alloc_array_from_code");
572if (!func_art_alloc_array_from_code) {
573func_art_alloc_array_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700574 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800575 /*Linkage=*/GlobalValue::ExternalLinkage,
576 /*Name=*/"art_alloc_array_from_code", mod); // (external, no body)
577func_art_alloc_array_from_code->setCallingConv(CallingConv::C);
578}
579AttrListPtr func_art_alloc_array_from_code_PAL;
580func_art_alloc_array_from_code->setAttributes(func_art_alloc_array_from_code_PAL);
581
582Function* func_art_alloc_array_from_code_with_access_check = mod->getFunction("art_alloc_array_from_code_with_access_check");
583if (!func_art_alloc_array_from_code_with_access_check) {
584func_art_alloc_array_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700585 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800586 /*Linkage=*/GlobalValue::ExternalLinkage,
587 /*Name=*/"art_alloc_array_from_code_with_access_check", mod); // (external, no body)
588func_art_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
589}
590AttrListPtr func_art_alloc_array_from_code_with_access_check_PAL;
591func_art_alloc_array_from_code_with_access_check->setAttributes(func_art_alloc_array_from_code_with_access_check_PAL);
592
593Function* func_art_check_and_alloc_array_from_code = mod->getFunction("art_check_and_alloc_array_from_code");
594if (!func_art_check_and_alloc_array_from_code) {
595func_art_check_and_alloc_array_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700596 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800597 /*Linkage=*/GlobalValue::ExternalLinkage,
598 /*Name=*/"art_check_and_alloc_array_from_code", mod); // (external, no body)
599func_art_check_and_alloc_array_from_code->setCallingConv(CallingConv::C);
600}
601AttrListPtr func_art_check_and_alloc_array_from_code_PAL;
602func_art_check_and_alloc_array_from_code->setAttributes(func_art_check_and_alloc_array_from_code_PAL);
603
604Function* func_art_check_and_alloc_array_from_code_with_access_check = mod->getFunction("art_check_and_alloc_array_from_code_with_access_check");
605if (!func_art_check_and_alloc_array_from_code_with_access_check) {
606func_art_check_and_alloc_array_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700607 /*Type=*/FuncTy_15,
Logan Chien42e0e152012-01-13 15:42:36 +0800608 /*Linkage=*/GlobalValue::ExternalLinkage,
609 /*Name=*/"art_check_and_alloc_array_from_code_with_access_check", mod); // (external, no body)
610func_art_check_and_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
611}
612AttrListPtr func_art_check_and_alloc_array_from_code_with_access_check_PAL;
613func_art_check_and_alloc_array_from_code_with_access_check->setAttributes(func_art_check_and_alloc_array_from_code_with_access_check_PAL);
614
Logan Chien42e0e152012-01-13 15:42:36 +0800615Function* func_art_find_instance_field_from_code = mod->getFunction("art_find_instance_field_from_code");
616if (!func_art_find_instance_field_from_code) {
617func_art_find_instance_field_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700618 /*Type=*/FuncTy_16,
Logan Chien42e0e152012-01-13 15:42:36 +0800619 /*Linkage=*/GlobalValue::ExternalLinkage,
620 /*Name=*/"art_find_instance_field_from_code", mod); // (external, no body)
621func_art_find_instance_field_from_code->setCallingConv(CallingConv::C);
622}
623AttrListPtr func_art_find_instance_field_from_code_PAL;
624func_art_find_instance_field_from_code->setAttributes(func_art_find_instance_field_from_code_PAL);
625
626Function* func_art_find_static_field_from_code = mod->getFunction("art_find_static_field_from_code");
627if (!func_art_find_static_field_from_code) {
628func_art_find_static_field_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700629 /*Type=*/FuncTy_16,
Logan Chien42e0e152012-01-13 15:42:36 +0800630 /*Linkage=*/GlobalValue::ExternalLinkage,
631 /*Name=*/"art_find_static_field_from_code", mod); // (external, no body)
632func_art_find_static_field_from_code->setCallingConv(CallingConv::C);
633}
634AttrListPtr func_art_find_static_field_from_code_PAL;
635func_art_find_static_field_from_code->setAttributes(func_art_find_static_field_from_code_PAL);
636
Logan Chien7e7fabc2012-04-10 18:59:11 +0800637Function* func_art_find_static_method_from_code_with_access_check = mod->getFunction("art_find_static_method_from_code_with_access_check");
638if (!func_art_find_static_method_from_code_with_access_check) {
639func_art_find_static_method_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700640 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800641 /*Linkage=*/GlobalValue::ExternalLinkage,
642 /*Name=*/"art_find_static_method_from_code_with_access_check", mod); // (external, no body)
643func_art_find_static_method_from_code_with_access_check->setCallingConv(CallingConv::C);
644}
645AttrListPtr func_art_find_static_method_from_code_with_access_check_PAL;
646func_art_find_static_method_from_code_with_access_check->setAttributes(func_art_find_static_method_from_code_with_access_check_PAL);
647
648Function* func_art_find_direct_method_from_code_with_access_check = mod->getFunction("art_find_direct_method_from_code_with_access_check");
649if (!func_art_find_direct_method_from_code_with_access_check) {
650func_art_find_direct_method_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700651 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800652 /*Linkage=*/GlobalValue::ExternalLinkage,
653 /*Name=*/"art_find_direct_method_from_code_with_access_check", mod); // (external, no body)
654func_art_find_direct_method_from_code_with_access_check->setCallingConv(CallingConv::C);
655}
656AttrListPtr func_art_find_direct_method_from_code_with_access_check_PAL;
657func_art_find_direct_method_from_code_with_access_check->setAttributes(func_art_find_direct_method_from_code_with_access_check_PAL);
658
659Function* func_art_find_virtual_method_from_code_with_access_check = mod->getFunction("art_find_virtual_method_from_code_with_access_check");
660if (!func_art_find_virtual_method_from_code_with_access_check) {
661func_art_find_virtual_method_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700662 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800663 /*Linkage=*/GlobalValue::ExternalLinkage,
664 /*Name=*/"art_find_virtual_method_from_code_with_access_check", mod); // (external, no body)
665func_art_find_virtual_method_from_code_with_access_check->setCallingConv(CallingConv::C);
666}
667AttrListPtr func_art_find_virtual_method_from_code_with_access_check_PAL;
668func_art_find_virtual_method_from_code_with_access_check->setAttributes(func_art_find_virtual_method_from_code_with_access_check_PAL);
669
670Function* func_art_find_super_method_from_code_with_access_check = mod->getFunction("art_find_super_method_from_code_with_access_check");
671if (!func_art_find_super_method_from_code_with_access_check) {
672func_art_find_super_method_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700673 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800674 /*Linkage=*/GlobalValue::ExternalLinkage,
675 /*Name=*/"art_find_super_method_from_code_with_access_check", mod); // (external, no body)
676func_art_find_super_method_from_code_with_access_check->setCallingConv(CallingConv::C);
677}
678AttrListPtr func_art_find_super_method_from_code_with_access_check_PAL;
679func_art_find_super_method_from_code_with_access_check->setAttributes(func_art_find_super_method_from_code_with_access_check_PAL);
680
681Function* func_art_find_interface_method_from_code_with_access_check = mod->getFunction("art_find_interface_method_from_code_with_access_check");
682if (!func_art_find_interface_method_from_code_with_access_check) {
683func_art_find_interface_method_from_code_with_access_check = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700684 /*Type=*/FuncTy_17,
Logan Chien7e7fabc2012-04-10 18:59:11 +0800685 /*Linkage=*/GlobalValue::ExternalLinkage,
686 /*Name=*/"art_find_interface_method_from_code_with_access_check", mod); // (external, no body)
687func_art_find_interface_method_from_code_with_access_check->setCallingConv(CallingConv::C);
688}
689AttrListPtr func_art_find_interface_method_from_code_with_access_check_PAL;
690func_art_find_interface_method_from_code_with_access_check->setAttributes(func_art_find_interface_method_from_code_with_access_check_PAL);
691
Logan Chien42e0e152012-01-13 15:42:36 +0800692Function* func_art_find_interface_method_from_code = mod->getFunction("art_find_interface_method_from_code");
693if (!func_art_find_interface_method_from_code) {
694func_art_find_interface_method_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700695 /*Type=*/FuncTy_17,
Logan Chien42e0e152012-01-13 15:42:36 +0800696 /*Linkage=*/GlobalValue::ExternalLinkage,
697 /*Name=*/"art_find_interface_method_from_code", mod); // (external, no body)
698func_art_find_interface_method_from_code->setCallingConv(CallingConv::C);
699}
700AttrListPtr func_art_find_interface_method_from_code_PAL;
701func_art_find_interface_method_from_code->setAttributes(func_art_find_interface_method_from_code_PAL);
702
703Function* func_art_initialize_static_storage_from_code = mod->getFunction("art_initialize_static_storage_from_code");
704if (!func_art_initialize_static_storage_from_code) {
705func_art_initialize_static_storage_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700706 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800707 /*Linkage=*/GlobalValue::ExternalLinkage,
708 /*Name=*/"art_initialize_static_storage_from_code", mod); // (external, no body)
709func_art_initialize_static_storage_from_code->setCallingConv(CallingConv::C);
710}
711AttrListPtr func_art_initialize_static_storage_from_code_PAL;
712func_art_initialize_static_storage_from_code->setAttributes(func_art_initialize_static_storage_from_code_PAL);
713
714Function* func_art_initialize_type_from_code = mod->getFunction("art_initialize_type_from_code");
715if (!func_art_initialize_type_from_code) {
716func_art_initialize_type_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700717 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800718 /*Linkage=*/GlobalValue::ExternalLinkage,
719 /*Name=*/"art_initialize_type_from_code", mod); // (external, no body)
720func_art_initialize_type_from_code->setCallingConv(CallingConv::C);
721}
722AttrListPtr func_art_initialize_type_from_code_PAL;
723func_art_initialize_type_from_code->setAttributes(func_art_initialize_type_from_code_PAL);
724
725Function* func_art_initialize_type_and_verify_access_from_code = mod->getFunction("art_initialize_type_and_verify_access_from_code");
726if (!func_art_initialize_type_and_verify_access_from_code) {
727func_art_initialize_type_and_verify_access_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700728 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800729 /*Linkage=*/GlobalValue::ExternalLinkage,
730 /*Name=*/"art_initialize_type_and_verify_access_from_code", mod); // (external, no body)
731func_art_initialize_type_and_verify_access_from_code->setCallingConv(CallingConv::C);
732}
733AttrListPtr func_art_initialize_type_and_verify_access_from_code_PAL;
734func_art_initialize_type_and_verify_access_from_code->setAttributes(func_art_initialize_type_and_verify_access_from_code_PAL);
735
736Function* func_art_resolve_string_from_code = mod->getFunction("art_resolve_string_from_code");
737if (!func_art_resolve_string_from_code) {
738func_art_resolve_string_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700739 /*Type=*/FuncTy_18,
Logan Chien42e0e152012-01-13 15:42:36 +0800740 /*Linkage=*/GlobalValue::ExternalLinkage,
741 /*Name=*/"art_resolve_string_from_code", mod); // (external, no body)
742func_art_resolve_string_from_code->setCallingConv(CallingConv::C);
743}
744AttrListPtr func_art_resolve_string_from_code_PAL;
745func_art_resolve_string_from_code->setAttributes(func_art_resolve_string_from_code_PAL);
746
Logan Chien42e0e152012-01-13 15:42:36 +0800747Function* func_art_set32_static_from_code = mod->getFunction("art_set32_static_from_code");
748if (!func_art_set32_static_from_code) {
749func_art_set32_static_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700750 /*Type=*/FuncTy_19,
Logan Chien42e0e152012-01-13 15:42:36 +0800751 /*Linkage=*/GlobalValue::ExternalLinkage,
752 /*Name=*/"art_set32_static_from_code", mod); // (external, no body)
753func_art_set32_static_from_code->setCallingConv(CallingConv::C);
754}
755AttrListPtr func_art_set32_static_from_code_PAL;
756func_art_set32_static_from_code->setAttributes(func_art_set32_static_from_code_PAL);
757
758Function* func_art_set64_static_from_code = mod->getFunction("art_set64_static_from_code");
759if (!func_art_set64_static_from_code) {
760func_art_set64_static_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700761 /*Type=*/FuncTy_20,
Logan Chien42e0e152012-01-13 15:42:36 +0800762 /*Linkage=*/GlobalValue::ExternalLinkage,
763 /*Name=*/"art_set64_static_from_code", mod); // (external, no body)
764func_art_set64_static_from_code->setCallingConv(CallingConv::C);
765}
766AttrListPtr func_art_set64_static_from_code_PAL;
767func_art_set64_static_from_code->setAttributes(func_art_set64_static_from_code_PAL);
768
769Function* func_art_set_obj_static_from_code = mod->getFunction("art_set_obj_static_from_code");
770if (!func_art_set_obj_static_from_code) {
771func_art_set_obj_static_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700772 /*Type=*/FuncTy_21,
Logan Chien42e0e152012-01-13 15:42:36 +0800773 /*Linkage=*/GlobalValue::ExternalLinkage,
774 /*Name=*/"art_set_obj_static_from_code", mod); // (external, no body)
775func_art_set_obj_static_from_code->setCallingConv(CallingConv::C);
776}
777AttrListPtr func_art_set_obj_static_from_code_PAL;
778func_art_set_obj_static_from_code->setAttributes(func_art_set_obj_static_from_code_PAL);
779
780Function* func_art_get32_static_from_code = mod->getFunction("art_get32_static_from_code");
781if (!func_art_get32_static_from_code) {
782func_art_get32_static_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700783 /*Type=*/FuncTy_22,
Logan Chien42e0e152012-01-13 15:42:36 +0800784 /*Linkage=*/GlobalValue::ExternalLinkage,
785 /*Name=*/"art_get32_static_from_code", mod); // (external, no body)
786func_art_get32_static_from_code->setCallingConv(CallingConv::C);
787}
788AttrListPtr func_art_get32_static_from_code_PAL;
789func_art_get32_static_from_code->setAttributes(func_art_get32_static_from_code_PAL);
790
791Function* func_art_get64_static_from_code = mod->getFunction("art_get64_static_from_code");
792if (!func_art_get64_static_from_code) {
793func_art_get64_static_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700794 /*Type=*/FuncTy_23,
Logan Chien42e0e152012-01-13 15:42:36 +0800795 /*Linkage=*/GlobalValue::ExternalLinkage,
796 /*Name=*/"art_get64_static_from_code", mod); // (external, no body)
797func_art_get64_static_from_code->setCallingConv(CallingConv::C);
798}
799AttrListPtr func_art_get64_static_from_code_PAL;
800func_art_get64_static_from_code->setAttributes(func_art_get64_static_from_code_PAL);
801
802Function* func_art_get_obj_static_from_code = mod->getFunction("art_get_obj_static_from_code");
803if (!func_art_get_obj_static_from_code) {
804func_art_get_obj_static_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700805 /*Type=*/FuncTy_24,
Logan Chien42e0e152012-01-13 15:42:36 +0800806 /*Linkage=*/GlobalValue::ExternalLinkage,
807 /*Name=*/"art_get_obj_static_from_code", mod); // (external, no body)
808func_art_get_obj_static_from_code->setCallingConv(CallingConv::C);
809}
810AttrListPtr func_art_get_obj_static_from_code_PAL;
811func_art_get_obj_static_from_code->setAttributes(func_art_get_obj_static_from_code_PAL);
812
813Function* func_art_set32_instance_from_code = mod->getFunction("art_set32_instance_from_code");
814if (!func_art_set32_instance_from_code) {
815func_art_set32_instance_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700816 /*Type=*/FuncTy_25,
Logan Chien42e0e152012-01-13 15:42:36 +0800817 /*Linkage=*/GlobalValue::ExternalLinkage,
818 /*Name=*/"art_set32_instance_from_code", mod); // (external, no body)
819func_art_set32_instance_from_code->setCallingConv(CallingConv::C);
820}
821AttrListPtr func_art_set32_instance_from_code_PAL;
822func_art_set32_instance_from_code->setAttributes(func_art_set32_instance_from_code_PAL);
823
824Function* func_art_set64_instance_from_code = mod->getFunction("art_set64_instance_from_code");
825if (!func_art_set64_instance_from_code) {
826func_art_set64_instance_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700827 /*Type=*/FuncTy_26,
Logan Chien42e0e152012-01-13 15:42:36 +0800828 /*Linkage=*/GlobalValue::ExternalLinkage,
829 /*Name=*/"art_set64_instance_from_code", mod); // (external, no body)
830func_art_set64_instance_from_code->setCallingConv(CallingConv::C);
831}
832AttrListPtr func_art_set64_instance_from_code_PAL;
833func_art_set64_instance_from_code->setAttributes(func_art_set64_instance_from_code_PAL);
834
835Function* func_art_set_obj_instance_from_code = mod->getFunction("art_set_obj_instance_from_code");
836if (!func_art_set_obj_instance_from_code) {
837func_art_set_obj_instance_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700838 /*Type=*/FuncTy_27,
Logan Chien42e0e152012-01-13 15:42:36 +0800839 /*Linkage=*/GlobalValue::ExternalLinkage,
840 /*Name=*/"art_set_obj_instance_from_code", mod); // (external, no body)
841func_art_set_obj_instance_from_code->setCallingConv(CallingConv::C);
842}
843AttrListPtr func_art_set_obj_instance_from_code_PAL;
844func_art_set_obj_instance_from_code->setAttributes(func_art_set_obj_instance_from_code_PAL);
845
846Function* func_art_get32_instance_from_code = mod->getFunction("art_get32_instance_from_code");
847if (!func_art_get32_instance_from_code) {
848func_art_get32_instance_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700849 /*Type=*/FuncTy_21,
Logan Chien42e0e152012-01-13 15:42:36 +0800850 /*Linkage=*/GlobalValue::ExternalLinkage,
851 /*Name=*/"art_get32_instance_from_code", mod); // (external, no body)
852func_art_get32_instance_from_code->setCallingConv(CallingConv::C);
853}
854AttrListPtr func_art_get32_instance_from_code_PAL;
855func_art_get32_instance_from_code->setAttributes(func_art_get32_instance_from_code_PAL);
856
857Function* func_art_get64_instance_from_code = mod->getFunction("art_get64_instance_from_code");
858if (!func_art_get64_instance_from_code) {
859func_art_get64_instance_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700860 /*Type=*/FuncTy_28,
Logan Chien42e0e152012-01-13 15:42:36 +0800861 /*Linkage=*/GlobalValue::ExternalLinkage,
862 /*Name=*/"art_get64_instance_from_code", mod); // (external, no body)
863func_art_get64_instance_from_code->setCallingConv(CallingConv::C);
864}
865AttrListPtr func_art_get64_instance_from_code_PAL;
866func_art_get64_instance_from_code->setAttributes(func_art_get64_instance_from_code_PAL);
867
868Function* func_art_get_obj_instance_from_code = mod->getFunction("art_get_obj_instance_from_code");
869if (!func_art_get_obj_instance_from_code) {
870func_art_get_obj_instance_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700871 /*Type=*/FuncTy_14,
Logan Chien42e0e152012-01-13 15:42:36 +0800872 /*Linkage=*/GlobalValue::ExternalLinkage,
873 /*Name=*/"art_get_obj_instance_from_code", mod); // (external, no body)
874func_art_get_obj_instance_from_code->setCallingConv(CallingConv::C);
875}
876AttrListPtr func_art_get_obj_instance_from_code_PAL;
877func_art_get_obj_instance_from_code->setAttributes(func_art_get_obj_instance_from_code_PAL);
878
TDYa12728f1a142012-03-15 21:51:52 -0700879Function* func_art_decode_jobject_in_thread = mod->getFunction("art_decode_jobject_in_thread");
880if (!func_art_decode_jobject_in_thread) {
881func_art_decode_jobject_in_thread = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700882 /*Type=*/FuncTy_29,
TDYa12728f1a142012-03-15 21:51:52 -0700883 /*Linkage=*/GlobalValue::ExternalLinkage,
884 /*Name=*/"art_decode_jobject_in_thread", mod); // (external, no body)
885func_art_decode_jobject_in_thread->setCallingConv(CallingConv::C);
886}
887AttrListPtr func_art_decode_jobject_in_thread_PAL;
888func_art_decode_jobject_in_thread->setAttributes(func_art_decode_jobject_in_thread_PAL);
889
Logan Chien86f50672012-04-24 13:08:45 +0800890Function* func_art_fill_array_data_from_code = mod->getFunction("art_fill_array_data_from_code");
891if (!func_art_fill_array_data_from_code) {
892func_art_fill_array_data_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700893 /*Type=*/FuncTy_30,
Logan Chien86f50672012-04-24 13:08:45 +0800894 /*Linkage=*/GlobalValue::ExternalLinkage,
895 /*Name=*/"art_fill_array_data_from_code", mod); // (external, no body)
896func_art_fill_array_data_from_code->setCallingConv(CallingConv::C);
897}
898AttrListPtr func_art_fill_array_data_from_code_PAL;
899func_art_fill_array_data_from_code->setAttributes(func_art_fill_array_data_from_code_PAL);
900
Logan Chien42e0e152012-01-13 15:42:36 +0800901Function* func_art_is_assignable_from_code = mod->getFunction("art_is_assignable_from_code");
902if (!func_art_is_assignable_from_code) {
903func_art_is_assignable_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700904 /*Type=*/FuncTy_31,
Logan Chien42e0e152012-01-13 15:42:36 +0800905 /*Linkage=*/GlobalValue::ExternalLinkage,
906 /*Name=*/"art_is_assignable_from_code", mod); // (external, no body)
907func_art_is_assignable_from_code->setCallingConv(CallingConv::C);
908}
909AttrListPtr func_art_is_assignable_from_code_PAL;
910func_art_is_assignable_from_code->setAttributes(func_art_is_assignable_from_code_PAL);
911
912Function* func_art_check_cast_from_code = mod->getFunction("art_check_cast_from_code");
913if (!func_art_check_cast_from_code) {
914func_art_check_cast_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700915 /*Type=*/FuncTy_5,
Logan Chien42e0e152012-01-13 15:42:36 +0800916 /*Linkage=*/GlobalValue::ExternalLinkage,
917 /*Name=*/"art_check_cast_from_code", mod); // (external, no body)
918func_art_check_cast_from_code->setCallingConv(CallingConv::C);
919}
920AttrListPtr func_art_check_cast_from_code_PAL;
921func_art_check_cast_from_code->setAttributes(func_art_check_cast_from_code_PAL);
922
TDYa1271b86d072012-04-05 17:38:56 -0700923Function* func_art_check_put_array_element_from_code = mod->getFunction("art_check_put_array_element_from_code");
924if (!func_art_check_put_array_element_from_code) {
925func_art_check_put_array_element_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700926 /*Type=*/FuncTy_5,
TDYa1271b86d072012-04-05 17:38:56 -0700927 /*Linkage=*/GlobalValue::ExternalLinkage,
928 /*Name=*/"art_check_put_array_element_from_code", mod); // (external, no body)
929func_art_check_put_array_element_from_code->setCallingConv(CallingConv::C);
930}
931AttrListPtr func_art_check_put_array_element_from_code_PAL;
932func_art_check_put_array_element_from_code->setAttributes(func_art_check_put_array_element_from_code_PAL);
933
jeffhao41005dd2012-05-09 17:58:52 -0700934Function* func_art_d2l = mod->getFunction("art_d2l");
935if (!func_art_d2l) {
936func_art_d2l = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700937 /*Type=*/FuncTy_32,
TDYa127a4746872012-04-11 23:48:55 -0700938 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700939 /*Name=*/"art_d2l", mod); // (external, no body)
940func_art_d2l->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700941}
jeffhao41005dd2012-05-09 17:58:52 -0700942AttrListPtr func_art_d2l_PAL;
943func_art_d2l->setAttributes(func_art_d2l_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700944
jeffhao41005dd2012-05-09 17:58:52 -0700945Function* func_art_d2i = mod->getFunction("art_d2i");
946if (!func_art_d2i) {
947func_art_d2i = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700948 /*Type=*/FuncTy_33,
TDYa127a4746872012-04-11 23:48:55 -0700949 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700950 /*Name=*/"art_d2i", mod); // (external, no body)
951func_art_d2i->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700952}
jeffhao41005dd2012-05-09 17:58:52 -0700953AttrListPtr func_art_d2i_PAL;
954func_art_d2i->setAttributes(func_art_d2i_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700955
jeffhao41005dd2012-05-09 17:58:52 -0700956Function* func_art_f2l = mod->getFunction("art_f2l");
957if (!func_art_f2l) {
958func_art_f2l = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700959 /*Type=*/FuncTy_34,
TDYa127a4746872012-04-11 23:48:55 -0700960 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700961 /*Name=*/"art_f2l", mod); // (external, no body)
962func_art_f2l->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700963}
jeffhao41005dd2012-05-09 17:58:52 -0700964AttrListPtr func_art_f2l_PAL;
965func_art_f2l->setAttributes(func_art_f2l_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700966
jeffhao41005dd2012-05-09 17:58:52 -0700967Function* func_art_f2i = mod->getFunction("art_f2i");
968if (!func_art_f2i) {
969func_art_f2i = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700970 /*Type=*/FuncTy_35,
TDYa127a4746872012-04-11 23:48:55 -0700971 /*Linkage=*/GlobalValue::ExternalLinkage,
jeffhao41005dd2012-05-09 17:58:52 -0700972 /*Name=*/"art_f2i", mod); // (external, no body)
973func_art_f2i->setCallingConv(CallingConv::C);
TDYa127a4746872012-04-11 23:48:55 -0700974}
jeffhao41005dd2012-05-09 17:58:52 -0700975AttrListPtr func_art_f2i_PAL;
976func_art_f2i->setAttributes(func_art_f2i_PAL);
TDYa127a4746872012-04-11 23:48:55 -0700977
TDYa12783bb6622012-04-17 02:20:34 -0700978Function* func_art_mark_gc_card_from_code = mod->getFunction("art_mark_gc_card_from_code");
979if (!func_art_mark_gc_card_from_code) {
980func_art_mark_gc_card_from_code = Function::Create(
TDYa127706e9b62012-04-19 12:24:26 -0700981 /*Type=*/FuncTy_5,
TDYa12783bb6622012-04-17 02:20:34 -0700982 /*Linkage=*/GlobalValue::ExternalLinkage,
983 /*Name=*/"art_mark_gc_card_from_code", mod); // (external, no body)
984func_art_mark_gc_card_from_code->setCallingConv(CallingConv::C);
985}
986AttrListPtr func_art_mark_gc_card_from_code_PAL;
987func_art_mark_gc_card_from_code->setAttributes(func_art_mark_gc_card_from_code_PAL);
988
TDYa1270b686e52012-04-09 22:43:35 -0700989Function* func_art_fix_stub_from_code = mod->getFunction("art_fix_stub_from_code");
990if (!func_art_fix_stub_from_code) {
991func_art_fix_stub_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -0700992 /*Type=*/FuncTy_36,
TDYa12785321912012-04-01 15:24:56 -0700993 /*Linkage=*/GlobalValue::ExternalLinkage,
TDYa1270b686e52012-04-09 22:43:35 -0700994 /*Name=*/"art_fix_stub_from_code", mod); // (external, no body)
995func_art_fix_stub_from_code->setCallingConv(CallingConv::C);
TDYa12785321912012-04-01 15:24:56 -0700996}
TDYa1270b686e52012-04-09 22:43:35 -0700997AttrListPtr func_art_fix_stub_from_code_PAL;
998func_art_fix_stub_from_code->setAttributes(func_art_fix_stub_from_code_PAL);
TDYa12785321912012-04-01 15:24:56 -0700999
TDYa1275bb86012012-04-11 05:57:28 -07001000Function* func_art_proxy_invoke_handler_from_code = mod->getFunction("art_proxy_invoke_handler_from_code");
1001if (!func_art_proxy_invoke_handler_from_code) {
1002func_art_proxy_invoke_handler_from_code = Function::Create(
TDYa1270de52be2012-05-27 20:49:31 -07001003 /*Type=*/FuncTy_37,
TDYa1275bb86012012-04-11 05:57:28 -07001004 /*Linkage=*/GlobalValue::ExternalLinkage,
1005 /*Name=*/"art_proxy_invoke_handler_from_code", mod); // (external, no body)
1006func_art_proxy_invoke_handler_from_code->setCallingConv(CallingConv::C);
1007}
1008AttrListPtr func_art_proxy_invoke_handler_from_code_PAL;
1009func_art_proxy_invoke_handler_from_code->setAttributes(func_art_proxy_invoke_handler_from_code_PAL);
1010
Logan Chien42e0e152012-01-13 15:42:36 +08001011// Global Variable Declarations
1012
1013
1014// Constant Definitions
1015
1016// Global Variable Definitions
1017
1018// Function Definitions
1019
1020return mod;
1021
1022}
Logan Chiene75a8cc2012-02-24 12:26:43 +08001023
1024} // namespace compiler_llvm
1025} // namespace art