summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/AliasAnalysis.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-01-13 21:38:23 +0000
committerSanjay Patel <spatel@rotateright.com>2016-01-13 21:38:23 +0000
commitd99299e4bc67794dd16c329712591ae5efac4d64 (patch)
tree2e5fc303937595dee48271ca2823a4d42c8fd52c /llvm/lib/Analysis/AliasAnalysis.cpp
parent5877a42274a64b0101d2173f27cd090b10ffbe03 (diff)
downloadbcm5719-llvm-d99299e4bc67794dd16c329712591ae5efac4d64.tar.gz
bcm5719-llvm-d99299e4bc67794dd16c329712591ae5efac4d64.zip
don't duplicate comments that are in the header file; NFC
llvm-svn: 257676
Diffstat (limited to 'llvm/lib/Analysis/AliasAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/AliasAnalysis.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/Analysis/AliasAnalysis.cpp b/llvm/lib/Analysis/AliasAnalysis.cpp
index 35f2e97622f..9a003413cdc 100644
--- a/llvm/lib/Analysis/AliasAnalysis.cpp
+++ b/llvm/lib/Analysis/AliasAnalysis.cpp
@@ -538,16 +538,12 @@ AAResults llvm::createLegacyPMAAResults(Pass &P, Function &F,
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 *V)
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 Value *V) {
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);
OpenPOWER on IntegriCloud