[llvm] 5e16981 - [Attributor][NFC] Fix function name spelling
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 19 22:35:46 PDT 2021
Author: Johannes Doerfert
Date: 2021-07-20T00:35:13-05:00
New Revision: 5e169818fb71d7baeb9d3dd92c747fbcd0bc8507
URL: https://github.com/llvm/llvm-project/commit/5e169818fb71d7baeb9d3dd92c747fbcd0bc8507
DIFF: https://github.com/llvm/llvm-project/commit/5e169818fb71d7baeb9d3dd92c747fbcd0bc8507.diff
LOG: [Attributor][NFC] Fix function name spelling
Added:
Modified:
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h
index 3577f96e7461..44cbfae6b238 100644
--- a/llvm/include/llvm/Transforms/IPO/Attributor.h
+++ b/llvm/include/llvm/Transforms/IPO/Attributor.h
@@ -4489,9 +4489,9 @@ struct AAPointerInfo : public AbstractAttribute {
/// Call \p CB on all accesses that might interfere with \p LI and return true
/// if all such accesses were known and the callback returned true for all of
/// them, false otherwise.
- virtual bool forallInterfearingAccesses(
+ virtual bool forallInterferingAccesses(
LoadInst &LI, function_ref<bool(const Access &, bool)> CB) const = 0;
- virtual bool forallInterfearingAccesses(
+ virtual bool forallInterferingAccesses(
StoreInst &SI, function_ref<bool(const Access &, bool)> CB) const = 0;
/// This function should return true if the type of the \p AA is AAPointerInfo
diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
index 0d76f4e421b7..b5c128cf2081 100644
--- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
@@ -1008,8 +1008,8 @@ struct AA::PointerInfo::State : public AbstractState {
return *It == Before ? ChangeStatus::UNCHANGED : ChangeStatus::CHANGED;
}
- /// See AAPointerInfo::forallInterfearingAccesses.
- bool forallInterfearingAccesses(
+ /// See AAPointerInfo::forallInterferingAccesses.
+ bool forallInterferingAccesses(
Instruction &I,
function_ref<bool(const AAPointerInfo::Access &, bool)> CB) const {
if (!isValidState())
@@ -1068,15 +1068,15 @@ struct AAPointerInfoImpl
return AAPointerInfo::manifest(A);
}
- bool forallInterfearingAccesses(
+ bool forallInterferingAccesses(
LoadInst &LI, function_ref<bool(const AAPointerInfo::Access &, bool)> CB)
const override {
- return State::forallInterfearingAccesses(LI, CB);
+ return State::forallInterferingAccesses(LI, CB);
}
- bool forallInterfearingAccesses(
+ bool forallInterferingAccesses(
StoreInst &SI, function_ref<bool(const AAPointerInfo::Access &, bool)> CB)
const override {
- return State::forallInterfearingAccesses(SI, CB);
+ return State::forallInterferingAccesses(SI, CB);
}
ChangeStatus translateAndAddCalleeState(Attributor &A,
@@ -5181,7 +5181,7 @@ struct AAValueSimplifyImpl : AAValueSimplify {
auto &PI = A.getAAFor<AAPointerInfo>(AA, IRPosition::value(*Obj),
DepClassTy::REQUIRED);
- if (!PI.forallInterfearingAccesses(L, CheckAccess))
+ if (!PI.forallInterferingAccesses(L, CheckAccess))
return false;
}
return true;
More information about the llvm-commits
mailing list