summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/Ralloc.h
diff options
context:
space:
mode:
author buzbee <buzbee@google.com> 2011-10-07 14:02:25 -0700
committer buzbee <buzbee@google.com> 2011-10-07 14:16:01 -0700
commit6825326abfef92d4e1bf6afddef1a319aa18d08c (patch)
tree1706bf3e0bbdb9f7a704140f70011c1b362fa294 /src/compiler/codegen/Ralloc.h
parenta43cb5e8fb29989dbb986b9b91a68cda150aa3c8 (diff)
Reg utility fix
Long ago in a galaxy far away, there was a trace compiler that handled short code fragments with a small, sparse and variable set of temp registers. In that situation, doing linear reg lookups wasn't terrible. In the new world that has a fixed and packed set of registers, a linear search is unnecessary, foolish and wasteful. [P.S. perf showed that roughly 25% of all compilation time was spent doing register manipulation!] Change-Id: I6f23d9f70367fb4139cc28a27fd9fdf8beffa270
Diffstat (limited to 'src/compiler/codegen/Ralloc.h')
-rw-r--r--src/compiler/codegen/Ralloc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/codegen/Ralloc.h b/src/compiler/codegen/Ralloc.h
index e87da884df..e343ec5682 100644
--- a/src/compiler/codegen/Ralloc.h
+++ b/src/compiler/codegen/Ralloc.h
@@ -235,4 +235,5 @@ extern int oatVRegOffset(CompilationUnit* cUnit, int reg);
extern void oatDumpCoreRegPool(CompilationUnit* cUint);
extern void oatDumpFPRegPool(CompilationUnit* cUint);
extern bool oatCheckCorePoolSanity(CompilationUnit* cUnit);
+extern RegisterInfo* oatGetRegInfo(CompilationUnit* cUnit, int reg);
#endif // ART_SRC_COMPILER_RALLOC_H_