summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/Ralloc.h
diff options
context:
space:
mode:
author Bill Buzbee <buzbee@google.com> 2012-05-03 15:00:40 -0700
committer Bill Buzbee <buzbee@google.com> 2012-05-03 18:57:47 -0700
commita114add0300b95eeaae7465493f39144e07324e8 (patch)
tree19b119195c00bd4688bb085eadbe142851f75e0e /src/compiler/codegen/Ralloc.h
parent1ecce9487a1b3aac6b656f5704cf86a961ab0481 (diff)
[Compiler] use Art indentation standard
First of several CLs to bring code closer to alignment with Art and LLVM standards. Move to 2-space indenting. Sticking with 80-col line length (which LLVM apparently also wants). LLVM also prefers camel case names, so keeping Dalvik convention there as well (for now). Change-Id: I351ab234e640678d97747377cccdd6df0a770f4a
Diffstat (limited to 'src/compiler/codegen/Ralloc.h')
-rw-r--r--src/compiler/codegen/Ralloc.h43
1 files changed, 18 insertions, 25 deletions
diff --git a/src/compiler/codegen/Ralloc.h b/src/compiler/codegen/Ralloc.h
index 671dffed2f..c0b60689a0 100644
--- a/src/compiler/codegen/Ralloc.h
+++ b/src/compiler/codegen/Ralloc.h
@@ -29,9 +29,9 @@ namespace art {
/* Static register use counts */
struct RefCounts {
- int count;
- int sReg;
- bool doubleStart; // Starting vReg for a double
+ int count;
+ int sReg;
+ bool doubleStart; // Starting vReg for a double
};
@@ -46,36 +46,32 @@ struct RefCounts {
*/
inline int oatSRegHi(int lowSreg) {
- return (lowSreg == INVALID_SREG) ? INVALID_SREG : lowSreg + 1;
+ return (lowSreg == INVALID_SREG) ? INVALID_SREG : lowSreg + 1;
}
inline bool oatLiveOut(CompilationUnit* cUnit, int sReg)
{
- //For now.
- return true;
+ //For now.
+ return true;
}
inline int oatSSASrc(MIR* mir, int num)
{
- DCHECK_GT(mir->ssaRep->numUses, num);
- return mir->ssaRep->uses[num];
+ DCHECK_GT(mir->ssaRep->numUses, num);
+ return mir->ssaRep->uses[num];
}
extern RegLocation oatEvalLoc(CompilationUnit* cUnit, RegLocation loc,
- int regClass, bool update);
+ int regClass, bool update);
/* Mark a temp register as dead. Does not affect allocation state. */
extern void oatClobber(CompilationUnit* cUnit, int reg);
-
-extern RegLocation oatUpdateLoc(CompilationUnit* cUnit,
- RegLocation loc);
+extern RegLocation oatUpdateLoc(CompilationUnit* cUnit, RegLocation loc);
/* see comments for updateLoc */
-extern RegLocation oatUpdateLocWide(CompilationUnit* cUnit,
- RegLocation loc);
+extern RegLocation oatUpdateLocWide(CompilationUnit* cUnit, RegLocation loc);
-extern RegLocation oatUpdateRawLoc(CompilationUnit* cUnit,
- RegLocation loc);
+extern RegLocation oatUpdateRawLoc(CompilationUnit* cUnit, RegLocation loc);
extern void oatMarkLive(CompilationUnit* cUnit, int reg, int sReg);
@@ -85,8 +81,7 @@ extern void oatUnmarkTemp(CompilationUnit* cUnit, int reg);
extern void oatMarkDirty(CompilationUnit* cUnit, RegLocation loc);
-extern void oatMarkPair(CompilationUnit* cUnit, int lowReg,
- int highReg);
+extern void oatMarkPair(CompilationUnit* cUnit, int lowReg, int highReg);
extern void oatMarkClean(CompilationUnit* cUnit, RegLocation loc);
@@ -102,15 +97,15 @@ extern void oatInitPool(RegisterInfo* regs, int* regNums, int num);
* on entry start points to the LIR prior to the beginning of the
* sequence.
*/
-extern void oatMarkDef(CompilationUnit* cUnit, RegLocation rl,
- LIR* start, LIR* finish);
+extern void oatMarkDef(CompilationUnit* cUnit, RegLocation rl, LIR* start,
+ LIR* finish);
/*
* Mark the beginning and end LIR of a def sequence. Note that
* on entry start points to the LIR prior to the beginning of the
* sequence.
*/
extern void oatMarkDefWide(CompilationUnit* cUnit, RegLocation rl,
- LIR* start, LIR* finish);
+ LIR* start, LIR* finish);
extern RegLocation oatGetSrcWide(CompilationUnit* cUnit, MIR* mir,
int low, int high);
@@ -183,8 +178,7 @@ extern int oatAllocPreservedFPReg(CompilationUnit* cUnit, int sReg,
*/
extern void oatLockTemp(CompilationUnit* cUnit, int reg);
-extern RegLocation oatWideToNarrow(CompilationUnit* cUnit,
- RegLocation rl);
+extern RegLocation oatWideToNarrow(CompilationUnit* cUnit, RegLocation rl);
/*
* Free all allocated temps in the temp pools. Note that this does
@@ -213,8 +207,7 @@ extern void oatDumpCounts(const RefCounts* arr, int size, const char* msg);
extern int oatAllocTypedTempPair(CompilationUnit* cUnit,
bool fpHint, int regClass);
-extern int oatAllocTypedTemp(CompilationUnit* cUnit, bool fpHint,
- int regClass);
+extern int oatAllocTypedTemp(CompilationUnit* cUnit, bool fpHint, int regClass);
extern void oatRegCopyWide(CompilationUnit* cUnit, int destLo,
int destHi, int srcLo, int srcHi);