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 | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame] | 20 | LIR* LoadConstant(CompilationUnit* cUnit, int rDest, int value); |
| 21 | LIR* LoadWordDisp(CompilationUnit* cUnit, int rBase, int displacement, int rDest); |
| 22 | LIR* StoreWordDisp(CompilationUnit* cUnit, int rBase, int displacement, int rSrc); |
| 23 | void LoadValueDirect(CompilationUnit* cUnit, RegLocation rlSrc, int rDest); |
| 24 | void LoadValueDirectFixed(CompilationUnit* cUnit, RegLocation rlSrc, int rDest); |
| 25 | void LoadValueDirectWide(CompilationUnit* cUnit, RegLocation rlSrc, int regLo, int regHi); |
| 26 | void LoadValueDirectWideFixed(CompilationUnit* cUnit, RegLocation rlSrc, int regLo, int regHi); |
| 27 | RegLocation LoadValue(CompilationUnit* cUnit, RegLocation rlSrc, RegisterClass opKind); |
| 28 | void StoreValue(CompilationUnit* cUnit, RegLocation rlDest, RegLocation rlSrc); |
| 29 | RegLocation LoadValueWide(CompilationUnit* cUnit, RegLocation rlSrc, RegisterClass opKind); |
| 30 | void StoreValueWide(CompilationUnit* cUnit, RegLocation rlDest, RegLocation rlSrc); |
| 31 | void LoadCurrMethodDirect(CompilationUnit *cUnit, int rTgt); |
| 32 | RegLocation LoadCurrMethod(CompilationUnit *cUnit); |
| 33 | bool MethodStarInReg(CompilationUnit* cUnit); |
buzbee | eaf09bc | 2012-11-15 14:51:41 -0800 | [diff] [blame] | 34 | |
| 35 | #endif // ART_SRC_COMPILER_CODEGEN_GENLOADSTORE_H_ |