Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame^] | 1 | // Generated with ./tools/gen_art_module_cc.sh |
| 2 | |
| 3 | // Generated by llvm2cpp - DO NOT MODIFY! |
| 4 | |
| 5 | |
| 6 | Module* makeLLVMModuleContents(Module *mod) { |
| 7 | |
| 8 | mod->setModuleIdentifier("art_module.ll"); |
| 9 | |
| 10 | // Type Definitions |
| 11 | std::vector<Type*>FuncTy_0_args; |
| 12 | StructType *StructTy_JavaObject = mod->getTypeByName("JavaObject"); |
| 13 | if (!StructTy_JavaObject) { |
| 14 | StructTy_JavaObject = StructType::create(mod->getContext(), "JavaObject"); |
| 15 | } |
| 16 | std::vector<Type*>StructTy_JavaObject_fields; |
| 17 | if (StructTy_JavaObject->isOpaque()) { |
| 18 | StructTy_JavaObject->setBody(StructTy_JavaObject_fields, /*isPacked=*/false); |
| 19 | } |
| 20 | |
| 21 | PointerType* PointerTy_1 = PointerType::get(StructTy_JavaObject, 0); |
| 22 | |
| 23 | FuncTy_0_args.push_back(PointerTy_1); |
| 24 | FunctionType* FuncTy_0 = FunctionType::get( |
| 25 | /*Result=*/Type::getVoidTy(mod->getContext()), |
| 26 | /*Params=*/FuncTy_0_args, |
| 27 | /*isVarArg=*/false); |
| 28 | |
| 29 | std::vector<Type*>FuncTy_2_args; |
| 30 | FunctionType* FuncTy_2 = FunctionType::get( |
| 31 | /*Result=*/PointerTy_1, |
| 32 | /*Params=*/FuncTy_2_args, |
| 33 | /*isVarArg=*/false); |
| 34 | |
| 35 | std::vector<Type*>FuncTy_3_args; |
| 36 | FunctionType* FuncTy_3 = FunctionType::get( |
| 37 | /*Result=*/Type::getVoidTy(mod->getContext()), |
| 38 | /*Params=*/FuncTy_3_args, |
| 39 | /*isVarArg=*/false); |
| 40 | |
| 41 | std::vector<Type*>FuncTy_4_args; |
| 42 | FunctionType* FuncTy_4 = FunctionType::get( |
| 43 | /*Result=*/IntegerType::get(mod->getContext(), 1), |
| 44 | /*Params=*/FuncTy_4_args, |
| 45 | /*isVarArg=*/false); |
| 46 | |
| 47 | std::vector<Type*>FuncTy_5_args; |
| 48 | FuncTy_5_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 49 | FuncTy_5_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 50 | FunctionType* FuncTy_5 = FunctionType::get( |
| 51 | /*Result=*/Type::getVoidTy(mod->getContext()), |
| 52 | /*Params=*/FuncTy_5_args, |
| 53 | /*isVarArg=*/false); |
| 54 | |
| 55 | std::vector<Type*>FuncTy_6_args; |
| 56 | FuncTy_6_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 57 | FunctionType* FuncTy_6 = FunctionType::get( |
| 58 | /*Result=*/Type::getVoidTy(mod->getContext()), |
| 59 | /*Params=*/FuncTy_6_args, |
| 60 | /*isVarArg=*/false); |
| 61 | |
| 62 | std::vector<Type*>FuncTy_7_args; |
| 63 | FuncTy_7_args.push_back(PointerTy_1); |
| 64 | FuncTy_7_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 65 | FunctionType* FuncTy_7 = FunctionType::get( |
| 66 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
| 67 | /*Params=*/FuncTy_7_args, |
| 68 | /*isVarArg=*/false); |
| 69 | |
| 70 | std::vector<Type*>FuncTy_8_args; |
| 71 | FuncTy_8_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 72 | FuncTy_8_args.push_back(PointerTy_1); |
| 73 | FunctionType* FuncTy_8 = FunctionType::get( |
| 74 | /*Result=*/PointerTy_1, |
| 75 | /*Params=*/FuncTy_8_args, |
| 76 | /*isVarArg=*/false); |
| 77 | |
| 78 | std::vector<Type*>FuncTy_9_args; |
| 79 | FuncTy_9_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 80 | FuncTy_9_args.push_back(PointerTy_1); |
| 81 | FuncTy_9_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 82 | FunctionType* FuncTy_9 = FunctionType::get( |
| 83 | /*Result=*/PointerTy_1, |
| 84 | /*Params=*/FuncTy_9_args, |
| 85 | /*isVarArg=*/false); |
| 86 | |
| 87 | std::vector<Type*>FuncTy_10_args; |
| 88 | FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 89 | FuncTy_10_args.push_back(PointerTy_1); |
| 90 | FunctionType* FuncTy_10 = FunctionType::get( |
| 91 | /*Result=*/Type::getVoidTy(mod->getContext()), |
| 92 | /*Params=*/FuncTy_10_args, |
| 93 | /*isVarArg=*/false); |
| 94 | |
| 95 | std::vector<Type*>FuncTy_11_args; |
| 96 | FuncTy_11_args.push_back(PointerTy_1); |
| 97 | FuncTy_11_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 98 | FunctionType* FuncTy_11 = FunctionType::get( |
| 99 | /*Result=*/PointerTy_1, |
| 100 | /*Params=*/FuncTy_11_args, |
| 101 | /*isVarArg=*/false); |
| 102 | |
| 103 | std::vector<Type*>FuncTy_12_args; |
| 104 | FuncTy_12_args.push_back(PointerTy_1); |
| 105 | FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 106 | FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 1)); |
| 107 | FunctionType* FuncTy_12 = FunctionType::get( |
| 108 | /*Result=*/PointerTy_1, |
| 109 | /*Params=*/FuncTy_12_args, |
| 110 | /*isVarArg=*/false); |
| 111 | |
| 112 | std::vector<Type*>FuncTy_13_args; |
| 113 | FuncTy_13_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 114 | FuncTy_13_args.push_back(PointerTy_1); |
| 115 | FuncTy_13_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 116 | FunctionType* FuncTy_13 = FunctionType::get( |
| 117 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
| 118 | /*Params=*/FuncTy_13_args, |
| 119 | /*isVarArg=*/false); |
| 120 | |
| 121 | std::vector<Type*>FuncTy_14_args; |
| 122 | FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 123 | FuncTy_14_args.push_back(PointerTy_1); |
| 124 | FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 64)); |
| 125 | FunctionType* FuncTy_14 = FunctionType::get( |
| 126 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
| 127 | /*Params=*/FuncTy_14_args, |
| 128 | /*isVarArg=*/false); |
| 129 | |
| 130 | std::vector<Type*>FuncTy_15_args; |
| 131 | FuncTy_15_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 132 | FuncTy_15_args.push_back(PointerTy_1); |
| 133 | FuncTy_15_args.push_back(PointerTy_1); |
| 134 | FunctionType* FuncTy_15 = FunctionType::get( |
| 135 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
| 136 | /*Params=*/FuncTy_15_args, |
| 137 | /*isVarArg=*/false); |
| 138 | |
| 139 | std::vector<Type*>FuncTy_16_args; |
| 140 | FuncTy_16_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 141 | FuncTy_16_args.push_back(PointerTy_1); |
| 142 | FunctionType* FuncTy_16 = FunctionType::get( |
| 143 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
| 144 | /*Params=*/FuncTy_16_args, |
| 145 | /*isVarArg=*/false); |
| 146 | |
| 147 | std::vector<Type*>FuncTy_17_args; |
| 148 | FuncTy_17_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 149 | FuncTy_17_args.push_back(PointerTy_1); |
| 150 | FunctionType* FuncTy_17 = FunctionType::get( |
| 151 | /*Result=*/IntegerType::get(mod->getContext(), 64), |
| 152 | /*Params=*/FuncTy_17_args, |
| 153 | /*isVarArg=*/false); |
| 154 | |
| 155 | std::vector<Type*>FuncTy_18_args; |
| 156 | FuncTy_18_args.push_back(PointerTy_1); |
| 157 | FuncTy_18_args.push_back(PointerTy_1); |
| 158 | FunctionType* FuncTy_18 = FunctionType::get( |
| 159 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
| 160 | /*Params=*/FuncTy_18_args, |
| 161 | /*isVarArg=*/false); |
| 162 | |
| 163 | std::vector<Type*>FuncTy_19_args; |
| 164 | FuncTy_19_args.push_back(PointerTy_1); |
| 165 | FuncTy_19_args.push_back(PointerTy_1); |
| 166 | FunctionType* FuncTy_19 = FunctionType::get( |
| 167 | /*Result=*/Type::getVoidTy(mod->getContext()), |
| 168 | /*Params=*/FuncTy_19_args, |
| 169 | /*isVarArg=*/false); |
| 170 | |
| 171 | |
| 172 | // Function Declarations |
| 173 | |
| 174 | Function* func___art_type_list = mod->getFunction("__art_type_list"); |
| 175 | if (!func___art_type_list) { |
| 176 | func___art_type_list = Function::Create( |
| 177 | /*Type=*/FuncTy_0, |
| 178 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 179 | /*Name=*/"__art_type_list", mod); // (external, no body) |
| 180 | func___art_type_list->setCallingConv(CallingConv::C); |
| 181 | } |
| 182 | AttrListPtr func___art_type_list_PAL; |
| 183 | func___art_type_list->setAttributes(func___art_type_list_PAL); |
| 184 | |
| 185 | Function* func_art_get_current_thread_from_code = mod->getFunction("art_get_current_thread_from_code"); |
| 186 | if (!func_art_get_current_thread_from_code) { |
| 187 | func_art_get_current_thread_from_code = Function::Create( |
| 188 | /*Type=*/FuncTy_2, |
| 189 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 190 | /*Name=*/"art_get_current_thread_from_code", mod); // (external, no body) |
| 191 | func_art_get_current_thread_from_code->setCallingConv(CallingConv::C); |
| 192 | } |
| 193 | AttrListPtr func_art_get_current_thread_from_code_PAL; |
| 194 | func_art_get_current_thread_from_code->setAttributes(func_art_get_current_thread_from_code_PAL); |
| 195 | |
| 196 | Function* func_art_set_current_thread_from_code = mod->getFunction("art_set_current_thread_from_code"); |
| 197 | if (!func_art_set_current_thread_from_code) { |
| 198 | func_art_set_current_thread_from_code = Function::Create( |
| 199 | /*Type=*/FuncTy_0, |
| 200 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 201 | /*Name=*/"art_set_current_thread_from_code", mod); // (external, no body) |
| 202 | func_art_set_current_thread_from_code->setCallingConv(CallingConv::C); |
| 203 | } |
| 204 | AttrListPtr func_art_set_current_thread_from_code_PAL; |
| 205 | func_art_set_current_thread_from_code->setAttributes(func_art_set_current_thread_from_code_PAL); |
| 206 | |
| 207 | Function* func_art_lock_object_from_code = mod->getFunction("art_lock_object_from_code"); |
| 208 | if (!func_art_lock_object_from_code) { |
| 209 | func_art_lock_object_from_code = Function::Create( |
| 210 | /*Type=*/FuncTy_0, |
| 211 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 212 | /*Name=*/"art_lock_object_from_code", mod); // (external, no body) |
| 213 | func_art_lock_object_from_code->setCallingConv(CallingConv::C); |
| 214 | } |
| 215 | AttrListPtr func_art_lock_object_from_code_PAL; |
| 216 | func_art_lock_object_from_code->setAttributes(func_art_lock_object_from_code_PAL); |
| 217 | |
| 218 | Function* func_art_unlock_object_from_code = mod->getFunction("art_unlock_object_from_code"); |
| 219 | if (!func_art_unlock_object_from_code) { |
| 220 | func_art_unlock_object_from_code = Function::Create( |
| 221 | /*Type=*/FuncTy_0, |
| 222 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 223 | /*Name=*/"art_unlock_object_from_code", mod); // (external, no body) |
| 224 | func_art_unlock_object_from_code->setCallingConv(CallingConv::C); |
| 225 | } |
| 226 | AttrListPtr func_art_unlock_object_from_code_PAL; |
| 227 | func_art_unlock_object_from_code->setAttributes(func_art_unlock_object_from_code_PAL); |
| 228 | |
| 229 | Function* func_art_test_suspend_from_code = mod->getFunction("art_test_suspend_from_code"); |
| 230 | if (!func_art_test_suspend_from_code) { |
| 231 | func_art_test_suspend_from_code = Function::Create( |
| 232 | /*Type=*/FuncTy_3, |
| 233 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 234 | /*Name=*/"art_test_suspend_from_code", mod); // (external, no body) |
| 235 | func_art_test_suspend_from_code->setCallingConv(CallingConv::C); |
| 236 | } |
| 237 | AttrListPtr func_art_test_suspend_from_code_PAL; |
| 238 | func_art_test_suspend_from_code->setAttributes(func_art_test_suspend_from_code_PAL); |
| 239 | |
| 240 | Function* func_art_is_exception_pending_from_code = mod->getFunction("art_is_exception_pending_from_code"); |
| 241 | if (!func_art_is_exception_pending_from_code) { |
| 242 | func_art_is_exception_pending_from_code = Function::Create( |
| 243 | /*Type=*/FuncTy_4, |
| 244 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 245 | /*Name=*/"art_is_exception_pending_from_code", mod); // (external, no body) |
| 246 | func_art_is_exception_pending_from_code->setCallingConv(CallingConv::C); |
| 247 | } |
| 248 | AttrListPtr func_art_is_exception_pending_from_code_PAL; |
| 249 | func_art_is_exception_pending_from_code->setAttributes(func_art_is_exception_pending_from_code_PAL); |
| 250 | |
| 251 | Function* func_art_throw_div_zero_from_code = mod->getFunction("art_throw_div_zero_from_code"); |
| 252 | if (!func_art_throw_div_zero_from_code) { |
| 253 | func_art_throw_div_zero_from_code = Function::Create( |
| 254 | /*Type=*/FuncTy_3, |
| 255 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 256 | /*Name=*/"art_throw_div_zero_from_code", mod); // (external, no body) |
| 257 | func_art_throw_div_zero_from_code->setCallingConv(CallingConv::C); |
| 258 | } |
| 259 | AttrListPtr func_art_throw_div_zero_from_code_PAL; |
| 260 | func_art_throw_div_zero_from_code->setAttributes(func_art_throw_div_zero_from_code_PAL); |
| 261 | |
| 262 | Function* func_art_throw_array_bounds_from_code = mod->getFunction("art_throw_array_bounds_from_code"); |
| 263 | if (!func_art_throw_array_bounds_from_code) { |
| 264 | func_art_throw_array_bounds_from_code = Function::Create( |
| 265 | /*Type=*/FuncTy_5, |
| 266 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 267 | /*Name=*/"art_throw_array_bounds_from_code", mod); // (external, no body) |
| 268 | func_art_throw_array_bounds_from_code->setCallingConv(CallingConv::C); |
| 269 | } |
| 270 | AttrListPtr func_art_throw_array_bounds_from_code_PAL; |
| 271 | func_art_throw_array_bounds_from_code->setAttributes(func_art_throw_array_bounds_from_code_PAL); |
| 272 | |
| 273 | Function* func_art_throw_no_such_method_from_code = mod->getFunction("art_throw_no_such_method_from_code"); |
| 274 | if (!func_art_throw_no_such_method_from_code) { |
| 275 | func_art_throw_no_such_method_from_code = Function::Create( |
| 276 | /*Type=*/FuncTy_6, |
| 277 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 278 | /*Name=*/"art_throw_no_such_method_from_code", mod); // (external, no body) |
| 279 | func_art_throw_no_such_method_from_code->setCallingConv(CallingConv::C); |
| 280 | } |
| 281 | AttrListPtr func_art_throw_no_such_method_from_code_PAL; |
| 282 | func_art_throw_no_such_method_from_code->setAttributes(func_art_throw_no_such_method_from_code_PAL); |
| 283 | |
| 284 | Function* func_art_throw_null_pointer_exception_from_code = mod->getFunction("art_throw_null_pointer_exception_from_code"); |
| 285 | if (!func_art_throw_null_pointer_exception_from_code) { |
| 286 | func_art_throw_null_pointer_exception_from_code = Function::Create( |
| 287 | /*Type=*/FuncTy_3, |
| 288 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 289 | /*Name=*/"art_throw_null_pointer_exception_from_code", mod); // (external, no body) |
| 290 | func_art_throw_null_pointer_exception_from_code->setCallingConv(CallingConv::C); |
| 291 | } |
| 292 | AttrListPtr func_art_throw_null_pointer_exception_from_code_PAL; |
| 293 | func_art_throw_null_pointer_exception_from_code->setAttributes(func_art_throw_null_pointer_exception_from_code_PAL); |
| 294 | |
| 295 | Function* func_art_throw_stack_overflow_from_code = mod->getFunction("art_throw_stack_overflow_from_code"); |
| 296 | if (!func_art_throw_stack_overflow_from_code) { |
| 297 | func_art_throw_stack_overflow_from_code = Function::Create( |
| 298 | /*Type=*/FuncTy_0, |
| 299 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 300 | /*Name=*/"art_throw_stack_overflow_from_code", mod); // (external, no body) |
| 301 | func_art_throw_stack_overflow_from_code->setCallingConv(CallingConv::C); |
| 302 | } |
| 303 | AttrListPtr func_art_throw_stack_overflow_from_code_PAL; |
| 304 | func_art_throw_stack_overflow_from_code->setAttributes(func_art_throw_stack_overflow_from_code_PAL); |
| 305 | |
| 306 | Function* func_art_throw_exception_from_code = mod->getFunction("art_throw_exception_from_code"); |
| 307 | if (!func_art_throw_exception_from_code) { |
| 308 | func_art_throw_exception_from_code = Function::Create( |
| 309 | /*Type=*/FuncTy_0, |
| 310 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 311 | /*Name=*/"art_throw_exception_from_code", mod); // (external, no body) |
| 312 | func_art_throw_exception_from_code->setCallingConv(CallingConv::C); |
| 313 | } |
| 314 | AttrListPtr func_art_throw_exception_from_code_PAL; |
| 315 | func_art_throw_exception_from_code->setAttributes(func_art_throw_exception_from_code_PAL); |
| 316 | |
| 317 | Function* func_art_find_catch_block_from_code = mod->getFunction("art_find_catch_block_from_code"); |
| 318 | if (!func_art_find_catch_block_from_code) { |
| 319 | func_art_find_catch_block_from_code = Function::Create( |
| 320 | /*Type=*/FuncTy_7, |
| 321 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 322 | /*Name=*/"art_find_catch_block_from_code", mod); // (external, no body) |
| 323 | func_art_find_catch_block_from_code->setCallingConv(CallingConv::C); |
| 324 | } |
| 325 | AttrListPtr func_art_find_catch_block_from_code_PAL; |
| 326 | func_art_find_catch_block_from_code->setAttributes(func_art_find_catch_block_from_code_PAL); |
| 327 | |
| 328 | Function* func_art_alloc_object_from_code = mod->getFunction("art_alloc_object_from_code"); |
| 329 | if (!func_art_alloc_object_from_code) { |
| 330 | func_art_alloc_object_from_code = Function::Create( |
| 331 | /*Type=*/FuncTy_8, |
| 332 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 333 | /*Name=*/"art_alloc_object_from_code", mod); // (external, no body) |
| 334 | func_art_alloc_object_from_code->setCallingConv(CallingConv::C); |
| 335 | } |
| 336 | AttrListPtr func_art_alloc_object_from_code_PAL; |
| 337 | func_art_alloc_object_from_code->setAttributes(func_art_alloc_object_from_code_PAL); |
| 338 | |
| 339 | Function* func_art_alloc_object_from_code_with_access_check = mod->getFunction("art_alloc_object_from_code_with_access_check"); |
| 340 | if (!func_art_alloc_object_from_code_with_access_check) { |
| 341 | func_art_alloc_object_from_code_with_access_check = Function::Create( |
| 342 | /*Type=*/FuncTy_8, |
| 343 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 344 | /*Name=*/"art_alloc_object_from_code_with_access_check", mod); // (external, no body) |
| 345 | func_art_alloc_object_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 346 | } |
| 347 | AttrListPtr func_art_alloc_object_from_code_with_access_check_PAL; |
| 348 | func_art_alloc_object_from_code_with_access_check->setAttributes(func_art_alloc_object_from_code_with_access_check_PAL); |
| 349 | |
| 350 | Function* func_art_alloc_array_from_code = mod->getFunction("art_alloc_array_from_code"); |
| 351 | if (!func_art_alloc_array_from_code) { |
| 352 | func_art_alloc_array_from_code = Function::Create( |
| 353 | /*Type=*/FuncTy_9, |
| 354 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 355 | /*Name=*/"art_alloc_array_from_code", mod); // (external, no body) |
| 356 | func_art_alloc_array_from_code->setCallingConv(CallingConv::C); |
| 357 | } |
| 358 | AttrListPtr func_art_alloc_array_from_code_PAL; |
| 359 | func_art_alloc_array_from_code->setAttributes(func_art_alloc_array_from_code_PAL); |
| 360 | |
| 361 | Function* func_art_alloc_array_from_code_with_access_check = mod->getFunction("art_alloc_array_from_code_with_access_check"); |
| 362 | if (!func_art_alloc_array_from_code_with_access_check) { |
| 363 | func_art_alloc_array_from_code_with_access_check = Function::Create( |
| 364 | /*Type=*/FuncTy_9, |
| 365 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 366 | /*Name=*/"art_alloc_array_from_code_with_access_check", mod); // (external, no body) |
| 367 | func_art_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 368 | } |
| 369 | AttrListPtr func_art_alloc_array_from_code_with_access_check_PAL; |
| 370 | func_art_alloc_array_from_code_with_access_check->setAttributes(func_art_alloc_array_from_code_with_access_check_PAL); |
| 371 | |
| 372 | Function* func_art_check_and_alloc_array_from_code = mod->getFunction("art_check_and_alloc_array_from_code"); |
| 373 | if (!func_art_check_and_alloc_array_from_code) { |
| 374 | func_art_check_and_alloc_array_from_code = Function::Create( |
| 375 | /*Type=*/FuncTy_9, |
| 376 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 377 | /*Name=*/"art_check_and_alloc_array_from_code", mod); // (external, no body) |
| 378 | func_art_check_and_alloc_array_from_code->setCallingConv(CallingConv::C); |
| 379 | } |
| 380 | AttrListPtr func_art_check_and_alloc_array_from_code_PAL; |
| 381 | func_art_check_and_alloc_array_from_code->setAttributes(func_art_check_and_alloc_array_from_code_PAL); |
| 382 | |
| 383 | Function* func_art_check_and_alloc_array_from_code_with_access_check = mod->getFunction("art_check_and_alloc_array_from_code_with_access_check"); |
| 384 | if (!func_art_check_and_alloc_array_from_code_with_access_check) { |
| 385 | func_art_check_and_alloc_array_from_code_with_access_check = Function::Create( |
| 386 | /*Type=*/FuncTy_9, |
| 387 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 388 | /*Name=*/"art_check_and_alloc_array_from_code_with_access_check", mod); // (external, no body) |
| 389 | func_art_check_and_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 390 | } |
| 391 | AttrListPtr func_art_check_and_alloc_array_from_code_with_access_check_PAL; |
| 392 | func_art_check_and_alloc_array_from_code_with_access_check->setAttributes(func_art_check_and_alloc_array_from_code_with_access_check_PAL); |
| 393 | |
| 394 | Function* func_art_object_init_from_code = mod->getFunction("art_object_init_from_code"); |
| 395 | if (!func_art_object_init_from_code) { |
| 396 | func_art_object_init_from_code = Function::Create( |
| 397 | /*Type=*/FuncTy_0, |
| 398 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 399 | /*Name=*/"art_object_init_from_code", mod); // (external, no body) |
| 400 | func_art_object_init_from_code->setCallingConv(CallingConv::C); |
| 401 | } |
| 402 | AttrListPtr func_art_object_init_from_code_PAL; |
| 403 | func_art_object_init_from_code->setAttributes(func_art_object_init_from_code_PAL); |
| 404 | |
| 405 | Function* func_art_find_instance_field_from_code = mod->getFunction("art_find_instance_field_from_code"); |
| 406 | if (!func_art_find_instance_field_from_code) { |
| 407 | func_art_find_instance_field_from_code = Function::Create( |
| 408 | /*Type=*/FuncTy_10, |
| 409 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 410 | /*Name=*/"art_find_instance_field_from_code", mod); // (external, no body) |
| 411 | func_art_find_instance_field_from_code->setCallingConv(CallingConv::C); |
| 412 | } |
| 413 | AttrListPtr func_art_find_instance_field_from_code_PAL; |
| 414 | func_art_find_instance_field_from_code->setAttributes(func_art_find_instance_field_from_code_PAL); |
| 415 | |
| 416 | Function* func_art_find_static_field_from_code = mod->getFunction("art_find_static_field_from_code"); |
| 417 | if (!func_art_find_static_field_from_code) { |
| 418 | func_art_find_static_field_from_code = Function::Create( |
| 419 | /*Type=*/FuncTy_10, |
| 420 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 421 | /*Name=*/"art_find_static_field_from_code", mod); // (external, no body) |
| 422 | func_art_find_static_field_from_code->setCallingConv(CallingConv::C); |
| 423 | } |
| 424 | AttrListPtr func_art_find_static_field_from_code_PAL; |
| 425 | func_art_find_static_field_from_code->setAttributes(func_art_find_static_field_from_code_PAL); |
| 426 | |
| 427 | Function* func_art_find_interface_method_from_code = mod->getFunction("art_find_interface_method_from_code"); |
| 428 | if (!func_art_find_interface_method_from_code) { |
| 429 | func_art_find_interface_method_from_code = Function::Create( |
| 430 | /*Type=*/FuncTy_8, |
| 431 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 432 | /*Name=*/"art_find_interface_method_from_code", mod); // (external, no body) |
| 433 | func_art_find_interface_method_from_code->setCallingConv(CallingConv::C); |
| 434 | } |
| 435 | AttrListPtr func_art_find_interface_method_from_code_PAL; |
| 436 | func_art_find_interface_method_from_code->setAttributes(func_art_find_interface_method_from_code_PAL); |
| 437 | |
| 438 | Function* func_art_initialize_static_storage_from_code = mod->getFunction("art_initialize_static_storage_from_code"); |
| 439 | if (!func_art_initialize_static_storage_from_code) { |
| 440 | func_art_initialize_static_storage_from_code = Function::Create( |
| 441 | /*Type=*/FuncTy_8, |
| 442 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 443 | /*Name=*/"art_initialize_static_storage_from_code", mod); // (external, no body) |
| 444 | func_art_initialize_static_storage_from_code->setCallingConv(CallingConv::C); |
| 445 | } |
| 446 | AttrListPtr func_art_initialize_static_storage_from_code_PAL; |
| 447 | func_art_initialize_static_storage_from_code->setAttributes(func_art_initialize_static_storage_from_code_PAL); |
| 448 | |
| 449 | Function* func_art_initialize_type_from_code = mod->getFunction("art_initialize_type_from_code"); |
| 450 | if (!func_art_initialize_type_from_code) { |
| 451 | func_art_initialize_type_from_code = Function::Create( |
| 452 | /*Type=*/FuncTy_8, |
| 453 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 454 | /*Name=*/"art_initialize_type_from_code", mod); // (external, no body) |
| 455 | func_art_initialize_type_from_code->setCallingConv(CallingConv::C); |
| 456 | } |
| 457 | AttrListPtr func_art_initialize_type_from_code_PAL; |
| 458 | func_art_initialize_type_from_code->setAttributes(func_art_initialize_type_from_code_PAL); |
| 459 | |
| 460 | Function* func_art_initialize_type_and_verify_access_from_code = mod->getFunction("art_initialize_type_and_verify_access_from_code"); |
| 461 | if (!func_art_initialize_type_and_verify_access_from_code) { |
| 462 | func_art_initialize_type_and_verify_access_from_code = Function::Create( |
| 463 | /*Type=*/FuncTy_8, |
| 464 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 465 | /*Name=*/"art_initialize_type_and_verify_access_from_code", mod); // (external, no body) |
| 466 | func_art_initialize_type_and_verify_access_from_code->setCallingConv(CallingConv::C); |
| 467 | } |
| 468 | AttrListPtr func_art_initialize_type_and_verify_access_from_code_PAL; |
| 469 | func_art_initialize_type_and_verify_access_from_code->setAttributes(func_art_initialize_type_and_verify_access_from_code_PAL); |
| 470 | |
| 471 | Function* func_art_resolve_string_from_code = mod->getFunction("art_resolve_string_from_code"); |
| 472 | if (!func_art_resolve_string_from_code) { |
| 473 | func_art_resolve_string_from_code = Function::Create( |
| 474 | /*Type=*/FuncTy_11, |
| 475 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 476 | /*Name=*/"art_resolve_string_from_code", mod); // (external, no body) |
| 477 | func_art_resolve_string_from_code->setCallingConv(CallingConv::C); |
| 478 | } |
| 479 | AttrListPtr func_art_resolve_string_from_code_PAL; |
| 480 | func_art_resolve_string_from_code->setAttributes(func_art_resolve_string_from_code_PAL); |
| 481 | |
| 482 | Function* func_art_resolve_method_from_code = mod->getFunction("art_resolve_method_from_code"); |
| 483 | if (!func_art_resolve_method_from_code) { |
| 484 | func_art_resolve_method_from_code = Function::Create( |
| 485 | /*Type=*/FuncTy_12, |
| 486 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 487 | /*Name=*/"art_resolve_method_from_code", mod); // (external, no body) |
| 488 | func_art_resolve_method_from_code->setCallingConv(CallingConv::C); |
| 489 | } |
| 490 | AttrListPtr func_art_resolve_method_from_code_PAL; |
| 491 | func_art_resolve_method_from_code->setAttributes(func_art_resolve_method_from_code_PAL); |
| 492 | |
| 493 | Function* func_art_set32_static_from_code = mod->getFunction("art_set32_static_from_code"); |
| 494 | if (!func_art_set32_static_from_code) { |
| 495 | func_art_set32_static_from_code = Function::Create( |
| 496 | /*Type=*/FuncTy_13, |
| 497 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 498 | /*Name=*/"art_set32_static_from_code", mod); // (external, no body) |
| 499 | func_art_set32_static_from_code->setCallingConv(CallingConv::C); |
| 500 | } |
| 501 | AttrListPtr func_art_set32_static_from_code_PAL; |
| 502 | func_art_set32_static_from_code->setAttributes(func_art_set32_static_from_code_PAL); |
| 503 | |
| 504 | Function* func_art_set64_static_from_code = mod->getFunction("art_set64_static_from_code"); |
| 505 | if (!func_art_set64_static_from_code) { |
| 506 | func_art_set64_static_from_code = Function::Create( |
| 507 | /*Type=*/FuncTy_14, |
| 508 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 509 | /*Name=*/"art_set64_static_from_code", mod); // (external, no body) |
| 510 | func_art_set64_static_from_code->setCallingConv(CallingConv::C); |
| 511 | } |
| 512 | AttrListPtr func_art_set64_static_from_code_PAL; |
| 513 | func_art_set64_static_from_code->setAttributes(func_art_set64_static_from_code_PAL); |
| 514 | |
| 515 | Function* func_art_set_obj_static_from_code = mod->getFunction("art_set_obj_static_from_code"); |
| 516 | if (!func_art_set_obj_static_from_code) { |
| 517 | func_art_set_obj_static_from_code = Function::Create( |
| 518 | /*Type=*/FuncTy_15, |
| 519 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 520 | /*Name=*/"art_set_obj_static_from_code", mod); // (external, no body) |
| 521 | func_art_set_obj_static_from_code->setCallingConv(CallingConv::C); |
| 522 | } |
| 523 | AttrListPtr func_art_set_obj_static_from_code_PAL; |
| 524 | func_art_set_obj_static_from_code->setAttributes(func_art_set_obj_static_from_code_PAL); |
| 525 | |
| 526 | Function* func_art_get32_static_from_code = mod->getFunction("art_get32_static_from_code"); |
| 527 | if (!func_art_get32_static_from_code) { |
| 528 | func_art_get32_static_from_code = Function::Create( |
| 529 | /*Type=*/FuncTy_16, |
| 530 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 531 | /*Name=*/"art_get32_static_from_code", mod); // (external, no body) |
| 532 | func_art_get32_static_from_code->setCallingConv(CallingConv::C); |
| 533 | } |
| 534 | AttrListPtr func_art_get32_static_from_code_PAL; |
| 535 | func_art_get32_static_from_code->setAttributes(func_art_get32_static_from_code_PAL); |
| 536 | |
| 537 | Function* func_art_get64_static_from_code = mod->getFunction("art_get64_static_from_code"); |
| 538 | if (!func_art_get64_static_from_code) { |
| 539 | func_art_get64_static_from_code = Function::Create( |
| 540 | /*Type=*/FuncTy_17, |
| 541 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 542 | /*Name=*/"art_get64_static_from_code", mod); // (external, no body) |
| 543 | func_art_get64_static_from_code->setCallingConv(CallingConv::C); |
| 544 | } |
| 545 | AttrListPtr func_art_get64_static_from_code_PAL; |
| 546 | func_art_get64_static_from_code->setAttributes(func_art_get64_static_from_code_PAL); |
| 547 | |
| 548 | Function* func_art_get_obj_static_from_code = mod->getFunction("art_get_obj_static_from_code"); |
| 549 | if (!func_art_get_obj_static_from_code) { |
| 550 | func_art_get_obj_static_from_code = Function::Create( |
| 551 | /*Type=*/FuncTy_8, |
| 552 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 553 | /*Name=*/"art_get_obj_static_from_code", mod); // (external, no body) |
| 554 | func_art_get_obj_static_from_code->setCallingConv(CallingConv::C); |
| 555 | } |
| 556 | AttrListPtr func_art_get_obj_static_from_code_PAL; |
| 557 | func_art_get_obj_static_from_code->setAttributes(func_art_get_obj_static_from_code_PAL); |
| 558 | |
| 559 | Function* func_art_set32_instance_from_code = mod->getFunction("art_set32_instance_from_code"); |
| 560 | if (!func_art_set32_instance_from_code) { |
| 561 | func_art_set32_instance_from_code = Function::Create( |
| 562 | /*Type=*/FuncTy_13, |
| 563 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 564 | /*Name=*/"art_set32_instance_from_code", mod); // (external, no body) |
| 565 | func_art_set32_instance_from_code->setCallingConv(CallingConv::C); |
| 566 | } |
| 567 | AttrListPtr func_art_set32_instance_from_code_PAL; |
| 568 | func_art_set32_instance_from_code->setAttributes(func_art_set32_instance_from_code_PAL); |
| 569 | |
| 570 | Function* func_art_set64_instance_from_code = mod->getFunction("art_set64_instance_from_code"); |
| 571 | if (!func_art_set64_instance_from_code) { |
| 572 | func_art_set64_instance_from_code = Function::Create( |
| 573 | /*Type=*/FuncTy_14, |
| 574 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 575 | /*Name=*/"art_set64_instance_from_code", mod); // (external, no body) |
| 576 | func_art_set64_instance_from_code->setCallingConv(CallingConv::C); |
| 577 | } |
| 578 | AttrListPtr func_art_set64_instance_from_code_PAL; |
| 579 | func_art_set64_instance_from_code->setAttributes(func_art_set64_instance_from_code_PAL); |
| 580 | |
| 581 | Function* func_art_set_obj_instance_from_code = mod->getFunction("art_set_obj_instance_from_code"); |
| 582 | if (!func_art_set_obj_instance_from_code) { |
| 583 | func_art_set_obj_instance_from_code = Function::Create( |
| 584 | /*Type=*/FuncTy_15, |
| 585 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 586 | /*Name=*/"art_set_obj_instance_from_code", mod); // (external, no body) |
| 587 | func_art_set_obj_instance_from_code->setCallingConv(CallingConv::C); |
| 588 | } |
| 589 | AttrListPtr func_art_set_obj_instance_from_code_PAL; |
| 590 | func_art_set_obj_instance_from_code->setAttributes(func_art_set_obj_instance_from_code_PAL); |
| 591 | |
| 592 | Function* func_art_get32_instance_from_code = mod->getFunction("art_get32_instance_from_code"); |
| 593 | if (!func_art_get32_instance_from_code) { |
| 594 | func_art_get32_instance_from_code = Function::Create( |
| 595 | /*Type=*/FuncTy_16, |
| 596 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 597 | /*Name=*/"art_get32_instance_from_code", mod); // (external, no body) |
| 598 | func_art_get32_instance_from_code->setCallingConv(CallingConv::C); |
| 599 | } |
| 600 | AttrListPtr func_art_get32_instance_from_code_PAL; |
| 601 | func_art_get32_instance_from_code->setAttributes(func_art_get32_instance_from_code_PAL); |
| 602 | |
| 603 | Function* func_art_get64_instance_from_code = mod->getFunction("art_get64_instance_from_code"); |
| 604 | if (!func_art_get64_instance_from_code) { |
| 605 | func_art_get64_instance_from_code = Function::Create( |
| 606 | /*Type=*/FuncTy_17, |
| 607 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 608 | /*Name=*/"art_get64_instance_from_code", mod); // (external, no body) |
| 609 | func_art_get64_instance_from_code->setCallingConv(CallingConv::C); |
| 610 | } |
| 611 | AttrListPtr func_art_get64_instance_from_code_PAL; |
| 612 | func_art_get64_instance_from_code->setAttributes(func_art_get64_instance_from_code_PAL); |
| 613 | |
| 614 | Function* func_art_get_obj_instance_from_code = mod->getFunction("art_get_obj_instance_from_code"); |
| 615 | if (!func_art_get_obj_instance_from_code) { |
| 616 | func_art_get_obj_instance_from_code = Function::Create( |
| 617 | /*Type=*/FuncTy_8, |
| 618 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 619 | /*Name=*/"art_get_obj_instance_from_code", mod); // (external, no body) |
| 620 | func_art_get_obj_instance_from_code->setCallingConv(CallingConv::C); |
| 621 | } |
| 622 | AttrListPtr func_art_get_obj_instance_from_code_PAL; |
| 623 | func_art_get_obj_instance_from_code->setAttributes(func_art_get_obj_instance_from_code_PAL); |
| 624 | |
| 625 | Function* func_art_is_assignable_from_code = mod->getFunction("art_is_assignable_from_code"); |
| 626 | if (!func_art_is_assignable_from_code) { |
| 627 | func_art_is_assignable_from_code = Function::Create( |
| 628 | /*Type=*/FuncTy_18, |
| 629 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 630 | /*Name=*/"art_is_assignable_from_code", mod); // (external, no body) |
| 631 | func_art_is_assignable_from_code->setCallingConv(CallingConv::C); |
| 632 | } |
| 633 | AttrListPtr func_art_is_assignable_from_code_PAL; |
| 634 | func_art_is_assignable_from_code->setAttributes(func_art_is_assignable_from_code_PAL); |
| 635 | |
| 636 | Function* func_art_check_cast_from_code = mod->getFunction("art_check_cast_from_code"); |
| 637 | if (!func_art_check_cast_from_code) { |
| 638 | func_art_check_cast_from_code = Function::Create( |
| 639 | /*Type=*/FuncTy_19, |
| 640 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 641 | /*Name=*/"art_check_cast_from_code", mod); // (external, no body) |
| 642 | func_art_check_cast_from_code->setCallingConv(CallingConv::C); |
| 643 | } |
| 644 | AttrListPtr func_art_check_cast_from_code_PAL; |
| 645 | func_art_check_cast_from_code->setAttributes(func_art_check_cast_from_code_PAL); |
| 646 | |
| 647 | // Global Variable Declarations |
| 648 | |
| 649 | |
| 650 | // Constant Definitions |
| 651 | |
| 652 | // Global Variable Definitions |
| 653 | |
| 654 | // Function Definitions |
| 655 | |
| 656 | return mod; |
| 657 | |
| 658 | } |