소스 검색

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
Chad Rosier 8 년 전
부모
커밋
4afed5d5d2
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      include/llvm/Analysis/TargetTransformInfo.h

+ 5 - 0
include/llvm/Analysis/TargetTransformInfo.h

@@ -55,6 +55,11 @@ struct MemIntrinsicInfo {
   // Same Id is set by the target for corresponding load/store intrinsics.
   // Same Id is set by the target for corresponding load/store intrinsics.
   unsigned short MatchingId;
   unsigned short MatchingId;
   int NumMemRefs;
   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;
   Value *PtrVal;
 };
 };