[llvm] 4514324 - [AA] Add missing const qualifier (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 1 08:17:26 PDT 2022
Author: Nikita Popov
Date: 2022-11-01T16:17:18+01:00
New Revision: 45143240b2556032e65b0e855ab4b7864334d96c
URL: https://github.com/llvm/llvm-project/commit/45143240b2556032e65b0e855ab4b7864334d96c
DIFF: https://github.com/llvm/llvm-project/commit/45143240b2556032e65b0e855ab4b7864334d96c.diff
LOG: [AA] Add missing const qualifier (NFC)
Added:
Modified:
llvm/include/llvm/Analysis/AliasAnalysis.h
llvm/lib/Analysis/AliasAnalysis.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/AliasAnalysis.h b/llvm/include/llvm/Analysis/AliasAnalysis.h
index 366e6fe626c83..4960560c06bb1 100644
--- a/llvm/include/llvm/Analysis/AliasAnalysis.h
+++ b/llvm/include/llvm/Analysis/AliasAnalysis.h
@@ -574,7 +574,7 @@ class AAResults {
/// Return information about whether a call and an instruction may refer to
/// the same memory locations.
- ModRefInfo getModRefInfo(Instruction *I, const CallBase *Call);
+ ModRefInfo getModRefInfo(const Instruction *I, const CallBase *Call);
/// Return information about whether two call sites may refer to the same set
/// of memory locations. See the AA documentation for details:
@@ -634,7 +634,7 @@ class AAResults {
bool OrLocal = false);
ModRefInfo getModRefInfoMask(const MemoryLocation &Loc, AAQueryInfo &AAQI,
bool IgnoreLocals = false);
- ModRefInfo getModRefInfo(Instruction *I, const CallBase *Call2,
+ ModRefInfo getModRefInfo(const Instruction *I, const CallBase *Call2,
AAQueryInfo &AAQIP);
ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc,
AAQueryInfo &AAQI);
@@ -715,7 +715,7 @@ class BatchAAResults {
const Optional<MemoryLocation> &OptLoc) {
return AA.getModRefInfo(I, OptLoc, AAQI);
}
- ModRefInfo getModRefInfo(Instruction *I, const CallBase *Call2) {
+ ModRefInfo getModRefInfo(const Instruction *I, const CallBase *Call2) {
return AA.getModRefInfo(I, Call2, AAQI);
}
ModRefInfo getArgModRefInfo(const CallBase *Call, unsigned ArgIdx) {
diff --git a/llvm/lib/Analysis/AliasAnalysis.cpp b/llvm/lib/Analysis/AliasAnalysis.cpp
index d5026d13f941b..fd3ded06e2a95 100644
--- a/llvm/lib/Analysis/AliasAnalysis.cpp
+++ b/llvm/lib/Analysis/AliasAnalysis.cpp
@@ -182,12 +182,13 @@ ModRefInfo AAResults::getArgModRefInfo(const CallBase *Call, unsigned ArgIdx) {
return Result;
}
-ModRefInfo AAResults::getModRefInfo(Instruction *I, const CallBase *Call2) {
+ModRefInfo AAResults::getModRefInfo(const Instruction *I,
+ const CallBase *Call2) {
SimpleAAQueryInfo AAQIP(*this);
return getModRefInfo(I, Call2, AAQIP);
}
-ModRefInfo AAResults::getModRefInfo(Instruction *I, const CallBase *Call2,
+ModRefInfo AAResults::getModRefInfo(const Instruction *I, const CallBase *Call2,
AAQueryInfo &AAQI) {
// We may have two calls.
if (const auto *Call1 = dyn_cast<CallBase>(I)) {
More information about the llvm-commits
mailing list