From 8a00aeeed18def14c3422bd23229ae68514d05ab Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Thu, 12 Jan 2017 16:15:10 +0000 Subject: [PATCH] TTI: Add comment clarifying the meaning of MemIntrinsicInfo::PtrVal. Patch by Tom Stellard. Differential Revision: https://reviews.llvm.org/D27563 llvm-svn: 291772 --- llvm/include/llvm/Analysis/TargetTransformInfo.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/include/llvm/Analysis/TargetTransformInfo.h b/llvm/include/llvm/Analysis/TargetTransformInfo.h index b63e8a22ce23..209f05c279d0 100644 --- a/llvm/include/llvm/Analysis/TargetTransformInfo.h +++ b/llvm/include/llvm/Analysis/TargetTransformInfo.h @@ -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; };