[llvm] 52aec32 - [Attributor][NFC] Clarify the documentation a bit more
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 11 13:19:08 PST 2020
Author: Johannes Doerfert
Date: 2020-02-11T15:11:55-06:00
New Revision: 52aec3221fa5766c669cfd16e6ba0cf0737d1fff
URL: https://github.com/llvm/llvm-project/commit/52aec3221fa5766c669cfd16e6ba0cf0737d1fff
DIFF: https://github.com/llvm/llvm-project/commit/52aec3221fa5766c669cfd16e6ba0cf0737d1fff.diff
LOG: [Attributor][NFC] Clarify the documentation a bit more
Added:
Modified:
llvm/lib/Transforms/IPO/Attributor.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp
index 877557a92fb5..86968d1f7761 100644
--- a/llvm/lib/Transforms/IPO/Attributor.cpp
+++ b/llvm/lib/Transforms/IPO/Attributor.cpp
@@ -374,10 +374,11 @@ static Value *constructPointer(Type *ResTy, Value *Ptr, int64_t Offset,
/// will be done by looking through cast instructions, selects, phis, and calls
/// with the "returned" attribute. Once we cannot look through the value any
/// further, the callback \p VisitValueCB is invoked and passed the current
-/// value, the \p State, and a flag to indicate if we stripped anything (=the
-/// value used for the callback is not the value associated with \p IRP). To
-/// limit how much effort is invested, we will never visit more values than
-/// specified by \p MaxValues.
+/// value, the \p State, and a flag to indicate if we stripped anything.
+/// Stripped means that we unpacked the value associated with \p IRP at least
+/// once. Note that the value used for the callback may still be the value
+/// associated with \p IRP (due to PHIs). To limit how much effort is invested,
+/// we will never visit more values than specified by \p MaxValues.
template <typename AAType, typename StateTy>
static bool genericValueTraversal(
Attributor &A, IRPosition IRP, const AAType &QueryingAA, StateTy &State,
More information about the llvm-commits
mailing list