Home | History | Annotate | Download | only in generated
      1 // Generated with ./gen_art_module_cc.sh
      2 
      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/IR/DerivedTypes.h>
      9 #include <llvm/IR/Function.h>
     10 #include <llvm/IR/Module.h>
     11 #include <llvm/IR/Type.h>
     12 
     13 #include <vector>
     14 
     15 using namespace llvm;
     16 
     17 namespace art {
     18 namespace llvm {
     19 
     20 
     21 // Generated by llvm2cpp - DO NOT MODIFY!
     22 
     23 
     24 Module* makeLLVMModuleContents(Module *mod) {
     25 
     26 mod->setModuleIdentifier("art_module.ll");
     27 
     28 // Type Definitions
     29 std::vector<Type*>FuncTy_0_args;
     30 StructType *StructTy_JavaObject = mod->getTypeByName("JavaObject");
     31 if (!StructTy_JavaObject) {
     32 StructTy_JavaObject = StructType::create(mod->getContext(), "JavaObject");
     33 }
     34 std::vector<Type*>StructTy_JavaObject_fields;
     35 if (StructTy_JavaObject->isOpaque()) {
     36 StructTy_JavaObject->setBody(StructTy_JavaObject_fields, /*isPacked=*/false);
     37 }
     38 
     39 PointerType* PointerTy_1 = PointerType::get(StructTy_JavaObject, 0);
     40 
     41 FuncTy_0_args.push_back(PointerTy_1);
     42 StructType *StructTy_ShadowFrame = mod->getTypeByName("ShadowFrame");
     43 if (!StructTy_ShadowFrame) {
     44 StructTy_ShadowFrame = StructType::create(mod->getContext(), "ShadowFrame");
     45 }
     46 std::vector<Type*>StructTy_ShadowFrame_fields;
     47 StructTy_ShadowFrame_fields.push_back(IntegerType::get(mod->getContext(), 32));
     48 PointerType* PointerTy_2 = PointerType::get(StructTy_ShadowFrame, 0);
     49 
     50 StructTy_ShadowFrame_fields.push_back(PointerTy_2);
     51 StructTy_ShadowFrame_fields.push_back(PointerTy_1);
     52 StructTy_ShadowFrame_fields.push_back(IntegerType::get(mod->getContext(), 32));
     53 if (StructTy_ShadowFrame->isOpaque()) {
     54 StructTy_ShadowFrame->setBody(StructTy_ShadowFrame_fields, /*isPacked=*/false);
     55 }
     56 
     57 
     58 FuncTy_0_args.push_back(PointerTy_2);
     59 FunctionType* FuncTy_0 = FunctionType::get(
     60  /*Result=*/Type::getVoidTy(mod->getContext()),
     61  /*Params=*/FuncTy_0_args,
     62  /*isVarArg=*/false);
     63 
     64 std::vector<Type*>FuncTy_3_args;
     65 FunctionType* FuncTy_3 = FunctionType::get(
     66  /*Result=*/PointerTy_1,
     67  /*Params=*/FuncTy_3_args,
     68  /*isVarArg=*/false);
     69 
     70 std::vector<Type*>FuncTy_4_args;
     71 FuncTy_4_args.push_back(PointerTy_1);
     72 FunctionType* FuncTy_4 = FunctionType::get(
     73  /*Result=*/PointerTy_1,
     74  /*Params=*/FuncTy_4_args,
     75  /*isVarArg=*/false);
     76 
     77 std::vector<Type*>FuncTy_5_args;
     78 FuncTy_5_args.push_back(PointerTy_1);
     79 FuncTy_5_args.push_back(PointerTy_1);
     80 FunctionType* FuncTy_5 = FunctionType::get(
     81  /*Result=*/Type::getVoidTy(mod->getContext()),
     82  /*Params=*/FuncTy_5_args,
     83  /*isVarArg=*/false);
     84 
     85 std::vector<Type*>FuncTy_6_args;
     86 FuncTy_6_args.push_back(PointerTy_1);
     87 FunctionType* FuncTy_6 = FunctionType::get(
     88  /*Result=*/Type::getVoidTy(mod->getContext()),
     89  /*Params=*/FuncTy_6_args,
     90  /*isVarArg=*/false);
     91 
     92 std::vector<Type*>FuncTy_7_args;
     93 FuncTy_7_args.push_back(PointerTy_1);
     94 FuncTy_7_args.push_back(PointerTy_2);
     95 FuncTy_7_args.push_back(PointerTy_1);
     96 FuncTy_7_args.push_back(IntegerType::get(mod->getContext(), 32));
     97 FunctionType* FuncTy_7 = FunctionType::get(
     98  /*Result=*/PointerTy_2,
     99  /*Params=*/FuncTy_7_args,
    100  /*isVarArg=*/false);
    101 
    102 std::vector<Type*>FuncTy_8_args;
    103 FuncTy_8_args.push_back(PointerTy_2);
    104 FunctionType* FuncTy_8 = FunctionType::get(
    105  /*Result=*/Type::getVoidTy(mod->getContext()),
    106  /*Params=*/FuncTy_8_args,
    107  /*isVarArg=*/false);
    108 
    109 std::vector<Type*>FuncTy_9_args;
    110 FunctionType* FuncTy_9 = FunctionType::get(
    111  /*Result=*/Type::getVoidTy(mod->getContext()),
    112  /*Params=*/FuncTy_9_args,
    113  /*isVarArg=*/false);
    114 
    115 std::vector<Type*>FuncTy_10_args;
    116 FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32));
    117 FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32));
    118 FunctionType* FuncTy_10 = FunctionType::get(
    119  /*Result=*/Type::getVoidTy(mod->getContext()),
    120  /*Params=*/FuncTy_10_args,
    121  /*isVarArg=*/false);
    122 
    123 std::vector<Type*>FuncTy_11_args;
    124 FuncTy_11_args.push_back(IntegerType::get(mod->getContext(), 32));
    125 FunctionType* FuncTy_11 = FunctionType::get(
    126  /*Result=*/Type::getVoidTy(mod->getContext()),
    127  /*Params=*/FuncTy_11_args,
    128  /*isVarArg=*/false);
    129 
    130 std::vector<Type*>FuncTy_12_args;
    131 FuncTy_12_args.push_back(PointerTy_1);
    132 FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 32));
    133 FunctionType* FuncTy_12 = FunctionType::get(
    134  /*Result=*/IntegerType::get(mod->getContext(), 32),
    135  /*Params=*/FuncTy_12_args,
    136  /*isVarArg=*/false);
    137 
    138 std::vector<Type*>FuncTy_13_args;
    139 FuncTy_13_args.push_back(IntegerType::get(mod->getContext(), 32));
    140 FuncTy_13_args.push_back(PointerTy_1);
    141 FuncTy_13_args.push_back(PointerTy_1);
    142 FunctionType* FuncTy_13 = FunctionType::get(
    143  /*Result=*/PointerTy_1,
    144  /*Params=*/FuncTy_13_args,
    145  /*isVarArg=*/false);
    146 
    147 std::vector<Type*>FuncTy_14_args;
    148 FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 32));
    149 FuncTy_14_args.push_back(PointerTy_1);
    150 FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 32));
    151 FuncTy_14_args.push_back(PointerTy_1);
    152 FunctionType* FuncTy_14 = FunctionType::get(
    153  /*Result=*/PointerTy_1,
    154  /*Params=*/FuncTy_14_args,
    155  /*isVarArg=*/false);
    156 
    157 std::vector<Type*>FuncTy_15_args;
    158 FuncTy_15_args.push_back(IntegerType::get(mod->getContext(), 32));
    159 FuncTy_15_args.push_back(PointerTy_1);
    160 FunctionType* FuncTy_15 = FunctionType::get(
    161  /*Result=*/Type::getVoidTy(mod->getContext()),
    162  /*Params=*/FuncTy_15_args,
    163  /*isVarArg=*/false);
    164 
    165 std::vector<Type*>FuncTy_16_args;
    166 FuncTy_16_args.push_back(IntegerType::get(mod->getContext(), 32));
    167 FuncTy_16_args.push_back(PointerTy_1);
    168 FuncTy_16_args.push_back(PointerTy_1);
    169 FuncTy_16_args.push_back(PointerTy_1);
    170 FunctionType* FuncTy_16 = FunctionType::get(
    171  /*Result=*/PointerTy_1,
    172  /*Params=*/FuncTy_16_args,
    173  /*isVarArg=*/false);
    174 
    175 std::vector<Type*>FuncTy_17_args;
    176 FuncTy_17_args.push_back(PointerTy_1);
    177 FuncTy_17_args.push_back(IntegerType::get(mod->getContext(), 32));
    178 FunctionType* FuncTy_17 = FunctionType::get(
    179  /*Result=*/PointerTy_1,
    180  /*Params=*/FuncTy_17_args,
    181  /*isVarArg=*/false);
    182 
    183 std::vector<Type*>FuncTy_18_args;
    184 FuncTy_18_args.push_back(IntegerType::get(mod->getContext(), 32));
    185 FuncTy_18_args.push_back(PointerTy_1);
    186 FuncTy_18_args.push_back(IntegerType::get(mod->getContext(), 32));
    187 FunctionType* FuncTy_18 = FunctionType::get(
    188  /*Result=*/IntegerType::get(mod->getContext(), 32),
    189  /*Params=*/FuncTy_18_args,
    190  /*isVarArg=*/false);
    191 
    192 std::vector<Type*>FuncTy_19_args;
    193 FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 32));
    194 FuncTy_19_args.push_back(PointerTy_1);
    195 FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 64));
    196 FunctionType* FuncTy_19 = FunctionType::get(
    197  /*Result=*/IntegerType::get(mod->getContext(), 32),
    198  /*Params=*/FuncTy_19_args,
    199  /*isVarArg=*/false);
    200 
    201 std::vector<Type*>FuncTy_20_args;
    202 FuncTy_20_args.push_back(IntegerType::get(mod->getContext(), 32));
    203 FuncTy_20_args.push_back(PointerTy_1);
    204 FuncTy_20_args.push_back(PointerTy_1);
    205 FunctionType* FuncTy_20 = FunctionType::get(
    206  /*Result=*/IntegerType::get(mod->getContext(), 32),
    207  /*Params=*/FuncTy_20_args,
    208  /*isVarArg=*/false);
    209 
    210 std::vector<Type*>FuncTy_21_args;
    211 FuncTy_21_args.push_back(IntegerType::get(mod->getContext(), 32));
    212 FuncTy_21_args.push_back(PointerTy_1);
    213 FunctionType* FuncTy_21 = FunctionType::get(
    214  /*Result=*/IntegerType::get(mod->getContext(), 32),
    215  /*Params=*/FuncTy_21_args,
    216  /*isVarArg=*/false);
    217 
    218 std::vector<Type*>FuncTy_22_args;
    219 FuncTy_22_args.push_back(IntegerType::get(mod->getContext(), 32));
    220 FuncTy_22_args.push_back(PointerTy_1);
    221 FunctionType* FuncTy_22 = FunctionType::get(
    222  /*Result=*/IntegerType::get(mod->getContext(), 64),
    223  /*Params=*/FuncTy_22_args,
    224  /*isVarArg=*/false);
    225 
    226 std::vector<Type*>FuncTy_23_args;
    227 FuncTy_23_args.push_back(IntegerType::get(mod->getContext(), 32));
    228 FuncTy_23_args.push_back(PointerTy_1);
    229 FunctionType* FuncTy_23 = FunctionType::get(
    230  /*Result=*/PointerTy_1,
    231  /*Params=*/FuncTy_23_args,
    232  /*isVarArg=*/false);
    233 
    234 std::vector<Type*>FuncTy_24_args;
    235 FuncTy_24_args.push_back(IntegerType::get(mod->getContext(), 32));
    236 FuncTy_24_args.push_back(PointerTy_1);
    237 FuncTy_24_args.push_back(PointerTy_1);
    238 FuncTy_24_args.push_back(IntegerType::get(mod->getContext(), 32));
    239 FunctionType* FuncTy_24 = FunctionType::get(
    240  /*Result=*/IntegerType::get(mod->getContext(), 32),
    241  /*Params=*/FuncTy_24_args,
    242  /*isVarArg=*/false);
    243 
    244 std::vector<Type*>FuncTy_25_args;
    245 FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 32));
    246 FuncTy_25_args.push_back(PointerTy_1);
    247 FuncTy_25_args.push_back(PointerTy_1);
    248 FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 64));
    249 FunctionType* FuncTy_25 = FunctionType::get(
    250  /*Result=*/IntegerType::get(mod->getContext(), 32),
    251  /*Params=*/FuncTy_25_args,
    252  /*isVarArg=*/false);
    253 
    254 std::vector<Type*>FuncTy_26_args;
    255 FuncTy_26_args.push_back(IntegerType::get(mod->getContext(), 32));
    256 FuncTy_26_args.push_back(PointerTy_1);
    257 FuncTy_26_args.push_back(PointerTy_1);
    258 FuncTy_26_args.push_back(PointerTy_1);
    259 FunctionType* FuncTy_26 = FunctionType::get(
    260  /*Result=*/IntegerType::get(mod->getContext(), 32),
    261  /*Params=*/FuncTy_26_args,
    262  /*isVarArg=*/false);
    263 
    264 std::vector<Type*>FuncTy_27_args;
    265 FuncTy_27_args.push_back(IntegerType::get(mod->getContext(), 32));
    266 FuncTy_27_args.push_back(PointerTy_1);
    267 FuncTy_27_args.push_back(PointerTy_1);
    268 FunctionType* FuncTy_27 = FunctionType::get(
    269  /*Result=*/IntegerType::get(mod->getContext(), 64),
    270  /*Params=*/FuncTy_27_args,
    271  /*isVarArg=*/false);
    272 
    273 std::vector<Type*>FuncTy_28_args;
    274 FuncTy_28_args.push_back(PointerTy_1);
    275 FuncTy_28_args.push_back(PointerTy_1);
    276 FunctionType* FuncTy_28 = FunctionType::get(
    277  /*Result=*/PointerTy_1,
    278  /*Params=*/FuncTy_28_args,
    279  /*isVarArg=*/false);
    280 
    281 std::vector<Type*>FuncTy_29_args;
    282 FuncTy_29_args.push_back(PointerTy_1);
    283 FuncTy_29_args.push_back(IntegerType::get(mod->getContext(), 32));
    284 FuncTy_29_args.push_back(PointerTy_1);
    285 FuncTy_29_args.push_back(IntegerType::get(mod->getContext(), 32));
    286 FunctionType* FuncTy_29 = FunctionType::get(
    287  /*Result=*/Type::getVoidTy(mod->getContext()),
    288  /*Params=*/FuncTy_29_args,
    289  /*isVarArg=*/false);
    290 
    291 std::vector<Type*>FuncTy_30_args;
    292 FuncTy_30_args.push_back(PointerTy_1);
    293 FuncTy_30_args.push_back(PointerTy_1);
    294 FunctionType* FuncTy_30 = FunctionType::get(
    295  /*Result=*/IntegerType::get(mod->getContext(), 32),
    296  /*Params=*/FuncTy_30_args,
    297  /*isVarArg=*/false);
    298 
    299 std::vector<Type*>FuncTy_31_args;
    300 FuncTy_31_args.push_back(Type::getDoubleTy(mod->getContext()));
    301 FunctionType* FuncTy_31 = FunctionType::get(
    302  /*Result=*/IntegerType::get(mod->getContext(), 64),
    303  /*Params=*/FuncTy_31_args,
    304  /*isVarArg=*/false);
    305 
    306 std::vector<Type*>FuncTy_32_args;
    307 FuncTy_32_args.push_back(Type::getDoubleTy(mod->getContext()));
    308 FunctionType* FuncTy_32 = FunctionType::get(
    309  /*Result=*/IntegerType::get(mod->getContext(), 32),
    310  /*Params=*/FuncTy_32_args,
    311  /*isVarArg=*/false);
    312 
    313 std::vector<Type*>FuncTy_33_args;
    314 FuncTy_33_args.push_back(Type::getFloatTy(mod->getContext()));
    315 FunctionType* FuncTy_33 = FunctionType::get(
    316  /*Result=*/IntegerType::get(mod->getContext(), 64),
    317  /*Params=*/FuncTy_33_args,
    318  /*isVarArg=*/false);
    319 
    320 std::vector<Type*>FuncTy_34_args;
    321 FuncTy_34_args.push_back(Type::getFloatTy(mod->getContext()));
    322 FunctionType* FuncTy_34 = FunctionType::get(
    323  /*Result=*/IntegerType::get(mod->getContext(), 32),
    324  /*Params=*/FuncTy_34_args,
    325  /*isVarArg=*/false);
    326 
    327 std::vector<Type*>FuncTy_35_args;
    328 FuncTy_35_args.push_back(PointerTy_1);
    329 FunctionType* FuncTy_35 = FunctionType::get(
    330  /*Result=*/IntegerType::get(mod->getContext(), 32),
    331  /*Params=*/FuncTy_35_args,
    332  /*isVarArg=*/false);
    333 
    334 std::vector<Type*>FuncTy_36_args;
    335 FuncTy_36_args.push_back(IntegerType::get(mod->getContext(), 32));
    336 FuncTy_36_args.push_back(PointerTy_1);
    337 FuncTy_36_args.push_back(PointerTy_1);
    338 FunctionType* FuncTy_36 = FunctionType::get(
    339  /*Result=*/Type::getVoidTy(mod->getContext()),
    340  /*Params=*/FuncTy_36_args,
    341  /*isVarArg=*/false);
    342 
    343 std::vector<Type*>FuncTy_37_args;
    344 FuncTy_37_args.push_back(PointerTy_1);
    345 FuncTy_37_args.push_back(IntegerType::get(mod->getContext(), 32));
    346 FuncTy_37_args.push_back(PointerTy_1);
    347 FunctionType* FuncTy_37 = FunctionType::get(
    348  /*Result=*/PointerTy_1,
    349  /*Params=*/FuncTy_37_args,
    350  /*isVarArg=*/false);
    351 
    352 std::vector<Type*>FuncTy_38_args;
    353 FuncTy_38_args.push_back(PointerTy_1);
    354 FuncTy_38_args.push_back(IntegerType::get(mod->getContext(), 32));
    355 FuncTy_38_args.push_back(PointerTy_1);
    356 FuncTy_38_args.push_back(PointerTy_1);
    357 FunctionType* FuncTy_38 = FunctionType::get(
    358  /*Result=*/PointerTy_1,
    359  /*Params=*/FuncTy_38_args,
    360  /*isVarArg=*/false);
    361 
    362 std::vector<Type*>FuncTy_39_args;
    363 FunctionType* FuncTy_39 = FunctionType::get(
    364  /*Result=*/IntegerType::get(mod->getContext(), 1),
    365  /*Params=*/FuncTy_39_args,
    366  /*isVarArg=*/false);
    367 
    368 std::vector<Type*>FuncTy_40_args;
    369 FuncTy_40_args.push_back(PointerTy_1);
    370 FunctionType* FuncTy_40 = FunctionType::get(
    371  /*Result=*/Type::getVoidTy(mod->getContext()),
    372  /*Params=*/FuncTy_40_args,
    373  /*isVarArg=*/true);
    374 
    375 
    376 // Function Declarations
    377 
    378 Function* func___art_type_list = mod->getFunction("__art_type_list");
    379 if (!func___art_type_list) {
    380 func___art_type_list = Function::Create(
    381  /*Type=*/FuncTy_0,
    382  /*Linkage=*/GlobalValue::ExternalLinkage,
    383  /*Name=*/"__art_type_list", mod);  // (external, no body)
    384 func___art_type_list->setCallingConv(CallingConv::C);
    385 }
    386 AttributeSet func___art_type_list_PAL;
    387 func___art_type_list->setAttributes(func___art_type_list_PAL);
    388 
    389 Function* func_art_portable_get_current_thread_from_code = mod->getFunction("art_portable_get_current_thread_from_code");
    390 if (!func_art_portable_get_current_thread_from_code) {
    391 func_art_portable_get_current_thread_from_code = Function::Create(
    392  /*Type=*/FuncTy_3,
    393  /*Linkage=*/GlobalValue::ExternalLinkage,
    394  /*Name=*/"art_portable_get_current_thread_from_code", mod);  // (external, no body)
    395 func_art_portable_get_current_thread_from_code->setCallingConv(CallingConv::C);
    396 }
    397 AttributeSet func_art_portable_get_current_thread_from_code_PAL;
    398 func_art_portable_get_current_thread_from_code->setAttributes(func_art_portable_get_current_thread_from_code_PAL);
    399 
    400 Function* func_art_portable_set_current_thread_from_code = mod->getFunction("art_portable_set_current_thread_from_code");
    401 if (!func_art_portable_set_current_thread_from_code) {
    402 func_art_portable_set_current_thread_from_code = Function::Create(
    403  /*Type=*/FuncTy_4,
    404  /*Linkage=*/GlobalValue::ExternalLinkage,
    405  /*Name=*/"art_portable_set_current_thread_from_code", mod);  // (external, no body)
    406 func_art_portable_set_current_thread_from_code->setCallingConv(CallingConv::C);
    407 }
    408 AttributeSet func_art_portable_set_current_thread_from_code_PAL;
    409 func_art_portable_set_current_thread_from_code->setAttributes(func_art_portable_set_current_thread_from_code_PAL);
    410 
    411 Function* func_art_portable_lock_object_from_code = mod->getFunction("art_portable_lock_object_from_code");
    412 if (!func_art_portable_lock_object_from_code) {
    413 func_art_portable_lock_object_from_code = Function::Create(
    414  /*Type=*/FuncTy_5,
    415  /*Linkage=*/GlobalValue::ExternalLinkage,
    416  /*Name=*/"art_portable_lock_object_from_code", mod);  // (external, no body)
    417 func_art_portable_lock_object_from_code->setCallingConv(CallingConv::C);
    418 }
    419 AttributeSet func_art_portable_lock_object_from_code_PAL;
    420 func_art_portable_lock_object_from_code->setAttributes(func_art_portable_lock_object_from_code_PAL);
    421 
    422 Function* func_art_portable_unlock_object_from_code = mod->getFunction("art_portable_unlock_object_from_code");
    423 if (!func_art_portable_unlock_object_from_code) {
    424 func_art_portable_unlock_object_from_code = Function::Create(
    425  /*Type=*/FuncTy_5,
    426  /*Linkage=*/GlobalValue::ExternalLinkage,
    427  /*Name=*/"art_portable_unlock_object_from_code", mod);  // (external, no body)
    428 func_art_portable_unlock_object_from_code->setCallingConv(CallingConv::C);
    429 }
    430 AttributeSet func_art_portable_unlock_object_from_code_PAL;
    431 func_art_portable_unlock_object_from_code->setAttributes(func_art_portable_unlock_object_from_code_PAL);
    432 
    433 Function* func_art_portable_test_suspend_from_code = mod->getFunction("art_portable_test_suspend_from_code");
    434 if (!func_art_portable_test_suspend_from_code) {
    435 func_art_portable_test_suspend_from_code = Function::Create(
    436  /*Type=*/FuncTy_6,
    437  /*Linkage=*/GlobalValue::ExternalLinkage,
    438  /*Name=*/"art_portable_test_suspend_from_code", mod);  // (external, no body)
    439 func_art_portable_test_suspend_from_code->setCallingConv(CallingConv::C);
    440 }
    441 AttributeSet func_art_portable_test_suspend_from_code_PAL;
    442 func_art_portable_test_suspend_from_code->setAttributes(func_art_portable_test_suspend_from_code_PAL);
    443 
    444 Function* func_art_portable_push_shadow_frame_from_code = mod->getFunction("art_portable_push_shadow_frame_from_code");
    445 if (!func_art_portable_push_shadow_frame_from_code) {
    446 func_art_portable_push_shadow_frame_from_code = Function::Create(
    447  /*Type=*/FuncTy_7,
    448  /*Linkage=*/GlobalValue::ExternalLinkage,
    449  /*Name=*/"art_portable_push_shadow_frame_from_code", mod);  // (external, no body)
    450 func_art_portable_push_shadow_frame_from_code->setCallingConv(CallingConv::C);
    451 }
    452 AttributeSet func_art_portable_push_shadow_frame_from_code_PAL;
    453 func_art_portable_push_shadow_frame_from_code->setAttributes(func_art_portable_push_shadow_frame_from_code_PAL);
    454 
    455 Function* func_art_portable_pop_shadow_frame_from_code = mod->getFunction("art_portable_pop_shadow_frame_from_code");
    456 if (!func_art_portable_pop_shadow_frame_from_code) {
    457 func_art_portable_pop_shadow_frame_from_code = Function::Create(
    458  /*Type=*/FuncTy_8,
    459  /*Linkage=*/GlobalValue::ExternalLinkage,
    460  /*Name=*/"art_portable_pop_shadow_frame_from_code", mod);  // (external, no body)
    461 func_art_portable_pop_shadow_frame_from_code->setCallingConv(CallingConv::C);
    462 }
    463 AttributeSet func_art_portable_pop_shadow_frame_from_code_PAL;
    464 func_art_portable_pop_shadow_frame_from_code->setAttributes(func_art_portable_pop_shadow_frame_from_code_PAL);
    465 
    466 Function* func_art_portable_get_and_clear_exception = mod->getFunction("art_portable_get_and_clear_exception");
    467 if (!func_art_portable_get_and_clear_exception) {
    468 func_art_portable_get_and_clear_exception = Function::Create(
    469  /*Type=*/FuncTy_4,
    470  /*Linkage=*/GlobalValue::ExternalLinkage,
    471  /*Name=*/"art_portable_get_and_clear_exception", mod);  // (external, no body)
    472 func_art_portable_get_and_clear_exception->setCallingConv(CallingConv::C);
    473 }
    474 AttributeSet func_art_portable_get_and_clear_exception_PAL;
    475 func_art_portable_get_and_clear_exception->setAttributes(func_art_portable_get_and_clear_exception_PAL);
    476 
    477 Function* func_art_portable_throw_div_zero_from_code = mod->getFunction("art_portable_throw_div_zero_from_code");
    478 if (!func_art_portable_throw_div_zero_from_code) {
    479 func_art_portable_throw_div_zero_from_code = Function::Create(
    480  /*Type=*/FuncTy_9,
    481  /*Linkage=*/GlobalValue::ExternalLinkage,
    482  /*Name=*/"art_portable_throw_div_zero_from_code", mod);  // (external, no body)
    483 func_art_portable_throw_div_zero_from_code->setCallingConv(CallingConv::C);
    484 }
    485 AttributeSet func_art_portable_throw_div_zero_from_code_PAL;
    486 func_art_portable_throw_div_zero_from_code->setAttributes(func_art_portable_throw_div_zero_from_code_PAL);
    487 
    488 Function* func_art_portable_throw_array_bounds_from_code = mod->getFunction("art_portable_throw_array_bounds_from_code");
    489 if (!func_art_portable_throw_array_bounds_from_code) {
    490 func_art_portable_throw_array_bounds_from_code = Function::Create(
    491  /*Type=*/FuncTy_10,
    492  /*Linkage=*/GlobalValue::ExternalLinkage,
    493  /*Name=*/"art_portable_throw_array_bounds_from_code", mod);  // (external, no body)
    494 func_art_portable_throw_array_bounds_from_code->setCallingConv(CallingConv::C);
    495 }
    496 AttributeSet func_art_portable_throw_array_bounds_from_code_PAL;
    497 func_art_portable_throw_array_bounds_from_code->setAttributes(func_art_portable_throw_array_bounds_from_code_PAL);
    498 
    499 Function* func_art_portable_throw_no_such_method_from_code = mod->getFunction("art_portable_throw_no_such_method_from_code");
    500 if (!func_art_portable_throw_no_such_method_from_code) {
    501 func_art_portable_throw_no_such_method_from_code = Function::Create(
    502  /*Type=*/FuncTy_11,
    503  /*Linkage=*/GlobalValue::ExternalLinkage,
    504  /*Name=*/"art_portable_throw_no_such_method_from_code", mod);  // (external, no body)
    505 func_art_portable_throw_no_such_method_from_code->setCallingConv(CallingConv::C);
    506 }
    507 AttributeSet func_art_portable_throw_no_such_method_from_code_PAL;
    508 func_art_portable_throw_no_such_method_from_code->setAttributes(func_art_portable_throw_no_such_method_from_code_PAL);
    509 
    510 Function* func_art_portable_throw_null_pointer_exception_from_code = mod->getFunction("art_portable_throw_null_pointer_exception_from_code");
    511 if (!func_art_portable_throw_null_pointer_exception_from_code) {
    512 func_art_portable_throw_null_pointer_exception_from_code = Function::Create(
    513  /*Type=*/FuncTy_11,
    514  /*Linkage=*/GlobalValue::ExternalLinkage,
    515  /*Name=*/"art_portable_throw_null_pointer_exception_from_code", mod);  // (external, no body)
    516 func_art_portable_throw_null_pointer_exception_from_code->setCallingConv(CallingConv::C);
    517 }
    518 AttributeSet func_art_portable_throw_null_pointer_exception_from_code_PAL;
    519 func_art_portable_throw_null_pointer_exception_from_code->setAttributes(func_art_portable_throw_null_pointer_exception_from_code_PAL);
    520 
    521 Function* func_art_portable_throw_stack_overflow_from_code = mod->getFunction("art_portable_throw_stack_overflow_from_code");
    522 if (!func_art_portable_throw_stack_overflow_from_code) {
    523 func_art_portable_throw_stack_overflow_from_code = Function::Create(
    524  /*Type=*/FuncTy_9,
    525  /*Linkage=*/GlobalValue::ExternalLinkage,
    526  /*Name=*/"art_portable_throw_stack_overflow_from_code", mod);  // (external, no body)
    527 func_art_portable_throw_stack_overflow_from_code->setCallingConv(CallingConv::C);
    528 }
    529 AttributeSet func_art_portable_throw_stack_overflow_from_code_PAL;
    530 func_art_portable_throw_stack_overflow_from_code->setAttributes(func_art_portable_throw_stack_overflow_from_code_PAL);
    531 
    532 Function* func_art_portable_throw_exception_from_code = mod->getFunction("art_portable_throw_exception_from_code");
    533 if (!func_art_portable_throw_exception_from_code) {
    534 func_art_portable_throw_exception_from_code = Function::Create(
    535  /*Type=*/FuncTy_6,
    536  /*Linkage=*/GlobalValue::ExternalLinkage,
    537  /*Name=*/"art_portable_throw_exception_from_code", mod);  // (external, no body)
    538 func_art_portable_throw_exception_from_code->setCallingConv(CallingConv::C);
    539 }
    540 AttributeSet func_art_portable_throw_exception_from_code_PAL;
    541 func_art_portable_throw_exception_from_code->setAttributes(func_art_portable_throw_exception_from_code_PAL);
    542 
    543 Function* func_art_portable_find_catch_block_from_code = mod->getFunction("art_portable_find_catch_block_from_code");
    544 if (!func_art_portable_find_catch_block_from_code) {
    545 func_art_portable_find_catch_block_from_code = Function::Create(
    546  /*Type=*/FuncTy_12,
    547  /*Linkage=*/GlobalValue::ExternalLinkage,
    548  /*Name=*/"art_portable_find_catch_block_from_code", mod);  // (external, no body)
    549 func_art_portable_find_catch_block_from_code->setCallingConv(CallingConv::C);
    550 }
    551 AttributeSet func_art_portable_find_catch_block_from_code_PAL;
    552 func_art_portable_find_catch_block_from_code->setAttributes(func_art_portable_find_catch_block_from_code_PAL);
    553 
    554 Function* func_art_portable_alloc_object_from_code = mod->getFunction("art_portable_alloc_object_from_code");
    555 if (!func_art_portable_alloc_object_from_code) {
    556 func_art_portable_alloc_object_from_code = Function::Create(
    557  /*Type=*/FuncTy_13,
    558  /*Linkage=*/GlobalValue::ExternalLinkage,
    559  /*Name=*/"art_portable_alloc_object_from_code", mod);  // (external, no body)
    560 func_art_portable_alloc_object_from_code->setCallingConv(CallingConv::C);
    561 }
    562 AttributeSet func_art_portable_alloc_object_from_code_PAL;
    563 func_art_portable_alloc_object_from_code->setAttributes(func_art_portable_alloc_object_from_code_PAL);
    564 
    565 Function* func_art_portable_alloc_object_from_code_with_access_check = mod->getFunction("art_portable_alloc_object_from_code_with_access_check");
    566 if (!func_art_portable_alloc_object_from_code_with_access_check) {
    567 func_art_portable_alloc_object_from_code_with_access_check = Function::Create(
    568  /*Type=*/FuncTy_13,
    569  /*Linkage=*/GlobalValue::ExternalLinkage,
    570  /*Name=*/"art_portable_alloc_object_from_code_with_access_check", mod);  // (external, no body)
    571 func_art_portable_alloc_object_from_code_with_access_check->setCallingConv(CallingConv::C);
    572 }
    573 AttributeSet func_art_portable_alloc_object_from_code_with_access_check_PAL;
    574 func_art_portable_alloc_object_from_code_with_access_check->setAttributes(func_art_portable_alloc_object_from_code_with_access_check_PAL);
    575 
    576 Function* func_art_portable_alloc_array_from_code = mod->getFunction("art_portable_alloc_array_from_code");
    577 if (!func_art_portable_alloc_array_from_code) {
    578 func_art_portable_alloc_array_from_code = Function::Create(
    579  /*Type=*/FuncTy_14,
    580  /*Linkage=*/GlobalValue::ExternalLinkage,
    581  /*Name=*/"art_portable_alloc_array_from_code", mod);  // (external, no body)
    582 func_art_portable_alloc_array_from_code->setCallingConv(CallingConv::C);
    583 }
    584 AttributeSet func_art_portable_alloc_array_from_code_PAL;
    585 func_art_portable_alloc_array_from_code->setAttributes(func_art_portable_alloc_array_from_code_PAL);
    586 
    587 Function* func_art_portable_alloc_array_from_code_with_access_check = mod->getFunction("art_portable_alloc_array_from_code_with_access_check");
    588 if (!func_art_portable_alloc_array_from_code_with_access_check) {
    589 func_art_portable_alloc_array_from_code_with_access_check = Function::Create(
    590  /*Type=*/FuncTy_14,
    591  /*Linkage=*/GlobalValue::ExternalLinkage,
    592  /*Name=*/"art_portable_alloc_array_from_code_with_access_check", mod);  // (external, no body)
    593 func_art_portable_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
    594 }
    595 AttributeSet func_art_portable_alloc_array_from_code_with_access_check_PAL;
    596 func_art_portable_alloc_array_from_code_with_access_check->setAttributes(func_art_portable_alloc_array_from_code_with_access_check_PAL);
    597 
    598 Function* func_art_portable_check_and_alloc_array_from_code = mod->getFunction("art_portable_check_and_alloc_array_from_code");
    599 if (!func_art_portable_check_and_alloc_array_from_code) {
    600 func_art_portable_check_and_alloc_array_from_code = Function::Create(
    601  /*Type=*/FuncTy_14,
    602  /*Linkage=*/GlobalValue::ExternalLinkage,
    603  /*Name=*/"art_portable_check_and_alloc_array_from_code", mod);  // (external, no body)
    604 func_art_portable_check_and_alloc_array_from_code->setCallingConv(CallingConv::C);
    605 }
    606 AttributeSet func_art_portable_check_and_alloc_array_from_code_PAL;
    607 func_art_portable_check_and_alloc_array_from_code->setAttributes(func_art_portable_check_and_alloc_array_from_code_PAL);
    608 
    609 Function* func_art_portable_check_and_alloc_array_from_code_with_access_check = mod->getFunction("art_portable_check_and_alloc_array_from_code_with_access_check");
    610 if (!func_art_portable_check_and_alloc_array_from_code_with_access_check) {
    611 func_art_portable_check_and_alloc_array_from_code_with_access_check = Function::Create(
    612  /*Type=*/FuncTy_14,
    613  /*Linkage=*/GlobalValue::ExternalLinkage,
    614  /*Name=*/"art_portable_check_and_alloc_array_from_code_with_access_check", mod);  // (external, no body)
    615 func_art_portable_check_and_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C);
    616 }
    617 AttributeSet func_art_portable_check_and_alloc_array_from_code_with_access_check_PAL;
    618 func_art_portable_check_and_alloc_array_from_code_with_access_check->setAttributes(func_art_portable_check_and_alloc_array_from_code_with_access_check_PAL);
    619 
    620 Function* func_art_portable_find_instance_field_from_code = mod->getFunction("art_portable_find_instance_field_from_code");
    621 if (!func_art_portable_find_instance_field_from_code) {
    622 func_art_portable_find_instance_field_from_code = Function::Create(
    623  /*Type=*/FuncTy_15,
    624  /*Linkage=*/GlobalValue::ExternalLinkage,
    625  /*Name=*/"art_portable_find_instance_field_from_code", mod);  // (external, no body)
    626 func_art_portable_find_instance_field_from_code->setCallingConv(CallingConv::C);
    627 }
    628 AttributeSet func_art_portable_find_instance_field_from_code_PAL;
    629 func_art_portable_find_instance_field_from_code->setAttributes(func_art_portable_find_instance_field_from_code_PAL);
    630 
    631 Function* func_art_portable_find_static_field_from_code = mod->getFunction("art_portable_find_static_field_from_code");
    632 if (!func_art_portable_find_static_field_from_code) {
    633 func_art_portable_find_static_field_from_code = Function::Create(
    634  /*Type=*/FuncTy_15,
    635  /*Linkage=*/GlobalValue::ExternalLinkage,
    636  /*Name=*/"art_portable_find_static_field_from_code", mod);  // (external, no body)
    637 func_art_portable_find_static_field_from_code->setCallingConv(CallingConv::C);
    638 }
    639 AttributeSet func_art_portable_find_static_field_from_code_PAL;
    640 func_art_portable_find_static_field_from_code->setAttributes(func_art_portable_find_static_field_from_code_PAL);
    641 
    642 Function* func_art_portable_find_static_method_from_code_with_access_check = mod->getFunction("art_portable_find_static_method_from_code_with_access_check");
    643 if (!func_art_portable_find_static_method_from_code_with_access_check) {
    644 func_art_portable_find_static_method_from_code_with_access_check = Function::Create(
    645  /*Type=*/FuncTy_16,
    646  /*Linkage=*/GlobalValue::ExternalLinkage,
    647  /*Name=*/"art_portable_find_static_method_from_code_with_access_check", mod);  // (external, no body)
    648 func_art_portable_find_static_method_from_code_with_access_check->setCallingConv(CallingConv::C);
    649 }
    650 AttributeSet func_art_portable_find_static_method_from_code_with_access_check_PAL;
    651 func_art_portable_find_static_method_from_code_with_access_check->setAttributes(func_art_portable_find_static_method_from_code_with_access_check_PAL);
    652 
    653 Function* func_art_portable_find_direct_method_from_code_with_access_check = mod->getFunction("art_portable_find_direct_method_from_code_with_access_check");
    654 if (!func_art_portable_find_direct_method_from_code_with_access_check) {
    655 func_art_portable_find_direct_method_from_code_with_access_check = Function::Create(
    656  /*Type=*/FuncTy_16,
    657  /*Linkage=*/GlobalValue::ExternalLinkage,
    658  /*Name=*/"art_portable_find_direct_method_from_code_with_access_check", mod);  // (external, no body)
    659 func_art_portable_find_direct_method_from_code_with_access_check->setCallingConv(CallingConv::C);
    660 }
    661 AttributeSet func_art_portable_find_direct_method_from_code_with_access_check_PAL;
    662 func_art_portable_find_direct_method_from_code_with_access_check->setAttributes(func_art_portable_find_direct_method_from_code_with_access_check_PAL);
    663 
    664 Function* func_art_portable_find_virtual_method_from_code_with_access_check = mod->getFunction("art_portable_find_virtual_method_from_code_with_access_check");
    665 if (!func_art_portable_find_virtual_method_from_code_with_access_check) {
    666 func_art_portable_find_virtual_method_from_code_with_access_check = Function::Create(
    667  /*Type=*/FuncTy_16,
    668  /*Linkage=*/GlobalValue::ExternalLinkage,
    669  /*Name=*/"art_portable_find_virtual_method_from_code_with_access_check", mod);  // (external, no body)
    670 func_art_portable_find_virtual_method_from_code_with_access_check->setCallingConv(CallingConv::C);
    671 }
    672 AttributeSet func_art_portable_find_virtual_method_from_code_with_access_check_PAL;
    673 func_art_portable_find_virtual_method_from_code_with_access_check->setAttributes(func_art_portable_find_virtual_method_from_code_with_access_check_PAL);
    674 
    675 Function* func_art_portable_find_super_method_from_code_with_access_check = mod->getFunction("art_portable_find_super_method_from_code_with_access_check");
    676 if (!func_art_portable_find_super_method_from_code_with_access_check) {
    677 func_art_portable_find_super_method_from_code_with_access_check = Function::Create(
    678  /*Type=*/FuncTy_16,
    679  /*Linkage=*/GlobalValue::ExternalLinkage,
    680  /*Name=*/"art_portable_find_super_method_from_code_with_access_check", mod);  // (external, no body)
    681 func_art_portable_find_super_method_from_code_with_access_check->setCallingConv(CallingConv::C);
    682 }
    683 AttributeSet func_art_portable_find_super_method_from_code_with_access_check_PAL;
    684 func_art_portable_find_super_method_from_code_with_access_check->setAttributes(func_art_portable_find_super_method_from_code_with_access_check_PAL);
    685 
    686 Function* func_art_portable_find_interface_method_from_code_with_access_check = mod->getFunction("art_portable_find_interface_method_from_code_with_access_check");
    687 if (!func_art_portable_find_interface_method_from_code_with_access_check) {
    688 func_art_portable_find_interface_method_from_code_with_access_check = Function::Create(
    689  /*Type=*/FuncTy_16,
    690  /*Linkage=*/GlobalValue::ExternalLinkage,
    691  /*Name=*/"art_portable_find_interface_method_from_code_with_access_check", mod);  // (external, no body)
    692 func_art_portable_find_interface_method_from_code_with_access_check->setCallingConv(CallingConv::C);
    693 }
    694 AttributeSet func_art_portable_find_interface_method_from_code_with_access_check_PAL;
    695 func_art_portable_find_interface_method_from_code_with_access_check->setAttributes(func_art_portable_find_interface_method_from_code_with_access_check_PAL);
    696 
    697 Function* func_art_portable_find_interface_method_from_code = mod->getFunction("art_portable_find_interface_method_from_code");
    698 if (!func_art_portable_find_interface_method_from_code) {
    699 func_art_portable_find_interface_method_from_code = Function::Create(
    700  /*Type=*/FuncTy_16,
    701  /*Linkage=*/GlobalValue::ExternalLinkage,
    702  /*Name=*/"art_portable_find_interface_method_from_code", mod);  // (external, no body)
    703 func_art_portable_find_interface_method_from_code->setCallingConv(CallingConv::C);
    704 }
    705 AttributeSet func_art_portable_find_interface_method_from_code_PAL;
    706 func_art_portable_find_interface_method_from_code->setAttributes(func_art_portable_find_interface_method_from_code_PAL);
    707 
    708 Function* func_art_portable_initialize_static_storage_from_code = mod->getFunction("art_portable_initialize_static_storage_from_code");
    709 if (!func_art_portable_initialize_static_storage_from_code) {
    710 func_art_portable_initialize_static_storage_from_code = Function::Create(
    711  /*Type=*/FuncTy_13,
    712  /*Linkage=*/GlobalValue::ExternalLinkage,
    713  /*Name=*/"art_portable_initialize_static_storage_from_code", mod);  // (external, no body)
    714 func_art_portable_initialize_static_storage_from_code->setCallingConv(CallingConv::C);
    715 }
    716 AttributeSet func_art_portable_initialize_static_storage_from_code_PAL;
    717 func_art_portable_initialize_static_storage_from_code->setAttributes(func_art_portable_initialize_static_storage_from_code_PAL);
    718 
    719 Function* func_art_portable_initialize_type_from_code = mod->getFunction("art_portable_initialize_type_from_code");
    720 if (!func_art_portable_initialize_type_from_code) {
    721 func_art_portable_initialize_type_from_code = Function::Create(
    722  /*Type=*/FuncTy_13,
    723  /*Linkage=*/GlobalValue::ExternalLinkage,
    724  /*Name=*/"art_portable_initialize_type_from_code", mod);  // (external, no body)
    725 func_art_portable_initialize_type_from_code->setCallingConv(CallingConv::C);
    726 }
    727 AttributeSet func_art_portable_initialize_type_from_code_PAL;
    728 func_art_portable_initialize_type_from_code->setAttributes(func_art_portable_initialize_type_from_code_PAL);
    729 
    730 Function* func_art_portable_initialize_type_and_verify_access_from_code = mod->getFunction("art_portable_initialize_type_and_verify_access_from_code");
    731 if (!func_art_portable_initialize_type_and_verify_access_from_code) {
    732 func_art_portable_initialize_type_and_verify_access_from_code = Function::Create(
    733  /*Type=*/FuncTy_13,
    734  /*Linkage=*/GlobalValue::ExternalLinkage,
    735  /*Name=*/"art_portable_initialize_type_and_verify_access_from_code", mod);  // (external, no body)
    736 func_art_portable_initialize_type_and_verify_access_from_code->setCallingConv(CallingConv::C);
    737 }
    738 AttributeSet func_art_portable_initialize_type_and_verify_access_from_code_PAL;
    739 func_art_portable_initialize_type_and_verify_access_from_code->setAttributes(func_art_portable_initialize_type_and_verify_access_from_code_PAL);
    740 
    741 Function* func_art_portable_resolve_string_from_code = mod->getFunction("art_portable_resolve_string_from_code");
    742 if (!func_art_portable_resolve_string_from_code) {
    743 func_art_portable_resolve_string_from_code = Function::Create(
    744  /*Type=*/FuncTy_17,
    745  /*Linkage=*/GlobalValue::ExternalLinkage,
    746  /*Name=*/"art_portable_resolve_string_from_code", mod);  // (external, no body)
    747 func_art_portable_resolve_string_from_code->setCallingConv(CallingConv::C);
    748 }
    749 AttributeSet func_art_portable_resolve_string_from_code_PAL;
    750 func_art_portable_resolve_string_from_code->setAttributes(func_art_portable_resolve_string_from_code_PAL);
    751 
    752 Function* func_art_portable_set32_static_from_code = mod->getFunction("art_portable_set32_static_from_code");
    753 if (!func_art_portable_set32_static_from_code) {
    754 func_art_portable_set32_static_from_code = Function::Create(
    755  /*Type=*/FuncTy_18,
    756  /*Linkage=*/GlobalValue::ExternalLinkage,
    757  /*Name=*/"art_portable_set32_static_from_code", mod);  // (external, no body)
    758 func_art_portable_set32_static_from_code->setCallingConv(CallingConv::C);
    759 }
    760 AttributeSet func_art_portable_set32_static_from_code_PAL;
    761 func_art_portable_set32_static_from_code->setAttributes(func_art_portable_set32_static_from_code_PAL);
    762 
    763 Function* func_art_portable_set64_static_from_code = mod->getFunction("art_portable_set64_static_from_code");
    764 if (!func_art_portable_set64_static_from_code) {
    765 func_art_portable_set64_static_from_code = Function::Create(
    766  /*Type=*/FuncTy_19,
    767  /*Linkage=*/GlobalValue::ExternalLinkage,
    768  /*Name=*/"art_portable_set64_static_from_code", mod);  // (external, no body)
    769 func_art_portable_set64_static_from_code->setCallingConv(CallingConv::C);
    770 }
    771 AttributeSet func_art_portable_set64_static_from_code_PAL;
    772 func_art_portable_set64_static_from_code->setAttributes(func_art_portable_set64_static_from_code_PAL);
    773 
    774 Function* func_art_portable_set_obj_static_from_code = mod->getFunction("art_portable_set_obj_static_from_code");
    775 if (!func_art_portable_set_obj_static_from_code) {
    776 func_art_portable_set_obj_static_from_code = Function::Create(
    777  /*Type=*/FuncTy_20,
    778  /*Linkage=*/GlobalValue::ExternalLinkage,
    779  /*Name=*/"art_portable_set_obj_static_from_code", mod);  // (external, no body)
    780 func_art_portable_set_obj_static_from_code->setCallingConv(CallingConv::C);
    781 }
    782 AttributeSet func_art_portable_set_obj_static_from_code_PAL;
    783 func_art_portable_set_obj_static_from_code->setAttributes(func_art_portable_set_obj_static_from_code_PAL);
    784 
    785 Function* func_art_portable_get32_static_from_code = mod->getFunction("art_portable_get32_static_from_code");
    786 if (!func_art_portable_get32_static_from_code) {
    787 func_art_portable_get32_static_from_code = Function::Create(
    788  /*Type=*/FuncTy_21,
    789  /*Linkage=*/GlobalValue::ExternalLinkage,
    790  /*Name=*/"art_portable_get32_static_from_code", mod);  // (external, no body)
    791 func_art_portable_get32_static_from_code->setCallingConv(CallingConv::C);
    792 }
    793 AttributeSet func_art_portable_get32_static_from_code_PAL;
    794 func_art_portable_get32_static_from_code->setAttributes(func_art_portable_get32_static_from_code_PAL);
    795 
    796 Function* func_art_portable_get64_static_from_code = mod->getFunction("art_portable_get64_static_from_code");
    797 if (!func_art_portable_get64_static_from_code) {
    798 func_art_portable_get64_static_from_code = Function::Create(
    799  /*Type=*/FuncTy_22,
    800  /*Linkage=*/GlobalValue::ExternalLinkage,
    801  /*Name=*/"art_portable_get64_static_from_code", mod);  // (external, no body)
    802 func_art_portable_get64_static_from_code->setCallingConv(CallingConv::C);
    803 }
    804 AttributeSet func_art_portable_get64_static_from_code_PAL;
    805 func_art_portable_get64_static_from_code->setAttributes(func_art_portable_get64_static_from_code_PAL);
    806 
    807 Function* func_art_portable_get_obj_static_from_code = mod->getFunction("art_portable_get_obj_static_from_code");
    808 if (!func_art_portable_get_obj_static_from_code) {
    809 func_art_portable_get_obj_static_from_code = Function::Create(
    810  /*Type=*/FuncTy_23,
    811  /*Linkage=*/GlobalValue::ExternalLinkage,
    812  /*Name=*/"art_portable_get_obj_static_from_code", mod);  // (external, no body)
    813 func_art_portable_get_obj_static_from_code->setCallingConv(CallingConv::C);
    814 }
    815 AttributeSet func_art_portable_get_obj_static_from_code_PAL;
    816 func_art_portable_get_obj_static_from_code->setAttributes(func_art_portable_get_obj_static_from_code_PAL);
    817 
    818 Function* func_art_portable_set32_instance_from_code = mod->getFunction("art_portable_set32_instance_from_code");
    819 if (!func_art_portable_set32_instance_from_code) {
    820 func_art_portable_set32_instance_from_code = Function::Create(
    821  /*Type=*/FuncTy_24,
    822  /*Linkage=*/GlobalValue::ExternalLinkage,
    823  /*Name=*/"art_portable_set32_instance_from_code", mod);  // (external, no body)
    824 func_art_portable_set32_instance_from_code->setCallingConv(CallingConv::C);
    825 }
    826 AttributeSet func_art_portable_set32_instance_from_code_PAL;
    827 func_art_portable_set32_instance_from_code->setAttributes(func_art_portable_set32_instance_from_code_PAL);
    828 
    829 Function* func_art_portable_set64_instance_from_code = mod->getFunction("art_portable_set64_instance_from_code");
    830 if (!func_art_portable_set64_instance_from_code) {
    831 func_art_portable_set64_instance_from_code = Function::Create(
    832  /*Type=*/FuncTy_25,
    833  /*Linkage=*/GlobalValue::ExternalLinkage,
    834  /*Name=*/"art_portable_set64_instance_from_code", mod);  // (external, no body)
    835 func_art_portable_set64_instance_from_code->setCallingConv(CallingConv::C);
    836 }
    837 AttributeSet func_art_portable_set64_instance_from_code_PAL;
    838 func_art_portable_set64_instance_from_code->setAttributes(func_art_portable_set64_instance_from_code_PAL);
    839 
    840 Function* func_art_portable_set_obj_instance_from_code = mod->getFunction("art_portable_set_obj_instance_from_code");
    841 if (!func_art_portable_set_obj_instance_from_code) {
    842 func_art_portable_set_obj_instance_from_code = Function::Create(
    843  /*Type=*/FuncTy_26,
    844  /*Linkage=*/GlobalValue::ExternalLinkage,
    845  /*Name=*/"art_portable_set_obj_instance_from_code", mod);  // (external, no body)
    846 func_art_portable_set_obj_instance_from_code->setCallingConv(CallingConv::C);
    847 }
    848 AttributeSet func_art_portable_set_obj_instance_from_code_PAL;
    849 func_art_portable_set_obj_instance_from_code->setAttributes(func_art_portable_set_obj_instance_from_code_PAL);
    850 
    851 Function* func_art_portable_get32_instance_from_code = mod->getFunction("art_portable_get32_instance_from_code");
    852 if (!func_art_portable_get32_instance_from_code) {
    853 func_art_portable_get32_instance_from_code = Function::Create(
    854  /*Type=*/FuncTy_20,
    855  /*Linkage=*/GlobalValue::ExternalLinkage,
    856  /*Name=*/"art_portable_get32_instance_from_code", mod);  // (external, no body)
    857 func_art_portable_get32_instance_from_code->setCallingConv(CallingConv::C);
    858 }
    859 AttributeSet func_art_portable_get32_instance_from_code_PAL;
    860 func_art_portable_get32_instance_from_code->setAttributes(func_art_portable_get32_instance_from_code_PAL);
    861 
    862 Function* func_art_portable_get64_instance_from_code = mod->getFunction("art_portable_get64_instance_from_code");
    863 if (!func_art_portable_get64_instance_from_code) {
    864 func_art_portable_get64_instance_from_code = Function::Create(
    865  /*Type=*/FuncTy_27,
    866  /*Linkage=*/GlobalValue::ExternalLinkage,
    867  /*Name=*/"art_portable_get64_instance_from_code", mod);  // (external, no body)
    868 func_art_portable_get64_instance_from_code->setCallingConv(CallingConv::C);
    869 }
    870 AttributeSet func_art_portable_get64_instance_from_code_PAL;
    871 func_art_portable_get64_instance_from_code->setAttributes(func_art_portable_get64_instance_from_code_PAL);
    872 
    873 Function* func_art_portable_get_obj_instance_from_code = mod->getFunction("art_portable_get_obj_instance_from_code");
    874 if (!func_art_portable_get_obj_instance_from_code) {
    875 func_art_portable_get_obj_instance_from_code = Function::Create(
    876  /*Type=*/FuncTy_13,
    877  /*Linkage=*/GlobalValue::ExternalLinkage,
    878  /*Name=*/"art_portable_get_obj_instance_from_code", mod);  // (external, no body)
    879 func_art_portable_get_obj_instance_from_code->setCallingConv(CallingConv::C);
    880 }
    881 AttributeSet func_art_portable_get_obj_instance_from_code_PAL;
    882 func_art_portable_get_obj_instance_from_code->setAttributes(func_art_portable_get_obj_instance_from_code_PAL);
    883 
    884 Function* func_art_portable_decode_jobject_in_thread = mod->getFunction("art_portable_decode_jobject_in_thread");
    885 if (!func_art_portable_decode_jobject_in_thread) {
    886 func_art_portable_decode_jobject_in_thread = Function::Create(
    887  /*Type=*/FuncTy_28,
    888  /*Linkage=*/GlobalValue::ExternalLinkage,
    889  /*Name=*/"art_portable_decode_jobject_in_thread", mod);  // (external, no body)
    890 func_art_portable_decode_jobject_in_thread->setCallingConv(CallingConv::C);
    891 }
    892 AttributeSet func_art_portable_decode_jobject_in_thread_PAL;
    893 func_art_portable_decode_jobject_in_thread->setAttributes(func_art_portable_decode_jobject_in_thread_PAL);
    894 
    895 Function* func_art_portable_fill_array_data_from_code = mod->getFunction("art_portable_fill_array_data_from_code");
    896 if (!func_art_portable_fill_array_data_from_code) {
    897 func_art_portable_fill_array_data_from_code = Function::Create(
    898  /*Type=*/FuncTy_29,
    899  /*Linkage=*/GlobalValue::ExternalLinkage,
    900  /*Name=*/"art_portable_fill_array_data_from_code", mod);  // (external, no body)
    901 func_art_portable_fill_array_data_from_code->setCallingConv(CallingConv::C);
    902 }
    903 AttributeSet func_art_portable_fill_array_data_from_code_PAL;
    904 func_art_portable_fill_array_data_from_code->setAttributes(func_art_portable_fill_array_data_from_code_PAL);
    905 
    906 Function* func_art_portable_is_assignable_from_code = mod->getFunction("art_portable_is_assignable_from_code");
    907 if (!func_art_portable_is_assignable_from_code) {
    908 func_art_portable_is_assignable_from_code = Function::Create(
    909  /*Type=*/FuncTy_30,
    910  /*Linkage=*/GlobalValue::ExternalLinkage,
    911  /*Name=*/"art_portable_is_assignable_from_code", mod);  // (external, no body)
    912 func_art_portable_is_assignable_from_code->setCallingConv(CallingConv::C);
    913 }
    914 AttributeSet func_art_portable_is_assignable_from_code_PAL;
    915 func_art_portable_is_assignable_from_code->setAttributes(func_art_portable_is_assignable_from_code_PAL);
    916 
    917 Function* func_art_portable_check_cast_from_code = mod->getFunction("art_portable_check_cast_from_code");
    918 if (!func_art_portable_check_cast_from_code) {
    919 func_art_portable_check_cast_from_code = Function::Create(
    920  /*Type=*/FuncTy_5,
    921  /*Linkage=*/GlobalValue::ExternalLinkage,
    922  /*Name=*/"art_portable_check_cast_from_code", mod);  // (external, no body)
    923 func_art_portable_check_cast_from_code->setCallingConv(CallingConv::C);
    924 }
    925 AttributeSet func_art_portable_check_cast_from_code_PAL;
    926 func_art_portable_check_cast_from_code->setAttributes(func_art_portable_check_cast_from_code_PAL);
    927 
    928 Function* func_art_portable_check_put_array_element_from_code = mod->getFunction("art_portable_check_put_array_element_from_code");
    929 if (!func_art_portable_check_put_array_element_from_code) {
    930 func_art_portable_check_put_array_element_from_code = Function::Create(
    931  /*Type=*/FuncTy_5,
    932  /*Linkage=*/GlobalValue::ExternalLinkage,
    933  /*Name=*/"art_portable_check_put_array_element_from_code", mod);  // (external, no body)
    934 func_art_portable_check_put_array_element_from_code->setCallingConv(CallingConv::C);
    935 }
    936 AttributeSet func_art_portable_check_put_array_element_from_code_PAL;
    937 func_art_portable_check_put_array_element_from_code->setAttributes(func_art_portable_check_put_array_element_from_code_PAL);
    938 
    939 Function* func_art_d2l = mod->getFunction("art_d2l");
    940 if (!func_art_d2l) {
    941 func_art_d2l = Function::Create(
    942  /*Type=*/FuncTy_31,
    943  /*Linkage=*/GlobalValue::ExternalLinkage,
    944  /*Name=*/"art_d2l", mod);  // (external, no body)
    945 func_art_d2l->setCallingConv(CallingConv::C);
    946 }
    947 AttributeSet func_art_d2l_PAL;
    948 func_art_d2l->setAttributes(func_art_d2l_PAL);
    949 
    950 Function* func_art_d2i = mod->getFunction("art_d2i");
    951 if (!func_art_d2i) {
    952 func_art_d2i = Function::Create(
    953  /*Type=*/FuncTy_32,
    954  /*Linkage=*/GlobalValue::ExternalLinkage,
    955  /*Name=*/"art_d2i", mod);  // (external, no body)
    956 func_art_d2i->setCallingConv(CallingConv::C);
    957 }
    958 AttributeSet func_art_d2i_PAL;
    959 func_art_d2i->setAttributes(func_art_d2i_PAL);
    960 
    961 Function* func_art_f2l = mod->getFunction("art_f2l");
    962 if (!func_art_f2l) {
    963 func_art_f2l = Function::Create(
    964  /*Type=*/FuncTy_33,
    965  /*Linkage=*/GlobalValue::ExternalLinkage,
    966  /*Name=*/"art_f2l", mod);  // (external, no body)
    967 func_art_f2l->setCallingConv(CallingConv::C);
    968 }
    969 AttributeSet func_art_f2l_PAL;
    970 func_art_f2l->setAttributes(func_art_f2l_PAL);
    971 
    972 Function* func_art_f2i = mod->getFunction("art_f2i");
    973 if (!func_art_f2i) {
    974 func_art_f2i = Function::Create(
    975  /*Type=*/FuncTy_34,
    976  /*Linkage=*/GlobalValue::ExternalLinkage,
    977  /*Name=*/"art_f2i", mod);  // (external, no body)
    978 func_art_f2i->setCallingConv(CallingConv::C);
    979 }
    980 AttributeSet func_art_f2i_PAL;
    981 func_art_f2i->setAttributes(func_art_f2i_PAL);
    982 
    983 Function* func_art_portable_jni_method_start = mod->getFunction("art_portable_jni_method_start");
    984 if (!func_art_portable_jni_method_start) {
    985 func_art_portable_jni_method_start = Function::Create(
    986  /*Type=*/FuncTy_35,
    987  /*Linkage=*/GlobalValue::ExternalLinkage,
    988  /*Name=*/"art_portable_jni_method_start", mod);  // (external, no body)
    989 func_art_portable_jni_method_start->setCallingConv(CallingConv::C);
    990 }
    991 AttributeSet func_art_portable_jni_method_start_PAL;
    992 func_art_portable_jni_method_start->setAttributes(func_art_portable_jni_method_start_PAL);
    993 
    994 Function* func_art_portable_jni_method_start_synchronized = mod->getFunction("art_portable_jni_method_start_synchronized");
    995 if (!func_art_portable_jni_method_start_synchronized) {
    996 func_art_portable_jni_method_start_synchronized = Function::Create(
    997  /*Type=*/FuncTy_30,
    998  /*Linkage=*/GlobalValue::ExternalLinkage,
    999  /*Name=*/"art_portable_jni_method_start_synchronized", mod);  // (external, no body)
   1000 func_art_portable_jni_method_start_synchronized->setCallingConv(CallingConv::C);
   1001 }
   1002 AttributeSet func_art_portable_jni_method_start_synchronized_PAL;
   1003 func_art_portable_jni_method_start_synchronized->setAttributes(func_art_portable_jni_method_start_synchronized_PAL);
   1004 
   1005 Function* func_art_portable_jni_method_end = mod->getFunction("art_portable_jni_method_end");
   1006 if (!func_art_portable_jni_method_end) {
   1007 func_art_portable_jni_method_end = Function::Create(
   1008  /*Type=*/FuncTy_15,
   1009  /*Linkage=*/GlobalValue::ExternalLinkage,
   1010  /*Name=*/"art_portable_jni_method_end", mod);  // (external, no body)
   1011 func_art_portable_jni_method_end->setCallingConv(CallingConv::C);
   1012 }
   1013 AttributeSet func_art_portable_jni_method_end_PAL;
   1014 func_art_portable_jni_method_end->setAttributes(func_art_portable_jni_method_end_PAL);
   1015 
   1016 Function* func_art_portable_jni_method_end_synchronized = mod->getFunction("art_portable_jni_method_end_synchronized");
   1017 if (!func_art_portable_jni_method_end_synchronized) {
   1018 func_art_portable_jni_method_end_synchronized = Function::Create(
   1019  /*Type=*/FuncTy_36,
   1020  /*Linkage=*/GlobalValue::ExternalLinkage,
   1021  /*Name=*/"art_portable_jni_method_end_synchronized", mod);  // (external, no body)
   1022 func_art_portable_jni_method_end_synchronized->setCallingConv(CallingConv::C);
   1023 }
   1024 AttributeSet func_art_portable_jni_method_end_synchronized_PAL;
   1025 func_art_portable_jni_method_end_synchronized->setAttributes(func_art_portable_jni_method_end_synchronized_PAL);
   1026 
   1027 Function* func_art_portable_jni_method_end_with_reference = mod->getFunction("art_portable_jni_method_end_with_reference");
   1028 if (!func_art_portable_jni_method_end_with_reference) {
   1029 func_art_portable_jni_method_end_with_reference = Function::Create(
   1030  /*Type=*/FuncTy_37,
   1031  /*Linkage=*/GlobalValue::ExternalLinkage,
   1032  /*Name=*/"art_portable_jni_method_end_with_reference", mod);  // (external, no body)
   1033 func_art_portable_jni_method_end_with_reference->setCallingConv(CallingConv::C);
   1034 }
   1035 AttributeSet func_art_portable_jni_method_end_with_reference_PAL;
   1036 func_art_portable_jni_method_end_with_reference->setAttributes(func_art_portable_jni_method_end_with_reference_PAL);
   1037 
   1038 Function* func_art_portable_jni_method_end_with_reference_synchronized = mod->getFunction("art_portable_jni_method_end_with_reference_synchronized");
   1039 if (!func_art_portable_jni_method_end_with_reference_synchronized) {
   1040 func_art_portable_jni_method_end_with_reference_synchronized = Function::Create(
   1041  /*Type=*/FuncTy_38,
   1042  /*Linkage=*/GlobalValue::ExternalLinkage,
   1043  /*Name=*/"art_portable_jni_method_end_with_reference_synchronized", mod);  // (external, no body)
   1044 func_art_portable_jni_method_end_with_reference_synchronized->setCallingConv(CallingConv::C);
   1045 }
   1046 AttributeSet func_art_portable_jni_method_end_with_reference_synchronized_PAL;
   1047 func_art_portable_jni_method_end_with_reference_synchronized->setAttributes(func_art_portable_jni_method_end_with_reference_synchronized_PAL);
   1048 
   1049 Function* func_art_portable_is_exception_pending_from_code = mod->getFunction("art_portable_is_exception_pending_from_code");
   1050 if (!func_art_portable_is_exception_pending_from_code) {
   1051 func_art_portable_is_exception_pending_from_code = Function::Create(
   1052  /*Type=*/FuncTy_39,
   1053  /*Linkage=*/GlobalValue::ExternalLinkage,
   1054  /*Name=*/"art_portable_is_exception_pending_from_code", mod);  // (external, no body)
   1055 func_art_portable_is_exception_pending_from_code->setCallingConv(CallingConv::C);
   1056 }
   1057 AttributeSet func_art_portable_is_exception_pending_from_code_PAL;
   1058 func_art_portable_is_exception_pending_from_code->setAttributes(func_art_portable_is_exception_pending_from_code_PAL);
   1059 
   1060 Function* func_art_portable_mark_gc_card_from_code = mod->getFunction("art_portable_mark_gc_card_from_code");
   1061 if (!func_art_portable_mark_gc_card_from_code) {
   1062 func_art_portable_mark_gc_card_from_code = Function::Create(
   1063  /*Type=*/FuncTy_5,
   1064  /*Linkage=*/GlobalValue::ExternalLinkage,
   1065  /*Name=*/"art_portable_mark_gc_card_from_code", mod);  // (external, no body)
   1066 func_art_portable_mark_gc_card_from_code->setCallingConv(CallingConv::C);
   1067 }
   1068 AttributeSet func_art_portable_mark_gc_card_from_code_PAL;
   1069 func_art_portable_mark_gc_card_from_code->setAttributes(func_art_portable_mark_gc_card_from_code_PAL);
   1070 
   1071 Function* func_art_portable_proxy_invoke_handler_from_code = mod->getFunction("art_portable_proxy_invoke_handler_from_code");
   1072 if (!func_art_portable_proxy_invoke_handler_from_code) {
   1073 func_art_portable_proxy_invoke_handler_from_code = Function::Create(
   1074  /*Type=*/FuncTy_40,
   1075  /*Linkage=*/GlobalValue::ExternalLinkage,
   1076  /*Name=*/"art_portable_proxy_invoke_handler_from_code", mod);  // (external, no body)
   1077 func_art_portable_proxy_invoke_handler_from_code->setCallingConv(CallingConv::C);
   1078 }
   1079 AttributeSet func_art_portable_proxy_invoke_handler_from_code_PAL;
   1080 func_art_portable_proxy_invoke_handler_from_code->setAttributes(func_art_portable_proxy_invoke_handler_from_code_PAL);
   1081 
   1082 // Global Variable Declarations
   1083 
   1084 
   1085 // Constant Definitions
   1086 
   1087 // Global Variable Definitions
   1088 
   1089 // Function Definitions
   1090 
   1091 return mod;
   1092 
   1093 }
   1094 
   1095 }  // namespace llvm
   1096 }  // namespace art
   1097