OSDN Git Service

Rename current register allocator implementation
authorMatthew Gharrity <gharrma@google.com>
Thu, 14 Jul 2016 21:08:16 +0000 (14:08 -0700)
committerMatthew Gharrity <gharrma@google.com>
Sat, 16 Jul 2016 01:09:46 +0000 (18:09 -0700)
This will allow a cleaner commit in an upcoming
refactoring of register allocation.

Test: m test-art-host

Change-Id: If420c97b088b3c934411ff83373e024003120746

compiler/Android.mk
compiler/optimizing/codegen_test.cc
compiler/optimizing/graph_visualizer.cc
compiler/optimizing/inliner.cc
compiler/optimizing/optimizing_compiler.cc
compiler/optimizing/register_allocator_linear_scan.cc [moved from compiler/optimizing/register_allocator.cc with 99% similarity]
compiler/optimizing/register_allocator_linear_scan.h [moved from compiler/optimizing/register_allocator.h with 97% similarity]
compiler/optimizing/register_allocator_test.cc

index 2666835..3ed6ec9 100644 (file)
@@ -67,7 +67,7 @@ LIBART_COMPILER_SRC_FILES := \
        optimizing/parallel_move_resolver.cc \
        optimizing/prepare_for_register_allocation.cc \
        optimizing/reference_type_propagation.cc \
-       optimizing/register_allocator.cc \
+       optimizing/register_allocator_linear_scan.cc \
        optimizing/select_generator.cc \
        optimizing/sharpening.cc \
        optimizing/side_effects_analysis.cc \
index 6be79fa..6f487c5 100644 (file)
@@ -44,7 +44,7 @@
 #include "nodes.h"
 #include "optimizing_unit_test.h"
 #include "prepare_for_register_allocation.h"
-#include "register_allocator.h"
+#include "register_allocator_linear_scan.h"
 #include "ssa_liveness_analysis.h"
 #include "utils.h"
 #include "utils/arm/managed_register_arm.h"
index e14f603..0b4c569 100644 (file)
@@ -31,7 +31,7 @@
 #include "nodes.h"
 #include "optimization.h"
 #include "reference_type_propagation.h"
-#include "register_allocator.h"
+#include "register_allocator_linear_scan.h"
 #include "ssa_liveness_analysis.h"
 #include "utils/assembler.h"
 
index 6c1292c..03e82dd 100644 (file)
@@ -35,7 +35,7 @@
 #include "nodes.h"
 #include "optimizing_compiler.h"
 #include "reference_type_propagation.h"
-#include "register_allocator.h"
+#include "register_allocator_linear_scan.h"
 #include "quick/inline_method_analyser.h"
 #include "sharpening.h"
 #include "ssa_builder.h"
index d6e09d7..80affc3 100644 (file)
@@ -81,7 +81,7 @@
 #include "oat_quick_method_header.h"
 #include "prepare_for_register_allocation.h"
 #include "reference_type_propagation.h"
-#include "register_allocator.h"
+#include "register_allocator_linear_scan.h"
 #include "select_generator.h"
 #include "sharpening.h"
 #include "side_effects_analysis.h"
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-#include "register_allocator.h"
+#include "register_allocator_linear_scan.h"
 
 #include <iostream>
 #include <sstream>
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef ART_COMPILER_OPTIMIZING_REGISTER_ALLOCATOR_H_
-#define ART_COMPILER_OPTIMIZING_REGISTER_ALLOCATOR_H_
+#ifndef ART_COMPILER_OPTIMIZING_REGISTER_ALLOCATOR_LINEAR_SCAN_H_
+#define ART_COMPILER_OPTIMIZING_REGISTER_ALLOCATOR_LINEAR_SCAN_H_
 
 #include "arch/instruction_set.h"
 #include "base/arena_containers.h"
@@ -243,4 +243,4 @@ class RegisterAllocator {
 
 }  // namespace art
 
-#endif  // ART_COMPILER_OPTIMIZING_REGISTER_ALLOCATOR_H_
+#endif  // ART_COMPILER_OPTIMIZING_REGISTER_ALLOCATOR_LINEAR_SCAN_H_
index a9de7c3..602a14c 100644 (file)
@@ -24,7 +24,7 @@
 #include "driver/compiler_options.h"
 #include "nodes.h"
 #include "optimizing_unit_test.h"
-#include "register_allocator.h"
+#include "register_allocator_linear_scan.h"
 #include "ssa_liveness_analysis.h"
 #include "ssa_phi_elimination.h"