buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [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 | |
buzbee | eaf09bc | 2012-11-15 14:51:41 -0800 | [diff] [blame] | 17 | #ifndef ART_SRC_COMPILER_CODEGEN_RALLOCUTIL_H_ |
| 18 | #define ART_SRC_COMPILER_CODEGEN_RALLOCUTIL_H_ |
Elliott Hughes | 11d1b0c | 2012-01-23 16:57:47 -0800 | [diff] [blame] | 19 | |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 20 | /* |
| 21 | * This file contains target independent register alloction support. |
| 22 | */ |
| 23 | |
buzbee | efc6369 | 2012-11-14 16:31:52 -0800 | [diff] [blame] | 24 | #include "../compiler_utility.h" |
| 25 | #include "../compiler_ir.h" |
| 26 | #include "../dataflow.h" |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 27 | |
Elliott Hughes | 11d1b0c | 2012-01-23 16:57:47 -0800 | [diff] [blame] | 28 | namespace art { |
| 29 | |
buzbee | e3acd07 | 2012-02-25 17:03:10 -0800 | [diff] [blame] | 30 | /* Static register use counts */ |
Elliott Hughes | 719ace4 | 2012-03-09 18:06:03 -0800 | [diff] [blame] | 31 | struct RefCounts { |
Bill Buzbee | a114add | 2012-05-03 15:00:40 -0700 | [diff] [blame] | 32 | int count; |
| 33 | int sReg; |
| 34 | bool doubleStart; // Starting vReg for a double |
Elliott Hughes | 719ace4 | 2012-03-09 18:06:03 -0800 | [diff] [blame] | 35 | }; |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 36 | |
buzbee | e3acd07 | 2012-02-25 17:03:10 -0800 | [diff] [blame] | 37 | |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 38 | /* |
| 39 | * Get the "real" sreg number associated with an sReg slot. In general, |
| 40 | * sReg values passed through codegen are the SSA names created by |
| 41 | * dataflow analysis and refer to slot numbers in the cUnit->regLocation |
| 42 | * array. However, renaming is accomplished by simply replacing RegLocation |
| 43 | * entries in the cUnit->reglocation[] array. Therefore, when location |
| 44 | * records for operands are first created, we need to ask the locRecord |
| 45 | * identified by the dataflow pass what it's new name is. |
| 46 | */ |
| 47 | |
buzbee | e3acd07 | 2012-02-25 17:03:10 -0800 | [diff] [blame] | 48 | inline int oatSRegHi(int lowSreg) { |
Bill Buzbee | a114add | 2012-05-03 15:00:40 -0700 | [diff] [blame] | 49 | return (lowSreg == INVALID_SREG) ? INVALID_SREG : lowSreg + 1; |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 50 | } |
| 51 | |
| 52 | |
Elliott Hughes | 7484741 | 2012-06-20 18:10:21 -0700 | [diff] [blame] | 53 | inline bool oatLiveOut(CompilationUnit* cUnit, int sReg) { |
Bill Buzbee | a114add | 2012-05-03 15:00:40 -0700 | [diff] [blame] | 54 | //For now. |
| 55 | return true; |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 56 | } |
| 57 | |
Elliott Hughes | 7484741 | 2012-06-20 18:10:21 -0700 | [diff] [blame] | 58 | inline int oatSSASrc(MIR* mir, int num) { |
Bill Buzbee | a114add | 2012-05-03 15:00:40 -0700 | [diff] [blame] | 59 | DCHECK_GT(mir->ssaRep->numUses, num); |
| 60 | return mir->ssaRep->uses[num]; |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 61 | } |
| 62 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 63 | extern RegLocation EvalLoc(CompilationUnit* cUnit, RegLocation loc, |
Bill Buzbee | a114add | 2012-05-03 15:00:40 -0700 | [diff] [blame] | 64 | int regClass, bool update); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 65 | /* Mark a temp register as dead. Does not affect allocation state. */ |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 66 | extern void Clobber(CompilationUnit* cUnit, int reg); |
| 67 | extern RegLocation UpdateLoc(CompilationUnit* cUnit, RegLocation loc); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 68 | |
| 69 | /* see comments for updateLoc */ |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 70 | extern RegLocation UpdateLocWide(CompilationUnit* cUnit, RegLocation loc); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 71 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 72 | extern RegLocation UpdateRawLoc(CompilationUnit* cUnit, RegLocation loc); |
buzbee | ed3e930 | 2011-09-23 17:34:19 -0700 | [diff] [blame] | 73 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 74 | extern void MarkLive(CompilationUnit* cUnit, int reg, int sReg); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 75 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 76 | extern void MarkTemp(CompilationUnit* cUnit, int reg); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 77 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 78 | extern void UnmarkTemp(CompilationUnit* cUnit, int reg); |
buzbee | 9e0f9b0 | 2011-08-24 15:32:46 -0700 | [diff] [blame] | 79 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 80 | extern void MarkDirty(CompilationUnit* cUnit, RegLocation loc); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 81 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 82 | extern void MarkPair(CompilationUnit* cUnit, int lowReg, int highReg); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 83 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 84 | extern void MarkClean(CompilationUnit* cUnit, RegLocation loc); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 85 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 86 | extern void ResetDef(CompilationUnit* cUnit, int reg); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 87 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 88 | extern void ResetDefLoc(CompilationUnit* cUnit, RegLocation rl); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 89 | |
| 90 | /* Set up temp & preserved register pools specialized by target */ |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 91 | extern void CompilerInitPool(RegisterInfo* regs, int* regNums, int num); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 92 | |
| 93 | /* |
| 94 | * Mark the beginning and end LIR of a def sequence. Note that |
| 95 | * on entry start points to the LIR prior to the beginning of the |
| 96 | * sequence. |
| 97 | */ |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 98 | extern void MarkDef(CompilationUnit* cUnit, RegLocation rl, LIR* start, |
Bill Buzbee | a114add | 2012-05-03 15:00:40 -0700 | [diff] [blame] | 99 | LIR* finish); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 100 | /* |
| 101 | * Mark the beginning and end LIR of a def sequence. Note that |
| 102 | * on entry start points to the LIR prior to the beginning of the |
| 103 | * sequence. |
| 104 | */ |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 105 | extern void MarkDefWide(CompilationUnit* cUnit, RegLocation rl, |
Bill Buzbee | a114add | 2012-05-03 15:00:40 -0700 | [diff] [blame] | 106 | LIR* start, LIR* finish); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 107 | |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 108 | |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 109 | // Get the LocRecord associated with an SSA name use. |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 110 | extern RegLocation GetSrc(CompilationUnit* cUnit, MIR* mir, int num); |
| 111 | extern RegLocation GetSrcWide(CompilationUnit* cUnit, MIR* mir, int low); |
buzbee | 15bf980 | 2012-06-12 17:49:27 -0700 | [diff] [blame] | 112 | // Non-width checking version |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 113 | extern RegLocation GetRawSrc(CompilationUnit* cUnit, MIR* mir, int num); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 114 | |
| 115 | // Get the LocRecord associated with an SSA name def. |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 116 | extern RegLocation GetDest(CompilationUnit* cUnit, MIR* mir); |
| 117 | extern RegLocation GetDestWide(CompilationUnit* cUnit, MIR* mir); |
buzbee | 15bf980 | 2012-06-12 17:49:27 -0700 | [diff] [blame] | 118 | // Non-width checking version |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 119 | extern RegLocation GetRawDest(CompilationUnit* cUnit, MIR* mir); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 120 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 121 | extern RegLocation GetReturnWide(CompilationUnit* cUnit, bool isDouble); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 122 | |
| 123 | /* Clobber all regs that might be used by an external C call */ |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 124 | extern void ClobberCalleeSave(CompilationUnit* cUnit); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 125 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 126 | extern RegisterInfo *IsTemp(CompilationUnit* cUnit, int reg); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 127 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 128 | extern RegisterInfo *IsPromoted(CompilationUnit* cUnit, int reg); |
buzbee | b29e4d1 | 2011-09-26 15:05:48 -0700 | [diff] [blame] | 129 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 130 | extern bool IsDirty(CompilationUnit* cUnit, int reg); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 131 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 132 | extern void MarkInUse(CompilationUnit* cUnit, int reg); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 133 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 134 | extern int AllocTemp(CompilationUnit* cUnit); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 135 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 136 | extern int AllocTempFloat(CompilationUnit* cUnit); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 137 | |
| 138 | //REDO: too many assumptions. |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 139 | extern int AllocTempDouble(CompilationUnit* cUnit); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 140 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 141 | extern void FreeTemp(CompilationUnit* cUnit, int reg); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 142 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 143 | extern void ResetDefLocWide(CompilationUnit* cUnit, RegLocation rl); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 144 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 145 | extern void ResetDefTracking(CompilationUnit* cUnit); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 146 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 147 | extern RegisterInfo *IsLive(CompilationUnit* cUnit, int reg); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 148 | |
| 149 | /* To be used when explicitly managing register use */ |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 150 | extern void LockCallTemps(CompilationUnit* cUnit); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 151 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 152 | extern void FreeCallTemps(CompilationUnit* cUnit); |
buzbee | 0d966cf | 2011-09-08 17:34:58 -0700 | [diff] [blame] | 153 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 154 | extern void FlushAllRegs(CompilationUnit* cUnit); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 155 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 156 | extern RegLocation GetReturnWideAlt(CompilationUnit* cUnit); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 157 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 158 | extern RegLocation GetReturn(CompilationUnit* cUnit, bool isFloat); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 159 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 160 | extern RegLocation GetReturnAlt(CompilationUnit* cUnit); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 161 | |
| 162 | /* Clobber any temp associated with an sReg. Could be in either class */ |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 163 | extern void ClobberSReg(CompilationUnit* cUnit, int sReg); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 164 | |
| 165 | /* Return a temp if one is available, -1 otherwise */ |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 166 | extern int AllocFreeTemp(CompilationUnit* cUnit); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 167 | |
| 168 | /* Attempt to allocate a callee-save register */ |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 169 | extern int AllocPreservedCoreReg(CompilationUnit* cUnit, int sreg); |
| 170 | extern int AllocPreservedFPReg(CompilationUnit* cUnit, int sReg, |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 171 | bool doubleStart); |
| 172 | |
| 173 | /* |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 174 | * Similar to AllocTemp(), but forces the allocation of a specific |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 175 | * register. No check is made to see if the register was previously |
| 176 | * allocated. Use with caution. |
| 177 | */ |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 178 | extern void LockTemp(CompilationUnit* cUnit, int reg); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 179 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 180 | extern RegLocation WideToNarrow(CompilationUnit* cUnit, RegLocation rl); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 181 | |
| 182 | /* |
| 183 | * Free all allocated temps in the temp pools. Note that this does |
| 184 | * not affect the "liveness" of a temp register, which will stay |
| 185 | * live until it is either explicitly killed or reallocated. |
| 186 | */ |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 187 | extern void ResetRegPool(CompilationUnit* cUnit); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 188 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 189 | extern void ClobberAllRegs(CompilationUnit* cUnit); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 190 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 191 | extern void FlushRegWide(CompilationUnit* cUnit, int reg1, int reg2); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 192 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 193 | extern void FlushReg(CompilationUnit* cUnit, int reg); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 194 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 195 | extern void DoPromotion(CompilationUnit* cUnit); |
| 196 | extern int VRegOffset(CompilationUnit* cUnit, int reg); |
| 197 | extern int SRegOffset(CompilationUnit* cUnit, int reg); |
| 198 | extern void CountRefs(CompilationUnit*, BasicBlock*, RefCounts*, RefCounts*); |
| 199 | extern int SortCounts(const void *val1, const void *val2); |
| 200 | extern void DumpCounts(const RefCounts* arr, int size, const char* msg); |
| 201 | extern void RecordCorePromotion(CompilationUnit* cUnit, int reg, int sReg); |
| 202 | extern void RecordFpPromotion(CompilationUnit* cUnit, int reg, int sReg); |
buzbee | ca7a5e4 | 2012-08-20 11:12:18 -0700 | [diff] [blame] | 203 | |
buzbee | e3acd07 | 2012-02-25 17:03:10 -0800 | [diff] [blame] | 204 | |
buzbee | b046e16 | 2012-10-30 15:48:42 -0700 | [diff] [blame] | 205 | /* Architecture-dependent register allocation routines. */ |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 206 | extern int AllocTypedTempPair(CompilationUnit* cUnit, |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 207 | bool fpHint, int regClass); |
| 208 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 209 | extern int AllocTypedTemp(CompilationUnit* cUnit, bool fpHint, int regClass); |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 210 | |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 211 | extern void DumpCoreRegPool(CompilationUnit* cUint); |
buzbee | 6181f79 | 2011-09-29 11:14:04 -0700 | [diff] [blame] | 212 | extern void oatDumpFPRegPool(CompilationUnit* cUint); |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 213 | extern bool CheckCorePoolSanity(CompilationUnit* cUnit); |
| 214 | extern RegisterInfo* GetRegInfo(CompilationUnit* cUnit, int reg); |
| 215 | extern void NopLIR(LIR* lir); |
buzbee | e3acd07 | 2012-02-25 17:03:10 -0800 | [diff] [blame] | 216 | extern bool oatIsFPReg(int reg); |
| 217 | extern uint32_t oatFPRegMask(void); |
buzbee | 52a77fc | 2012-11-20 19:50:46 -0800 | [diff] [blame^] | 218 | extern void AdjustSpillMask(CompilationUnit* cUnit); |
| 219 | void MarkPreservedSingle(CompilationUnit* cUnit, int vReg, int reg); |
| 220 | int ComputeFrameSize(CompilationUnit* cUnit); |
Elliott Hughes | 11d1b0c | 2012-01-23 16:57:47 -0800 | [diff] [blame] | 221 | |
| 222 | } // namespace art |
| 223 | |
buzbee | eaf09bc | 2012-11-15 14:51:41 -0800 | [diff] [blame] | 224 | #endif // ART_SRC_COMPILER_CODEGEN_RALLOCUTIL_H_ |