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