[Attributor][NFC] Fix function name spelling

This commit is contained in:
Johannes Doerfert 2021-07-19 23:50:20 -05:00
parent d9b6e32dd7
commit 5e169818fb
2 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -1008,8 +1008,8 @@ protected:
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;