Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 1 | // Generated with ./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 | |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 8 | #include <llvm/IR/DerivedTypes.h> |
| 9 | #include <llvm/IR/Function.h> |
| 10 | #include <llvm/IR/Module.h> |
| 11 | #include <llvm/IR/Type.h> |
Logan Chien | e75a8cc | 2012-02-24 12:26:43 +0800 | [diff] [blame] | 12 | |
| 13 | #include <vector> |
| 14 | |
| 15 | using namespace llvm; |
| 16 | |
| 17 | namespace art { |
Ian Rogers | 4c1c283 | 2013-03-04 18:30:13 -0800 | [diff] [blame] | 18 | namespace llvm { |
Logan Chien | e75a8cc | 2012-02-24 12:26:43 +0800 | [diff] [blame] | 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; |
TDYa127 | ce4cc0d | 2012-11-18 16:59:53 -0800 | [diff] [blame] | 47 | StructTy_ShadowFrame_fields.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 1b0a1b7 | 2012-03-15 06:20:17 +0800 | [diff] [blame] | 48 | PointerType* PointerTy_2 = PointerType::get(StructTy_ShadowFrame, 0); |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 49 | |
Logan Chien | 1b0a1b7 | 2012-03-15 06:20:17 +0800 | [diff] [blame] | 50 | StructTy_ShadowFrame_fields.push_back(PointerTy_2); |
| 51 | StructTy_ShadowFrame_fields.push_back(PointerTy_1); |
| 52 | StructTy_ShadowFrame_fields.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 1b0a1b7 | 2012-03-15 06:20:17 +0800 | [diff] [blame] | 53 | if (StructTy_ShadowFrame->isOpaque()) { |
| 54 | StructTy_ShadowFrame->setBody(StructTy_ShadowFrame_fields, /*isPacked=*/false); |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | |
| 58 | FuncTy_0_args.push_back(PointerTy_2); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 59 | FunctionType* FuncTy_0 = FunctionType::get( |
| 60 | /*Result=*/Type::getVoidTy(mod->getContext()), |
| 61 | /*Params=*/FuncTy_0_args, |
| 62 | /*isVarArg=*/false); |
| 63 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 64 | std::vector<Type*>FuncTy_3_args; |
| 65 | FunctionType* FuncTy_3 = FunctionType::get( |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 66 | /*Result=*/PointerTy_1, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 67 | /*Params=*/FuncTy_3_args, |
| 68 | /*isVarArg=*/false); |
| 69 | |
| 70 | std::vector<Type*>FuncTy_4_args; |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 71 | FuncTy_4_args.push_back(PointerTy_1); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 72 | FunctionType* FuncTy_4 = FunctionType::get( |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 73 | /*Result=*/PointerTy_1, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 74 | /*Params=*/FuncTy_4_args, |
| 75 | /*isVarArg=*/false); |
| 76 | |
| 77 | std::vector<Type*>FuncTy_5_args; |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 78 | FuncTy_5_args.push_back(PointerTy_1); |
| 79 | FuncTy_5_args.push_back(PointerTy_1); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 80 | FunctionType* FuncTy_5 = FunctionType::get( |
| 81 | /*Result=*/Type::getVoidTy(mod->getContext()), |
| 82 | /*Params=*/FuncTy_5_args, |
| 83 | /*isVarArg=*/false); |
| 84 | |
| 85 | std::vector<Type*>FuncTy_6_args; |
TDYa127 | de479be | 2012-05-31 08:03:26 -0700 | [diff] [blame] | 86 | FuncTy_6_args.push_back(PointerTy_1); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 87 | FunctionType* FuncTy_6 = FunctionType::get( |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 88 | /*Result=*/Type::getVoidTy(mod->getContext()), |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 89 | /*Params=*/FuncTy_6_args, |
| 90 | /*isVarArg=*/false); |
| 91 | |
| 92 | std::vector<Type*>FuncTy_7_args; |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 93 | FuncTy_7_args.push_back(PointerTy_1); |
TDYa127 | 0de52be | 2012-05-27 20:49:31 -0700 | [diff] [blame] | 94 | FuncTy_7_args.push_back(PointerTy_2); |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 95 | FuncTy_7_args.push_back(PointerTy_1); |
TDYa127 | ce4cc0d | 2012-11-18 16:59:53 -0800 | [diff] [blame] | 96 | FuncTy_7_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 97 | FunctionType* FuncTy_7 = FunctionType::get( |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 98 | /*Result=*/PointerTy_2, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 99 | /*Params=*/FuncTy_7_args, |
| 100 | /*isVarArg=*/false); |
| 101 | |
| 102 | std::vector<Type*>FuncTy_8_args; |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 103 | FuncTy_8_args.push_back(PointerTy_2); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 104 | FunctionType* FuncTy_8 = FunctionType::get( |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 105 | /*Result=*/Type::getVoidTy(mod->getContext()), |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 106 | /*Params=*/FuncTy_8_args, |
| 107 | /*isVarArg=*/false); |
| 108 | |
| 109 | std::vector<Type*>FuncTy_9_args; |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 110 | FunctionType* FuncTy_9 = FunctionType::get( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 111 | /*Result=*/Type::getVoidTy(mod->getContext()), |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 112 | /*Params=*/FuncTy_9_args, |
| 113 | /*isVarArg=*/false); |
| 114 | |
| 115 | std::vector<Type*>FuncTy_10_args; |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 116 | FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 117 | FuncTy_10_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 118 | FunctionType* FuncTy_10 = FunctionType::get( |
Logan Chien | 9e5f5c1 | 2012-04-10 13:51:45 +0800 | [diff] [blame] | 119 | /*Result=*/Type::getVoidTy(mod->getContext()), |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 120 | /*Params=*/FuncTy_10_args, |
| 121 | /*isVarArg=*/false); |
| 122 | |
| 123 | std::vector<Type*>FuncTy_11_args; |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 124 | FuncTy_11_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 125 | FunctionType* FuncTy_11 = FunctionType::get( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 126 | /*Result=*/Type::getVoidTy(mod->getContext()), |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 127 | /*Params=*/FuncTy_11_args, |
| 128 | /*isVarArg=*/false); |
| 129 | |
| 130 | std::vector<Type*>FuncTy_12_args; |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 131 | FuncTy_12_args.push_back(PointerTy_1); |
| 132 | FuncTy_12_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 133 | FunctionType* FuncTy_12 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 134 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 135 | /*Params=*/FuncTy_12_args, |
| 136 | /*isVarArg=*/false); |
| 137 | |
| 138 | std::vector<Type*>FuncTy_13_args; |
| 139 | FuncTy_13_args.push_back(IntegerType::get(mod->getContext(), 32)); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 140 | FuncTy_13_args.push_back(PointerTy_1); |
| 141 | FuncTy_13_args.push_back(PointerTy_1); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 142 | FunctionType* FuncTy_13 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 143 | /*Result=*/PointerTy_1, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 144 | /*Params=*/FuncTy_13_args, |
| 145 | /*isVarArg=*/false); |
| 146 | |
| 147 | std::vector<Type*>FuncTy_14_args; |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 148 | FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 32)); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 149 | FuncTy_14_args.push_back(PointerTy_1); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 150 | FuncTy_14_args.push_back(IntegerType::get(mod->getContext(), 32)); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 151 | FuncTy_14_args.push_back(PointerTy_1); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 152 | FunctionType* FuncTy_14 = FunctionType::get( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 153 | /*Result=*/PointerTy_1, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 154 | /*Params=*/FuncTy_14_args, |
| 155 | /*isVarArg=*/false); |
| 156 | |
| 157 | std::vector<Type*>FuncTy_15_args; |
| 158 | FuncTy_15_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 9e5f5c1 | 2012-04-10 13:51:45 +0800 | [diff] [blame] | 159 | FuncTy_15_args.push_back(PointerTy_1); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 160 | FunctionType* FuncTy_15 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 161 | /*Result=*/Type::getVoidTy(mod->getContext()), |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 162 | /*Params=*/FuncTy_15_args, |
| 163 | /*isVarArg=*/false); |
| 164 | |
| 165 | std::vector<Type*>FuncTy_16_args; |
Logan Chien | 1b0a1b7 | 2012-03-15 06:20:17 +0800 | [diff] [blame] | 166 | FuncTy_16_args.push_back(IntegerType::get(mod->getContext(), 32)); |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [diff] [blame] | 167 | FuncTy_16_args.push_back(PointerTy_1); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 168 | FuncTy_16_args.push_back(PointerTy_1); |
| 169 | FuncTy_16_args.push_back(PointerTy_1); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 170 | FunctionType* FuncTy_16 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 171 | /*Result=*/PointerTy_1, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 172 | /*Params=*/FuncTy_16_args, |
| 173 | /*isVarArg=*/false); |
| 174 | |
| 175 | std::vector<Type*>FuncTy_17_args; |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 176 | FuncTy_17_args.push_back(PointerTy_1); |
Logan Chien | 9e5f5c1 | 2012-04-10 13:51:45 +0800 | [diff] [blame] | 177 | FuncTy_17_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 178 | FunctionType* FuncTy_17 = FunctionType::get( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 179 | /*Result=*/PointerTy_1, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 180 | /*Params=*/FuncTy_17_args, |
| 181 | /*isVarArg=*/false); |
| 182 | |
| 183 | std::vector<Type*>FuncTy_18_args; |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 184 | FuncTy_18_args.push_back(IntegerType::get(mod->getContext(), 32)); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 185 | FuncTy_18_args.push_back(PointerTy_1); |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [diff] [blame] | 186 | FuncTy_18_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 187 | FunctionType* FuncTy_18 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 188 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 189 | /*Params=*/FuncTy_18_args, |
| 190 | /*isVarArg=*/false); |
| 191 | |
| 192 | std::vector<Type*>FuncTy_19_args; |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 193 | FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 194 | FuncTy_19_args.push_back(PointerTy_1); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 195 | FuncTy_19_args.push_back(IntegerType::get(mod->getContext(), 64)); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 196 | FunctionType* FuncTy_19 = FunctionType::get( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 197 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 198 | /*Params=*/FuncTy_19_args, |
| 199 | /*isVarArg=*/false); |
| 200 | |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 201 | std::vector<Type*>FuncTy_20_args; |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 202 | FuncTy_20_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | a6b2ca6 | 2012-03-06 15:50:54 +0800 | [diff] [blame] | 203 | FuncTy_20_args.push_back(PointerTy_1); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 204 | FuncTy_20_args.push_back(PointerTy_1); |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 205 | FunctionType* FuncTy_20 = FunctionType::get( |
Logan Chien | 9e5f5c1 | 2012-04-10 13:51:45 +0800 | [diff] [blame] | 206 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 207 | /*Params=*/FuncTy_20_args, |
| 208 | /*isVarArg=*/false); |
| 209 | |
| 210 | std::vector<Type*>FuncTy_21_args; |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 211 | FuncTy_21_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 212 | FuncTy_21_args.push_back(PointerTy_1); |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 213 | FunctionType* FuncTy_21 = FunctionType::get( |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [diff] [blame] | 214 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
Logan Chien | a6b2ca6 | 2012-03-06 15:50:54 +0800 | [diff] [blame] | 215 | /*Params=*/FuncTy_21_args, |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 216 | /*isVarArg=*/false); |
| 217 | |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 218 | std::vector<Type*>FuncTy_22_args; |
| 219 | FuncTy_22_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 220 | FuncTy_22_args.push_back(PointerTy_1); |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 221 | FunctionType* FuncTy_22 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 222 | /*Result=*/IntegerType::get(mod->getContext(), 64), |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 223 | /*Params=*/FuncTy_22_args, |
| 224 | /*isVarArg=*/false); |
| 225 | |
| 226 | std::vector<Type*>FuncTy_23_args; |
| 227 | FuncTy_23_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 228 | FuncTy_23_args.push_back(PointerTy_1); |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 229 | FunctionType* FuncTy_23 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 230 | /*Result=*/PointerTy_1, |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 231 | /*Params=*/FuncTy_23_args, |
| 232 | /*isVarArg=*/false); |
| 233 | |
| 234 | std::vector<Type*>FuncTy_24_args; |
| 235 | FuncTy_24_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 236 | FuncTy_24_args.push_back(PointerTy_1); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 237 | FuncTy_24_args.push_back(PointerTy_1); |
| 238 | FuncTy_24_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 239 | FunctionType* FuncTy_24 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 240 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 241 | /*Params=*/FuncTy_24_args, |
| 242 | /*isVarArg=*/false); |
| 243 | |
| 244 | std::vector<Type*>FuncTy_25_args; |
Logan Chien | 9e5f5c1 | 2012-04-10 13:51:45 +0800 | [diff] [blame] | 245 | FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 246 | FuncTy_25_args.push_back(PointerTy_1); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 247 | FuncTy_25_args.push_back(PointerTy_1); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 248 | FuncTy_25_args.push_back(IntegerType::get(mod->getContext(), 64)); |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 249 | FunctionType* FuncTy_25 = FunctionType::get( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 250 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 251 | /*Params=*/FuncTy_25_args, |
| 252 | /*isVarArg=*/false); |
| 253 | |
| 254 | std::vector<Type*>FuncTy_26_args; |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [diff] [blame] | 255 | FuncTy_26_args.push_back(IntegerType::get(mod->getContext(), 32)); |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 256 | FuncTy_26_args.push_back(PointerTy_1); |
| 257 | FuncTy_26_args.push_back(PointerTy_1); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 258 | FuncTy_26_args.push_back(PointerTy_1); |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 259 | FunctionType* FuncTy_26 = FunctionType::get( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 260 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
Logan Chien | 3b2b2e7 | 2012-03-06 16:11:45 +0800 | [diff] [blame] | 261 | /*Params=*/FuncTy_26_args, |
| 262 | /*isVarArg=*/false); |
| 263 | |
TDYa127 | 28f1a14 | 2012-03-15 21:51:52 -0700 | [diff] [blame] | 264 | std::vector<Type*>FuncTy_27_args; |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 265 | FuncTy_27_args.push_back(IntegerType::get(mod->getContext(), 32)); |
TDYa127 | 28f1a14 | 2012-03-15 21:51:52 -0700 | [diff] [blame] | 266 | FuncTy_27_args.push_back(PointerTy_1); |
| 267 | FuncTy_27_args.push_back(PointerTy_1); |
| 268 | FunctionType* FuncTy_27 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 269 | /*Result=*/IntegerType::get(mod->getContext(), 64), |
TDYa127 | 28f1a14 | 2012-03-15 21:51:52 -0700 | [diff] [blame] | 270 | /*Params=*/FuncTy_27_args, |
| 271 | /*isVarArg=*/false); |
| 272 | |
TDYa127 | 8532191 | 2012-04-01 15:24:56 -0700 | [diff] [blame] | 273 | std::vector<Type*>FuncTy_28_args; |
| 274 | FuncTy_28_args.push_back(PointerTy_1); |
| 275 | FuncTy_28_args.push_back(PointerTy_1); |
TDYa127 | 8532191 | 2012-04-01 15:24:56 -0700 | [diff] [blame] | 276 | FunctionType* FuncTy_28 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 277 | /*Result=*/PointerTy_1, |
TDYa127 | 8532191 | 2012-04-01 15:24:56 -0700 | [diff] [blame] | 278 | /*Params=*/FuncTy_28_args, |
| 279 | /*isVarArg=*/false); |
| 280 | |
TDYa127 | 0b686e5 | 2012-04-09 22:43:35 -0700 | [diff] [blame] | 281 | std::vector<Type*>FuncTy_29_args; |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [diff] [blame] | 282 | FuncTy_29_args.push_back(PointerTy_1); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 283 | FuncTy_29_args.push_back(IntegerType::get(mod->getContext(), 32)); |
TDYa127 | da83d97 | 2012-04-18 00:21:49 -0700 | [diff] [blame] | 284 | FuncTy_29_args.push_back(PointerTy_1); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 285 | FuncTy_29_args.push_back(IntegerType::get(mod->getContext(), 32)); |
TDYa127 | 0b686e5 | 2012-04-09 22:43:35 -0700 | [diff] [blame] | 286 | FunctionType* FuncTy_29 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 287 | /*Result=*/Type::getVoidTy(mod->getContext()), |
TDYa127 | 0b686e5 | 2012-04-09 22:43:35 -0700 | [diff] [blame] | 288 | /*Params=*/FuncTy_29_args, |
| 289 | /*isVarArg=*/false); |
| 290 | |
Logan Chien | 9e5f5c1 | 2012-04-10 13:51:45 +0800 | [diff] [blame] | 291 | std::vector<Type*>FuncTy_30_args; |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 292 | FuncTy_30_args.push_back(PointerTy_1); |
| 293 | FuncTy_30_args.push_back(PointerTy_1); |
Logan Chien | 9e5f5c1 | 2012-04-10 13:51:45 +0800 | [diff] [blame] | 294 | FunctionType* FuncTy_30 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 295 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
Logan Chien | 9e5f5c1 | 2012-04-10 13:51:45 +0800 | [diff] [blame] | 296 | /*Params=*/FuncTy_30_args, |
| 297 | /*isVarArg=*/false); |
| 298 | |
TDYa127 | 5bb8601 | 2012-04-11 05:57:28 -0700 | [diff] [blame] | 299 | std::vector<Type*>FuncTy_31_args; |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 300 | FuncTy_31_args.push_back(Type::getDoubleTy(mod->getContext())); |
TDYa127 | 5bb8601 | 2012-04-11 05:57:28 -0700 | [diff] [blame] | 301 | FunctionType* FuncTy_31 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 302 | /*Result=*/IntegerType::get(mod->getContext(), 64), |
TDYa127 | 5bb8601 | 2012-04-11 05:57:28 -0700 | [diff] [blame] | 303 | /*Params=*/FuncTy_31_args, |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 304 | /*isVarArg=*/false); |
| 305 | |
| 306 | std::vector<Type*>FuncTy_32_args; |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 307 | FuncTy_32_args.push_back(Type::getDoubleTy(mod->getContext())); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 308 | FunctionType* FuncTy_32 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 309 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 310 | /*Params=*/FuncTy_32_args, |
| 311 | /*isVarArg=*/false); |
| 312 | |
| 313 | std::vector<Type*>FuncTy_33_args; |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 314 | FuncTy_33_args.push_back(Type::getFloatTy(mod->getContext())); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 315 | FunctionType* FuncTy_33 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 316 | /*Result=*/IntegerType::get(mod->getContext(), 64), |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 317 | /*Params=*/FuncTy_33_args, |
| 318 | /*isVarArg=*/false); |
| 319 | |
| 320 | std::vector<Type*>FuncTy_34_args; |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 321 | FuncTy_34_args.push_back(Type::getFloatTy(mod->getContext())); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 322 | FunctionType* FuncTy_34 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 323 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 324 | /*Params=*/FuncTy_34_args, |
| 325 | /*isVarArg=*/false); |
| 326 | |
| 327 | std::vector<Type*>FuncTy_35_args; |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 328 | FuncTy_35_args.push_back(PointerTy_1); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 329 | FunctionType* FuncTy_35 = FunctionType::get( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 330 | /*Result=*/IntegerType::get(mod->getContext(), 32), |
TDYa127 | 05fe3b6 | 2012-04-21 00:28:54 -0700 | [diff] [blame] | 331 | /*Params=*/FuncTy_35_args, |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 332 | /*isVarArg=*/false); |
| 333 | |
| 334 | std::vector<Type*>FuncTy_36_args; |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 335 | FuncTy_36_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 336 | FuncTy_36_args.push_back(PointerTy_1); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 337 | FuncTy_36_args.push_back(PointerTy_1); |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 338 | FunctionType* FuncTy_36 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 339 | /*Result=*/Type::getVoidTy(mod->getContext()), |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 340 | /*Params=*/FuncTy_36_args, |
TDYa127 | 0de52be | 2012-05-27 20:49:31 -0700 | [diff] [blame] | 341 | /*isVarArg=*/false); |
| 342 | |
| 343 | std::vector<Type*>FuncTy_37_args; |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 344 | FuncTy_37_args.push_back(PointerTy_1); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 345 | FuncTy_37_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 346 | FuncTy_37_args.push_back(PointerTy_1); |
TDYa127 | 0de52be | 2012-05-27 20:49:31 -0700 | [diff] [blame] | 347 | FunctionType* FuncTy_37 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 348 | /*Result=*/PointerTy_1, |
TDYa127 | 0de52be | 2012-05-27 20:49:31 -0700 | [diff] [blame] | 349 | /*Params=*/FuncTy_37_args, |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 350 | /*isVarArg=*/false); |
| 351 | |
| 352 | std::vector<Type*>FuncTy_38_args; |
| 353 | FuncTy_38_args.push_back(PointerTy_1); |
| 354 | FuncTy_38_args.push_back(IntegerType::get(mod->getContext(), 32)); |
| 355 | FuncTy_38_args.push_back(PointerTy_1); |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 356 | FuncTy_38_args.push_back(PointerTy_1); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 357 | FunctionType* FuncTy_38 = FunctionType::get( |
| 358 | /*Result=*/PointerTy_1, |
| 359 | /*Params=*/FuncTy_38_args, |
| 360 | /*isVarArg=*/false); |
| 361 | |
| 362 | std::vector<Type*>FuncTy_39_args; |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 363 | FunctionType* FuncTy_39 = FunctionType::get( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 364 | /*Result=*/IntegerType::get(mod->getContext(), 1), |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 365 | /*Params=*/FuncTy_39_args, |
| 366 | /*isVarArg=*/false); |
| 367 | |
| 368 | std::vector<Type*>FuncTy_40_args; |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 369 | FuncTy_40_args.push_back(PointerTy_1); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 370 | FunctionType* FuncTy_40 = FunctionType::get( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 371 | /*Result=*/Type::getVoidTy(mod->getContext()), |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 372 | /*Params=*/FuncTy_40_args, |
TDYa127 | 5bb8601 | 2012-04-11 05:57:28 -0700 | [diff] [blame] | 373 | /*isVarArg=*/true); |
| 374 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 375 | |
| 376 | // Function Declarations |
| 377 | |
| 378 | Function* func___art_type_list = mod->getFunction("__art_type_list"); |
| 379 | if (!func___art_type_list) { |
| 380 | func___art_type_list = Function::Create( |
| 381 | /*Type=*/FuncTy_0, |
| 382 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 383 | /*Name=*/"__art_type_list", mod); // (external, no body) |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 384 | func___art_type_list->setCallingConv(CallingConv::C); |
| 385 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 386 | AttributeSet func___art_type_list_PAL; |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 387 | func___art_type_list->setAttributes(func___art_type_list_PAL); |
| 388 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 389 | Function* func_art_portable_get_current_thread_from_code = mod->getFunction("art_portable_get_current_thread_from_code"); |
| 390 | if (!func_art_portable_get_current_thread_from_code) { |
| 391 | func_art_portable_get_current_thread_from_code = Function::Create( |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 392 | /*Type=*/FuncTy_3, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 393 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 394 | /*Name=*/"art_portable_get_current_thread_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 395 | func_art_portable_get_current_thread_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 396 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 397 | AttributeSet func_art_portable_get_current_thread_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 398 | func_art_portable_get_current_thread_from_code->setAttributes(func_art_portable_get_current_thread_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 399 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 400 | Function* func_art_portable_set_current_thread_from_code = mod->getFunction("art_portable_set_current_thread_from_code"); |
| 401 | if (!func_art_portable_set_current_thread_from_code) { |
| 402 | func_art_portable_set_current_thread_from_code = Function::Create( |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 403 | /*Type=*/FuncTy_4, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 404 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 405 | /*Name=*/"art_portable_set_current_thread_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 406 | func_art_portable_set_current_thread_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 407 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 408 | AttributeSet func_art_portable_set_current_thread_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 409 | func_art_portable_set_current_thread_from_code->setAttributes(func_art_portable_set_current_thread_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 410 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 411 | Function* func_art_portable_lock_object_from_code = mod->getFunction("art_portable_lock_object_from_code"); |
| 412 | if (!func_art_portable_lock_object_from_code) { |
| 413 | func_art_portable_lock_object_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 414 | /*Type=*/FuncTy_5, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 415 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 416 | /*Name=*/"art_portable_lock_object_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 417 | func_art_portable_lock_object_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 418 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 419 | AttributeSet func_art_portable_lock_object_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 420 | func_art_portable_lock_object_from_code->setAttributes(func_art_portable_lock_object_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 421 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 422 | Function* func_art_portable_unlock_object_from_code = mod->getFunction("art_portable_unlock_object_from_code"); |
| 423 | if (!func_art_portable_unlock_object_from_code) { |
| 424 | func_art_portable_unlock_object_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 425 | /*Type=*/FuncTy_5, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 426 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 427 | /*Name=*/"art_portable_unlock_object_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 428 | func_art_portable_unlock_object_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 429 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 430 | AttributeSet func_art_portable_unlock_object_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 431 | func_art_portable_unlock_object_from_code->setAttributes(func_art_portable_unlock_object_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 432 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 433 | Function* func_art_portable_test_suspend_from_code = mod->getFunction("art_portable_test_suspend_from_code"); |
| 434 | if (!func_art_portable_test_suspend_from_code) { |
| 435 | func_art_portable_test_suspend_from_code = Function::Create( |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 436 | /*Type=*/FuncTy_6, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 437 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 438 | /*Name=*/"art_portable_test_suspend_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 439 | func_art_portable_test_suspend_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 440 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 441 | AttributeSet func_art_portable_test_suspend_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 442 | func_art_portable_test_suspend_from_code->setAttributes(func_art_portable_test_suspend_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 443 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 444 | Function* func_art_portable_push_shadow_frame_from_code = mod->getFunction("art_portable_push_shadow_frame_from_code"); |
| 445 | if (!func_art_portable_push_shadow_frame_from_code) { |
| 446 | func_art_portable_push_shadow_frame_from_code = Function::Create( |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 447 | /*Type=*/FuncTy_7, |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 448 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 449 | /*Name=*/"art_portable_push_shadow_frame_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 450 | func_art_portable_push_shadow_frame_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 451 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 452 | AttributeSet func_art_portable_push_shadow_frame_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 453 | func_art_portable_push_shadow_frame_from_code->setAttributes(func_art_portable_push_shadow_frame_from_code_PAL); |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 454 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 455 | Function* func_art_portable_pop_shadow_frame_from_code = mod->getFunction("art_portable_pop_shadow_frame_from_code"); |
| 456 | if (!func_art_portable_pop_shadow_frame_from_code) { |
| 457 | func_art_portable_pop_shadow_frame_from_code = Function::Create( |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 458 | /*Type=*/FuncTy_8, |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 459 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 460 | /*Name=*/"art_portable_pop_shadow_frame_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 461 | func_art_portable_pop_shadow_frame_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 462 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 463 | AttributeSet func_art_portable_pop_shadow_frame_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 464 | func_art_portable_pop_shadow_frame_from_code->setAttributes(func_art_portable_pop_shadow_frame_from_code_PAL); |
Logan Chien | 3f71e70 | 2012-02-17 18:45:27 +0800 | [diff] [blame] | 465 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 466 | Function* func_art_portable_get_and_clear_exception = mod->getFunction("art_portable_get_and_clear_exception"); |
| 467 | if (!func_art_portable_get_and_clear_exception) { |
| 468 | func_art_portable_get_and_clear_exception = Function::Create( |
TDYa127 | 823433d | 2012-09-26 16:03:51 -0700 | [diff] [blame] | 469 | /*Type=*/FuncTy_4, |
| 470 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 471 | /*Name=*/"art_portable_get_and_clear_exception", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 472 | func_art_portable_get_and_clear_exception->setCallingConv(CallingConv::C); |
TDYa127 | 823433d | 2012-09-26 16:03:51 -0700 | [diff] [blame] | 473 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 474 | AttributeSet func_art_portable_get_and_clear_exception_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 475 | func_art_portable_get_and_clear_exception->setAttributes(func_art_portable_get_and_clear_exception_PAL); |
TDYa127 | 823433d | 2012-09-26 16:03:51 -0700 | [diff] [blame] | 476 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 477 | Function* func_art_portable_throw_div_zero_from_code = mod->getFunction("art_portable_throw_div_zero_from_code"); |
| 478 | if (!func_art_portable_throw_div_zero_from_code) { |
| 479 | func_art_portable_throw_div_zero_from_code = Function::Create( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 480 | /*Type=*/FuncTy_9, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 481 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 482 | /*Name=*/"art_portable_throw_div_zero_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 483 | func_art_portable_throw_div_zero_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 484 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 485 | AttributeSet func_art_portable_throw_div_zero_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 486 | func_art_portable_throw_div_zero_from_code->setAttributes(func_art_portable_throw_div_zero_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 487 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 488 | Function* func_art_portable_throw_array_bounds_from_code = mod->getFunction("art_portable_throw_array_bounds_from_code"); |
| 489 | if (!func_art_portable_throw_array_bounds_from_code) { |
| 490 | func_art_portable_throw_array_bounds_from_code = Function::Create( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 491 | /*Type=*/FuncTy_10, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 492 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 493 | /*Name=*/"art_portable_throw_array_bounds_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 494 | func_art_portable_throw_array_bounds_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 495 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 496 | AttributeSet func_art_portable_throw_array_bounds_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 497 | func_art_portable_throw_array_bounds_from_code->setAttributes(func_art_portable_throw_array_bounds_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 498 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 499 | Function* func_art_portable_throw_no_such_method_from_code = mod->getFunction("art_portable_throw_no_such_method_from_code"); |
| 500 | if (!func_art_portable_throw_no_such_method_from_code) { |
| 501 | func_art_portable_throw_no_such_method_from_code = Function::Create( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 502 | /*Type=*/FuncTy_11, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 503 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 504 | /*Name=*/"art_portable_throw_no_such_method_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 505 | func_art_portable_throw_no_such_method_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 506 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 507 | AttributeSet func_art_portable_throw_no_such_method_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 508 | func_art_portable_throw_no_such_method_from_code->setAttributes(func_art_portable_throw_no_such_method_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 509 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 510 | Function* func_art_portable_throw_null_pointer_exception_from_code = mod->getFunction("art_portable_throw_null_pointer_exception_from_code"); |
| 511 | if (!func_art_portable_throw_null_pointer_exception_from_code) { |
| 512 | func_art_portable_throw_null_pointer_exception_from_code = Function::Create( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 513 | /*Type=*/FuncTy_11, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 514 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 515 | /*Name=*/"art_portable_throw_null_pointer_exception_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 516 | func_art_portable_throw_null_pointer_exception_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 517 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 518 | AttributeSet func_art_portable_throw_null_pointer_exception_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 519 | func_art_portable_throw_null_pointer_exception_from_code->setAttributes(func_art_portable_throw_null_pointer_exception_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 520 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 521 | Function* func_art_portable_throw_stack_overflow_from_code = mod->getFunction("art_portable_throw_stack_overflow_from_code"); |
| 522 | if (!func_art_portable_throw_stack_overflow_from_code) { |
| 523 | func_art_portable_throw_stack_overflow_from_code = Function::Create( |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 524 | /*Type=*/FuncTy_9, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 525 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 526 | /*Name=*/"art_portable_throw_stack_overflow_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 527 | func_art_portable_throw_stack_overflow_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 528 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 529 | AttributeSet func_art_portable_throw_stack_overflow_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 530 | func_art_portable_throw_stack_overflow_from_code->setAttributes(func_art_portable_throw_stack_overflow_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 531 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 532 | Function* func_art_portable_throw_exception_from_code = mod->getFunction("art_portable_throw_exception_from_code"); |
| 533 | if (!func_art_portable_throw_exception_from_code) { |
| 534 | func_art_portable_throw_exception_from_code = Function::Create( |
TDYa127 | c147826 | 2012-06-20 20:22:27 -0700 | [diff] [blame] | 535 | /*Type=*/FuncTy_6, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 536 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 537 | /*Name=*/"art_portable_throw_exception_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 538 | func_art_portable_throw_exception_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 539 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 540 | AttributeSet func_art_portable_throw_exception_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 541 | func_art_portable_throw_exception_from_code->setAttributes(func_art_portable_throw_exception_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 542 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 543 | Function* func_art_portable_find_catch_block_from_code = mod->getFunction("art_portable_find_catch_block_from_code"); |
| 544 | if (!func_art_portable_find_catch_block_from_code) { |
| 545 | func_art_portable_find_catch_block_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 546 | /*Type=*/FuncTy_12, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 547 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 548 | /*Name=*/"art_portable_find_catch_block_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 549 | func_art_portable_find_catch_block_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 550 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 551 | AttributeSet func_art_portable_find_catch_block_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 552 | func_art_portable_find_catch_block_from_code->setAttributes(func_art_portable_find_catch_block_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 553 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 554 | Function* func_art_portable_alloc_object_from_code = mod->getFunction("art_portable_alloc_object_from_code"); |
| 555 | if (!func_art_portable_alloc_object_from_code) { |
| 556 | func_art_portable_alloc_object_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 557 | /*Type=*/FuncTy_13, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 558 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 559 | /*Name=*/"art_portable_alloc_object_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 560 | func_art_portable_alloc_object_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 561 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 562 | AttributeSet func_art_portable_alloc_object_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 563 | func_art_portable_alloc_object_from_code->setAttributes(func_art_portable_alloc_object_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 564 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 565 | Function* func_art_portable_alloc_object_from_code_with_access_check = mod->getFunction("art_portable_alloc_object_from_code_with_access_check"); |
| 566 | if (!func_art_portable_alloc_object_from_code_with_access_check) { |
| 567 | func_art_portable_alloc_object_from_code_with_access_check = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 568 | /*Type=*/FuncTy_13, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 569 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 570 | /*Name=*/"art_portable_alloc_object_from_code_with_access_check", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 571 | func_art_portable_alloc_object_from_code_with_access_check->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 572 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 573 | AttributeSet func_art_portable_alloc_object_from_code_with_access_check_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 574 | func_art_portable_alloc_object_from_code_with_access_check->setAttributes(func_art_portable_alloc_object_from_code_with_access_check_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 575 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 576 | Function* func_art_portable_alloc_array_from_code = mod->getFunction("art_portable_alloc_array_from_code"); |
| 577 | if (!func_art_portable_alloc_array_from_code) { |
| 578 | func_art_portable_alloc_array_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 579 | /*Type=*/FuncTy_14, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 580 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 581 | /*Name=*/"art_portable_alloc_array_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 582 | func_art_portable_alloc_array_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 583 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 584 | AttributeSet func_art_portable_alloc_array_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 585 | func_art_portable_alloc_array_from_code->setAttributes(func_art_portable_alloc_array_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 586 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 587 | Function* func_art_portable_alloc_array_from_code_with_access_check = mod->getFunction("art_portable_alloc_array_from_code_with_access_check"); |
| 588 | if (!func_art_portable_alloc_array_from_code_with_access_check) { |
| 589 | func_art_portable_alloc_array_from_code_with_access_check = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 590 | /*Type=*/FuncTy_14, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 591 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 592 | /*Name=*/"art_portable_alloc_array_from_code_with_access_check", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 593 | func_art_portable_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 594 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 595 | AttributeSet func_art_portable_alloc_array_from_code_with_access_check_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 596 | func_art_portable_alloc_array_from_code_with_access_check->setAttributes(func_art_portable_alloc_array_from_code_with_access_check_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 597 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 598 | Function* func_art_portable_check_and_alloc_array_from_code = mod->getFunction("art_portable_check_and_alloc_array_from_code"); |
| 599 | if (!func_art_portable_check_and_alloc_array_from_code) { |
| 600 | func_art_portable_check_and_alloc_array_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 601 | /*Type=*/FuncTy_14, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 602 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 603 | /*Name=*/"art_portable_check_and_alloc_array_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 604 | func_art_portable_check_and_alloc_array_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 605 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 606 | AttributeSet func_art_portable_check_and_alloc_array_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 607 | func_art_portable_check_and_alloc_array_from_code->setAttributes(func_art_portable_check_and_alloc_array_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 608 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 609 | Function* func_art_portable_check_and_alloc_array_from_code_with_access_check = mod->getFunction("art_portable_check_and_alloc_array_from_code_with_access_check"); |
| 610 | if (!func_art_portable_check_and_alloc_array_from_code_with_access_check) { |
| 611 | func_art_portable_check_and_alloc_array_from_code_with_access_check = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 612 | /*Type=*/FuncTy_14, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 613 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 614 | /*Name=*/"art_portable_check_and_alloc_array_from_code_with_access_check", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 615 | func_art_portable_check_and_alloc_array_from_code_with_access_check->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 616 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 617 | AttributeSet func_art_portable_check_and_alloc_array_from_code_with_access_check_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 618 | func_art_portable_check_and_alloc_array_from_code_with_access_check->setAttributes(func_art_portable_check_and_alloc_array_from_code_with_access_check_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 619 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 620 | Function* func_art_portable_find_instance_field_from_code = mod->getFunction("art_portable_find_instance_field_from_code"); |
| 621 | if (!func_art_portable_find_instance_field_from_code) { |
| 622 | func_art_portable_find_instance_field_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 623 | /*Type=*/FuncTy_15, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 624 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 625 | /*Name=*/"art_portable_find_instance_field_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 626 | func_art_portable_find_instance_field_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 627 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 628 | AttributeSet func_art_portable_find_instance_field_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 629 | func_art_portable_find_instance_field_from_code->setAttributes(func_art_portable_find_instance_field_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 630 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 631 | Function* func_art_portable_find_static_field_from_code = mod->getFunction("art_portable_find_static_field_from_code"); |
| 632 | if (!func_art_portable_find_static_field_from_code) { |
| 633 | func_art_portable_find_static_field_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 634 | /*Type=*/FuncTy_15, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 635 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 636 | /*Name=*/"art_portable_find_static_field_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 637 | func_art_portable_find_static_field_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 638 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 639 | AttributeSet func_art_portable_find_static_field_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 640 | func_art_portable_find_static_field_from_code->setAttributes(func_art_portable_find_static_field_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 641 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 642 | Function* func_art_portable_find_static_method_from_code_with_access_check = mod->getFunction("art_portable_find_static_method_from_code_with_access_check"); |
| 643 | if (!func_art_portable_find_static_method_from_code_with_access_check) { |
| 644 | func_art_portable_find_static_method_from_code_with_access_check = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 645 | /*Type=*/FuncTy_16, |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 646 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 647 | /*Name=*/"art_portable_find_static_method_from_code_with_access_check", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 648 | func_art_portable_find_static_method_from_code_with_access_check->setCallingConv(CallingConv::C); |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 649 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 650 | AttributeSet func_art_portable_find_static_method_from_code_with_access_check_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 651 | func_art_portable_find_static_method_from_code_with_access_check->setAttributes(func_art_portable_find_static_method_from_code_with_access_check_PAL); |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 652 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 653 | Function* func_art_portable_find_direct_method_from_code_with_access_check = mod->getFunction("art_portable_find_direct_method_from_code_with_access_check"); |
| 654 | if (!func_art_portable_find_direct_method_from_code_with_access_check) { |
| 655 | func_art_portable_find_direct_method_from_code_with_access_check = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 656 | /*Type=*/FuncTy_16, |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 657 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 658 | /*Name=*/"art_portable_find_direct_method_from_code_with_access_check", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 659 | func_art_portable_find_direct_method_from_code_with_access_check->setCallingConv(CallingConv::C); |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 660 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 661 | AttributeSet func_art_portable_find_direct_method_from_code_with_access_check_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 662 | func_art_portable_find_direct_method_from_code_with_access_check->setAttributes(func_art_portable_find_direct_method_from_code_with_access_check_PAL); |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 663 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 664 | Function* func_art_portable_find_virtual_method_from_code_with_access_check = mod->getFunction("art_portable_find_virtual_method_from_code_with_access_check"); |
| 665 | if (!func_art_portable_find_virtual_method_from_code_with_access_check) { |
| 666 | func_art_portable_find_virtual_method_from_code_with_access_check = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 667 | /*Type=*/FuncTy_16, |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 668 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 669 | /*Name=*/"art_portable_find_virtual_method_from_code_with_access_check", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 670 | func_art_portable_find_virtual_method_from_code_with_access_check->setCallingConv(CallingConv::C); |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 671 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 672 | AttributeSet func_art_portable_find_virtual_method_from_code_with_access_check_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 673 | func_art_portable_find_virtual_method_from_code_with_access_check->setAttributes(func_art_portable_find_virtual_method_from_code_with_access_check_PAL); |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 674 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 675 | Function* func_art_portable_find_super_method_from_code_with_access_check = mod->getFunction("art_portable_find_super_method_from_code_with_access_check"); |
| 676 | if (!func_art_portable_find_super_method_from_code_with_access_check) { |
| 677 | func_art_portable_find_super_method_from_code_with_access_check = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 678 | /*Type=*/FuncTy_16, |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 679 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 680 | /*Name=*/"art_portable_find_super_method_from_code_with_access_check", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 681 | func_art_portable_find_super_method_from_code_with_access_check->setCallingConv(CallingConv::C); |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 682 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 683 | AttributeSet func_art_portable_find_super_method_from_code_with_access_check_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 684 | func_art_portable_find_super_method_from_code_with_access_check->setAttributes(func_art_portable_find_super_method_from_code_with_access_check_PAL); |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 685 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 686 | Function* func_art_portable_find_interface_method_from_code_with_access_check = mod->getFunction("art_portable_find_interface_method_from_code_with_access_check"); |
| 687 | if (!func_art_portable_find_interface_method_from_code_with_access_check) { |
| 688 | func_art_portable_find_interface_method_from_code_with_access_check = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 689 | /*Type=*/FuncTy_16, |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 690 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 691 | /*Name=*/"art_portable_find_interface_method_from_code_with_access_check", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 692 | func_art_portable_find_interface_method_from_code_with_access_check->setCallingConv(CallingConv::C); |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 693 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 694 | AttributeSet func_art_portable_find_interface_method_from_code_with_access_check_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 695 | func_art_portable_find_interface_method_from_code_with_access_check->setAttributes(func_art_portable_find_interface_method_from_code_with_access_check_PAL); |
Logan Chien | 7e7fabc | 2012-04-10 18:59:11 +0800 | [diff] [blame] | 696 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 697 | Function* func_art_portable_find_interface_method_from_code = mod->getFunction("art_portable_find_interface_method_from_code"); |
| 698 | if (!func_art_portable_find_interface_method_from_code) { |
| 699 | func_art_portable_find_interface_method_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 700 | /*Type=*/FuncTy_16, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 701 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 702 | /*Name=*/"art_portable_find_interface_method_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 703 | func_art_portable_find_interface_method_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 704 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 705 | AttributeSet func_art_portable_find_interface_method_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 706 | func_art_portable_find_interface_method_from_code->setAttributes(func_art_portable_find_interface_method_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 707 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 708 | Function* func_art_portable_initialize_static_storage_from_code = mod->getFunction("art_portable_initialize_static_storage_from_code"); |
| 709 | if (!func_art_portable_initialize_static_storage_from_code) { |
| 710 | func_art_portable_initialize_static_storage_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 711 | /*Type=*/FuncTy_13, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 712 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 713 | /*Name=*/"art_portable_initialize_static_storage_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 714 | func_art_portable_initialize_static_storage_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 715 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 716 | AttributeSet func_art_portable_initialize_static_storage_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 717 | func_art_portable_initialize_static_storage_from_code->setAttributes(func_art_portable_initialize_static_storage_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 718 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 719 | Function* func_art_portable_initialize_type_from_code = mod->getFunction("art_portable_initialize_type_from_code"); |
| 720 | if (!func_art_portable_initialize_type_from_code) { |
| 721 | func_art_portable_initialize_type_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 722 | /*Type=*/FuncTy_13, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 723 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 724 | /*Name=*/"art_portable_initialize_type_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 725 | func_art_portable_initialize_type_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 726 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 727 | AttributeSet func_art_portable_initialize_type_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 728 | func_art_portable_initialize_type_from_code->setAttributes(func_art_portable_initialize_type_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 729 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 730 | Function* func_art_portable_initialize_type_and_verify_access_from_code = mod->getFunction("art_portable_initialize_type_and_verify_access_from_code"); |
| 731 | if (!func_art_portable_initialize_type_and_verify_access_from_code) { |
| 732 | func_art_portable_initialize_type_and_verify_access_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 733 | /*Type=*/FuncTy_13, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 734 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 735 | /*Name=*/"art_portable_initialize_type_and_verify_access_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 736 | func_art_portable_initialize_type_and_verify_access_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 737 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 738 | AttributeSet func_art_portable_initialize_type_and_verify_access_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 739 | func_art_portable_initialize_type_and_verify_access_from_code->setAttributes(func_art_portable_initialize_type_and_verify_access_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 740 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 741 | Function* func_art_portable_resolve_string_from_code = mod->getFunction("art_portable_resolve_string_from_code"); |
| 742 | if (!func_art_portable_resolve_string_from_code) { |
| 743 | func_art_portable_resolve_string_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 744 | /*Type=*/FuncTy_17, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 745 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 746 | /*Name=*/"art_portable_resolve_string_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 747 | func_art_portable_resolve_string_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 748 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 749 | AttributeSet func_art_portable_resolve_string_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 750 | func_art_portable_resolve_string_from_code->setAttributes(func_art_portable_resolve_string_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 751 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 752 | Function* func_art_portable_set32_static_from_code = mod->getFunction("art_portable_set32_static_from_code"); |
| 753 | if (!func_art_portable_set32_static_from_code) { |
| 754 | func_art_portable_set32_static_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 755 | /*Type=*/FuncTy_18, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 756 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 757 | /*Name=*/"art_portable_set32_static_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 758 | func_art_portable_set32_static_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 759 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 760 | AttributeSet func_art_portable_set32_static_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 761 | func_art_portable_set32_static_from_code->setAttributes(func_art_portable_set32_static_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 762 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 763 | Function* func_art_portable_set64_static_from_code = mod->getFunction("art_portable_set64_static_from_code"); |
| 764 | if (!func_art_portable_set64_static_from_code) { |
| 765 | func_art_portable_set64_static_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 766 | /*Type=*/FuncTy_19, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 767 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 768 | /*Name=*/"art_portable_set64_static_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 769 | func_art_portable_set64_static_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 770 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 771 | AttributeSet func_art_portable_set64_static_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 772 | func_art_portable_set64_static_from_code->setAttributes(func_art_portable_set64_static_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 773 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 774 | Function* func_art_portable_set_obj_static_from_code = mod->getFunction("art_portable_set_obj_static_from_code"); |
| 775 | if (!func_art_portable_set_obj_static_from_code) { |
| 776 | func_art_portable_set_obj_static_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 777 | /*Type=*/FuncTy_20, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 778 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 779 | /*Name=*/"art_portable_set_obj_static_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 780 | func_art_portable_set_obj_static_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 781 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 782 | AttributeSet func_art_portable_set_obj_static_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 783 | func_art_portable_set_obj_static_from_code->setAttributes(func_art_portable_set_obj_static_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 784 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 785 | Function* func_art_portable_get32_static_from_code = mod->getFunction("art_portable_get32_static_from_code"); |
| 786 | if (!func_art_portable_get32_static_from_code) { |
| 787 | func_art_portable_get32_static_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 788 | /*Type=*/FuncTy_21, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 789 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 790 | /*Name=*/"art_portable_get32_static_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 791 | func_art_portable_get32_static_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 792 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 793 | AttributeSet func_art_portable_get32_static_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 794 | func_art_portable_get32_static_from_code->setAttributes(func_art_portable_get32_static_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 795 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 796 | Function* func_art_portable_get64_static_from_code = mod->getFunction("art_portable_get64_static_from_code"); |
| 797 | if (!func_art_portable_get64_static_from_code) { |
| 798 | func_art_portable_get64_static_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 799 | /*Type=*/FuncTy_22, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 800 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 801 | /*Name=*/"art_portable_get64_static_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 802 | func_art_portable_get64_static_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 803 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 804 | AttributeSet func_art_portable_get64_static_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 805 | func_art_portable_get64_static_from_code->setAttributes(func_art_portable_get64_static_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 806 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 807 | Function* func_art_portable_get_obj_static_from_code = mod->getFunction("art_portable_get_obj_static_from_code"); |
| 808 | if (!func_art_portable_get_obj_static_from_code) { |
| 809 | func_art_portable_get_obj_static_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 810 | /*Type=*/FuncTy_23, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 811 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 812 | /*Name=*/"art_portable_get_obj_static_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 813 | func_art_portable_get_obj_static_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 814 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 815 | AttributeSet func_art_portable_get_obj_static_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 816 | func_art_portable_get_obj_static_from_code->setAttributes(func_art_portable_get_obj_static_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 817 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 818 | Function* func_art_portable_set32_instance_from_code = mod->getFunction("art_portable_set32_instance_from_code"); |
| 819 | if (!func_art_portable_set32_instance_from_code) { |
| 820 | func_art_portable_set32_instance_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 821 | /*Type=*/FuncTy_24, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 822 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 823 | /*Name=*/"art_portable_set32_instance_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 824 | func_art_portable_set32_instance_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 825 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 826 | AttributeSet func_art_portable_set32_instance_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 827 | func_art_portable_set32_instance_from_code->setAttributes(func_art_portable_set32_instance_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 828 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 829 | Function* func_art_portable_set64_instance_from_code = mod->getFunction("art_portable_set64_instance_from_code"); |
| 830 | if (!func_art_portable_set64_instance_from_code) { |
| 831 | func_art_portable_set64_instance_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 832 | /*Type=*/FuncTy_25, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 833 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 834 | /*Name=*/"art_portable_set64_instance_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 835 | func_art_portable_set64_instance_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 836 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 837 | AttributeSet func_art_portable_set64_instance_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 838 | func_art_portable_set64_instance_from_code->setAttributes(func_art_portable_set64_instance_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 839 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 840 | Function* func_art_portable_set_obj_instance_from_code = mod->getFunction("art_portable_set_obj_instance_from_code"); |
| 841 | if (!func_art_portable_set_obj_instance_from_code) { |
| 842 | func_art_portable_set_obj_instance_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 843 | /*Type=*/FuncTy_26, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 844 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 845 | /*Name=*/"art_portable_set_obj_instance_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 846 | func_art_portable_set_obj_instance_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 847 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 848 | AttributeSet func_art_portable_set_obj_instance_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 849 | func_art_portable_set_obj_instance_from_code->setAttributes(func_art_portable_set_obj_instance_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 850 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 851 | Function* func_art_portable_get32_instance_from_code = mod->getFunction("art_portable_get32_instance_from_code"); |
| 852 | if (!func_art_portable_get32_instance_from_code) { |
| 853 | func_art_portable_get32_instance_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 854 | /*Type=*/FuncTy_20, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 855 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 856 | /*Name=*/"art_portable_get32_instance_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 857 | func_art_portable_get32_instance_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 858 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 859 | AttributeSet func_art_portable_get32_instance_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 860 | func_art_portable_get32_instance_from_code->setAttributes(func_art_portable_get32_instance_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 861 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 862 | Function* func_art_portable_get64_instance_from_code = mod->getFunction("art_portable_get64_instance_from_code"); |
| 863 | if (!func_art_portable_get64_instance_from_code) { |
| 864 | func_art_portable_get64_instance_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 865 | /*Type=*/FuncTy_27, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 866 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 867 | /*Name=*/"art_portable_get64_instance_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 868 | func_art_portable_get64_instance_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 869 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 870 | AttributeSet func_art_portable_get64_instance_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 871 | func_art_portable_get64_instance_from_code->setAttributes(func_art_portable_get64_instance_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 872 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 873 | Function* func_art_portable_get_obj_instance_from_code = mod->getFunction("art_portable_get_obj_instance_from_code"); |
| 874 | if (!func_art_portable_get_obj_instance_from_code) { |
| 875 | func_art_portable_get_obj_instance_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 876 | /*Type=*/FuncTy_13, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 877 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 878 | /*Name=*/"art_portable_get_obj_instance_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 879 | func_art_portable_get_obj_instance_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 880 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 881 | AttributeSet func_art_portable_get_obj_instance_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 882 | func_art_portable_get_obj_instance_from_code->setAttributes(func_art_portable_get_obj_instance_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 883 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 884 | Function* func_art_portable_decode_jobject_in_thread = mod->getFunction("art_portable_decode_jobject_in_thread"); |
| 885 | if (!func_art_portable_decode_jobject_in_thread) { |
| 886 | func_art_portable_decode_jobject_in_thread = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 887 | /*Type=*/FuncTy_28, |
TDYa127 | 28f1a14 | 2012-03-15 21:51:52 -0700 | [diff] [blame] | 888 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 889 | /*Name=*/"art_portable_decode_jobject_in_thread", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 890 | func_art_portable_decode_jobject_in_thread->setCallingConv(CallingConv::C); |
TDYa127 | 28f1a14 | 2012-03-15 21:51:52 -0700 | [diff] [blame] | 891 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 892 | AttributeSet func_art_portable_decode_jobject_in_thread_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 893 | func_art_portable_decode_jobject_in_thread->setAttributes(func_art_portable_decode_jobject_in_thread_PAL); |
TDYa127 | 28f1a14 | 2012-03-15 21:51:52 -0700 | [diff] [blame] | 894 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 895 | Function* func_art_portable_fill_array_data_from_code = mod->getFunction("art_portable_fill_array_data_from_code"); |
| 896 | if (!func_art_portable_fill_array_data_from_code) { |
| 897 | func_art_portable_fill_array_data_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 898 | /*Type=*/FuncTy_29, |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 899 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 900 | /*Name=*/"art_portable_fill_array_data_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 901 | func_art_portable_fill_array_data_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 902 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 903 | AttributeSet func_art_portable_fill_array_data_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 904 | func_art_portable_fill_array_data_from_code->setAttributes(func_art_portable_fill_array_data_from_code_PAL); |
Logan Chien | 86f5067 | 2012-04-24 13:08:45 +0800 | [diff] [blame] | 905 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 906 | Function* func_art_portable_is_assignable_from_code = mod->getFunction("art_portable_is_assignable_from_code"); |
| 907 | if (!func_art_portable_is_assignable_from_code) { |
| 908 | func_art_portable_is_assignable_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 909 | /*Type=*/FuncTy_30, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 910 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 911 | /*Name=*/"art_portable_is_assignable_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 912 | func_art_portable_is_assignable_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 913 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 914 | AttributeSet func_art_portable_is_assignable_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 915 | func_art_portable_is_assignable_from_code->setAttributes(func_art_portable_is_assignable_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 916 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 917 | Function* func_art_portable_check_cast_from_code = mod->getFunction("art_portable_check_cast_from_code"); |
| 918 | if (!func_art_portable_check_cast_from_code) { |
| 919 | func_art_portable_check_cast_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 920 | /*Type=*/FuncTy_5, |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 921 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 922 | /*Name=*/"art_portable_check_cast_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 923 | func_art_portable_check_cast_from_code->setCallingConv(CallingConv::C); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 924 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 925 | AttributeSet func_art_portable_check_cast_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 926 | func_art_portable_check_cast_from_code->setAttributes(func_art_portable_check_cast_from_code_PAL); |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 927 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 928 | Function* func_art_portable_check_put_array_element_from_code = mod->getFunction("art_portable_check_put_array_element_from_code"); |
| 929 | if (!func_art_portable_check_put_array_element_from_code) { |
| 930 | func_art_portable_check_put_array_element_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 931 | /*Type=*/FuncTy_5, |
TDYa127 | 1b86d07 | 2012-04-05 17:38:56 -0700 | [diff] [blame] | 932 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 933 | /*Name=*/"art_portable_check_put_array_element_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 934 | func_art_portable_check_put_array_element_from_code->setCallingConv(CallingConv::C); |
TDYa127 | 1b86d07 | 2012-04-05 17:38:56 -0700 | [diff] [blame] | 935 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 936 | AttributeSet func_art_portable_check_put_array_element_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 937 | func_art_portable_check_put_array_element_from_code->setAttributes(func_art_portable_check_put_array_element_from_code_PAL); |
TDYa127 | 1b86d07 | 2012-04-05 17:38:56 -0700 | [diff] [blame] | 938 | |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 939 | Function* func_art_d2l = mod->getFunction("art_d2l"); |
| 940 | if (!func_art_d2l) { |
| 941 | func_art_d2l = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 942 | /*Type=*/FuncTy_31, |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 943 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 944 | /*Name=*/"art_d2l", mod); // (external, no body) |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 945 | func_art_d2l->setCallingConv(CallingConv::C); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 946 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 947 | AttributeSet func_art_d2l_PAL; |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 948 | func_art_d2l->setAttributes(func_art_d2l_PAL); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 949 | |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 950 | Function* func_art_d2i = mod->getFunction("art_d2i"); |
| 951 | if (!func_art_d2i) { |
| 952 | func_art_d2i = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 953 | /*Type=*/FuncTy_32, |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 954 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 955 | /*Name=*/"art_d2i", mod); // (external, no body) |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 956 | func_art_d2i->setCallingConv(CallingConv::C); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 957 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 958 | AttributeSet func_art_d2i_PAL; |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 959 | func_art_d2i->setAttributes(func_art_d2i_PAL); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 960 | |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 961 | Function* func_art_f2l = mod->getFunction("art_f2l"); |
| 962 | if (!func_art_f2l) { |
| 963 | func_art_f2l = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 964 | /*Type=*/FuncTy_33, |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 965 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 966 | /*Name=*/"art_f2l", mod); // (external, no body) |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 967 | func_art_f2l->setCallingConv(CallingConv::C); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 968 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 969 | AttributeSet func_art_f2l_PAL; |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 970 | func_art_f2l->setAttributes(func_art_f2l_PAL); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 971 | |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 972 | Function* func_art_f2i = mod->getFunction("art_f2i"); |
| 973 | if (!func_art_f2i) { |
| 974 | func_art_f2i = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 975 | /*Type=*/FuncTy_34, |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 976 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 977 | /*Name=*/"art_f2i", mod); // (external, no body) |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 978 | func_art_f2i->setCallingConv(CallingConv::C); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 979 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 980 | AttributeSet func_art_f2i_PAL; |
jeffhao | 41005dd | 2012-05-09 17:58:52 -0700 | [diff] [blame] | 981 | func_art_f2i->setAttributes(func_art_f2i_PAL); |
TDYa127 | a474687 | 2012-04-11 23:48:55 -0700 | [diff] [blame] | 982 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 983 | Function* func_art_portable_jni_method_start = mod->getFunction("art_portable_jni_method_start"); |
| 984 | if (!func_art_portable_jni_method_start) { |
| 985 | func_art_portable_jni_method_start = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 986 | /*Type=*/FuncTy_35, |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 987 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 988 | /*Name=*/"art_portable_jni_method_start", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 989 | func_art_portable_jni_method_start->setCallingConv(CallingConv::C); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 990 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 991 | AttributeSet func_art_portable_jni_method_start_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 992 | func_art_portable_jni_method_start->setAttributes(func_art_portable_jni_method_start_PAL); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 993 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 994 | Function* func_art_portable_jni_method_start_synchronized = mod->getFunction("art_portable_jni_method_start_synchronized"); |
| 995 | if (!func_art_portable_jni_method_start_synchronized) { |
| 996 | func_art_portable_jni_method_start_synchronized = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 997 | /*Type=*/FuncTy_30, |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 998 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 999 | /*Name=*/"art_portable_jni_method_start_synchronized", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1000 | func_art_portable_jni_method_start_synchronized->setCallingConv(CallingConv::C); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1001 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 1002 | AttributeSet func_art_portable_jni_method_start_synchronized_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1003 | func_art_portable_jni_method_start_synchronized->setAttributes(func_art_portable_jni_method_start_synchronized_PAL); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1004 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1005 | Function* func_art_portable_jni_method_end = mod->getFunction("art_portable_jni_method_end"); |
| 1006 | if (!func_art_portable_jni_method_end) { |
| 1007 | func_art_portable_jni_method_end = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 1008 | /*Type=*/FuncTy_15, |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1009 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 1010 | /*Name=*/"art_portable_jni_method_end", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1011 | func_art_portable_jni_method_end->setCallingConv(CallingConv::C); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1012 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 1013 | AttributeSet func_art_portable_jni_method_end_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1014 | func_art_portable_jni_method_end->setAttributes(func_art_portable_jni_method_end_PAL); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1015 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1016 | Function* func_art_portable_jni_method_end_synchronized = mod->getFunction("art_portable_jni_method_end_synchronized"); |
| 1017 | if (!func_art_portable_jni_method_end_synchronized) { |
| 1018 | func_art_portable_jni_method_end_synchronized = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 1019 | /*Type=*/FuncTy_36, |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1020 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 1021 | /*Name=*/"art_portable_jni_method_end_synchronized", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1022 | func_art_portable_jni_method_end_synchronized->setCallingConv(CallingConv::C); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1023 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 1024 | AttributeSet func_art_portable_jni_method_end_synchronized_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1025 | func_art_portable_jni_method_end_synchronized->setAttributes(func_art_portable_jni_method_end_synchronized_PAL); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1026 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1027 | Function* func_art_portable_jni_method_end_with_reference = mod->getFunction("art_portable_jni_method_end_with_reference"); |
| 1028 | if (!func_art_portable_jni_method_end_with_reference) { |
| 1029 | func_art_portable_jni_method_end_with_reference = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 1030 | /*Type=*/FuncTy_37, |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1031 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 1032 | /*Name=*/"art_portable_jni_method_end_with_reference", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1033 | func_art_portable_jni_method_end_with_reference->setCallingConv(CallingConv::C); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1034 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 1035 | AttributeSet func_art_portable_jni_method_end_with_reference_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1036 | func_art_portable_jni_method_end_with_reference->setAttributes(func_art_portable_jni_method_end_with_reference_PAL); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1037 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1038 | Function* func_art_portable_jni_method_end_with_reference_synchronized = mod->getFunction("art_portable_jni_method_end_with_reference_synchronized"); |
| 1039 | if (!func_art_portable_jni_method_end_with_reference_synchronized) { |
| 1040 | func_art_portable_jni_method_end_with_reference_synchronized = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 1041 | /*Type=*/FuncTy_38, |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1042 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 1043 | /*Name=*/"art_portable_jni_method_end_with_reference_synchronized", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1044 | func_art_portable_jni_method_end_with_reference_synchronized->setCallingConv(CallingConv::C); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1045 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 1046 | AttributeSet func_art_portable_jni_method_end_with_reference_synchronized_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1047 | func_art_portable_jni_method_end_with_reference_synchronized->setAttributes(func_art_portable_jni_method_end_with_reference_synchronized_PAL); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1048 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1049 | Function* func_art_portable_is_exception_pending_from_code = mod->getFunction("art_portable_is_exception_pending_from_code"); |
| 1050 | if (!func_art_portable_is_exception_pending_from_code) { |
| 1051 | func_art_portable_is_exception_pending_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 1052 | /*Type=*/FuncTy_39, |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1053 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 1054 | /*Name=*/"art_portable_is_exception_pending_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1055 | func_art_portable_is_exception_pending_from_code->setCallingConv(CallingConv::C); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1056 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 1057 | AttributeSet func_art_portable_is_exception_pending_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1058 | func_art_portable_is_exception_pending_from_code->setAttributes(func_art_portable_is_exception_pending_from_code_PAL); |
TDYa127 | 3d71d80 | 2012-08-15 03:47:03 -0700 | [diff] [blame] | 1059 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1060 | Function* func_art_portable_mark_gc_card_from_code = mod->getFunction("art_portable_mark_gc_card_from_code"); |
| 1061 | if (!func_art_portable_mark_gc_card_from_code) { |
| 1062 | func_art_portable_mark_gc_card_from_code = Function::Create( |
TDYa127 | 706e9b6 | 2012-04-19 12:24:26 -0700 | [diff] [blame] | 1063 | /*Type=*/FuncTy_5, |
TDYa127 | 83bb662 | 2012-04-17 02:20:34 -0700 | [diff] [blame] | 1064 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 1065 | /*Name=*/"art_portable_mark_gc_card_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1066 | func_art_portable_mark_gc_card_from_code->setCallingConv(CallingConv::C); |
TDYa127 | 83bb662 | 2012-04-17 02:20:34 -0700 | [diff] [blame] | 1067 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 1068 | AttributeSet func_art_portable_mark_gc_card_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1069 | func_art_portable_mark_gc_card_from_code->setAttributes(func_art_portable_mark_gc_card_from_code_PAL); |
TDYa127 | 83bb662 | 2012-04-17 02:20:34 -0700 | [diff] [blame] | 1070 | |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1071 | Function* func_art_portable_proxy_invoke_handler_from_code = mod->getFunction("art_portable_proxy_invoke_handler_from_code"); |
| 1072 | if (!func_art_portable_proxy_invoke_handler_from_code) { |
| 1073 | func_art_portable_proxy_invoke_handler_from_code = Function::Create( |
jeffhao | 9a4f003 | 2012-08-30 16:17:40 -0700 | [diff] [blame] | 1074 | /*Type=*/FuncTy_40, |
TDYa127 | 5bb8601 | 2012-04-11 05:57:28 -0700 | [diff] [blame] | 1075 | /*Linkage=*/GlobalValue::ExternalLinkage, |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 1076 | /*Name=*/"art_portable_proxy_invoke_handler_from_code", mod); // (external, no body) |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1077 | func_art_portable_proxy_invoke_handler_from_code->setCallingConv(CallingConv::C); |
TDYa127 | 5bb8601 | 2012-04-11 05:57:28 -0700 | [diff] [blame] | 1078 | } |
Brian Carlstrom | 37d4879 | 2013-03-22 14:14:45 -0700 | [diff] [blame] | 1079 | AttributeSet func_art_portable_proxy_invoke_handler_from_code_PAL; |
Logan Chien | 8dbb708 | 2013-01-25 20:31:17 +0800 | [diff] [blame] | 1080 | func_art_portable_proxy_invoke_handler_from_code->setAttributes(func_art_portable_proxy_invoke_handler_from_code_PAL); |
TDYa127 | 5bb8601 | 2012-04-11 05:57:28 -0700 | [diff] [blame] | 1081 | |
Logan Chien | 42e0e15 | 2012-01-13 15:42:36 +0800 | [diff] [blame] | 1082 | // Global Variable Declarations |
| 1083 | |
| 1084 | |
| 1085 | // Constant Definitions |
| 1086 | |
| 1087 | // Global Variable Definitions |
| 1088 | |
| 1089 | // Function Definitions |
| 1090 | |
| 1091 | return mod; |
| 1092 | |
| 1093 | } |
Logan Chien | e75a8cc | 2012-02-24 12:26:43 +0800 | [diff] [blame] | 1094 | |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame^] | 1095 | } // namespace llvm |
| 1096 | } // namespace art |