buzbee | eaf09bc | 2012-11-15 14:51:41 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2011 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef ART_SRC_COMPILER_CODEGEN_GENLOADSTORE_H_ |
| 18 | #define ART_SRC_COMPILER_CODEGEN_GENLOADSTORE_H_ |
| 19 | |
buzbee | fa57c47 | 2012-11-21 12:06:18 -0800 | [diff] [blame] | 20 | LIR* LoadConstant(CompilationUnit* cu, int r_dest, int value); |
| 21 | LIR* LoadWordDisp(CompilationUnit* cu, int rBase, int displacement, int r_dest); |
| 22 | LIR* StoreWordDisp(CompilationUnit* cu, int rBase, int displacement, int r_src); |
| 23 | void LoadValueDirect(CompilationUnit* cu, RegLocation rl_src, int r_dest); |
| 24 | void LoadValueDirectFixed(CompilationUnit* cu, RegLocation rl_src, int r_dest); |
| 25 | void LoadValueDirectWide(CompilationUnit* cu, RegLocation rl_src, int reg_lo, int reg_hi); |
| 26 | void LoadValueDirectWideFixed(CompilationUnit* cu, RegLocation rl_src, int reg_lo, int reg_hi); |
| 27 | RegLocation LoadValue(CompilationUnit* cu, RegLocation rl_src, RegisterClass op_kind); |
| 28 | void StoreValue(CompilationUnit* cu, RegLocation rl_dest, RegLocation rl_src); |
| 29 | RegLocation LoadValueWide(CompilationUnit* cu, RegLocation rl_src, RegisterClass op_kind); |
| 30 | void StoreValueWide(CompilationUnit* cu, RegLocation rl_dest, RegLocation rl_src); |
| 31 | void LoadCurrMethodDirect(CompilationUnit *cu, int r_tgt); |
| 32 | RegLocation LoadCurrMethod(CompilationUnit *cu); |
| 33 | bool MethodStarInReg(CompilationUnit* cu); |
buzbee | eaf09bc | 2012-11-15 14:51:41 -0800 | [diff] [blame] | 34 | |
| 35 | #endif // ART_SRC_COMPILER_CODEGEN_GENLOADSTORE_H_ |