summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2013-12-03 11:23:11 +0000
committerJames Molloy <james.molloy@arm.com>2013-12-03 11:23:11 +0000
commit616c94ba87b9f3ce4e4c2cd01474294438b676b7 (patch)
treef39cd398b1c7ac8b35db8f241241b2fff122d4cc /lib
parent90a34679ef394ce076d674d46283e3bc7cfa421f (diff)
downloadllvm-616c94ba87b9f3ce4e4c2cd01474294438b676b7.tar.gz
llvm-616c94ba87b9f3ce4e4c2cd01474294438b676b7.tar.bz2
llvm-616c94ba87b9f3ce4e4c2cd01474294438b676b7.tar.xz
Addrspacecasts are no-ops on ARM.
Testcase added. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196269 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/ARMISelLowering.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.h b/lib/Target/ARM/ARMISelLowering.h
index f17b8df0c9..bcd6059308 100644
--- a/lib/Target/ARM/ARMISelLowering.h
+++ b/lib/Target/ARM/ARMISelLowering.h
@@ -361,6 +361,12 @@ namespace llvm {
/// be used for loads / stores from the global.
virtual unsigned getMaximalGlobalOffset() const;
+ /// Returns true if a cast between SrcAS and DestAS is a noop.
+ virtual bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const {
+ // Addrspacecasts are always noops.
+ return true;
+ }
+
/// createFastISel - This method returns a target specific FastISel object,
/// or null if the target does not support "fast" ISel.
virtual FastISel *createFastISel(FunctionLoweringInfo &funcInfo,