summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/AArch64Subtarget.cpp
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2016-07-27 14:31:55 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2016-07-27 14:31:55 +0000
commit6756a2c95335fba8bece4402e62f5057a20f3b4c (patch)
tree709ff96a5dff1a43cd8648f7001709782eb47020 /llvm/lib/Target/AArch64/AArch64Subtarget.cpp
parent5e402eec7bc306343cfba703fd4d4acc981b4ead (diff)
downloadbcm5719-llvm-6756a2c95335fba8bece4402e62f5057a20f3b4c.tar.gz
bcm5719-llvm-6756a2c95335fba8bece4402e62f5057a20f3b4c.zip
[GlobalISel] Introduce an instruction selector.
And implement it for AArch64, supporting x/w ADD/OR. Differential Revision: https://reviews.llvm.org/D22373 llvm-svn: 276875
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64Subtarget.cpp')
-rw-r--r--llvm/lib/Target/AArch64/AArch64Subtarget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64Subtarget.cpp b/llvm/lib/Target/AArch64/AArch64Subtarget.cpp
index 9ec3b164243..d257e81a952 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 InstructionSelector *AArch64Subtarget::getInstructionSelector() const {
+ assert(GISel && "Access to GlobalISel APIs not set");
+ return GISel->getInstructionSelector();
+}
+
const MachineLegalizer *AArch64Subtarget::getMachineLegalizer() const {
assert(GISel && "Access to GlobalISel APIs not set");
return GISel->getMachineLegalizer();
OpenPOWER on IntegriCloud