From: Chad Rosier Date: Thu, 12 Jan 2017 16:15:10 +0000 (+0000) Subject: TTI: Add comment clarifying the meaning of MemIntrinsicInfo::PtrVal. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4afed5d5d29e224123316b34ac85d4c6972d44c6;p=llvm TTI: Add comment clarifying the meaning of MemIntrinsicInfo::PtrVal. 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 --- diff --git a/include/llvm/Analysis/TargetTransformInfo.h b/include/llvm/Analysis/TargetTransformInfo.h index b63e8a22ce2..209f05c279d 100644 --- a/include/llvm/Analysis/TargetTransformInfo.h +++ b/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; };