From d99299e4bc67794dd16c329712591ae5efac4d64 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Wed, 13 Jan 2016 21:38:23 +0000 Subject: don't duplicate comments that are in the header file; NFC llvm-svn: 257676 --- llvm/lib/Analysis/AliasAnalysis.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'llvm/lib/Analysis/AliasAnalysis.cpp') 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(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(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(V) || isNoAliasCall(V) || isNoAliasArgument(V); -- cgit v1.2.3