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