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