TDYa127 | 0de52be | 2012-05-27 20:49:31 -0700 | [diff] [blame] | 1 | // Generated with tools/gen_art_module_cc.sh |
Logan Chien | e75a8cc | 2012-02-24 12:26:43 +0800 | [diff] [blame] | 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/DerivedTypes.h> |
| 9 | #include <llvm/Function.h> |
| 10 | #include <llvm/Module.h> |
| 11 | #include <llvm/Type.h> |
| 12 | |
| 13 | #include <vector> |
| 14 | |
| 15 | using namespace llvm; |
| 16 | |
| 17 | namespace art { |
| 18 | namespace compiler_llvm { |
| 19 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 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); |
Logan Chien | 1b0a1b7 | 2012-03-15 06:20:17 +0800 | [diff] [blame] | 42 | StructType *StructTy_ShadowFrame = mod->getTypeByName("ShadowFrame"); |
| 43 | if (!StructTy_ShadowFrame) { |
| 44 | StructTy_ShadowFrame = StructType::create(mod->getContext(), "ShadowFrame"); |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 45 | } |
Logan Chien | 1b0a1b7 | 2012-03-15 06:20:17 +0800 | [diff] [blame] | 46 | std::vector<Type*>StructTy_ShadowFrame_fields; |
| 47 | PointerType* PointerTy_2 = PointerType::get(StructTy_ShadowFrame, 0); |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 48 | |
Logan Chien | 1b0a1b7 | 2012-03-15 06:20:17 +0800 | [diff] [blame] | 49 | StructTy_ShadowFrame_fields.push_back(PointerTy_2); |
| 50 | StructTy_ShadowFrame_fields.push_back(PointerTy_1); |
| 51 | StructTy_ShadowFrame_fields.push_back(IntegerType::get(mod->getContext(), 32)); |
TDYa127 | 8532191 | 2012-04-01 15:24:56 -0700 | [diff] [blame] | 52 | StructTy_ShadowFrame_fields.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 1b0a1b7 | 2012-03-15 06:20:17 +0800 | [diff] [blame] | 53 | if (StructTy_ShadowFrame->isOpaque()) { |
| 54 | StructTy_ShadowFrame->setBody(StructTy_ShadowFrame_fields, /*isPacked=*/false); |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | |
| 58 | FuncTy_0_args.push_back(PointerTy_2); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 59 | FunctionType* FuncTy_0 = FunctionType::get( |
| 60 | /*Result=*/Type::getVoidTy(mod->getContext()), |
| 61 | /*Params=*/FuncTy_0_args, |
| 62 | /*isVarArg=*/false); |
| 63 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 64 | std::vector<Type*>FuncTy_3_args; |
| 65 | FunctionType* FuncTy_3 = FunctionType::get( |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 66 | /*Result=*/PointerTy_1, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 67 | /*Params=*/FuncTy_3_args, |
| 68 | /*isVarArg=*/false); |
| 69 | |
| 70 | std::vector<Type*>FuncTy_4_args; |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 71 | FuncTy_4_args.push_back(PointerTy_1); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 72 | FunctionType* FuncTy_4 = FunctionType::get( |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 73 | /*Result=*/PointerTy_1, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 74 | /*Params=*/FuncTy_4_args, |
| 75 | /*isVarArg=*/false); |
| 76 | |
| 77 | std::vector<Type*>FuncTy_5_args; |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 78 | FuncTy_5_args.push_back(PointerTy_1); |
| 79 | FuncTy_5_args.push_back(PointerTy_1); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 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; |
TDYa127 | de479be | 2012-05-31 08:03:26 -0700 | [diff] [blame] | 86 | FuncTy_6_args.push_back(PointerTy_1); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 87 | FunctionType* FuncTy_6 = FunctionType::get( |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 88 | /*Result=*/Type::getVoidTy(mod->getContext()), |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 89 | /*Params=*/FuncTy_6_args, |
| 90 | /*isVarArg=*/false); |
| 91 | |
| 92 | std::vector<Type*>FuncTy_7_args; |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 93 | FuncTy_7_args.push_back(PointerTy_1); |
TDYa127 | 0de52be | 2012-05-27 20:49:31 -0700 | [diff] [blame] | 94 | FuncTy_7_args.push_back(PointerTy_2); |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 95 | FuncTy_7_args.push_back(PointerTy_1); |
| 96 | FuncTy_7_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 97 | FunctionType* FuncTy_7 = FunctionType::get( |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 98 | /*Result=*/PointerTy_2, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 99 | /*Params=*/FuncTy_7_args, |
| 100 | /*isVarArg=*/false); |
| 101 | |
| 102 | std::vector<Type*>FuncTy_8_args; |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 103 | FuncTy_8_args.push_back(PointerTy_2); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 104 | FunctionType* FuncTy_8 = FunctionType::get( |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 105 | /*Result=*/Type::getVoidTy(mod->getContext()), |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 106 | /*Params=*/FuncTy_8_args, |
| 107 | /*isVarArg=*/false); |
| 108 | |
| 109 | std::vector<Type*>FuncTy_9_args; |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 110 | FunctionType* FuncTy_9 = FunctionType::get( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 111 | /*Result=*/Type::getVoidTy(mod->getContext()), |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 112 | /*Params=*/FuncTy_9_args, |
| 113 | /*isVarArg=*/false); |
| 114 | |
| 115 | std::vector<Type*>FuncTy_10_args; |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 116 | FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 117 | FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 118 | FunctionType* FuncTy_10 = FunctionType::get( |
Logan Chien | 9e5f5c1 | 2012-04-10 13:51:45 +0800 | [diff] [blame] | 119 | /*Result=*/Type::getVoidTy(mod->getContext()), |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 120 | /*Params=*/FuncTy_10_args, |
| 121 | /*isVarArg=*/false); |
| 122 | |
| 123 | std::vector<Type*>FuncTy_11_args; |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 124 | FuncTy_11_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 125 | FunctionType* FuncTy_11 = FunctionType::get( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 126 | /*Result=*/Type::getVoidTy(mod->getContext()), |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 127 | /*Params=*/FuncTy_11_args, |
| 128 | /*isVarArg=*/false); |
| 129 | |
| 130 | std::vector<Type*>FuncTy_12_args; |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 131 | FuncTy_12_args.push_back(PointerTy_1); |
| 132 | FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 133 | FunctionType* FuncTy_12 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 134 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 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)); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 140 | FuncTy_13_args.push_back(PointerTy_1); |
| 141 | FuncTy_13_args.push_back(PointerTy_1); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 142 | FunctionType* FuncTy_13 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 143 | /*Result=*/PointerTy_1, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 144 | /*Params=*/FuncTy_13_args, |
| 145 | /*isVarArg=*/false); |
| 146 | |
| 147 | std::vector<Type*>FuncTy_14_args; |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 148 | FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 32)); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 149 | FuncTy_14_args.push_back(PointerTy_1); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 150 | FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 32)); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 151 | FuncTy_14_args.push_back(PointerTy_1); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 152 | FunctionType* FuncTy_14 = FunctionType::get( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 153 | /*Result=*/PointerTy_1, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 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)); |
Logan Chien | 9e5f5c1 | 2012-04-10 13:51:45 +0800 | [diff] [blame] | 159 | FuncTy_15_args.push_back(PointerTy_1); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 160 | FunctionType* FuncTy_15 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 161 | /*Result=*/Type::getVoidTy(mod->getContext()), |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 162 | /*Params=*/FuncTy_15_args, |
| 163 | /*isVarArg=*/false); |
| 164 | |
| 165 | std::vector<Type*>FuncTy_16_args; |
Logan Chien | 1b0a1b7 | 2012-03-15 06:20:17 +0800 | [diff] [blame] | 166 | FuncTy_16_args.push_back(IntegerType::get(mod->getContext(), 32)); |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [diff] [blame] | 167 | FuncTy_16_args.push_back(PointerTy_1); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 168 | FuncTy_16_args.push_back(PointerTy_1); |
| 169 | FuncTy_16_args.push_back(PointerTy_1); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 170 | FunctionType* FuncTy_16 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 171 | /*Result=*/PointerTy_1, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 172 | /*Params=*/FuncTy_16_args, |
| 173 | /*isVarArg=*/false); |
| 174 | |
| 175 | std::vector<Type*>FuncTy_17_args; |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 176 | FuncTy_17_args.push_back(PointerTy_1); |
Logan Chien | 9e5f5c1 | 2012-04-10 13:51:45 +0800 | [diff] [blame] | 177 | FuncTy_17_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 178 | FunctionType* FuncTy_17 = FunctionType::get( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 179 | /*Result=*/PointerTy_1, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 180 | /*Params=*/FuncTy_17_args, |
| 181 | /*isVarArg=*/false); |
| 182 | |
| 183 | std::vector<Type*>FuncTy_18_args; |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 184 | FuncTy_18_args.push_back(IntegerType::get(mod->getContext(), 32)); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 185 | FuncTy_18_args.push_back(PointerTy_1); |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [diff] [blame] | 186 | FuncTy_18_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 187 | FunctionType* FuncTy_18 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 188 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 189 | /*Params=*/FuncTy_18_args, |
| 190 | /*isVarArg=*/false); |
| 191 | |
| 192 | std::vector<Type*>FuncTy_19_args; |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 193 | FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 194 | FuncTy_19_args.push_back(PointerTy_1); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 195 | FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 64)); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 196 | FunctionType* FuncTy_19 = FunctionType::get( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 197 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 198 | /*Params=*/FuncTy_19_args, |
| 199 | /*isVarArg=*/false); |
| 200 | |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 201 | std::vector<Type*>FuncTy_20_args; |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 202 | FuncTy_20_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | a6b2ca6 | 2012-03-06 15:50:54 +0800 | [diff] [blame] | 203 | FuncTy_20_args.push_back(PointerTy_1); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 204 | FuncTy_20_args.push_back(PointerTy_1); |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 205 | FunctionType* FuncTy_20 = FunctionType::get( |
Logan Chien | 9e5f5c1 | 2012-04-10 13:51:45 +0800 | [diff] [blame] | 206 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 207 | /*Params=*/FuncTy_20_args, |
| 208 | /*isVarArg=*/false); |
| 209 | |
| 210 | std::vector<Type*>FuncTy_21_args; |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 211 | FuncTy_21_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 212 | FuncTy_21_args.push_back(PointerTy_1); |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 213 | FunctionType* FuncTy_21 = FunctionType::get( |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [diff] [blame] | 214 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
Logan Chien | a6b2ca6 | 2012-03-06 15:50:54 +0800 | [diff] [blame] | 215 | /*Params=*/FuncTy_21_args, |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 216 | /*isVarArg=*/false); |
| 217 | |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 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); |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 221 | FunctionType* FuncTy_22 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 222 | /*Result=*/IntegerType::get(mod->getContext(), 64), |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 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); |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 229 | FunctionType* FuncTy_23 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 230 | /*Result=*/PointerTy_1, |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 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); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 237 | FuncTy_24_args.push_back(PointerTy_1); |
| 238 | FuncTy_24_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 239 | FunctionType* FuncTy_24 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 240 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 241 | /*Params=*/FuncTy_24_args, |
| 242 | /*isVarArg=*/false); |
| 243 | |
| 244 | std::vector<Type*>FuncTy_25_args; |
Logan Chien | 9e5f5c1 | 2012-04-10 13:51:45 +0800 | [diff] [blame] | 245 | FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 246 | FuncTy_25_args.push_back(PointerTy_1); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 247 | FuncTy_25_args.push_back(PointerTy_1); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 248 | FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 64)); |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 249 | FunctionType* FuncTy_25 = FunctionType::get( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 250 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 251 | /*Params=*/FuncTy_25_args, |
| 252 | /*isVarArg=*/false); |
| 253 | |
| 254 | std::vector<Type*>FuncTy_26_args; |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [diff] [blame] | 255 | FuncTy_26_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 256 | FuncTy_26_args.push_back(PointerTy_1); |
| 257 | FuncTy_26_args.push_back(PointerTy_1); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 258 | FuncTy_26_args.push_back(PointerTy_1); |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 259 | FunctionType* FuncTy_26 = FunctionType::get( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 260 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 261 | /*Params=*/FuncTy_26_args, |
| 262 | /*isVarArg=*/false); |
| 263 | |
TDYa127 | 28f1a14 | 2012-03-15 21:51:52 -0700 | [diff] [blame] | 264 | std::vector<Type*>FuncTy_27_args; |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 265 | FuncTy_27_args.push_back(IntegerType::get(mod->getContext(), 32)); |
TDYa127 | 28f1a14 | 2012-03-15 21:51:52 -0700 | [diff] [blame] | 266 | FuncTy_27_args.push_back(PointerTy_1); |
| 267 | FuncTy_27_args.push_back(PointerTy_1); |
| 268 | FunctionType* FuncTy_27 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 269 | /*Result=*/IntegerType::get(mod->getContext(), 64), |
TDYa127 | 28f1a14 | 2012-03-15 21:51:52 -0700 | [diff] [blame] | 270 | /*Params=*/FuncTy_27_args, |
| 271 | /*isVarArg=*/false); |
| 272 | |
TDYa127 | 8532191 | 2012-04-01 15:24:56 -0700 | [diff] [blame] | 273 | std::vector<Type*>FuncTy_28_args; |
| 274 | FuncTy_28_args.push_back(PointerTy_1); |
| 275 | FuncTy_28_args.push_back(PointerTy_1); |
TDYa127 | 8532191 | 2012-04-01 15:24:56 -0700 | [diff] [blame] | 276 | FunctionType* FuncTy_28 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 277 | /*Result=*/PointerTy_1, |
TDYa127 | 8532191 | 2012-04-01 15:24:56 -0700 | [diff] [blame] | 278 | /*Params=*/FuncTy_28_args, |
| 279 | /*isVarArg=*/false); |
| 280 | |
TDYa127 | 0b686e5 | 2012-04-09 22:43:35 -0700 | [diff] [blame] | 281 | std::vector<Type*>FuncTy_29_args; |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [diff] [blame] | 282 | FuncTy_29_args.push_back(PointerTy_1); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 283 | FuncTy_29_args.push_back(IntegerType::get(mod->getContext(), 32)); |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [diff] [blame] | 284 | FuncTy_29_args.push_back(PointerTy_1); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 285 | FuncTy_29_args.push_back(IntegerType::get(mod->getContext(), 32)); |
TDYa127 | 0b686e5 | 2012-04-09 22:43:35 -0700 | [diff] [blame] | 286 | FunctionType* FuncTy_29 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 287 | /*Result=*/Type::getVoidTy(mod->getContext()), |
TDYa127 | 0b686e5 | 2012-04-09 22:43:35 -0700 | [diff] [blame] | 288 | /*Params=*/FuncTy_29_args, |
| 289 | /*isVarArg=*/false); |
| 290 | |
Logan Chien | 9e5f5c1 | 2012-04-10 13:51:45 +0800 | [diff] [blame] | 291 | std::vector<Type*>FuncTy_30_args; |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 292 | FuncTy_30_args.push_back(PointerTy_1); |
| 293 | FuncTy_30_args.push_back(PointerTy_1); |
Logan Chien | 9e5f5c1 | 2012-04-10 13:51:45 +0800 | [diff] [blame] | 294 | FunctionType* FuncTy_30 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 295 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
Logan Chien | 9e5f5c1 | 2012-04-10 13:51:45 +0800 | [diff] [blame] | 296 | /*Params=*/FuncTy_30_args, |
| 297 | /*isVarArg=*/false); |
| 298 | |
TDYa127 | 5bb8601 | 2012-04-11 05:57:28 -0700 | [diff] [blame] | 299 | std::vector<Type*>FuncTy_31_args; |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 300 | FuncTy_31_args.push_back(Type::getDoubleTy(mod->getContext())); |
TDYa127 | 5bb8601 | 2012-04-11 05:57:28 -0700 | [diff] [blame] | 301 | FunctionType* FuncTy_31 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 302 | /*Result=*/IntegerType::get(mod->getContext(), 64), |
TDYa127 | 5bb8601 | 2012-04-11 05:57:28 -0700 | [diff] [blame] | 303 | /*Params=*/FuncTy_31_args, |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 304 | /*isVarArg=*/false); |
| 305 | |
| 306 | std::vector<Type*>FuncTy_32_args; |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 307 | FuncTy_32_args.push_back(Type::getDoubleTy(mod->getContext())); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 308 | FunctionType* FuncTy_32 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 309 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 310 | /*Params=*/FuncTy_32_args, |
| 311 | /*isVarArg=*/false); |
| 312 | |
| 313 | std::vector<Type*>FuncTy_33_args; |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 314 | FuncTy_33_args.push_back(Type::getFloatTy(mod->getContext())); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 315 | FunctionType* FuncTy_33 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 316 | /*Result=*/IntegerType::get(mod->getContext(), 64), |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 317 | /*Params=*/FuncTy_33_args, |
| 318 | /*isVarArg=*/false); |
| 319 | |
| 320 | std::vector<Type*>FuncTy_34_args; |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 321 | FuncTy_34_args.push_back(Type::getFloatTy(mod->getContext())); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 322 | FunctionType* FuncTy_34 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 323 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 324 | /*Params=*/FuncTy_34_args, |
| 325 | /*isVarArg=*/false); |
| 326 | |
| 327 | std::vector<Type*>FuncTy_35_args; |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 328 | FuncTy_35_args.push_back(PointerTy_1); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 329 | FunctionType* FuncTy_35 = FunctionType::get( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 330 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
TDYa127 | 05fe3b6 | 2012-04-21 00:28:54 -0700 | [diff] [blame] | 331 | /*Params=*/FuncTy_35_args, |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 332 | /*isVarArg=*/false); |
| 333 | |
| 334 | std::vector<Type*>FuncTy_36_args; |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 335 | FuncTy_36_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 336 | FuncTy_36_args.push_back(PointerTy_1); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 337 | FuncTy_36_args.push_back(PointerTy_1); |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 338 | FunctionType* FuncTy_36 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 339 | /*Result=*/Type::getVoidTy(mod->getContext()), |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 340 | /*Params=*/FuncTy_36_args, |
TDYa127 | 0de52be | 2012-05-27 20:49:31 -0700 | [diff] [blame] | 341 | /*isVarArg=*/false); |
| 342 | |
| 343 | std::vector<Type*>FuncTy_37_args; |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 344 | FuncTy_37_args.push_back(PointerTy_1); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 345 | FuncTy_37_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 346 | FuncTy_37_args.push_back(PointerTy_1); |
TDYa127 | 0de52be | 2012-05-27 20:49:31 -0700 | [diff] [blame] | 347 | FunctionType* FuncTy_37 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 348 | /*Result=*/PointerTy_1, |
TDYa127 | 0de52be | 2012-05-27 20:49:31 -0700 | [diff] [blame] | 349 | /*Params=*/FuncTy_37_args, |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 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); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 356 | FuncTy_38_args.push_back(PointerTy_1); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 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; |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 363 | FunctionType* FuncTy_39 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 364 | /*Result=*/IntegerType::get(mod->getContext(), 1), |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 365 | /*Params=*/FuncTy_39_args, |
| 366 | /*isVarArg=*/false); |
| 367 | |
| 368 | std::vector<Type*>FuncTy_40_args; |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 369 | FuncTy_40_args.push_back(PointerTy_1); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 370 | FunctionType* FuncTy_40 = FunctionType::get( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 371 | /*Result=*/Type::getVoidTy(mod->getContext()), |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 372 | /*Params=*/FuncTy_40_args, |
TDYa127 | 5bb8601 | 2012-04-11 05:57:28 -0700 | [diff] [blame] | 373 | /*isVarArg=*/true); |
| 374 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 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 | AttrListPtr func___art_type_list_PAL; |
| 387 | func___art_type_list->setAttributes(func___art_type_list_PAL); |
| 388 | |
| 389 | Function* func_art_get_current_thread_from_code = mod->getFunction("art_get_current_thread_from_code"); |
| 390 | if (!func_art_get_current_thread_from_code) { |
| 391 | func_art_get_current_thread_from_code = Function::Create( |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 392 | /*Type=*/FuncTy_3, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 393 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 394 | /*Name=*/"art_get_current_thread_from_code", mod); // (external, no body) |
| 395 | func_art_get_current_thread_from_code->setCallingConv(CallingConv::C); |
| 396 | } |
| 397 | AttrListPtr func_art_get_current_thread_from_code_PAL; |
| 398 | func_art_get_current_thread_from_code->setAttributes(func_art_get_current_thread_from_code_PAL); |
| 399 | |
| 400 | Function* func_art_set_current_thread_from_code = mod->getFunction("art_set_current_thread_from_code"); |
| 401 | if (!func_art_set_current_thread_from_code) { |
| 402 | func_art_set_current_thread_from_code = Function::Create( |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 403 | /*Type=*/FuncTy_4, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 404 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 405 | /*Name=*/"art_set_current_thread_from_code", mod); // (external, no body) |
| 406 | func_art_set_current_thread_from_code->setCallingConv(CallingConv::C); |
| 407 | } |
| 408 | AttrListPtr func_art_set_current_thread_from_code_PAL; |
| 409 | func_art_set_current_thread_from_code->setAttributes(func_art_set_current_thread_from_code_PAL); |
| 410 | |
| 411 | Function* func_art_lock_object_from_code = mod->getFunction("art_lock_object_from_code"); |
| 412 | if (!func_art_lock_object_from_code) { |
| 413 | func_art_lock_object_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 414 | /*Type=*/FuncTy_5, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 415 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 416 | /*Name=*/"art_lock_object_from_code", mod); // (external, no body) |
| 417 | func_art_lock_object_from_code->setCallingConv(CallingConv::C); |
| 418 | } |
| 419 | AttrListPtr func_art_lock_object_from_code_PAL; |
| 420 | func_art_lock_object_from_code->setAttributes(func_art_lock_object_from_code_PAL); |
| 421 | |
| 422 | Function* func_art_unlock_object_from_code = mod->getFunction("art_unlock_object_from_code"); |
| 423 | if (!func_art_unlock_object_from_code) { |
| 424 | func_art_unlock_object_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 425 | /*Type=*/FuncTy_5, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 426 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 427 | /*Name=*/"art_unlock_object_from_code", mod); // (external, no body) |
| 428 | func_art_unlock_object_from_code->setCallingConv(CallingConv::C); |
| 429 | } |
| 430 | AttrListPtr func_art_unlock_object_from_code_PAL; |
| 431 | func_art_unlock_object_from_code->setAttributes(func_art_unlock_object_from_code_PAL); |
| 432 | |
| 433 | Function* func_art_test_suspend_from_code = mod->getFunction("art_test_suspend_from_code"); |
| 434 | if (!func_art_test_suspend_from_code) { |
| 435 | func_art_test_suspend_from_code = Function::Create( |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 436 | /*Type=*/FuncTy_6, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 437 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 438 | /*Name=*/"art_test_suspend_from_code", mod); // (external, no body) |
| 439 | func_art_test_suspend_from_code->setCallingConv(CallingConv::C); |
| 440 | } |
| 441 | AttrListPtr func_art_test_suspend_from_code_PAL; |
| 442 | func_art_test_suspend_from_code->setAttributes(func_art_test_suspend_from_code_PAL); |
| 443 | |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 444 | Function* func_art_push_shadow_frame_from_code = mod->getFunction("art_push_shadow_frame_from_code"); |
| 445 | if (!func_art_push_shadow_frame_from_code) { |
| 446 | func_art_push_shadow_frame_from_code = Function::Create( |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 447 | /*Type=*/FuncTy_7, |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 448 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 449 | /*Name=*/"art_push_shadow_frame_from_code", mod); // (external, no body) |
| 450 | func_art_push_shadow_frame_from_code->setCallingConv(CallingConv::C); |
| 451 | } |
| 452 | AttrListPtr func_art_push_shadow_frame_from_code_PAL; |
| 453 | func_art_push_shadow_frame_from_code->setAttributes(func_art_push_shadow_frame_from_code_PAL); |
| 454 | |
| 455 | Function* func_art_pop_shadow_frame_from_code = mod->getFunction("art_pop_shadow_frame_from_code"); |
| 456 | if (!func_art_pop_shadow_frame_from_code) { |
| 457 | func_art_pop_shadow_frame_from_code = Function::Create( |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 458 | /*Type=*/FuncTy_8, |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 459 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 460 | /*Name=*/"art_pop_shadow_frame_from_code", mod); // (external, no body) |
| 461 | func_art_pop_shadow_frame_from_code->setCallingConv(CallingConv::C); |
| 462 | } |
| 463 | AttrListPtr func_art_pop_shadow_frame_from_code_PAL; |
| 464 | func_art_pop_shadow_frame_from_code->setAttributes(func_art_pop_shadow_frame_from_code_PAL); |
| 465 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 466 | Function* func_art_throw_div_zero_from_code = mod->getFunction("art_throw_div_zero_from_code"); |
| 467 | if (!func_art_throw_div_zero_from_code) { |
| 468 | func_art_throw_div_zero_from_code = Function::Create( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 469 | /*Type=*/FuncTy_9, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 470 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 471 | /*Name=*/"art_throw_div_zero_from_code", mod); // (external, no body) |
| 472 | func_art_throw_div_zero_from_code->setCallingConv(CallingConv::C); |
| 473 | } |
| 474 | AttrListPtr func_art_throw_div_zero_from_code_PAL; |
| 475 | func_art_throw_div_zero_from_code->setAttributes(func_art_throw_div_zero_from_code_PAL); |
| 476 | |
| 477 | Function* func_art_throw_array_bounds_from_code = mod->getFunction("art_throw_array_bounds_from_code"); |
| 478 | if (!func_art_throw_array_bounds_from_code) { |
| 479 | func_art_throw_array_bounds_from_code = Function::Create( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 480 | /*Type=*/FuncTy_10, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 481 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 482 | /*Name=*/"art_throw_array_bounds_from_code", mod); // (external, no body) |
| 483 | func_art_throw_array_bounds_from_code->setCallingConv(CallingConv::C); |
| 484 | } |
| 485 | AttrListPtr func_art_throw_array_bounds_from_code_PAL; |
| 486 | func_art_throw_array_bounds_from_code->setAttributes(func_art_throw_array_bounds_from_code_PAL); |
| 487 | |
| 488 | Function* func_art_throw_no_such_method_from_code = mod->getFunction("art_throw_no_such_method_from_code"); |
| 489 | if (!func_art_throw_no_such_method_from_code) { |
| 490 | func_art_throw_no_such_method_from_code = Function::Create( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 491 | /*Type=*/FuncTy_11, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 492 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 493 | /*Name=*/"art_throw_no_such_method_from_code", mod); // (external, no body) |
| 494 | func_art_throw_no_such_method_from_code->setCallingConv(CallingConv::C); |
| 495 | } |
| 496 | AttrListPtr func_art_throw_no_such_method_from_code_PAL; |
| 497 | func_art_throw_no_such_method_from_code->setAttributes(func_art_throw_no_such_method_from_code_PAL); |
| 498 | |
| 499 | Function* func_art_throw_null_pointer_exception_from_code = mod->getFunction("art_throw_null_pointer_exception_from_code"); |
| 500 | if (!func_art_throw_null_pointer_exception_from_code) { |
| 501 | func_art_throw_null_pointer_exception_from_code = Function::Create( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 502 | /*Type=*/FuncTy_11, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 503 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 504 | /*Name=*/"art_throw_null_pointer_exception_from_code", mod); // (external, no body) |
| 505 | func_art_throw_null_pointer_exception_from_code->setCallingConv(CallingConv::C); |
| 506 | } |
| 507 | AttrListPtr func_art_throw_null_pointer_exception_from_code_PAL; |
| 508 | func_art_throw_null_pointer_exception_from_code->setAttributes(func_art_throw_null_pointer_exception_from_code_PAL); |
| 509 | |
| 510 | Function* func_art_throw_stack_overflow_from_code = mod->getFunction("art_throw_stack_overflow_from_code"); |
| 511 | if (!func_art_throw_stack_overflow_from_code) { |
| 512 | func_art_throw_stack_overflow_from_code = Function::Create( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 513 | /*Type=*/FuncTy_9, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 514 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 515 | /*Name=*/"art_throw_stack_overflow_from_code", mod); // (external, no body) |
| 516 | func_art_throw_stack_overflow_from_code->setCallingConv(CallingConv::C); |
| 517 | } |
| 518 | AttrListPtr func_art_throw_stack_overflow_from_code_PAL; |
| 519 | func_art_throw_stack_overflow_from_code->setAttributes(func_art_throw_stack_overflow_from_code_PAL); |
| 520 | |
| 521 | Function* func_art_throw_exception_from_code = mod->getFunction("art_throw_exception_from_code"); |
| 522 | if (!func_art_throw_exception_from_code) { |
| 523 | func_art_throw_exception_from_code = Function::Create( |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 524 | /*Type=*/FuncTy_6, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 525 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 526 | /*Name=*/"art_throw_exception_from_code", mod); // (external, no body) |
| 527 | func_art_throw_exception_from_code->setCallingConv(CallingConv::C); |
| 528 | } |
| 529 | AttrListPtr func_art_throw_exception_from_code_PAL; |
| 530 | func_art_throw_exception_from_code->setAttributes(func_art_throw_exception_from_code_PAL); |
| 531 | |
| 532 | Function* func_art_find_catch_block_from_code = mod->getFunction("art_find_catch_block_from_code"); |
| 533 | if (!func_art_find_catch_block_from_code) { |
| 534 | func_art_find_catch_block_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 535 | /*Type=*/FuncTy_12, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 536 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 537 | /*Name=*/"art_find_catch_block_from_code", mod); // (external, no body) |
| 538 | func_art_find_catch_block_from_code->setCallingConv(CallingConv::C); |
| 539 | } |
| 540 | AttrListPtr func_art_find_catch_block_from_code_PAL; |
| 541 | func_art_find_catch_block_from_code->setAttributes(func_art_find_catch_block_from_code_PAL); |
| 542 | |
| 543 | Function* func_art_alloc_object_from_code = mod->getFunction("art_alloc_object_from_code"); |
| 544 | if (!func_art_alloc_object_from_code) { |
| 545 | func_art_alloc_object_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 546 | /*Type=*/FuncTy_13, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 547 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 548 | /*Name=*/"art_alloc_object_from_code", mod); // (external, no body) |
| 549 | func_art_alloc_object_from_code->setCallingConv(CallingConv::C); |
| 550 | } |
| 551 | AttrListPtr func_art_alloc_object_from_code_PAL; |
| 552 | func_art_alloc_object_from_code->setAttributes(func_art_alloc_object_from_code_PAL); |
| 553 | |
| 554 | Function* func_art_alloc_object_from_code_with_access_check = mod->getFunction("art_alloc_object_from_code_with_access_check"); |
| 555 | if (!func_art_alloc_object_from_code_with_access_check) { |
| 556 | func_art_alloc_object_from_code_with_access_check = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 557 | /*Type=*/FuncTy_13, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 558 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 559 | /*Name=*/"art_alloc_object_from_code_with_access_check", mod); // (external, no body) |
| 560 | func_art_alloc_object_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 561 | } |
| 562 | AttrListPtr func_art_alloc_object_from_code_with_access_check_PAL; |
| 563 | func_art_alloc_object_from_code_with_access_check->setAttributes(func_art_alloc_object_from_code_with_access_check_PAL); |
| 564 | |
| 565 | Function* func_art_alloc_array_from_code = mod->getFunction("art_alloc_array_from_code"); |
| 566 | if (!func_art_alloc_array_from_code) { |
| 567 | func_art_alloc_array_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 568 | /*Type=*/FuncTy_14, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 569 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 570 | /*Name=*/"art_alloc_array_from_code", mod); // (external, no body) |
| 571 | func_art_alloc_array_from_code->setCallingConv(CallingConv::C); |
| 572 | } |
| 573 | AttrListPtr func_art_alloc_array_from_code_PAL; |
| 574 | func_art_alloc_array_from_code->setAttributes(func_art_alloc_array_from_code_PAL); |
| 575 | |
| 576 | Function* func_art_alloc_array_from_code_with_access_check = mod->getFunction("art_alloc_array_from_code_with_access_check"); |
| 577 | if (!func_art_alloc_array_from_code_with_access_check) { |
| 578 | func_art_alloc_array_from_code_with_access_check = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 579 | /*Type=*/FuncTy_14, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 580 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 581 | /*Name=*/"art_alloc_array_from_code_with_access_check", mod); // (external, no body) |
| 582 | func_art_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 583 | } |
| 584 | AttrListPtr func_art_alloc_array_from_code_with_access_check_PAL; |
| 585 | func_art_alloc_array_from_code_with_access_check->setAttributes(func_art_alloc_array_from_code_with_access_check_PAL); |
| 586 | |
| 587 | Function* func_art_check_and_alloc_array_from_code = mod->getFunction("art_check_and_alloc_array_from_code"); |
| 588 | if (!func_art_check_and_alloc_array_from_code) { |
| 589 | func_art_check_and_alloc_array_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 590 | /*Type=*/FuncTy_14, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 591 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 592 | /*Name=*/"art_check_and_alloc_array_from_code", mod); // (external, no body) |
| 593 | func_art_check_and_alloc_array_from_code->setCallingConv(CallingConv::C); |
| 594 | } |
| 595 | AttrListPtr func_art_check_and_alloc_array_from_code_PAL; |
| 596 | func_art_check_and_alloc_array_from_code->setAttributes(func_art_check_and_alloc_array_from_code_PAL); |
| 597 | |
| 598 | Function* func_art_check_and_alloc_array_from_code_with_access_check = mod->getFunction("art_check_and_alloc_array_from_code_with_access_check"); |
| 599 | if (!func_art_check_and_alloc_array_from_code_with_access_check) { |
| 600 | func_art_check_and_alloc_array_from_code_with_access_check = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 601 | /*Type=*/FuncTy_14, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 602 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 603 | /*Name=*/"art_check_and_alloc_array_from_code_with_access_check", mod); // (external, no body) |
| 604 | func_art_check_and_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 605 | } |
| 606 | AttrListPtr func_art_check_and_alloc_array_from_code_with_access_check_PAL; |
| 607 | func_art_check_and_alloc_array_from_code_with_access_check->setAttributes(func_art_check_and_alloc_array_from_code_with_access_check_PAL); |
| 608 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 609 | Function* func_art_find_instance_field_from_code = mod->getFunction("art_find_instance_field_from_code"); |
| 610 | if (!func_art_find_instance_field_from_code) { |
| 611 | func_art_find_instance_field_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 612 | /*Type=*/FuncTy_15, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 613 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 614 | /*Name=*/"art_find_instance_field_from_code", mod); // (external, no body) |
| 615 | func_art_find_instance_field_from_code->setCallingConv(CallingConv::C); |
| 616 | } |
| 617 | AttrListPtr func_art_find_instance_field_from_code_PAL; |
| 618 | func_art_find_instance_field_from_code->setAttributes(func_art_find_instance_field_from_code_PAL); |
| 619 | |
| 620 | Function* func_art_find_static_field_from_code = mod->getFunction("art_find_static_field_from_code"); |
| 621 | if (!func_art_find_static_field_from_code) { |
| 622 | func_art_find_static_field_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 623 | /*Type=*/FuncTy_15, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 624 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 625 | /*Name=*/"art_find_static_field_from_code", mod); // (external, no body) |
| 626 | func_art_find_static_field_from_code->setCallingConv(CallingConv::C); |
| 627 | } |
| 628 | AttrListPtr func_art_find_static_field_from_code_PAL; |
| 629 | func_art_find_static_field_from_code->setAttributes(func_art_find_static_field_from_code_PAL); |
| 630 | |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 631 | Function* func_art_find_static_method_from_code_with_access_check = mod->getFunction("art_find_static_method_from_code_with_access_check"); |
| 632 | if (!func_art_find_static_method_from_code_with_access_check) { |
| 633 | func_art_find_static_method_from_code_with_access_check = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 634 | /*Type=*/FuncTy_16, |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 635 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 636 | /*Name=*/"art_find_static_method_from_code_with_access_check", mod); // (external, no body) |
| 637 | func_art_find_static_method_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 638 | } |
| 639 | AttrListPtr func_art_find_static_method_from_code_with_access_check_PAL; |
| 640 | func_art_find_static_method_from_code_with_access_check->setAttributes(func_art_find_static_method_from_code_with_access_check_PAL); |
| 641 | |
| 642 | Function* func_art_find_direct_method_from_code_with_access_check = mod->getFunction("art_find_direct_method_from_code_with_access_check"); |
| 643 | if (!func_art_find_direct_method_from_code_with_access_check) { |
| 644 | func_art_find_direct_method_from_code_with_access_check = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 645 | /*Type=*/FuncTy_16, |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 646 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 647 | /*Name=*/"art_find_direct_method_from_code_with_access_check", mod); // (external, no body) |
| 648 | func_art_find_direct_method_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 649 | } |
| 650 | AttrListPtr func_art_find_direct_method_from_code_with_access_check_PAL; |
| 651 | func_art_find_direct_method_from_code_with_access_check->setAttributes(func_art_find_direct_method_from_code_with_access_check_PAL); |
| 652 | |
| 653 | Function* func_art_find_virtual_method_from_code_with_access_check = mod->getFunction("art_find_virtual_method_from_code_with_access_check"); |
| 654 | if (!func_art_find_virtual_method_from_code_with_access_check) { |
| 655 | func_art_find_virtual_method_from_code_with_access_check = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 656 | /*Type=*/FuncTy_16, |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 657 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 658 | /*Name=*/"art_find_virtual_method_from_code_with_access_check", mod); // (external, no body) |
| 659 | func_art_find_virtual_method_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 660 | } |
| 661 | AttrListPtr func_art_find_virtual_method_from_code_with_access_check_PAL; |
| 662 | func_art_find_virtual_method_from_code_with_access_check->setAttributes(func_art_find_virtual_method_from_code_with_access_check_PAL); |
| 663 | |
| 664 | Function* func_art_find_super_method_from_code_with_access_check = mod->getFunction("art_find_super_method_from_code_with_access_check"); |
| 665 | if (!func_art_find_super_method_from_code_with_access_check) { |
| 666 | func_art_find_super_method_from_code_with_access_check = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 667 | /*Type=*/FuncTy_16, |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 668 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 669 | /*Name=*/"art_find_super_method_from_code_with_access_check", mod); // (external, no body) |
| 670 | func_art_find_super_method_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 671 | } |
| 672 | AttrListPtr func_art_find_super_method_from_code_with_access_check_PAL; |
| 673 | func_art_find_super_method_from_code_with_access_check->setAttributes(func_art_find_super_method_from_code_with_access_check_PAL); |
| 674 | |
| 675 | Function* func_art_find_interface_method_from_code_with_access_check = mod->getFunction("art_find_interface_method_from_code_with_access_check"); |
| 676 | if (!func_art_find_interface_method_from_code_with_access_check) { |
| 677 | func_art_find_interface_method_from_code_with_access_check = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 678 | /*Type=*/FuncTy_16, |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 679 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 680 | /*Name=*/"art_find_interface_method_from_code_with_access_check", mod); // (external, no body) |
| 681 | func_art_find_interface_method_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 682 | } |
| 683 | AttrListPtr func_art_find_interface_method_from_code_with_access_check_PAL; |
| 684 | func_art_find_interface_method_from_code_with_access_check->setAttributes(func_art_find_interface_method_from_code_with_access_check_PAL); |
| 685 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 686 | Function* func_art_find_interface_method_from_code = mod->getFunction("art_find_interface_method_from_code"); |
| 687 | if (!func_art_find_interface_method_from_code) { |
| 688 | func_art_find_interface_method_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 689 | /*Type=*/FuncTy_16, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 690 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 691 | /*Name=*/"art_find_interface_method_from_code", mod); // (external, no body) |
| 692 | func_art_find_interface_method_from_code->setCallingConv(CallingConv::C); |
| 693 | } |
| 694 | AttrListPtr func_art_find_interface_method_from_code_PAL; |
| 695 | func_art_find_interface_method_from_code->setAttributes(func_art_find_interface_method_from_code_PAL); |
| 696 | |
| 697 | Function* func_art_initialize_static_storage_from_code = mod->getFunction("art_initialize_static_storage_from_code"); |
| 698 | if (!func_art_initialize_static_storage_from_code) { |
| 699 | func_art_initialize_static_storage_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 700 | /*Type=*/FuncTy_13, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 701 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 702 | /*Name=*/"art_initialize_static_storage_from_code", mod); // (external, no body) |
| 703 | func_art_initialize_static_storage_from_code->setCallingConv(CallingConv::C); |
| 704 | } |
| 705 | AttrListPtr func_art_initialize_static_storage_from_code_PAL; |
| 706 | func_art_initialize_static_storage_from_code->setAttributes(func_art_initialize_static_storage_from_code_PAL); |
| 707 | |
| 708 | Function* func_art_initialize_type_from_code = mod->getFunction("art_initialize_type_from_code"); |
| 709 | if (!func_art_initialize_type_from_code) { |
| 710 | func_art_initialize_type_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 711 | /*Type=*/FuncTy_13, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 712 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 713 | /*Name=*/"art_initialize_type_from_code", mod); // (external, no body) |
| 714 | func_art_initialize_type_from_code->setCallingConv(CallingConv::C); |
| 715 | } |
| 716 | AttrListPtr func_art_initialize_type_from_code_PAL; |
| 717 | func_art_initialize_type_from_code->setAttributes(func_art_initialize_type_from_code_PAL); |
| 718 | |
| 719 | Function* func_art_initialize_type_and_verify_access_from_code = mod->getFunction("art_initialize_type_and_verify_access_from_code"); |
| 720 | if (!func_art_initialize_type_and_verify_access_from_code) { |
| 721 | func_art_initialize_type_and_verify_access_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 722 | /*Type=*/FuncTy_13, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 723 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 724 | /*Name=*/"art_initialize_type_and_verify_access_from_code", mod); // (external, no body) |
| 725 | func_art_initialize_type_and_verify_access_from_code->setCallingConv(CallingConv::C); |
| 726 | } |
| 727 | AttrListPtr func_art_initialize_type_and_verify_access_from_code_PAL; |
| 728 | func_art_initialize_type_and_verify_access_from_code->setAttributes(func_art_initialize_type_and_verify_access_from_code_PAL); |
| 729 | |
| 730 | Function* func_art_resolve_string_from_code = mod->getFunction("art_resolve_string_from_code"); |
| 731 | if (!func_art_resolve_string_from_code) { |
| 732 | func_art_resolve_string_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 733 | /*Type=*/FuncTy_17, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 734 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 735 | /*Name=*/"art_resolve_string_from_code", mod); // (external, no body) |
| 736 | func_art_resolve_string_from_code->setCallingConv(CallingConv::C); |
| 737 | } |
| 738 | AttrListPtr func_art_resolve_string_from_code_PAL; |
| 739 | func_art_resolve_string_from_code->setAttributes(func_art_resolve_string_from_code_PAL); |
| 740 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 741 | Function* func_art_set32_static_from_code = mod->getFunction("art_set32_static_from_code"); |
| 742 | if (!func_art_set32_static_from_code) { |
| 743 | func_art_set32_static_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 744 | /*Type=*/FuncTy_18, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 745 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 746 | /*Name=*/"art_set32_static_from_code", mod); // (external, no body) |
| 747 | func_art_set32_static_from_code->setCallingConv(CallingConv::C); |
| 748 | } |
| 749 | AttrListPtr func_art_set32_static_from_code_PAL; |
| 750 | func_art_set32_static_from_code->setAttributes(func_art_set32_static_from_code_PAL); |
| 751 | |
| 752 | Function* func_art_set64_static_from_code = mod->getFunction("art_set64_static_from_code"); |
| 753 | if (!func_art_set64_static_from_code) { |
| 754 | func_art_set64_static_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 755 | /*Type=*/FuncTy_19, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 756 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 757 | /*Name=*/"art_set64_static_from_code", mod); // (external, no body) |
| 758 | func_art_set64_static_from_code->setCallingConv(CallingConv::C); |
| 759 | } |
| 760 | AttrListPtr func_art_set64_static_from_code_PAL; |
| 761 | func_art_set64_static_from_code->setAttributes(func_art_set64_static_from_code_PAL); |
| 762 | |
| 763 | Function* func_art_set_obj_static_from_code = mod->getFunction("art_set_obj_static_from_code"); |
| 764 | if (!func_art_set_obj_static_from_code) { |
| 765 | func_art_set_obj_static_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 766 | /*Type=*/FuncTy_20, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 767 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 768 | /*Name=*/"art_set_obj_static_from_code", mod); // (external, no body) |
| 769 | func_art_set_obj_static_from_code->setCallingConv(CallingConv::C); |
| 770 | } |
| 771 | AttrListPtr func_art_set_obj_static_from_code_PAL; |
| 772 | func_art_set_obj_static_from_code->setAttributes(func_art_set_obj_static_from_code_PAL); |
| 773 | |
| 774 | Function* func_art_get32_static_from_code = mod->getFunction("art_get32_static_from_code"); |
| 775 | if (!func_art_get32_static_from_code) { |
| 776 | func_art_get32_static_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 777 | /*Type=*/FuncTy_21, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 778 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 779 | /*Name=*/"art_get32_static_from_code", mod); // (external, no body) |
| 780 | func_art_get32_static_from_code->setCallingConv(CallingConv::C); |
| 781 | } |
| 782 | AttrListPtr func_art_get32_static_from_code_PAL; |
| 783 | func_art_get32_static_from_code->setAttributes(func_art_get32_static_from_code_PAL); |
| 784 | |
| 785 | Function* func_art_get64_static_from_code = mod->getFunction("art_get64_static_from_code"); |
| 786 | if (!func_art_get64_static_from_code) { |
| 787 | func_art_get64_static_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 788 | /*Type=*/FuncTy_22, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 789 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 790 | /*Name=*/"art_get64_static_from_code", mod); // (external, no body) |
| 791 | func_art_get64_static_from_code->setCallingConv(CallingConv::C); |
| 792 | } |
| 793 | AttrListPtr func_art_get64_static_from_code_PAL; |
| 794 | func_art_get64_static_from_code->setAttributes(func_art_get64_static_from_code_PAL); |
| 795 | |
| 796 | Function* func_art_get_obj_static_from_code = mod->getFunction("art_get_obj_static_from_code"); |
| 797 | if (!func_art_get_obj_static_from_code) { |
| 798 | func_art_get_obj_static_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 799 | /*Type=*/FuncTy_23, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 800 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 801 | /*Name=*/"art_get_obj_static_from_code", mod); // (external, no body) |
| 802 | func_art_get_obj_static_from_code->setCallingConv(CallingConv::C); |
| 803 | } |
| 804 | AttrListPtr func_art_get_obj_static_from_code_PAL; |
| 805 | func_art_get_obj_static_from_code->setAttributes(func_art_get_obj_static_from_code_PAL); |
| 806 | |
| 807 | Function* func_art_set32_instance_from_code = mod->getFunction("art_set32_instance_from_code"); |
| 808 | if (!func_art_set32_instance_from_code) { |
| 809 | func_art_set32_instance_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 810 | /*Type=*/FuncTy_24, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 811 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 812 | /*Name=*/"art_set32_instance_from_code", mod); // (external, no body) |
| 813 | func_art_set32_instance_from_code->setCallingConv(CallingConv::C); |
| 814 | } |
| 815 | AttrListPtr func_art_set32_instance_from_code_PAL; |
| 816 | func_art_set32_instance_from_code->setAttributes(func_art_set32_instance_from_code_PAL); |
| 817 | |
| 818 | Function* func_art_set64_instance_from_code = mod->getFunction("art_set64_instance_from_code"); |
| 819 | if (!func_art_set64_instance_from_code) { |
| 820 | func_art_set64_instance_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 821 | /*Type=*/FuncTy_25, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 822 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 823 | /*Name=*/"art_set64_instance_from_code", mod); // (external, no body) |
| 824 | func_art_set64_instance_from_code->setCallingConv(CallingConv::C); |
| 825 | } |
| 826 | AttrListPtr func_art_set64_instance_from_code_PAL; |
| 827 | func_art_set64_instance_from_code->setAttributes(func_art_set64_instance_from_code_PAL); |
| 828 | |
| 829 | Function* func_art_set_obj_instance_from_code = mod->getFunction("art_set_obj_instance_from_code"); |
| 830 | if (!func_art_set_obj_instance_from_code) { |
| 831 | func_art_set_obj_instance_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 832 | /*Type=*/FuncTy_26, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 833 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 834 | /*Name=*/"art_set_obj_instance_from_code", mod); // (external, no body) |
| 835 | func_art_set_obj_instance_from_code->setCallingConv(CallingConv::C); |
| 836 | } |
| 837 | AttrListPtr func_art_set_obj_instance_from_code_PAL; |
| 838 | func_art_set_obj_instance_from_code->setAttributes(func_art_set_obj_instance_from_code_PAL); |
| 839 | |
| 840 | Function* func_art_get32_instance_from_code = mod->getFunction("art_get32_instance_from_code"); |
| 841 | if (!func_art_get32_instance_from_code) { |
| 842 | func_art_get32_instance_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 843 | /*Type=*/FuncTy_20, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 844 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 845 | /*Name=*/"art_get32_instance_from_code", mod); // (external, no body) |
| 846 | func_art_get32_instance_from_code->setCallingConv(CallingConv::C); |
| 847 | } |
| 848 | AttrListPtr func_art_get32_instance_from_code_PAL; |
| 849 | func_art_get32_instance_from_code->setAttributes(func_art_get32_instance_from_code_PAL); |
| 850 | |
| 851 | Function* func_art_get64_instance_from_code = mod->getFunction("art_get64_instance_from_code"); |
| 852 | if (!func_art_get64_instance_from_code) { |
| 853 | func_art_get64_instance_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 854 | /*Type=*/FuncTy_27, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 855 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 856 | /*Name=*/"art_get64_instance_from_code", mod); // (external, no body) |
| 857 | func_art_get64_instance_from_code->setCallingConv(CallingConv::C); |
| 858 | } |
| 859 | AttrListPtr func_art_get64_instance_from_code_PAL; |
| 860 | func_art_get64_instance_from_code->setAttributes(func_art_get64_instance_from_code_PAL); |
| 861 | |
| 862 | Function* func_art_get_obj_instance_from_code = mod->getFunction("art_get_obj_instance_from_code"); |
| 863 | if (!func_art_get_obj_instance_from_code) { |
| 864 | func_art_get_obj_instance_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 865 | /*Type=*/FuncTy_13, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 866 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 867 | /*Name=*/"art_get_obj_instance_from_code", mod); // (external, no body) |
| 868 | func_art_get_obj_instance_from_code->setCallingConv(CallingConv::C); |
| 869 | } |
| 870 | AttrListPtr func_art_get_obj_instance_from_code_PAL; |
| 871 | func_art_get_obj_instance_from_code->setAttributes(func_art_get_obj_instance_from_code_PAL); |
| 872 | |
TDYa127 | 28f1a14 | 2012-03-15 21:51:52 -0700 | [diff] [blame] | 873 | Function* func_art_decode_jobject_in_thread = mod->getFunction("art_decode_jobject_in_thread"); |
| 874 | if (!func_art_decode_jobject_in_thread) { |
| 875 | func_art_decode_jobject_in_thread = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 876 | /*Type=*/FuncTy_28, |
TDYa127 | 28f1a14 | 2012-03-15 21:51:52 -0700 | [diff] [blame] | 877 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 878 | /*Name=*/"art_decode_jobject_in_thread", mod); // (external, no body) |
| 879 | func_art_decode_jobject_in_thread->setCallingConv(CallingConv::C); |
| 880 | } |
| 881 | AttrListPtr func_art_decode_jobject_in_thread_PAL; |
| 882 | func_art_decode_jobject_in_thread->setAttributes(func_art_decode_jobject_in_thread_PAL); |
| 883 | |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 884 | Function* func_art_fill_array_data_from_code = mod->getFunction("art_fill_array_data_from_code"); |
| 885 | if (!func_art_fill_array_data_from_code) { |
| 886 | func_art_fill_array_data_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 887 | /*Type=*/FuncTy_29, |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 888 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 889 | /*Name=*/"art_fill_array_data_from_code", mod); // (external, no body) |
| 890 | func_art_fill_array_data_from_code->setCallingConv(CallingConv::C); |
| 891 | } |
| 892 | AttrListPtr func_art_fill_array_data_from_code_PAL; |
| 893 | func_art_fill_array_data_from_code->setAttributes(func_art_fill_array_data_from_code_PAL); |
| 894 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 895 | Function* func_art_is_assignable_from_code = mod->getFunction("art_is_assignable_from_code"); |
| 896 | if (!func_art_is_assignable_from_code) { |
| 897 | func_art_is_assignable_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 898 | /*Type=*/FuncTy_30, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 899 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 900 | /*Name=*/"art_is_assignable_from_code", mod); // (external, no body) |
| 901 | func_art_is_assignable_from_code->setCallingConv(CallingConv::C); |
| 902 | } |
| 903 | AttrListPtr func_art_is_assignable_from_code_PAL; |
| 904 | func_art_is_assignable_from_code->setAttributes(func_art_is_assignable_from_code_PAL); |
| 905 | |
| 906 | Function* func_art_check_cast_from_code = mod->getFunction("art_check_cast_from_code"); |
| 907 | if (!func_art_check_cast_from_code) { |
| 908 | func_art_check_cast_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 909 | /*Type=*/FuncTy_5, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 910 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 911 | /*Name=*/"art_check_cast_from_code", mod); // (external, no body) |
| 912 | func_art_check_cast_from_code->setCallingConv(CallingConv::C); |
| 913 | } |
| 914 | AttrListPtr func_art_check_cast_from_code_PAL; |
| 915 | func_art_check_cast_from_code->setAttributes(func_art_check_cast_from_code_PAL); |
| 916 | |
TDYa127 | 1b86d07 | 2012-04-05 17:38:56 -0700 | [diff] [blame] | 917 | Function* func_art_check_put_array_element_from_code = mod->getFunction("art_check_put_array_element_from_code"); |
| 918 | if (!func_art_check_put_array_element_from_code) { |
| 919 | func_art_check_put_array_element_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 920 | /*Type=*/FuncTy_5, |
TDYa127 | 1b86d07 | 2012-04-05 17:38:56 -0700 | [diff] [blame] | 921 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 922 | /*Name=*/"art_check_put_array_element_from_code", mod); // (external, no body) |
| 923 | func_art_check_put_array_element_from_code->setCallingConv(CallingConv::C); |
| 924 | } |
| 925 | AttrListPtr func_art_check_put_array_element_from_code_PAL; |
| 926 | func_art_check_put_array_element_from_code->setAttributes(func_art_check_put_array_element_from_code_PAL); |
| 927 | |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 928 | Function* func_art_d2l = mod->getFunction("art_d2l"); |
| 929 | if (!func_art_d2l) { |
| 930 | func_art_d2l = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 931 | /*Type=*/FuncTy_31, |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 932 | /*Linkage=*/GlobalValue::ExternalLinkage, |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 933 | /*Name=*/"art_d2l", mod); // (external, no body) |
| 934 | func_art_d2l->setCallingConv(CallingConv::C); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 935 | } |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 936 | AttrListPtr func_art_d2l_PAL; |
| 937 | func_art_d2l->setAttributes(func_art_d2l_PAL); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 938 | |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 939 | Function* func_art_d2i = mod->getFunction("art_d2i"); |
| 940 | if (!func_art_d2i) { |
| 941 | func_art_d2i = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 942 | /*Type=*/FuncTy_32, |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 943 | /*Linkage=*/GlobalValue::ExternalLinkage, |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 944 | /*Name=*/"art_d2i", mod); // (external, no body) |
| 945 | func_art_d2i->setCallingConv(CallingConv::C); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 946 | } |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 947 | AttrListPtr func_art_d2i_PAL; |
| 948 | func_art_d2i->setAttributes(func_art_d2i_PAL); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 949 | |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 950 | Function* func_art_f2l = mod->getFunction("art_f2l"); |
| 951 | if (!func_art_f2l) { |
| 952 | func_art_f2l = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 953 | /*Type=*/FuncTy_33, |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 954 | /*Linkage=*/GlobalValue::ExternalLinkage, |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 955 | /*Name=*/"art_f2l", mod); // (external, no body) |
| 956 | func_art_f2l->setCallingConv(CallingConv::C); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 957 | } |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 958 | AttrListPtr func_art_f2l_PAL; |
| 959 | func_art_f2l->setAttributes(func_art_f2l_PAL); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 960 | |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 961 | Function* func_art_f2i = mod->getFunction("art_f2i"); |
| 962 | if (!func_art_f2i) { |
| 963 | func_art_f2i = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 964 | /*Type=*/FuncTy_34, |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 965 | /*Linkage=*/GlobalValue::ExternalLinkage, |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 966 | /*Name=*/"art_f2i", mod); // (external, no body) |
| 967 | func_art_f2i->setCallingConv(CallingConv::C); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 968 | } |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 969 | AttrListPtr func_art_f2i_PAL; |
| 970 | func_art_f2i->setAttributes(func_art_f2i_PAL); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 971 | |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 972 | Function* func_art_jni_method_start = mod->getFunction("art_jni_method_start"); |
| 973 | if (!func_art_jni_method_start) { |
| 974 | func_art_jni_method_start = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 975 | /*Type=*/FuncTy_35, |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 976 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 977 | /*Name=*/"art_jni_method_start", mod); // (external, no body) |
| 978 | func_art_jni_method_start->setCallingConv(CallingConv::C); |
| 979 | } |
| 980 | AttrListPtr func_art_jni_method_start_PAL; |
| 981 | func_art_jni_method_start->setAttributes(func_art_jni_method_start_PAL); |
| 982 | |
| 983 | Function* func_art_jni_method_start_synchronized = mod->getFunction("art_jni_method_start_synchronized"); |
| 984 | if (!func_art_jni_method_start_synchronized) { |
| 985 | func_art_jni_method_start_synchronized = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 986 | /*Type=*/FuncTy_30, |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 987 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 988 | /*Name=*/"art_jni_method_start_synchronized", mod); // (external, no body) |
| 989 | func_art_jni_method_start_synchronized->setCallingConv(CallingConv::C); |
| 990 | } |
| 991 | AttrListPtr func_art_jni_method_start_synchronized_PAL; |
| 992 | func_art_jni_method_start_synchronized->setAttributes(func_art_jni_method_start_synchronized_PAL); |
| 993 | |
| 994 | Function* func_art_jni_method_end = mod->getFunction("art_jni_method_end"); |
| 995 | if (!func_art_jni_method_end) { |
| 996 | func_art_jni_method_end = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 997 | /*Type=*/FuncTy_15, |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 998 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 999 | /*Name=*/"art_jni_method_end", mod); // (external, no body) |
| 1000 | func_art_jni_method_end->setCallingConv(CallingConv::C); |
| 1001 | } |
| 1002 | AttrListPtr func_art_jni_method_end_PAL; |
| 1003 | func_art_jni_method_end->setAttributes(func_art_jni_method_end_PAL); |
| 1004 | |
| 1005 | Function* func_art_jni_method_end_synchronized = mod->getFunction("art_jni_method_end_synchronized"); |
| 1006 | if (!func_art_jni_method_end_synchronized) { |
| 1007 | func_art_jni_method_end_synchronized = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 1008 | /*Type=*/FuncTy_36, |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1009 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 1010 | /*Name=*/"art_jni_method_end_synchronized", mod); // (external, no body) |
| 1011 | func_art_jni_method_end_synchronized->setCallingConv(CallingConv::C); |
| 1012 | } |
| 1013 | AttrListPtr func_art_jni_method_end_synchronized_PAL; |
| 1014 | func_art_jni_method_end_synchronized->setAttributes(func_art_jni_method_end_synchronized_PAL); |
| 1015 | |
| 1016 | Function* func_art_jni_method_end_with_reference = mod->getFunction("art_jni_method_end_with_reference"); |
| 1017 | if (!func_art_jni_method_end_with_reference) { |
| 1018 | func_art_jni_method_end_with_reference = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 1019 | /*Type=*/FuncTy_37, |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1020 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 1021 | /*Name=*/"art_jni_method_end_with_reference", mod); // (external, no body) |
| 1022 | func_art_jni_method_end_with_reference->setCallingConv(CallingConv::C); |
| 1023 | } |
| 1024 | AttrListPtr func_art_jni_method_end_with_reference_PAL; |
| 1025 | func_art_jni_method_end_with_reference->setAttributes(func_art_jni_method_end_with_reference_PAL); |
| 1026 | |
| 1027 | Function* func_art_jni_method_end_with_reference_synchronized = mod->getFunction("art_jni_method_end_with_reference_synchronized"); |
| 1028 | if (!func_art_jni_method_end_with_reference_synchronized) { |
| 1029 | func_art_jni_method_end_with_reference_synchronized = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 1030 | /*Type=*/FuncTy_38, |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1031 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 1032 | /*Name=*/"art_jni_method_end_with_reference_synchronized", mod); // (external, no body) |
| 1033 | func_art_jni_method_end_with_reference_synchronized->setCallingConv(CallingConv::C); |
| 1034 | } |
| 1035 | AttrListPtr func_art_jni_method_end_with_reference_synchronized_PAL; |
| 1036 | func_art_jni_method_end_with_reference_synchronized->setAttributes(func_art_jni_method_end_with_reference_synchronized_PAL); |
| 1037 | |
| 1038 | Function* func_art_is_exception_pending_from_code = mod->getFunction("art_is_exception_pending_from_code"); |
| 1039 | if (!func_art_is_exception_pending_from_code) { |
| 1040 | func_art_is_exception_pending_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 1041 | /*Type=*/FuncTy_39, |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1042 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 1043 | /*Name=*/"art_is_exception_pending_from_code", mod); // (external, no body) |
| 1044 | func_art_is_exception_pending_from_code->setCallingConv(CallingConv::C); |
| 1045 | } |
| 1046 | AttrListPtr func_art_is_exception_pending_from_code_PAL; |
| 1047 | func_art_is_exception_pending_from_code->setAttributes(func_art_is_exception_pending_from_code_PAL); |
| 1048 | |
TDYa127 | 83bb662 | 2012-04-17 02:20:34 -0700 | [diff] [blame] | 1049 | Function* func_art_mark_gc_card_from_code = mod->getFunction("art_mark_gc_card_from_code"); |
| 1050 | if (!func_art_mark_gc_card_from_code) { |
| 1051 | func_art_mark_gc_card_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 1052 | /*Type=*/FuncTy_5, |
TDYa127 | 83bb662 | 2012-04-17 02:20:34 -0700 | [diff] [blame] | 1053 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 1054 | /*Name=*/"art_mark_gc_card_from_code", mod); // (external, no body) |
| 1055 | func_art_mark_gc_card_from_code->setCallingConv(CallingConv::C); |
| 1056 | } |
| 1057 | AttrListPtr func_art_mark_gc_card_from_code_PAL; |
| 1058 | func_art_mark_gc_card_from_code->setAttributes(func_art_mark_gc_card_from_code_PAL); |
| 1059 | |
TDYa127 | 5bb8601 | 2012-04-11 05:57:28 -0700 | [diff] [blame] | 1060 | Function* func_art_proxy_invoke_handler_from_code = mod->getFunction("art_proxy_invoke_handler_from_code"); |
| 1061 | if (!func_art_proxy_invoke_handler_from_code) { |
| 1062 | func_art_proxy_invoke_handler_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame^] | 1063 | /*Type=*/FuncTy_40, |
TDYa127 | 5bb8601 | 2012-04-11 05:57:28 -0700 | [diff] [blame] | 1064 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 1065 | /*Name=*/"art_proxy_invoke_handler_from_code", mod); // (external, no body) |
| 1066 | func_art_proxy_invoke_handler_from_code->setCallingConv(CallingConv::C); |
| 1067 | } |
| 1068 | AttrListPtr func_art_proxy_invoke_handler_from_code_PAL; |
| 1069 | func_art_proxy_invoke_handler_from_code->setAttributes(func_art_proxy_invoke_handler_from_code_PAL); |
| 1070 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 1071 | // Global Variable Declarations |
| 1072 | |
| 1073 | |
| 1074 | // Constant Definitions |
| 1075 | |
| 1076 | // Global Variable Definitions |
| 1077 | |
| 1078 | // Function Definitions |
| 1079 | |
| 1080 | return mod; |
| 1081 | |
| 1082 | } |
Logan Chien | e75a8cc | 2012-02-24 12:26:43 +0800 | [diff] [blame] | 1083 | |
| 1084 | } // namespace compiler_llvm |
| 1085 | } // namespace art |