Continuing Quick compiler refactoring
With this CL, we no longer include any .cc files - all source
files compile stand-alone. We still build a separate .so for
each target, but all code in the target-independent "codegen"
directory is now truly independent and doesn't rely on any
target-specific macros to compile.
Header file inclusion is still a bit of a mess, but that will be
addressed in a subsequent CL.
Next up: create a codegen class to hold code generator routines
overrideable by target.
Change-Id: I3a93118d11afeab11f310950a6a73381a99e26e1
diff --git a/build/Android.libart-compiler-llvm.mk b/build/Android.libart-compiler-llvm.mk
index a36962d..b278310 100644
--- a/build/Android.libart-compiler-llvm.mk
+++ b/build/Android.libart-compiler-llvm.mk
@@ -37,25 +37,35 @@
ifeq ($(ART_USE_PORTABLE_COMPILER),true)
LIBART_COMPILER_LLVM_SRC_FILES += \
- src/compiler/dataflow.cc \
- src/compiler/frontend.cc \
- src/compiler/intermediate_rep.cc \
- src/compiler/ralloc.cc \
- src/compiler/ssa_transformation.cc \
- src/compiler/compiler_utility.cc \
- src/compiler/codegen/ralloc_util.cc \
- src/compiler/codegen/arm/target_arm.cc \
- src/compiler/codegen/arm/assemble_arm.cc \
- src/compiler/codegen/arm/backend_arm.cc \
- src/compiler_llvm/dalvik_reg.cc \
- src/compiler_llvm/gbc_expander.cc \
- src/compiler_llvm/method_compiler.cc \
- src/greenland/intrinsic_helper.cc \
- src/greenland/ir_builder.cc
+ src/compiler/dataflow.cc \
+ src/compiler/frontend.cc \
+ src/compiler/intermediate_rep.cc \
+ src/compiler/ralloc.cc \
+ src/compiler/ssa_transformation.cc \
+ src/compiler/compiler_utility.cc \
+ src/compiler/codegen/ralloc_util.cc \
+ src/compiler/codegen/codegen_util.cc \
+ src/compiler/codegen/gen_loadstore.cc \
+ src/compiler/codegen/gen_common.cc \
+ src/compiler/codegen/gen_invoke.cc \
+ src/compiler/codegen/method_bitcode.cc \
+ src/compiler/codegen/method_codegen_driver.cc \
+ src/compiler/codegen/local_optimizations.cc \
+ src/compiler/codegen/arm/target_arm.cc \
+ src/compiler/codegen/arm/assemble_arm.cc \
+ src/compiler/codegen/arm/utility_arm.cc \
+ src/compiler/codegen/arm/call_arm.cc \
+ src/compiler/codegen/arm/fp_arm.cc \
+ src/compiler/codegen/arm/int_arm.cc \
+ src/compiler_llvm/dalvik_reg.cc \
+ src/compiler_llvm/gbc_expander.cc \
+ src/compiler_llvm/method_compiler.cc \
+ src/greenland/intrinsic_helper.cc \
+ src/greenland/ir_builder.cc
else
LIBART_COMPILER_LLVM_SRC_FILES += \
- src/compiler_llvm/dalvik_reg.cc \
- src/compiler_llvm/method_compiler.cc
+ src/compiler_llvm/dalvik_reg.cc \
+ src/compiler_llvm/method_compiler.cc
endif
# $(1): target or host