diff options
author | Calin Juravle <calin@google.com> | 2014-12-19 17:22:29 +0000 |
---|---|---|
committer | Calin Juravle <calin@google.com> | 2015-01-05 16:25:59 +0000 |
commit | 3416601a9e9be81bb7494864287fd3602d18ef13 (patch) | |
tree | dd228519bfb9733aa7627b9cea81ecb28974a1ab /compiler/optimizing/code_generator_arm.h | |
parent | 8558375377946aabbbda6ab584e13f754590bd89 (diff) | |
download | art-3416601a9e9be81bb7494864287fd3602d18ef13.tar.gz art-3416601a9e9be81bb7494864287fd3602d18ef13.tar.bz2 art-3416601a9e9be81bb7494864287fd3602d18ef13.zip |
Look at instruction set features when generating volatiles code
Change-Id: Ia882405719fdd60b63e4102af7e085f7cbe0bb2a
Diffstat (limited to 'compiler/optimizing/code_generator_arm.h')
-rw-r--r-- | compiler/optimizing/code_generator_arm.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler/optimizing/code_generator_arm.h b/compiler/optimizing/code_generator_arm.h index b86670d939..40f4edc4eb 100644 --- a/compiler/optimizing/code_generator_arm.h +++ b/compiler/optimizing/code_generator_arm.h @@ -159,7 +159,7 @@ class InstructionCodeGeneratorARM : public HGraphVisitor { class CodeGeneratorARM : public CodeGenerator { public: - explicit CodeGeneratorARM(HGraph* graph); + CodeGeneratorARM(HGraph* graph, const ArmInstructionSetFeatures* isa_features); virtual ~CodeGeneratorARM() {} void GenerateFrameEntry() OVERRIDE; @@ -233,6 +233,10 @@ class CodeGeneratorARM : public CodeGenerator { block_labels_.SetSize(GetGraph()->GetBlocks().Size()); } + const ArmInstructionSetFeatures* GetInstructionSetFeatures() const { + return isa_features_; + } + private: // Labels for each block that will be compiled. GrowableArray<Label> block_labels_; @@ -240,6 +244,7 @@ class CodeGeneratorARM : public CodeGenerator { InstructionCodeGeneratorARM instruction_visitor_; ParallelMoveResolverARM move_resolver_; Thumb2Assembler assembler_; + const ArmInstructionSetFeatures* isa_features_; DISALLOW_COPY_AND_ASSIGN(CodeGeneratorARM); }; |