From e88dfbf138bc204b1ce21911f1c34098ea74af7c Mon Sep 17 00:00:00 2001 From: buzbee Date: Mon, 5 Mar 2012 11:19:57 -0800 Subject: x86 codegen source file skeletons Add source files for x86 code generation. These are basically just the MIPS versions with all bodies ifdef'd out and replaced with UNIMPLEMENTED(WARNING). There is also one real change in this CL related to the way the assembler computes instruction size. We now set the initial instruction size into the LIR during flag generation. For x86, this size may be changed during assembly when we detect the ability to substitute a general instruction for an equivalent one with a shorter encoding. NOTE: the new files are not yet ready for compilation. That will be the next CL. Change-Id: Id94fbeeb7c3e36ba4a8d93c3807351ea20c74133 --- src/compiler/codegen/CompilerCodegen.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compiler/codegen/CompilerCodegen.h') diff --git a/src/compiler/codegen/CompilerCodegen.h b/src/compiler/codegen/CompilerCodegen.h index fdcb55557a..1b54be9ce8 100644 --- a/src/compiler/codegen/CompilerCodegen.h +++ b/src/compiler/codegen/CompilerCodegen.h @@ -24,6 +24,8 @@ namespace art { LIR* rawLIR(CompilationUnit* cUnit, int dalvikOffset, int opcode, int op0 = 0, int op1 = 0, int op2 = 0, int op3 = 0, LIR* target = NULL); +int oatGetInsnSize(LIR* lir); + /* Lower middle-level IR to low-level IR for the whole method */ void oatMethodMIR2LIR(CompilationUnit* cUnit); -- cgit v1.2.3-59-g8ed1b