]> granicus.if.org Git - llvm/commitdiff
TTI: Add comment clarifying the meaning of MemIntrinsicInfo::PtrVal.
authorChad Rosier <mcrosier@codeaurora.org>
Thu, 12 Jan 2017 16:15:10 +0000 (16:15 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Thu, 12 Jan 2017 16:15:10 +0000 (16:15 +0000)
Patch by Tom Stellard.
Differential Revision: https://reviews.llvm.org/D27563

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291772 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/TargetTransformInfo.h

index b63e8a22ce232665cf8928c2e32071801e6361df..209f05c279d0354f01fd685d3dce2b407cc8e2c1 100644 (file)
@@ -55,6 +55,11 @@ struct MemIntrinsicInfo {
   // Same Id is set by the target for corresponding load/store intrinsics.
   unsigned short MatchingId;
   int NumMemRefs;
+
+  /// This is the pointer that the intrinsic is loading from or storing to.
+  /// If this is non-null, then analysis/optimization passes can assume that
+  /// this intrinsic is functionally equivalent to a load/store from this
+  /// pointer.
   Value *PtrVal;
 };