projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Migrate the AArch64 TargetRegisterInfo to its TargetMachine
[oota-llvm.git]
/
lib
/
Target
/
AArch64
/
AArch64TargetMachine.h
diff --git
a/lib/Target/AArch64/AArch64TargetMachine.h
b/lib/Target/AArch64/AArch64TargetMachine.h
index e73aa877db7d20b772c043bfe3001323e7404211..89472e48480806cb43be096ef1e94deb8bbaf33e 100644
(file)
--- a/
lib/Target/AArch64/AArch64TargetMachine.h
+++ b/
lib/Target/AArch64/AArch64TargetMachine.h
@@
-24,6
+24,7
@@
namespace llvm {
class AArch64TargetMachine : public LLVMTargetMachine {
protected:
std::unique_ptr<TargetLoweringObjectFile> TLOF;
class AArch64TargetMachine : public LLVMTargetMachine {
protected:
std::unique_ptr<TargetLoweringObjectFile> TLOF;
+ AArch64RegisterInfo RI;
AArch64Subtarget Subtarget;
mutable StringMap<std::unique_ptr<AArch64Subtarget>> SubtargetMap;
AArch64Subtarget Subtarget;
mutable StringMap<std::unique_ptr<AArch64Subtarget>> SubtargetMap;
@@
-39,6
+40,7
@@
public:
return &Subtarget;
}
const AArch64Subtarget *getSubtargetImpl(const Function &F) const override;
return &Subtarget;
}
const AArch64Subtarget *getSubtargetImpl(const Function &F) const override;
+ const AArch64RegisterInfo *getRegisterInfo() const { return &RI; }
// Pass Pipeline Configuration
TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
// Pass Pipeline Configuration
TargetPassConfig *createPassConfig(PassManagerBase &PM) override;