From 55eec8be9e6cb5cbf21fdea179e44aa02f60483d Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Fri, 14 Aug 2015 03:14:50 +0000 Subject: [PATCH] [PM/AA] Clean up the SCEV-AA comment formatting and typos. llvm-svn: 245015 --- .../Analysis/ScalarEvolutionAliasAnalysis.h | 19 ++++++++----------- .../Analysis/ScalarEvolutionAliasAnalysis.cpp | 5 +++-- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/llvm/include/llvm/Analysis/ScalarEvolutionAliasAnalysis.h b/llvm/include/llvm/Analysis/ScalarEvolutionAliasAnalysis.h index cedd5cafb480..a8bcbde479d3 100644 --- a/llvm/include/llvm/Analysis/ScalarEvolutionAliasAnalysis.h +++ b/llvm/include/llvm/Analysis/ScalarEvolutionAliasAnalysis.h @@ -23,8 +23,8 @@ namespace llvm { -/// ScalarEvolutionAliasAnalysis - This is a simple alias analysis -/// implementation that uses ScalarEvolution to answer queries. +/// A simple alias analysis implementation that uses ScalarEvolution to answer +/// queries. class ScalarEvolutionAliasAnalysis : public FunctionPass, public AliasAnalysis { ScalarEvolution *SE; @@ -35,10 +35,11 @@ public: *PassRegistry::getPassRegistry()); } - /// getAdjustedAnalysisPointer - This method is used when a pass implements - /// an analysis interface through multiple inheritance. If needed, it - /// should override this to adjust the this pointer as needed for the - /// specified pass info. + /// This method is used when a pass implements an analysis interface through + /// multiple inheritance. + /// + /// If needed, it should override this to adjust the this pointer as needed + /// for the specified pass info. void *getAdjustedAnalysisPointer(AnalysisID PI) override { if (PI == &AliasAnalysis::ID) return (AliasAnalysis *)this; @@ -54,11 +55,7 @@ private: Value *GetBaseValue(const SCEV *S); }; -//===--------------------------------------------------------------------===// -// -// createScalarEvolutionAliasAnalysisPass - This pass implements a simple -// alias analysis using ScalarEvolution queries. -// +/// Creates an instance of \c ScalarEvolutionAliasAnalysis. FunctionPass *createScalarEvolutionAliasAnalysisPass(); } diff --git a/llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp b/llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp index 5b04f0070811..58d3322683a9 100644 --- a/llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp +++ b/llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp @@ -48,8 +48,9 @@ bool ScalarEvolutionAliasAnalysis::runOnFunction(Function &F) { return false; } -/// GetBaseValue - Given an expression, try to find a -/// base value. Return null is none was found. +/// Given an expression, try to find a base value. +/// +/// Returns null if none was found. Value *ScalarEvolutionAliasAnalysis::GetBaseValue(const SCEV *S) { if (const SCEVAddRecExpr *AR = dyn_cast(S)) { // In an addrec, assume that the base will be in the start, rather