summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-09-15 09:20:34 +0000
committerTim Northover <tnorthover@apple.com>2016-09-15 09:20:34 +0000
commit5ae8350af67a26c694da82342e71036470084c21 (patch)
tree4a53c9b18b5f48c551d15fa6f0dbb9070cf4ba79 /llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp
parent97a3c35443da90a80d7aead1252a9492e5dea57a (diff)
downloadbcm5719-llvm-5ae8350af67a26c694da82342e71036470084c21.tar.gz
bcm5719-llvm-5ae8350af67a26c694da82342e71036470084c21.zip
GlobalISel: cache pointer sizes in LLT
Otherwise everything that needs to work out what size they are has to keep a DataLayout handy, which is a bit silly and very annoying. llvm-svn: 281597
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp')
-rw-r--r--llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp b/llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp
index a3b52ffad36..13a2018ac58 100644
--- a/llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp
+++ b/llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp
@@ -26,7 +26,7 @@ using namespace llvm;
AArch64MachineLegalizer::AArch64MachineLegalizer() {
using namespace TargetOpcode;
- const LLT p0 = LLT::pointer(0);
+ const LLT p0 = LLT::pointer(0, 64);
const LLT s1 = LLT::scalar(1);
const LLT s8 = LLT::scalar(8);
const LLT s16 = LLT::scalar(16);
OpenPOWER on IntegriCloud