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; |
| 362 | func_art_get_current_thread_from_code->setAttributes(func_art_get_current_thread_from_code_PAL); |
| 363 | |
| 364 | Function* func_art_set_current_thread_from_code = mod->getFunction("art_set_current_thread_from_code"); |
| 365 | if (!func_art_set_current_thread_from_code) { |
| 366 | func_art_set_current_thread_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_set_current_thread_from_code", mod); // (external, no body) |
| 370 | func_art_set_current_thread_from_code->setCallingConv(CallingConv::C); |
| 371 | } |
| 372 | AttrListPtr func_art_set_current_thread_from_code_PAL; |
| 373 | func_art_set_current_thread_from_code->setAttributes(func_art_set_current_thread_from_code_PAL); |
| 374 | |
| 375 | Function* func_art_lock_object_from_code = mod->getFunction("art_lock_object_from_code"); |
| 376 | if (!func_art_lock_object_from_code) { |
| 377 | func_art_lock_object_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 378 | /*Type=*/FuncTy_5, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 379 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 380 | /*Name=*/"art_lock_object_from_code", mod); // (external, no body) |
| 381 | func_art_lock_object_from_code->setCallingConv(CallingConv::C); |
| 382 | } |
| 383 | AttrListPtr func_art_lock_object_from_code_PAL; |
| 384 | func_art_lock_object_from_code->setAttributes(func_art_lock_object_from_code_PAL); |
| 385 | |
| 386 | Function* func_art_unlock_object_from_code = mod->getFunction("art_unlock_object_from_code"); |
| 387 | if (!func_art_unlock_object_from_code) { |
| 388 | func_art_unlock_object_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [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_unlock_object_from_code", mod); // (external, no body) |
| 392 | func_art_unlock_object_from_code->setCallingConv(CallingConv::C); |
| 393 | } |
| 394 | AttrListPtr func_art_unlock_object_from_code_PAL; |
| 395 | func_art_unlock_object_from_code->setAttributes(func_art_unlock_object_from_code_PAL); |
| 396 | |
| 397 | Function* func_art_test_suspend_from_code = mod->getFunction("art_test_suspend_from_code"); |
| 398 | if (!func_art_test_suspend_from_code) { |
| 399 | func_art_test_suspend_from_code = Function::Create( |
TDYa127 | 853cd09 | 2012-04-21 22:15:31 -0700 | [diff] [blame] | 400 | /*Type=*/FuncTy_4, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 401 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 402 | /*Name=*/"art_test_suspend_from_code", mod); // (external, no body) |
| 403 | func_art_test_suspend_from_code->setCallingConv(CallingConv::C); |
| 404 | } |
| 405 | AttrListPtr func_art_test_suspend_from_code_PAL; |
| 406 | func_art_test_suspend_from_code->setAttributes(func_art_test_suspend_from_code_PAL); |
| 407 | |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 408 | Function* func_art_push_shadow_frame_from_code = mod->getFunction("art_push_shadow_frame_from_code"); |
| 409 | if (!func_art_push_shadow_frame_from_code) { |
| 410 | func_art_push_shadow_frame_from_code = Function::Create( |
TDYa127 | 853cd09 | 2012-04-21 22:15:31 -0700 | [diff] [blame] | 411 | /*Type=*/FuncTy_6, |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 412 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 413 | /*Name=*/"art_push_shadow_frame_from_code", mod); // (external, no body) |
| 414 | func_art_push_shadow_frame_from_code->setCallingConv(CallingConv::C); |
| 415 | } |
| 416 | AttrListPtr func_art_push_shadow_frame_from_code_PAL; |
| 417 | func_art_push_shadow_frame_from_code->setAttributes(func_art_push_shadow_frame_from_code_PAL); |
| 418 | |
| 419 | Function* func_art_pop_shadow_frame_from_code = mod->getFunction("art_pop_shadow_frame_from_code"); |
| 420 | if (!func_art_pop_shadow_frame_from_code) { |
| 421 | func_art_pop_shadow_frame_from_code = Function::Create( |
TDYa127 | 853cd09 | 2012-04-21 22:15:31 -0700 | [diff] [blame] | 422 | /*Type=*/FuncTy_7, |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 423 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 424 | /*Name=*/"art_pop_shadow_frame_from_code", mod); // (external, no body) |
| 425 | func_art_pop_shadow_frame_from_code->setCallingConv(CallingConv::C); |
| 426 | } |
| 427 | AttrListPtr func_art_pop_shadow_frame_from_code_PAL; |
| 428 | func_art_pop_shadow_frame_from_code->setAttributes(func_art_pop_shadow_frame_from_code_PAL); |
| 429 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 430 | Function* func_art_is_exception_pending_from_code = mod->getFunction("art_is_exception_pending_from_code"); |
| 431 | if (!func_art_is_exception_pending_from_code) { |
| 432 | func_art_is_exception_pending_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 433 | /*Type=*/FuncTy_8, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 434 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 435 | /*Name=*/"art_is_exception_pending_from_code", mod); // (external, no body) |
| 436 | func_art_is_exception_pending_from_code->setCallingConv(CallingConv::C); |
| 437 | } |
| 438 | AttrListPtr func_art_is_exception_pending_from_code_PAL; |
| 439 | func_art_is_exception_pending_from_code->setAttributes(func_art_is_exception_pending_from_code_PAL); |
| 440 | |
| 441 | Function* func_art_throw_div_zero_from_code = mod->getFunction("art_throw_div_zero_from_code"); |
| 442 | if (!func_art_throw_div_zero_from_code) { |
| 443 | func_art_throw_div_zero_from_code = Function::Create( |
TDYa127 | 853cd09 | 2012-04-21 22:15:31 -0700 | [diff] [blame] | 444 | /*Type=*/FuncTy_7, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 445 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 446 | /*Name=*/"art_throw_div_zero_from_code", mod); // (external, no body) |
| 447 | func_art_throw_div_zero_from_code->setCallingConv(CallingConv::C); |
| 448 | } |
| 449 | AttrListPtr func_art_throw_div_zero_from_code_PAL; |
| 450 | func_art_throw_div_zero_from_code->setAttributes(func_art_throw_div_zero_from_code_PAL); |
| 451 | |
| 452 | Function* func_art_throw_array_bounds_from_code = mod->getFunction("art_throw_array_bounds_from_code"); |
| 453 | if (!func_art_throw_array_bounds_from_code) { |
| 454 | func_art_throw_array_bounds_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [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_array_bounds_from_code", mod); // (external, no body) |
| 458 | func_art_throw_array_bounds_from_code->setCallingConv(CallingConv::C); |
| 459 | } |
| 460 | AttrListPtr func_art_throw_array_bounds_from_code_PAL; |
| 461 | func_art_throw_array_bounds_from_code->setAttributes(func_art_throw_array_bounds_from_code_PAL); |
| 462 | |
| 463 | Function* func_art_throw_no_such_method_from_code = mod->getFunction("art_throw_no_such_method_from_code"); |
| 464 | if (!func_art_throw_no_such_method_from_code) { |
| 465 | func_art_throw_no_such_method_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 466 | /*Type=*/FuncTy_10, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 467 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 468 | /*Name=*/"art_throw_no_such_method_from_code", mod); // (external, no body) |
| 469 | func_art_throw_no_such_method_from_code->setCallingConv(CallingConv::C); |
| 470 | } |
| 471 | AttrListPtr func_art_throw_no_such_method_from_code_PAL; |
| 472 | func_art_throw_no_such_method_from_code->setAttributes(func_art_throw_no_such_method_from_code_PAL); |
| 473 | |
| 474 | Function* func_art_throw_null_pointer_exception_from_code = mod->getFunction("art_throw_null_pointer_exception_from_code"); |
| 475 | if (!func_art_throw_null_pointer_exception_from_code) { |
| 476 | func_art_throw_null_pointer_exception_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 477 | /*Type=*/FuncTy_10, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 478 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 479 | /*Name=*/"art_throw_null_pointer_exception_from_code", mod); // (external, no body) |
| 480 | func_art_throw_null_pointer_exception_from_code->setCallingConv(CallingConv::C); |
| 481 | } |
| 482 | AttrListPtr func_art_throw_null_pointer_exception_from_code_PAL; |
| 483 | func_art_throw_null_pointer_exception_from_code->setAttributes(func_art_throw_null_pointer_exception_from_code_PAL); |
| 484 | |
| 485 | Function* func_art_throw_stack_overflow_from_code = mod->getFunction("art_throw_stack_overflow_from_code"); |
| 486 | if (!func_art_throw_stack_overflow_from_code) { |
| 487 | func_art_throw_stack_overflow_from_code = Function::Create( |
TDYa127 | 853cd09 | 2012-04-21 22:15:31 -0700 | [diff] [blame] | 488 | /*Type=*/FuncTy_7, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 489 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 490 | /*Name=*/"art_throw_stack_overflow_from_code", mod); // (external, no body) |
| 491 | func_art_throw_stack_overflow_from_code->setCallingConv(CallingConv::C); |
| 492 | } |
| 493 | AttrListPtr func_art_throw_stack_overflow_from_code_PAL; |
| 494 | func_art_throw_stack_overflow_from_code->setAttributes(func_art_throw_stack_overflow_from_code_PAL); |
| 495 | |
| 496 | Function* func_art_throw_exception_from_code = mod->getFunction("art_throw_exception_from_code"); |
| 497 | if (!func_art_throw_exception_from_code) { |
| 498 | func_art_throw_exception_from_code = Function::Create( |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 499 | /*Type=*/FuncTy_4, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 500 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 501 | /*Name=*/"art_throw_exception_from_code", mod); // (external, no body) |
| 502 | func_art_throw_exception_from_code->setCallingConv(CallingConv::C); |
| 503 | } |
| 504 | AttrListPtr func_art_throw_exception_from_code_PAL; |
| 505 | func_art_throw_exception_from_code->setAttributes(func_art_throw_exception_from_code_PAL); |
| 506 | |
Logan Chien | 9e5f5c1 | 2012-04-10 13:51:45 +0800 | [diff] [blame] | 507 | Function* func_art_throw_verification_error_from_code = mod->getFunction("art_throw_verification_error_from_code"); |
| 508 | if (!func_art_throw_verification_error_from_code) { |
| 509 | func_art_throw_verification_error_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 510 | /*Type=*/FuncTy_11, |
Logan Chien | 9e5f5c1 | 2012-04-10 13:51:45 +0800 | [diff] [blame] | 511 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 512 | /*Name=*/"art_throw_verification_error_from_code", mod); // (external, no body) |
| 513 | func_art_throw_verification_error_from_code->setCallingConv(CallingConv::C); |
| 514 | } |
| 515 | AttrListPtr func_art_throw_verification_error_from_code_PAL; |
| 516 | func_art_throw_verification_error_from_code->setAttributes(func_art_throw_verification_error_from_code_PAL); |
| 517 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 518 | Function* func_art_find_catch_block_from_code = mod->getFunction("art_find_catch_block_from_code"); |
| 519 | if (!func_art_find_catch_block_from_code) { |
| 520 | func_art_find_catch_block_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [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_find_catch_block_from_code", mod); // (external, no body) |
| 524 | func_art_find_catch_block_from_code->setCallingConv(CallingConv::C); |
| 525 | } |
| 526 | AttrListPtr func_art_find_catch_block_from_code_PAL; |
| 527 | func_art_find_catch_block_from_code->setAttributes(func_art_find_catch_block_from_code_PAL); |
| 528 | |
| 529 | Function* func_art_alloc_object_from_code = mod->getFunction("art_alloc_object_from_code"); |
| 530 | if (!func_art_alloc_object_from_code) { |
| 531 | func_art_alloc_object_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 532 | /*Type=*/FuncTy_13, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 533 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 534 | /*Name=*/"art_alloc_object_from_code", mod); // (external, no body) |
| 535 | func_art_alloc_object_from_code->setCallingConv(CallingConv::C); |
| 536 | } |
| 537 | AttrListPtr func_art_alloc_object_from_code_PAL; |
| 538 | func_art_alloc_object_from_code->setAttributes(func_art_alloc_object_from_code_PAL); |
| 539 | |
| 540 | Function* func_art_alloc_object_from_code_with_access_check = mod->getFunction("art_alloc_object_from_code_with_access_check"); |
| 541 | if (!func_art_alloc_object_from_code_with_access_check) { |
| 542 | func_art_alloc_object_from_code_with_access_check = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [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_object_from_code_with_access_check", mod); // (external, no body) |
| 546 | func_art_alloc_object_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 547 | } |
| 548 | AttrListPtr func_art_alloc_object_from_code_with_access_check_PAL; |
| 549 | func_art_alloc_object_from_code_with_access_check->setAttributes(func_art_alloc_object_from_code_with_access_check_PAL); |
| 550 | |
| 551 | Function* func_art_alloc_array_from_code = mod->getFunction("art_alloc_array_from_code"); |
| 552 | if (!func_art_alloc_array_from_code) { |
| 553 | func_art_alloc_array_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 554 | /*Type=*/FuncTy_14, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 555 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 556 | /*Name=*/"art_alloc_array_from_code", mod); // (external, no body) |
| 557 | func_art_alloc_array_from_code->setCallingConv(CallingConv::C); |
| 558 | } |
| 559 | AttrListPtr func_art_alloc_array_from_code_PAL; |
| 560 | func_art_alloc_array_from_code->setAttributes(func_art_alloc_array_from_code_PAL); |
| 561 | |
| 562 | Function* func_art_alloc_array_from_code_with_access_check = mod->getFunction("art_alloc_array_from_code_with_access_check"); |
| 563 | if (!func_art_alloc_array_from_code_with_access_check) { |
| 564 | func_art_alloc_array_from_code_with_access_check = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 565 | /*Type=*/FuncTy_14, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 566 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 567 | /*Name=*/"art_alloc_array_from_code_with_access_check", mod); // (external, no body) |
| 568 | func_art_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 569 | } |
| 570 | AttrListPtr func_art_alloc_array_from_code_with_access_check_PAL; |
| 571 | func_art_alloc_array_from_code_with_access_check->setAttributes(func_art_alloc_array_from_code_with_access_check_PAL); |
| 572 | |
| 573 | Function* func_art_check_and_alloc_array_from_code = mod->getFunction("art_check_and_alloc_array_from_code"); |
| 574 | if (!func_art_check_and_alloc_array_from_code) { |
| 575 | func_art_check_and_alloc_array_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 576 | /*Type=*/FuncTy_14, |
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", mod); // (external, no body) |
| 579 | func_art_check_and_alloc_array_from_code->setCallingConv(CallingConv::C); |
| 580 | } |
| 581 | AttrListPtr func_art_check_and_alloc_array_from_code_PAL; |
| 582 | func_art_check_and_alloc_array_from_code->setAttributes(func_art_check_and_alloc_array_from_code_PAL); |
| 583 | |
| 584 | Function* func_art_check_and_alloc_array_from_code_with_access_check = mod->getFunction("art_check_and_alloc_array_from_code_with_access_check"); |
| 585 | if (!func_art_check_and_alloc_array_from_code_with_access_check) { |
| 586 | func_art_check_and_alloc_array_from_code_with_access_check = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [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_check_and_alloc_array_from_code_with_access_check", mod); // (external, no body) |
| 590 | func_art_check_and_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 591 | } |
| 592 | AttrListPtr func_art_check_and_alloc_array_from_code_with_access_check_PAL; |
| 593 | func_art_check_and_alloc_array_from_code_with_access_check->setAttributes(func_art_check_and_alloc_array_from_code_with_access_check_PAL); |
| 594 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 595 | Function* func_art_find_instance_field_from_code = mod->getFunction("art_find_instance_field_from_code"); |
| 596 | if (!func_art_find_instance_field_from_code) { |
| 597 | func_art_find_instance_field_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 598 | /*Type=*/FuncTy_15, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 599 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 600 | /*Name=*/"art_find_instance_field_from_code", mod); // (external, no body) |
| 601 | func_art_find_instance_field_from_code->setCallingConv(CallingConv::C); |
| 602 | } |
| 603 | AttrListPtr func_art_find_instance_field_from_code_PAL; |
| 604 | func_art_find_instance_field_from_code->setAttributes(func_art_find_instance_field_from_code_PAL); |
| 605 | |
| 606 | Function* func_art_find_static_field_from_code = mod->getFunction("art_find_static_field_from_code"); |
| 607 | if (!func_art_find_static_field_from_code) { |
| 608 | func_art_find_static_field_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 609 | /*Type=*/FuncTy_15, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 610 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 611 | /*Name=*/"art_find_static_field_from_code", mod); // (external, no body) |
| 612 | func_art_find_static_field_from_code->setCallingConv(CallingConv::C); |
| 613 | } |
| 614 | AttrListPtr func_art_find_static_field_from_code_PAL; |
| 615 | func_art_find_static_field_from_code->setAttributes(func_art_find_static_field_from_code_PAL); |
| 616 | |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 617 | Function* func_art_find_static_method_from_code_with_access_check = mod->getFunction("art_find_static_method_from_code_with_access_check"); |
| 618 | if (!func_art_find_static_method_from_code_with_access_check) { |
| 619 | func_art_find_static_method_from_code_with_access_check = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 620 | /*Type=*/FuncTy_16, |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 621 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 622 | /*Name=*/"art_find_static_method_from_code_with_access_check", mod); // (external, no body) |
| 623 | func_art_find_static_method_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 624 | } |
| 625 | AttrListPtr func_art_find_static_method_from_code_with_access_check_PAL; |
| 626 | func_art_find_static_method_from_code_with_access_check->setAttributes(func_art_find_static_method_from_code_with_access_check_PAL); |
| 627 | |
| 628 | Function* func_art_find_direct_method_from_code_with_access_check = mod->getFunction("art_find_direct_method_from_code_with_access_check"); |
| 629 | if (!func_art_find_direct_method_from_code_with_access_check) { |
| 630 | func_art_find_direct_method_from_code_with_access_check = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 631 | /*Type=*/FuncTy_16, |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 632 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 633 | /*Name=*/"art_find_direct_method_from_code_with_access_check", mod); // (external, no body) |
| 634 | func_art_find_direct_method_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 635 | } |
| 636 | AttrListPtr func_art_find_direct_method_from_code_with_access_check_PAL; |
| 637 | func_art_find_direct_method_from_code_with_access_check->setAttributes(func_art_find_direct_method_from_code_with_access_check_PAL); |
| 638 | |
| 639 | Function* func_art_find_virtual_method_from_code_with_access_check = mod->getFunction("art_find_virtual_method_from_code_with_access_check"); |
| 640 | if (!func_art_find_virtual_method_from_code_with_access_check) { |
| 641 | func_art_find_virtual_method_from_code_with_access_check = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 642 | /*Type=*/FuncTy_16, |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 643 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 644 | /*Name=*/"art_find_virtual_method_from_code_with_access_check", mod); // (external, no body) |
| 645 | func_art_find_virtual_method_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 646 | } |
| 647 | AttrListPtr func_art_find_virtual_method_from_code_with_access_check_PAL; |
| 648 | func_art_find_virtual_method_from_code_with_access_check->setAttributes(func_art_find_virtual_method_from_code_with_access_check_PAL); |
| 649 | |
| 650 | Function* func_art_find_super_method_from_code_with_access_check = mod->getFunction("art_find_super_method_from_code_with_access_check"); |
| 651 | if (!func_art_find_super_method_from_code_with_access_check) { |
| 652 | func_art_find_super_method_from_code_with_access_check = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 653 | /*Type=*/FuncTy_16, |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 654 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 655 | /*Name=*/"art_find_super_method_from_code_with_access_check", mod); // (external, no body) |
| 656 | func_art_find_super_method_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 657 | } |
| 658 | AttrListPtr func_art_find_super_method_from_code_with_access_check_PAL; |
| 659 | func_art_find_super_method_from_code_with_access_check->setAttributes(func_art_find_super_method_from_code_with_access_check_PAL); |
| 660 | |
| 661 | Function* func_art_find_interface_method_from_code_with_access_check = mod->getFunction("art_find_interface_method_from_code_with_access_check"); |
| 662 | if (!func_art_find_interface_method_from_code_with_access_check) { |
| 663 | func_art_find_interface_method_from_code_with_access_check = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 664 | /*Type=*/FuncTy_16, |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 665 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 666 | /*Name=*/"art_find_interface_method_from_code_with_access_check", mod); // (external, no body) |
| 667 | func_art_find_interface_method_from_code_with_access_check->setCallingConv(CallingConv::C); |
| 668 | } |
| 669 | AttrListPtr func_art_find_interface_method_from_code_with_access_check_PAL; |
| 670 | func_art_find_interface_method_from_code_with_access_check->setAttributes(func_art_find_interface_method_from_code_with_access_check_PAL); |
| 671 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 672 | Function* func_art_find_interface_method_from_code = mod->getFunction("art_find_interface_method_from_code"); |
| 673 | if (!func_art_find_interface_method_from_code) { |
| 674 | func_art_find_interface_method_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 675 | /*Type=*/FuncTy_16, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 676 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 677 | /*Name=*/"art_find_interface_method_from_code", mod); // (external, no body) |
| 678 | func_art_find_interface_method_from_code->setCallingConv(CallingConv::C); |
| 679 | } |
| 680 | AttrListPtr func_art_find_interface_method_from_code_PAL; |
| 681 | func_art_find_interface_method_from_code->setAttributes(func_art_find_interface_method_from_code_PAL); |
| 682 | |
| 683 | Function* func_art_initialize_static_storage_from_code = mod->getFunction("art_initialize_static_storage_from_code"); |
| 684 | if (!func_art_initialize_static_storage_from_code) { |
| 685 | func_art_initialize_static_storage_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 686 | /*Type=*/FuncTy_13, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 687 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 688 | /*Name=*/"art_initialize_static_storage_from_code", mod); // (external, no body) |
| 689 | func_art_initialize_static_storage_from_code->setCallingConv(CallingConv::C); |
| 690 | } |
| 691 | AttrListPtr func_art_initialize_static_storage_from_code_PAL; |
| 692 | func_art_initialize_static_storage_from_code->setAttributes(func_art_initialize_static_storage_from_code_PAL); |
| 693 | |
| 694 | Function* func_art_initialize_type_from_code = mod->getFunction("art_initialize_type_from_code"); |
| 695 | if (!func_art_initialize_type_from_code) { |
| 696 | func_art_initialize_type_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 697 | /*Type=*/FuncTy_13, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 698 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 699 | /*Name=*/"art_initialize_type_from_code", mod); // (external, no body) |
| 700 | func_art_initialize_type_from_code->setCallingConv(CallingConv::C); |
| 701 | } |
| 702 | AttrListPtr func_art_initialize_type_from_code_PAL; |
| 703 | func_art_initialize_type_from_code->setAttributes(func_art_initialize_type_from_code_PAL); |
| 704 | |
| 705 | Function* func_art_initialize_type_and_verify_access_from_code = mod->getFunction("art_initialize_type_and_verify_access_from_code"); |
| 706 | if (!func_art_initialize_type_and_verify_access_from_code) { |
| 707 | func_art_initialize_type_and_verify_access_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 708 | /*Type=*/FuncTy_13, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 709 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 710 | /*Name=*/"art_initialize_type_and_verify_access_from_code", mod); // (external, no body) |
| 711 | func_art_initialize_type_and_verify_access_from_code->setCallingConv(CallingConv::C); |
| 712 | } |
| 713 | AttrListPtr func_art_initialize_type_and_verify_access_from_code_PAL; |
| 714 | func_art_initialize_type_and_verify_access_from_code->setAttributes(func_art_initialize_type_and_verify_access_from_code_PAL); |
| 715 | |
| 716 | Function* func_art_resolve_string_from_code = mod->getFunction("art_resolve_string_from_code"); |
| 717 | if (!func_art_resolve_string_from_code) { |
| 718 | func_art_resolve_string_from_code = Function::Create( |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [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_resolve_string_from_code", mod); // (external, no body) |
| 722 | func_art_resolve_string_from_code->setCallingConv(CallingConv::C); |
| 723 | } |
| 724 | AttrListPtr func_art_resolve_string_from_code_PAL; |
| 725 | func_art_resolve_string_from_code->setAttributes(func_art_resolve_string_from_code_PAL); |
| 726 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 727 | Function* func_art_set32_static_from_code = mod->getFunction("art_set32_static_from_code"); |
| 728 | if (!func_art_set32_static_from_code) { |
| 729 | func_art_set32_static_from_code = Function::Create( |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [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_set32_static_from_code", mod); // (external, no body) |
| 733 | func_art_set32_static_from_code->setCallingConv(CallingConv::C); |
| 734 | } |
| 735 | AttrListPtr func_art_set32_static_from_code_PAL; |
| 736 | func_art_set32_static_from_code->setAttributes(func_art_set32_static_from_code_PAL); |
| 737 | |
| 738 | Function* func_art_set64_static_from_code = mod->getFunction("art_set64_static_from_code"); |
| 739 | if (!func_art_set64_static_from_code) { |
| 740 | func_art_set64_static_from_code = Function::Create( |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [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_set64_static_from_code", mod); // (external, no body) |
| 744 | func_art_set64_static_from_code->setCallingConv(CallingConv::C); |
| 745 | } |
| 746 | AttrListPtr func_art_set64_static_from_code_PAL; |
| 747 | func_art_set64_static_from_code->setAttributes(func_art_set64_static_from_code_PAL); |
| 748 | |
| 749 | Function* func_art_set_obj_static_from_code = mod->getFunction("art_set_obj_static_from_code"); |
| 750 | if (!func_art_set_obj_static_from_code) { |
| 751 | func_art_set_obj_static_from_code = Function::Create( |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [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_set_obj_static_from_code", mod); // (external, no body) |
| 755 | func_art_set_obj_static_from_code->setCallingConv(CallingConv::C); |
| 756 | } |
| 757 | AttrListPtr func_art_set_obj_static_from_code_PAL; |
| 758 | func_art_set_obj_static_from_code->setAttributes(func_art_set_obj_static_from_code_PAL); |
| 759 | |
| 760 | Function* func_art_get32_static_from_code = mod->getFunction("art_get32_static_from_code"); |
| 761 | if (!func_art_get32_static_from_code) { |
| 762 | func_art_get32_static_from_code = Function::Create( |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [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_get32_static_from_code", mod); // (external, no body) |
| 766 | func_art_get32_static_from_code->setCallingConv(CallingConv::C); |
| 767 | } |
| 768 | AttrListPtr func_art_get32_static_from_code_PAL; |
| 769 | func_art_get32_static_from_code->setAttributes(func_art_get32_static_from_code_PAL); |
| 770 | |
| 771 | Function* func_art_get64_static_from_code = mod->getFunction("art_get64_static_from_code"); |
| 772 | if (!func_art_get64_static_from_code) { |
| 773 | func_art_get64_static_from_code = Function::Create( |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [diff] [blame] | 774 | /*Type=*/FuncTy_22, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 775 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 776 | /*Name=*/"art_get64_static_from_code", mod); // (external, no body) |
| 777 | func_art_get64_static_from_code->setCallingConv(CallingConv::C); |
| 778 | } |
| 779 | AttrListPtr func_art_get64_static_from_code_PAL; |
| 780 | func_art_get64_static_from_code->setAttributes(func_art_get64_static_from_code_PAL); |
| 781 | |
| 782 | Function* func_art_get_obj_static_from_code = mod->getFunction("art_get_obj_static_from_code"); |
| 783 | if (!func_art_get_obj_static_from_code) { |
| 784 | func_art_get_obj_static_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 785 | /*Type=*/FuncTy_23, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 786 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 787 | /*Name=*/"art_get_obj_static_from_code", mod); // (external, no body) |
| 788 | func_art_get_obj_static_from_code->setCallingConv(CallingConv::C); |
| 789 | } |
| 790 | AttrListPtr func_art_get_obj_static_from_code_PAL; |
| 791 | func_art_get_obj_static_from_code->setAttributes(func_art_get_obj_static_from_code_PAL); |
| 792 | |
| 793 | Function* func_art_set32_instance_from_code = mod->getFunction("art_set32_instance_from_code"); |
| 794 | if (!func_art_set32_instance_from_code) { |
| 795 | func_art_set32_instance_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 796 | /*Type=*/FuncTy_24, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 797 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 798 | /*Name=*/"art_set32_instance_from_code", mod); // (external, no body) |
| 799 | func_art_set32_instance_from_code->setCallingConv(CallingConv::C); |
| 800 | } |
| 801 | AttrListPtr func_art_set32_instance_from_code_PAL; |
| 802 | func_art_set32_instance_from_code->setAttributes(func_art_set32_instance_from_code_PAL); |
| 803 | |
| 804 | Function* func_art_set64_instance_from_code = mod->getFunction("art_set64_instance_from_code"); |
| 805 | if (!func_art_set64_instance_from_code) { |
| 806 | func_art_set64_instance_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 807 | /*Type=*/FuncTy_25, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 808 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 809 | /*Name=*/"art_set64_instance_from_code", mod); // (external, no body) |
| 810 | func_art_set64_instance_from_code->setCallingConv(CallingConv::C); |
| 811 | } |
| 812 | AttrListPtr func_art_set64_instance_from_code_PAL; |
| 813 | func_art_set64_instance_from_code->setAttributes(func_art_set64_instance_from_code_PAL); |
| 814 | |
| 815 | Function* func_art_set_obj_instance_from_code = mod->getFunction("art_set_obj_instance_from_code"); |
| 816 | if (!func_art_set_obj_instance_from_code) { |
| 817 | func_art_set_obj_instance_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 818 | /*Type=*/FuncTy_26, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 819 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 820 | /*Name=*/"art_set_obj_instance_from_code", mod); // (external, no body) |
| 821 | func_art_set_obj_instance_from_code->setCallingConv(CallingConv::C); |
| 822 | } |
| 823 | AttrListPtr func_art_set_obj_instance_from_code_PAL; |
| 824 | func_art_set_obj_instance_from_code->setAttributes(func_art_set_obj_instance_from_code_PAL); |
| 825 | |
| 826 | Function* func_art_get32_instance_from_code = mod->getFunction("art_get32_instance_from_code"); |
| 827 | if (!func_art_get32_instance_from_code) { |
| 828 | func_art_get32_instance_from_code = Function::Create( |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [diff] [blame] | 829 | /*Type=*/FuncTy_20, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 830 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 831 | /*Name=*/"art_get32_instance_from_code", mod); // (external, no body) |
| 832 | func_art_get32_instance_from_code->setCallingConv(CallingConv::C); |
| 833 | } |
| 834 | AttrListPtr func_art_get32_instance_from_code_PAL; |
| 835 | func_art_get32_instance_from_code->setAttributes(func_art_get32_instance_from_code_PAL); |
| 836 | |
| 837 | Function* func_art_get64_instance_from_code = mod->getFunction("art_get64_instance_from_code"); |
| 838 | if (!func_art_get64_instance_from_code) { |
| 839 | func_art_get64_instance_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 840 | /*Type=*/FuncTy_27, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 841 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 842 | /*Name=*/"art_get64_instance_from_code", mod); // (external, no body) |
| 843 | func_art_get64_instance_from_code->setCallingConv(CallingConv::C); |
| 844 | } |
| 845 | AttrListPtr func_art_get64_instance_from_code_PAL; |
| 846 | func_art_get64_instance_from_code->setAttributes(func_art_get64_instance_from_code_PAL); |
| 847 | |
| 848 | Function* func_art_get_obj_instance_from_code = mod->getFunction("art_get_obj_instance_from_code"); |
| 849 | if (!func_art_get_obj_instance_from_code) { |
| 850 | func_art_get_obj_instance_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 851 | /*Type=*/FuncTy_13, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 852 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 853 | /*Name=*/"art_get_obj_instance_from_code", mod); // (external, no body) |
| 854 | func_art_get_obj_instance_from_code->setCallingConv(CallingConv::C); |
| 855 | } |
| 856 | AttrListPtr func_art_get_obj_instance_from_code_PAL; |
| 857 | func_art_get_obj_instance_from_code->setAttributes(func_art_get_obj_instance_from_code_PAL); |
| 858 | |
TDYa127 | 28f1a14 | 2012-03-15 21:51:52 -0700 | [diff] [blame] | 859 | Function* func_art_decode_jobject_in_thread = mod->getFunction("art_decode_jobject_in_thread"); |
| 860 | if (!func_art_decode_jobject_in_thread) { |
| 861 | func_art_decode_jobject_in_thread = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 862 | /*Type=*/FuncTy_28, |
TDYa127 | 28f1a14 | 2012-03-15 21:51:52 -0700 | [diff] [blame] | 863 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 864 | /*Name=*/"art_decode_jobject_in_thread", mod); // (external, no body) |
| 865 | func_art_decode_jobject_in_thread->setCallingConv(CallingConv::C); |
| 866 | } |
| 867 | AttrListPtr func_art_decode_jobject_in_thread_PAL; |
| 868 | func_art_decode_jobject_in_thread->setAttributes(func_art_decode_jobject_in_thread_PAL); |
| 869 | |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 870 | Function* func_art_fill_array_data_from_code = mod->getFunction("art_fill_array_data_from_code"); |
| 871 | if (!func_art_fill_array_data_from_code) { |
| 872 | func_art_fill_array_data_from_code = Function::Create( |
| 873 | /*Type=*/FuncTy_29, |
| 874 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 875 | /*Name=*/"art_fill_array_data_from_code", mod); // (external, no body) |
| 876 | func_art_fill_array_data_from_code->setCallingConv(CallingConv::C); |
| 877 | } |
| 878 | AttrListPtr func_art_fill_array_data_from_code_PAL; |
| 879 | func_art_fill_array_data_from_code->setAttributes(func_art_fill_array_data_from_code_PAL); |
| 880 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 881 | Function* func_art_is_assignable_from_code = mod->getFunction("art_is_assignable_from_code"); |
| 882 | if (!func_art_is_assignable_from_code) { |
| 883 | func_art_is_assignable_from_code = Function::Create( |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 884 | /*Type=*/FuncTy_30, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 885 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 886 | /*Name=*/"art_is_assignable_from_code", mod); // (external, no body) |
| 887 | func_art_is_assignable_from_code->setCallingConv(CallingConv::C); |
| 888 | } |
| 889 | AttrListPtr func_art_is_assignable_from_code_PAL; |
| 890 | func_art_is_assignable_from_code->setAttributes(func_art_is_assignable_from_code_PAL); |
| 891 | |
| 892 | Function* func_art_check_cast_from_code = mod->getFunction("art_check_cast_from_code"); |
| 893 | if (!func_art_check_cast_from_code) { |
| 894 | func_art_check_cast_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 895 | /*Type=*/FuncTy_5, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 896 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 897 | /*Name=*/"art_check_cast_from_code", mod); // (external, no body) |
| 898 | func_art_check_cast_from_code->setCallingConv(CallingConv::C); |
| 899 | } |
| 900 | AttrListPtr func_art_check_cast_from_code_PAL; |
| 901 | func_art_check_cast_from_code->setAttributes(func_art_check_cast_from_code_PAL); |
| 902 | |
TDYa127 | 1b86d07 | 2012-04-05 17:38:56 -0700 | [diff] [blame] | 903 | Function* func_art_check_put_array_element_from_code = mod->getFunction("art_check_put_array_element_from_code"); |
| 904 | if (!func_art_check_put_array_element_from_code) { |
| 905 | func_art_check_put_array_element_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 906 | /*Type=*/FuncTy_5, |
TDYa127 | 1b86d07 | 2012-04-05 17:38:56 -0700 | [diff] [blame] | 907 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 908 | /*Name=*/"art_check_put_array_element_from_code", mod); // (external, no body) |
| 909 | func_art_check_put_array_element_from_code->setCallingConv(CallingConv::C); |
| 910 | } |
| 911 | AttrListPtr func_art_check_put_array_element_from_code_PAL; |
| 912 | func_art_check_put_array_element_from_code->setAttributes(func_art_check_put_array_element_from_code_PAL); |
| 913 | |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 914 | Function* func_art_d2l = mod->getFunction("art_d2l"); |
| 915 | if (!func_art_d2l) { |
| 916 | func_art_d2l = Function::Create( |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 917 | /*Type=*/FuncTy_31, |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 918 | /*Linkage=*/GlobalValue::ExternalLinkage, |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 919 | /*Name=*/"art_d2l", mod); // (external, no body) |
| 920 | func_art_d2l->setCallingConv(CallingConv::C); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 921 | } |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 922 | AttrListPtr func_art_d2l_PAL; |
| 923 | func_art_d2l->setAttributes(func_art_d2l_PAL); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 924 | |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 925 | Function* func_art_d2i = mod->getFunction("art_d2i"); |
| 926 | if (!func_art_d2i) { |
| 927 | func_art_d2i = Function::Create( |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 928 | /*Type=*/FuncTy_32, |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 929 | /*Linkage=*/GlobalValue::ExternalLinkage, |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 930 | /*Name=*/"art_d2i", mod); // (external, no body) |
| 931 | func_art_d2i->setCallingConv(CallingConv::C); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 932 | } |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 933 | AttrListPtr func_art_d2i_PAL; |
| 934 | func_art_d2i->setAttributes(func_art_d2i_PAL); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 935 | |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 936 | Function* func_art_f2l = mod->getFunction("art_f2l"); |
| 937 | if (!func_art_f2l) { |
| 938 | func_art_f2l = Function::Create( |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 939 | /*Type=*/FuncTy_33, |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 940 | /*Linkage=*/GlobalValue::ExternalLinkage, |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 941 | /*Name=*/"art_f2l", mod); // (external, no body) |
| 942 | func_art_f2l->setCallingConv(CallingConv::C); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 943 | } |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 944 | AttrListPtr func_art_f2l_PAL; |
| 945 | func_art_f2l->setAttributes(func_art_f2l_PAL); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 946 | |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 947 | Function* func_art_f2i = mod->getFunction("art_f2i"); |
| 948 | if (!func_art_f2i) { |
| 949 | func_art_f2i = Function::Create( |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 950 | /*Type=*/FuncTy_34, |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 951 | /*Linkage=*/GlobalValue::ExternalLinkage, |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 952 | /*Name=*/"art_f2i", mod); // (external, no body) |
| 953 | func_art_f2i->setCallingConv(CallingConv::C); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 954 | } |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 955 | AttrListPtr func_art_f2i_PAL; |
| 956 | func_art_f2i->setAttributes(func_art_f2i_PAL); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 957 | |
TDYa127 | 83bb662 | 2012-04-17 02:20:34 -0700 | [diff] [blame] | 958 | Function* func_art_mark_gc_card_from_code = mod->getFunction("art_mark_gc_card_from_code"); |
| 959 | if (!func_art_mark_gc_card_from_code) { |
| 960 | func_art_mark_gc_card_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 961 | /*Type=*/FuncTy_5, |
TDYa127 | 83bb662 | 2012-04-17 02:20:34 -0700 | [diff] [blame] | 962 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 963 | /*Name=*/"art_mark_gc_card_from_code", mod); // (external, no body) |
| 964 | func_art_mark_gc_card_from_code->setCallingConv(CallingConv::C); |
| 965 | } |
| 966 | AttrListPtr func_art_mark_gc_card_from_code_PAL; |
| 967 | func_art_mark_gc_card_from_code->setAttributes(func_art_mark_gc_card_from_code_PAL); |
| 968 | |
TDYa127 | 0b686e5 | 2012-04-09 22:43:35 -0700 | [diff] [blame] | 969 | Function* func_art_fix_stub_from_code = mod->getFunction("art_fix_stub_from_code"); |
| 970 | if (!func_art_fix_stub_from_code) { |
| 971 | func_art_fix_stub_from_code = Function::Create( |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 972 | /*Type=*/FuncTy_35, |
TDYa127 | 8532191 | 2012-04-01 15:24:56 -0700 | [diff] [blame] | 973 | /*Linkage=*/GlobalValue::ExternalLinkage, |
TDYa127 | 0b686e5 | 2012-04-09 22:43:35 -0700 | [diff] [blame] | 974 | /*Name=*/"art_fix_stub_from_code", mod); // (external, no body) |
| 975 | func_art_fix_stub_from_code->setCallingConv(CallingConv::C); |
TDYa127 | 8532191 | 2012-04-01 15:24:56 -0700 | [diff] [blame] | 976 | } |
TDYa127 | 0b686e5 | 2012-04-09 22:43:35 -0700 | [diff] [blame] | 977 | AttrListPtr func_art_fix_stub_from_code_PAL; |
| 978 | 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] | 979 | |
TDYa127 | 5bb8601 | 2012-04-11 05:57:28 -0700 | [diff] [blame] | 980 | Function* func_art_proxy_invoke_handler_from_code = mod->getFunction("art_proxy_invoke_handler_from_code"); |
| 981 | if (!func_art_proxy_invoke_handler_from_code) { |
| 982 | func_art_proxy_invoke_handler_from_code = Function::Create( |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 983 | /*Type=*/FuncTy_36, |
TDYa127 | 5bb8601 | 2012-04-11 05:57:28 -0700 | [diff] [blame] | 984 | /*Linkage=*/GlobalValue::ExternalLinkage, |
| 985 | /*Name=*/"art_proxy_invoke_handler_from_code", mod); // (external, no body) |
| 986 | func_art_proxy_invoke_handler_from_code->setCallingConv(CallingConv::C); |
| 987 | } |
| 988 | AttrListPtr func_art_proxy_invoke_handler_from_code_PAL; |
| 989 | func_art_proxy_invoke_handler_from_code->setAttributes(func_art_proxy_invoke_handler_from_code_PAL); |
| 990 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 991 | // Global Variable Declarations |
| 992 | |
| 993 | |
| 994 | // Constant Definitions |
| 995 | |
| 996 | // Global Variable Definitions |
| 997 | |
| 998 | // Function Definitions |
| 999 | |
| 1000 | return mod; |
| 1001 | |
| 1002 | } |
Logan Chien | e75a8cc | 2012-02-24 12:26:43 +0800 | [diff] [blame] | 1003 | |
| 1004 | } // namespace compiler_llvm |
| 1005 | } // namespace art |