diff options
author | Nikita Popov <npopov@redhat.com> | 2022-11-01 16:23:26 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-11-02 10:21:10 +0100 |
commit | 41dba9e6a3096d54de6005ef4e648af1ff02b90c (patch) | |
tree | 02cd189caaf491efe9b13abfbe11651159c86899 /llvm/lib/Analysis/AliasAnalysis.cpp | |
parent | 4b428364e2d2a38455ed7f1fd9d3881d493edf89 (diff) | |
download | llvm-41dba9e6a3096d54de6005ef4e648af1ff02b90c.zip llvm-41dba9e6a3096d54de6005ef4e648af1ff02b90c.tar.gz llvm-41dba9e6a3096d54de6005ef4e648af1ff02b90c.tar.bz2 |
[AA] Remove some overloads (NFC)
Having all these instruction-specific overloads does not seem to
provide any compile-time benefit, so drop them in favor of the
generic methods accepting "const Instruction *". Only leave behind
the per-instruction AAQI overloads, which are part of the internal
implementation.
Diffstat (limited to 'llvm/lib/Analysis/AliasAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/AliasAnalysis.cpp | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/llvm/lib/Analysis/AliasAnalysis.cpp b/llvm/lib/Analysis/AliasAnalysis.cpp index fd3ded0..4f27aca 100644 --- a/llvm/lib/Analysis/AliasAnalysis.cpp +++ b/llvm/lib/Analysis/AliasAnalysis.cpp @@ -210,12 +210,6 @@ ModRefInfo AAResults::getModRefInfo(const Instruction *I, const CallBase *Call2, } ModRefInfo AAResults::getModRefInfo(const CallBase *Call, - const MemoryLocation &Loc) { - SimpleAAQueryInfo AAQIP(*this); - return getModRefInfo(Call, Loc, AAQIP); -} - -ModRefInfo AAResults::getModRefInfo(const CallBase *Call, const MemoryLocation &Loc, AAQueryInfo &AAQI) { ModRefInfo Result = ModRefInfo::ModRef; @@ -270,12 +264,6 @@ ModRefInfo AAResults::getModRefInfo(const CallBase *Call, } ModRefInfo AAResults::getModRefInfo(const CallBase *Call1, - const CallBase *Call2) { - SimpleAAQueryInfo AAQIP(*this); - return getModRefInfo(Call1, Call2, AAQIP); -} - -ModRefInfo AAResults::getModRefInfo(const CallBase *Call1, const CallBase *Call2, AAQueryInfo &AAQI) { ModRefInfo Result = ModRefInfo::ModRef; @@ -477,11 +465,6 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, MemoryEffects ME) { //===----------------------------------------------------------------------===// ModRefInfo AAResults::getModRefInfo(const LoadInst *L, - const MemoryLocation &Loc) { - SimpleAAQueryInfo AAQIP(*this); - return getModRefInfo(L, Loc, AAQIP); -} -ModRefInfo AAResults::getModRefInfo(const LoadInst *L, const MemoryLocation &Loc, AAQueryInfo &AAQI) { // Be conservative in the face of atomic. @@ -500,11 +483,6 @@ ModRefInfo AAResults::getModRefInfo(const LoadInst *L, } ModRefInfo AAResults::getModRefInfo(const StoreInst *S, - const MemoryLocation &Loc) { - SimpleAAQueryInfo AAQIP(*this); - return getModRefInfo(S, Loc, AAQIP); -} -ModRefInfo AAResults::getModRefInfo(const StoreInst *S, const MemoryLocation &Loc, AAQueryInfo &AAQI) { // Be conservative in the face of atomic. @@ -531,12 +509,6 @@ ModRefInfo AAResults::getModRefInfo(const StoreInst *S, } ModRefInfo AAResults::getModRefInfo(const FenceInst *S, - const MemoryLocation &Loc) { - SimpleAAQueryInfo AAQIP(*this); - return getModRefInfo(S, Loc, AAQIP); -} - -ModRefInfo AAResults::getModRefInfo(const FenceInst *S, const MemoryLocation &Loc, AAQueryInfo &AAQI) { // All we know about a fence instruction is what we get from the ModRef @@ -548,12 +520,6 @@ ModRefInfo AAResults::getModRefInfo(const FenceInst *S, } ModRefInfo AAResults::getModRefInfo(const VAArgInst *V, - const MemoryLocation &Loc) { - SimpleAAQueryInfo AAQIP(*this); - return getModRefInfo(V, Loc, AAQIP); -} - -ModRefInfo AAResults::getModRefInfo(const VAArgInst *V, const MemoryLocation &Loc, AAQueryInfo &AAQI) { if (Loc.Ptr) { @@ -573,12 +539,6 @@ ModRefInfo AAResults::getModRefInfo(const VAArgInst *V, } ModRefInfo AAResults::getModRefInfo(const CatchPadInst *CatchPad, - const MemoryLocation &Loc) { - SimpleAAQueryInfo AAQIP(*this); - return getModRefInfo(CatchPad, Loc, AAQIP); -} - -ModRefInfo AAResults::getModRefInfo(const CatchPadInst *CatchPad, const MemoryLocation &Loc, AAQueryInfo &AAQI) { if (Loc.Ptr) { @@ -592,12 +552,6 @@ ModRefInfo AAResults::getModRefInfo(const CatchPadInst *CatchPad, } ModRefInfo AAResults::getModRefInfo(const CatchReturnInst *CatchRet, - const MemoryLocation &Loc) { - SimpleAAQueryInfo AAQIP(*this); - return getModRefInfo(CatchRet, Loc, AAQIP); -} - -ModRefInfo AAResults::getModRefInfo(const CatchReturnInst *CatchRet, const MemoryLocation &Loc, AAQueryInfo &AAQI) { if (Loc.Ptr) { @@ -611,12 +565,6 @@ ModRefInfo AAResults::getModRefInfo(const CatchReturnInst *CatchRet, } ModRefInfo AAResults::getModRefInfo(const AtomicCmpXchgInst *CX, - const MemoryLocation &Loc) { - SimpleAAQueryInfo AAQIP(*this); - return getModRefInfo(CX, Loc, AAQIP); -} - -ModRefInfo AAResults::getModRefInfo(const AtomicCmpXchgInst *CX, const MemoryLocation &Loc, AAQueryInfo &AAQI) { // Acquire/Release cmpxchg has properties that matter for arbitrary addresses. @@ -635,12 +583,6 @@ ModRefInfo AAResults::getModRefInfo(const AtomicCmpXchgInst *CX, } ModRefInfo AAResults::getModRefInfo(const AtomicRMWInst *RMW, - const MemoryLocation &Loc) { - SimpleAAQueryInfo AAQIP(*this); - return getModRefInfo(RMW, Loc, AAQIP); -} - -ModRefInfo AAResults::getModRefInfo(const AtomicRMWInst *RMW, const MemoryLocation &Loc, AAQueryInfo &AAQI) { // Acquire/Release atomicrmw has properties that matter for arbitrary addresses. |