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