/// 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
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())
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,
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;