Make CodeGen TBAA-aware.
[oota-llvm.git] / include / llvm / CodeGen / SelectionDAGNodes.h
index af4c2d1c58277bd71a59f5ea2d3b483c43c5d6b5..1f34e68188f3fb6a68870f3cca3c645cfaeceb82 100644 (file)
@@ -902,6 +902,9 @@ public:
   const Value *getSrcValue() const { return MMO->getValue(); }
   int64_t getSrcValueOffset() const { return MMO->getOffset(); }
 
+  /// Returns the TBAAInfo that describes the dereference.
+  const MDNode *getTBAAInfo() const { return MMO->getTBAAInfo(); }
+
   /// getMemoryVT - Return the type of the in-memory value.
   EVT getMemoryVT() const { return MemoryVT; }