blob: 19c43ba04d238f4c54611040782ede62ea8a3e88 [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
buzbeefa57c472012-11-21 12:06:18 -080020LIR* LoadConstant(CompilationUnit* cu, int r_dest, int value);
21LIR* LoadWordDisp(CompilationUnit* cu, int rBase, int displacement, int r_dest);
22LIR* StoreWordDisp(CompilationUnit* cu, int rBase, int displacement, int r_src);
23void LoadValueDirect(CompilationUnit* cu, RegLocation rl_src, int r_dest);
24void LoadValueDirectFixed(CompilationUnit* cu, RegLocation rl_src, int r_dest);
25void LoadValueDirectWide(CompilationUnit* cu, RegLocation rl_src, int reg_lo, int reg_hi);
26void LoadValueDirectWideFixed(CompilationUnit* cu, RegLocation rl_src, int reg_lo, int reg_hi);
27RegLocation LoadValue(CompilationUnit* cu, RegLocation rl_src, RegisterClass op_kind);
28void StoreValue(CompilationUnit* cu, RegLocation rl_dest, RegLocation rl_src);
29RegLocation LoadValueWide(CompilationUnit* cu, RegLocation rl_src, RegisterClass op_kind);
30void StoreValueWide(CompilationUnit* cu, RegLocation rl_dest, RegLocation rl_src);
31void LoadCurrMethodDirect(CompilationUnit *cu, int r_tgt);
32RegLocation LoadCurrMethod(CompilationUnit *cu);
33bool MethodStarInReg(CompilationUnit* cu);
buzbeeeaf09bc2012-11-15 14:51:41 -080034
35#endif // ART_SRC_COMPILER_CODEGEN_GENLOADSTORE_H_