[llvm] r291772 - TTI: Add comment clarifying the meaning of MemIntrinsicInfo::PtrVal.

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 12 08:15:10 PST 2017


Author: mcrosier
Date: Thu Jan 12 10:15:10 2017
New Revision: 291772

URL: http://llvm.org/viewvc/llvm-project?rev=291772&view=rev
Log:
TTI: Add comment clarifying the meaning of MemIntrinsicInfo::PtrVal.

Patch by Tom Stellard.
Differential Revision: https://reviews.llvm.org/D27563

Modified:
    llvm/trunk/include/llvm/Analysis/TargetTransformInfo.h

Modified: llvm/trunk/include/llvm/Analysis/TargetTransformInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/TargetTransformInfo.h?rev=291772&r1=291771&r2=291772&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/TargetTransformInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/TargetTransformInfo.h Thu Jan 12 10:15:10 2017
@@ -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;
 };
 




More information about the llvm-commits mailing list