diff options
author | George Burgess IV <george.burgess.iv@gmail.com> | 2018-12-22 17:42:08 +0000 |
---|---|---|
committer | George Burgess IV <george.burgess.iv@gmail.com> | 2018-12-22 17:42:08 +0000 |
commit | a2ab74837f08d5d5fe04e415d41db964bcc1b9d7 (patch) | |
tree | 16119b73d00c72485f89a27b4e78ae00b52a1966 | |
parent | 4b537aaf6deb42260a1fc11980a73bdeda853fb4 (diff) | |
download | bcm5719-llvm-a2ab74837f08d5d5fe04e415d41db964bcc1b9d7.tar.gz bcm5719-llvm-a2ab74837f08d5d5fe04e415d41db964bcc1b9d7.zip |
[Analysis] s/uint64_t/LocationSize; NFC
Let the gradual cleanup from D44748 continue. :)
llvm-svn: 350007
-rw-r--r-- | llvm/include/llvm/Analysis/AliasAnalysis.h | 7 | ||||
-rw-r--r-- | llvm/include/llvm/LinkAllPasses.h | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/llvm/include/llvm/Analysis/AliasAnalysis.h b/llvm/include/llvm/Analysis/AliasAnalysis.h index 2efcd9dafa1..96fec4db7ec 100644 --- a/llvm/include/llvm/Analysis/AliasAnalysis.h +++ b/llvm/include/llvm/Analysis/AliasAnalysis.h @@ -363,7 +363,8 @@ public: /// A convenience wrapper around the \c isMustAlias helper interface. bool isMustAlias(const Value *V1, const Value *V2) { - return alias(V1, 1, V2, 1) == MustAlias; + return alias(V1, LocationSize::precise(1), V2, LocationSize::precise(1)) == + MustAlias; } /// Checks whether the given location points to constant memory, or if @@ -568,7 +569,7 @@ public: /// getModRefInfo (for cmpxchges) - A convenience wrapper. ModRefInfo getModRefInfo(const AtomicCmpXchgInst *CX, const Value *P, - unsigned Size) { + LocationSize Size) { return getModRefInfo(CX, MemoryLocation(P, Size)); } @@ -578,7 +579,7 @@ public: /// getModRefInfo (for atomicrmws) - A convenience wrapper. ModRefInfo getModRefInfo(const AtomicRMWInst *RMW, const Value *P, - unsigned Size) { + LocationSize Size) { return getModRefInfo(RMW, MemoryLocation(P, Size)); } diff --git a/llvm/include/llvm/LinkAllPasses.h b/llvm/include/llvm/LinkAllPasses.h index a31caeea2ee..0851c2f8d26 100644 --- a/llvm/include/llvm/LinkAllPasses.h +++ b/llvm/include/llvm/LinkAllPasses.h @@ -230,7 +230,8 @@ namespace { llvm::TargetLibraryInfo TLI(TLII); llvm::AliasAnalysis AA(TLI); llvm::AliasSetTracker X(AA); - X.add(nullptr, 0, llvm::AAMDNodes()); // for -print-alias-sets + X.add(nullptr, llvm::LocationSize::unknown(), + llvm::AAMDNodes()); // for -print-alias-sets (void) llvm::AreStatisticsEnabled(); (void) llvm::sys::RunningOnValgrind(); } |