summaryrefslogtreecommitdiff
path: root/lib/Target/AArch64/AArch64Subtarget.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-06-10 17:44:12 +0000
committerEric Christopher <echristo@gmail.com>2014-06-10 17:44:12 +0000
commitc4f93703913ee803d65825153c0cc77c575cc296 (patch)
tree087e7902d6a3b0ec6e35fa229c2280606a5b0bc3 /lib/Target/AArch64/AArch64Subtarget.h
parent8128a7965f2d24554a4c76db579b2625f9be135b (diff)
downloadllvm-c4f93703913ee803d65825153c0cc77c575cc296.tar.gz
llvm-c4f93703913ee803d65825153c0cc77c575cc296.tar.bz2
llvm-c4f93703913ee803d65825153c0cc77c575cc296.tar.xz
Move AArch64FrameLowering into the subtarget.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210549 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/AArch64/AArch64Subtarget.h')
-rw-r--r--lib/Target/AArch64/AArch64Subtarget.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Target/AArch64/AArch64Subtarget.h b/lib/Target/AArch64/AArch64Subtarget.h
index 590ea0580e..771bc7b3e7 100644
--- a/lib/Target/AArch64/AArch64Subtarget.h
+++ b/lib/Target/AArch64/AArch64Subtarget.h
@@ -14,8 +14,9 @@
#ifndef AArch64SUBTARGET_H
#define AArch64SUBTARGET_H
-#include "llvm/Target/TargetSubtargetInfo.h"
+#include "AArch64FrameLowering.h"
#include "AArch64RegisterInfo.h"
+#include "llvm/Target/TargetSubtargetInfo.h"
#include <string>
#define GET_SUBTARGETINFO_HEADER
@@ -52,12 +53,18 @@ protected:
/// IsLittleEndian - Is the target little endian?
bool IsLittleEndian;
+ AArch64FrameLowering FrameLowering;
+
public:
/// This constructor initializes the data members to match that
/// of the specified triple.
AArch64Subtarget(const std::string &TT, const std::string &CPU,
const std::string &FS, bool LittleEndian);
+ const AArch64FrameLowering *getFrameLowering() const {
+ return &FrameLowering;
+ }
+
bool enableMachineScheduler() const override { return true; }
bool hasZeroCycleRegMove() const { return HasZeroCycleRegMove; }