[llvm] r257676 - don't duplicate comments that are in the header file; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 13 13:38:24 PST 2016
Author: spatel
Date: Wed Jan 13 15:38:23 2016
New Revision: 257676
URL: http://llvm.org/viewvc/llvm-project?rev=257676&view=rev
Log:
don't duplicate comments that are in the header file; NFC
Modified:
llvm/trunk/lib/Analysis/AliasAnalysis.cpp
Modified: llvm/trunk/lib/Analysis/AliasAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/AliasAnalysis.cpp?rev=257676&r1=257675&r2=257676&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/AliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/AliasAnalysis.cpp Wed Jan 13 15:38:23 2016
@@ -538,16 +538,12 @@ AAResults llvm::createLegacyPMAAResults(
return AAR;
}
-/// isNoAliasCall - Return true if this pointer is returned by a noalias
-/// function.
bool llvm::isNoAliasCall(const Value *V) {
if (auto CS = ImmutableCallSite(V))
return CS.paramHasAttr(0, Attribute::NoAlias);
return false;
}
-/// isNoAliasArgument - Return true if this is an argument with the noalias
-/// attribute.
bool llvm::isNoAliasArgument(const Value *V)
{
if (const Argument *A = dyn_cast<Argument>(V))
@@ -555,13 +551,6 @@ bool llvm::isNoAliasArgument(const Value
return false;
}
-/// isIdentifiedObject - Return true if this pointer refers to a distinct and
-/// identifiable object. This returns true for:
-/// Global Variables and Functions (but not Global Aliases)
-/// Allocas and Mallocs
-/// ByVal and NoAlias Arguments
-/// NoAlias returns
-///
bool llvm::isIdentifiedObject(const Value *V) {
if (isa<AllocaInst>(V))
return true;
@@ -574,11 +563,6 @@ bool llvm::isIdentifiedObject(const Valu
return false;
}
-/// isIdentifiedFunctionLocal - Return true if V is umabigously identified
-/// at the function-level. Different IdentifiedFunctionLocals can't alias.
-/// Further, an IdentifiedFunctionLocal can not alias with any function
-/// arguments other than itself, which is not necessarily true for
-/// IdentifiedObjects.
bool llvm::isIdentifiedFunctionLocal(const Value *V)
{
return isa<AllocaInst>(V) || isNoAliasCall(V) || isNoAliasArgument(V);
More information about the llvm-commits
mailing list