diff options
author | Tim Northover <tnorthover@apple.com> | 2016-07-22 20:03:43 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2016-07-22 20:03:43 +0000 |
commit | 33b07d6725ab32e20ebeb62707be21c35a66390c (patch) | |
tree | 3347fbfe37618df37e8da560e0e29c65fda6d3c1 /llvm/lib/Target/AArch64/AArch64Subtarget.cpp | |
parent | e4a4f33daf7f05a058d7d72e5a3019f1194b597b (diff) | |
download | bcm5719-llvm-33b07d6725ab32e20ebeb62707be21c35a66390c.tar.gz bcm5719-llvm-33b07d6725ab32e20ebeb62707be21c35a66390c.zip |
GlobalISel: implement legalization pass, with just one transformation.
This adds the actual MachineLegalizeHelper to do the work and a trivial pass
wrapper that legalizes all instructions in a MachineFunction. Currently the
only transformation supported is splitting up a vector G_ADD into one acting on
smaller vectors.
llvm-svn: 276461
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64Subtarget.cpp')
-rw-r--r-- | llvm/lib/Target/AArch64/AArch64Subtarget.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64Subtarget.cpp b/llvm/lib/Target/AArch64/AArch64Subtarget.cpp index 7dd8ccbe6c2..9ec3b164243 100644 --- a/llvm/lib/Target/AArch64/AArch64Subtarget.cpp +++ b/llvm/lib/Target/AArch64/AArch64Subtarget.cpp @@ -98,6 +98,11 @@ const CallLowering *AArch64Subtarget::getCallLowering() const { return GISel->getCallLowering(); } +const MachineLegalizer *AArch64Subtarget::getMachineLegalizer() const { + assert(GISel && "Access to GlobalISel APIs not set"); + return GISel->getMachineLegalizer(); +} + const RegisterBankInfo *AArch64Subtarget::getRegBankInfo() const { assert(GISel && "Access to GlobalISel APIs not set"); return GISel->getRegBankInfo(); |