Add addrspacecast instruction.
[oota-llvm.git] / include / llvm / Target / TargetLowering.h
index 5d6d1d2b0322197ce68e48f2adbb2eae64b24400..2649d26cb7d898348ef9bd944c6ef83e92014d73 100644 (file)
@@ -827,6 +827,11 @@ public:
     return 0;
   }
 
+  /// Returns true if a cast between SrcAS and DestAS is a noop.
+  virtual bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const {
+    return false;
+  }
+
   //===--------------------------------------------------------------------===//
   /// \name Helpers for TargetTransformInfo implementations
   /// @{