class LibCallInfo;
struct LibCallFunctionInfo;
-/// LibCallAliasAnalysis - Alias analysis driven from LibCallInfo.
+/// Alias analysis driven from LibCallInfo.
struct LibCallAliasAnalysis : public FunctionPass, public AliasAnalysis {
static char ID; // Class identification
bool runOnFunction(Function &F) override;
- /// 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(const void *PI) override {
if (PI == &AliasAnalysis::ID)
return (AliasAnalysis *)this;
const MemoryLocation &Loc);
};
-/// createLibCallAliasAnalysisPass - Create an alias analysis pass that knows
-/// about the semantics of a set of libcalls specified by LCI. The newly
-/// constructed pass takes ownership of the pointer that is provided.
+/// Create an alias analysis pass that knows about the semantics of a set of
+/// libcalls specified by LCI.
///
+/// The newly constructed pass takes ownership of the pointer that is provided.
FunctionPass *createLibCallAliasAnalysisPass(LibCallInfo *LCI);
} // End of llvm namespace
#include "llvm/Pass.h"
using namespace llvm;
-// Register this pass...
char LibCallAliasAnalysis::ID = 0;
INITIALIZE_AG_PASS(LibCallAliasAnalysis, AliasAnalysis, "libcall-aa",
"LibCall Alias Analysis", false, true, false)
return false;
}
-/// AnalyzeLibCallDetails - Given a call to a function with the specified
-/// LibCallFunctionInfo, see if we can improve the mod/ref footprint of the call
-/// vs the specified pointer/size.
+/// Given a call to a function with the specified LibCallFunctionInfo, see if
+/// we can improve the mod/ref footprint of the call vs the specified
+/// pointer/size.
ModRefInfo
LibCallAliasAnalysis::AnalyzeLibCallDetails(const LibCallFunctionInfo *FI,
ImmutableCallSite CS,
return MRInfo;
}
-// getModRefInfo - Check to see if the specified callsite can clobber the
-// specified memory object.
-//
+/// Check to see if the specified callsite can clobber the specified memory
+/// object.
ModRefInfo LibCallAliasAnalysis::getModRefInfo(ImmutableCallSite CS,
const MemoryLocation &Loc) {
ModRefInfo MRInfo = MRI_ModRef;