Skip to content

Commit

Permalink
AArch64: Enable Live Registers
Browse files Browse the repository at this point in the history
This commit enables Live Registers for aarch64 code generator.

Signed-off-by: Akira Saitoh <saiaki@jp.ibm.com>
  • Loading branch information
Akira Saitoh committed Sep 7, 2020
1 parent c7312b8 commit f6b166d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler/aarch64/codegen/OMRCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "codegen/GenerateInstructions.hpp"
#include "codegen/Linkage.hpp"
#include "codegen/Linkage_inlines.hpp"
#include "codegen/LiveRegister.hpp"
#include "codegen/RegisterConstants.hpp"
#include "codegen/RegisterIterator.hpp"
#include "codegen/TreeEvaluator.hpp"
Expand Down Expand Up @@ -71,6 +72,11 @@ OMR::ARM64::CodeGenerator::CodeGenerator() :
self()->setSupportsGlRegDeps();
self()->setSupportsGlRegDepOnFirstBlock();

self()->addSupportedLiveRegisterKind(TR_GPR);
self()->addSupportedLiveRegisterKind(TR_FPR);
self()->setLiveRegisters(new (self()->trHeapMemory()) TR_LiveRegisters(self()->comp()), TR_GPR);
self()->setLiveRegisters(new (self()->trHeapMemory()) TR_LiveRegisters(self()->comp()), TR_FPR);

self()->setSupportsVirtualGuardNOPing();

self()->setSupportsRecompilation();
Expand Down

0 comments on commit f6b166d

Please sign in to comment.