[llvm] ec93293 - NFC. Fix comments
Yuanfang Chen via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 29 19:18:44 PDT 2020
Author: Yuanfang Chen
Date: 2020-07-29T19:18:01-07:00
New Revision: ec932939423bdea77c46cf79be4198266ea83e9f
URL: https://github.com/llvm/llvm-project/commit/ec932939423bdea77c46cf79be4198266ea83e9f
DIFF: https://github.com/llvm/llvm-project/commit/ec932939423bdea77c46cf79be4198266ea83e9f.diff
LOG: NFC. Fix comments
Added:
Modified:
llvm/include/llvm/IR/PassManager.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/PassManager.h b/llvm/include/llvm/IR/PassManager.h
index c2f535037a56..d3b98ed243b8 100644
--- a/llvm/include/llvm/IR/PassManager.h
+++ b/llvm/include/llvm/IR/PassManager.h
@@ -651,7 +651,7 @@ template <typename IRUnitT, typename... ExtraArgTs> class AnalysisManager {
/// when any of its embedded analysis results end up invalidated. We pass an
/// \c Invalidator object as an argument to \c invalidate() in order to let
/// the analysis results themselves define the dependency graph on the fly.
- /// This lets us avoid building building an explicit representation of the
+ /// This lets us avoid building an explicit representation of the
/// dependencies between analysis results.
class Invalidator {
public:
@@ -846,7 +846,7 @@ template <typename IRUnitT, typename... ExtraArgTs> class AnalysisManager {
return true;
}
- /// Invalidate a specific analysis pass for an IR module.
+ /// Invalidate a specific analysis pass for an IR unit.
///
/// Note that the analysis result can disregard invalidation, if it determines
/// it is in fact still valid.
@@ -890,7 +890,7 @@ template <typename IRUnitT, typename... ExtraArgTs> class AnalysisManager {
return RI == AnalysisResults.end() ? nullptr : &*RI->second->second;
}
- /// Invalidate a function pass result.
+ /// Invalidate a pass result for a IR unit.
void invalidateImpl(AnalysisKey *ID, IRUnitT &IR) {
typename AnalysisResultMapT::iterator RI =
AnalysisResults.find({ID, &IR});
@@ -904,20 +904,20 @@ template <typename IRUnitT, typename... ExtraArgTs> class AnalysisManager {
AnalysisResults.erase(RI);
}
- /// Map type from module analysis pass ID to pass concept pointer.
+ /// Map type from analysis pass ID to pass concept pointer.
using AnalysisPassMapT =
DenseMap<AnalysisKey *, std::unique_ptr<PassConceptT>>;
- /// Collection of module analysis passes, indexed by ID.
+ /// Collection of analysis passes, indexed by ID.
AnalysisPassMapT AnalysisPasses;
- /// Map from function to a list of function analysis results.
+ /// Map from IR unit to a list of analysis results.
///
- /// Provides linear time removal of all analysis results for a function and
+ /// Provides linear time removal of all analysis results for a IR unit and
/// the ultimate storage for a particular cached analysis result.
AnalysisResultListMapT AnalysisResultLists;
- /// Map from an analysis ID and function to a particular cached
+ /// Map from an analysis ID and IR unit to a particular cached
/// analysis result.
AnalysisResultMapT AnalysisResults;
More information about the llvm-commits
mailing list