aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-05-30 22:47:19 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-05-30 22:47:19 +0000
commit652f7ea955bb433d6b7a4d33685dca9485fd7b8b (patch)
tree0767e9795827970bb39980558044dfd47703795c /include/llvm/Analysis
parent8666cc3b99cccef39281c715754e551a2b14363d (diff)
downloadexternal_llvm-652f7ea955bb433d6b7a4d33685dca9485fd7b8b.zip
external_llvm-652f7ea955bb433d6b7a4d33685dca9485fd7b8b.tar.gz
external_llvm-652f7ea955bb433d6b7a4d33685dca9485fd7b8b.tar.bz2
Revert 51775.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51795 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r--include/llvm/Analysis/AliasAnalysis.h16
-rw-r--r--include/llvm/Analysis/AliasSetTracker.h14
-rw-r--r--include/llvm/Analysis/CallGraph.h6
-rw-r--r--include/llvm/Analysis/LibCallSemantics.h2
4 files changed, 19 insertions, 19 deletions
diff --git a/include/llvm/Analysis/AliasAnalysis.h b/include/llvm/Analysis/AliasAnalysis.h
index 6333a5c..e013a4d 100644
--- a/include/llvm/Analysis/AliasAnalysis.h
+++ b/include/llvm/Analysis/AliasAnalysis.h
@@ -187,7 +187,7 @@ public:
};
/// getModRefBehavior - Return the behavior when calling the given call site.
- ModRefBehavior getModRefBehavior(CallSite cs,
+ ModRefBehavior getModRefBehavior(CallSite CS,
std::vector<PointerAccessInfo> *Info = 0);
/// getModRefBehavior - Return the behavior when calling the given function.
@@ -206,8 +206,8 @@ public:
///
/// This property corresponds to the GCC 'const' attribute.
///
- bool doesNotAccessMemory(CallSite cs) {
- return getModRefBehavior(cs) == DoesNotAccessMemory;
+ bool doesNotAccessMemory(CallSite CS) {
+ return getModRefBehavior(CS) == DoesNotAccessMemory;
}
/// doesNotAccessMemory - If the specified function is known to never read or
@@ -226,8 +226,8 @@ public:
///
/// This property corresponds to the GCC 'pure' attribute.
///
- bool onlyReadsMemory(CallSite cs) {
- ModRefBehavior MRB = getModRefBehavior(cs);
+ bool onlyReadsMemory(CallSite CS) {
+ ModRefBehavior MRB = getModRefBehavior(CS);
return MRB == DoesNotAccessMemory || MRB == OnlyReadsMemory;
}
@@ -249,7 +249,7 @@ public:
/// a particular call site modifies or reads the memory specified by the
/// pointer.
///
- virtual ModRefResult getModRefInfo(CallSite cs, Value *P, unsigned Size);
+ virtual ModRefResult getModRefInfo(CallSite CS, Value *P, unsigned Size);
/// getModRefInfo - Return information about whether two call sites may refer
/// to the same set of memory locations. This function returns NoModRef if
@@ -257,7 +257,7 @@ public:
/// written by CS2, Mod if CS1 writes to memory read or written by CS2, or
/// ModRef if CS1 might read or write memory accessed by CS2.
///
- virtual ModRefResult getModRefInfo(CallSite cs1, CallSite cs2);
+ virtual ModRefResult getModRefInfo(CallSite CS1, CallSite CS2);
/// hasNoModRefInfoForCalls - Return true if the analysis has no mod/ref
/// information for pairs of function calls (other than "pure" and "const"
@@ -271,7 +271,7 @@ protected:
/// getModRefBehavior - Return the behavior of the specified function if
/// called from the specified call site. The call site may be null in which
/// case the most generic behavior of this function should be returned.
- virtual ModRefBehavior getModRefBehavior(Function *F, CallSite cs,
+ virtual ModRefBehavior getModRefBehavior(Function *F, CallSite CS,
std::vector<PointerAccessInfo> *Info = 0);
public:
diff --git a/include/llvm/Analysis/AliasSetTracker.h b/include/llvm/Analysis/AliasSetTracker.h
index df674b0..d9e45ce 100644
--- a/include/llvm/Analysis/AliasSetTracker.h
+++ b/include/llvm/Analysis/AliasSetTracker.h
@@ -230,10 +230,10 @@ private:
void addPointer(AliasSetTracker &AST, HashNodePair &Entry, unsigned Size,
bool KnownMustAlias = false);
- void addCallSite(CallSite cs, AliasAnalysis &AA);
- void removeCallSite(CallSite cs) {
+ void addCallSite(CallSite CS, AliasAnalysis &AA);
+ void removeCallSite(CallSite CS) {
for (size_t i = 0, e = CallSites.size(); i != e; ++i)
- if (CallSites[i].getInstruction() == cs.getInstruction()) {
+ if (CallSites[i].getInstruction() == CS.getInstruction()) {
CallSites[i] = CallSites.back();
CallSites.pop_back();
}
@@ -244,7 +244,7 @@ private:
/// alias one of the members in the set.
///
bool aliasesPointer(const Value *Ptr, unsigned Size, AliasAnalysis &AA) const;
- bool aliasesCallSite(CallSite cs, AliasAnalysis &AA) const;
+ bool aliasesCallSite(CallSite CS, AliasAnalysis &AA) const;
};
inline std::ostream& operator<<(std::ostream &OS, const AliasSet &AS) {
@@ -283,7 +283,7 @@ public:
bool add(StoreInst *SI);
bool add(FreeInst *FI);
bool add(VAArgInst *VAAI);
- bool add(CallSite cs); // Call/Invoke instructions
+ bool add(CallSite CS); // Call/Invoke instructions
bool add(CallInst *CI) { return add(CallSite(CI)); }
bool add(InvokeInst *II) { return add(CallSite(II)); }
bool add(Instruction *I); // Dispatch to one of the other add methods...
@@ -298,7 +298,7 @@ public:
bool remove(StoreInst *SI);
bool remove(FreeInst *FI);
bool remove(VAArgInst *VAAI);
- bool remove(CallSite cs);
+ bool remove(CallSite CS);
bool remove(CallInst *CI) { return remove(CallSite(CI)); }
bool remove(InvokeInst *II) { return remove(CallSite(II)); }
bool remove(Instruction *I);
@@ -383,7 +383,7 @@ private:
}
AliasSet *findAliasSetForPointer(const Value *Ptr, unsigned Size);
- AliasSet *findAliasSetForCallSite(CallSite cs);
+ AliasSet *findAliasSetForCallSite(CallSite CS);
};
inline std::ostream& operator<<(std::ostream &OS, const AliasSetTracker &AST) {
diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h
index b6fef71..3fe03b5 100644
--- a/include/llvm/Analysis/CallGraph.h
+++ b/include/llvm/Analysis/CallGraph.h
@@ -216,8 +216,8 @@ public:
/// addCalledFunction add a function to the list of functions called by this
/// one.
- void addCalledFunction(CallSite cs, CallGraphNode *M) {
- CalledFunctions.push_back(std::make_pair(cs, M));
+ void addCalledFunction(CallSite CS, CallGraphNode *M) {
+ CalledFunctions.push_back(std::make_pair(CS, M));
}
/// removeCallEdgeTo - This method removes a *single* edge to the specified
@@ -228,7 +228,7 @@ public:
/// removeCallEdgeFor - This method removes the edge in the node for the
/// specified call site. Note that this method takes linear time, so it
/// should be used sparingly.
- void removeCallEdgeFor(CallSite cs);
+ void removeCallEdgeFor(CallSite CS);
/// removeAnyCallEdgeTo - This method removes any call edges from this node to
/// the specified callee function. This takes more time to execute than
diff --git a/include/llvm/Analysis/LibCallSemantics.h b/include/llvm/Analysis/LibCallSemantics.h
index 72de392..74e8401 100644
--- a/include/llvm/Analysis/LibCallSemantics.h
+++ b/include/llvm/Analysis/LibCallSemantics.h
@@ -47,7 +47,7 @@ namespace llvm {
enum LocResult {
Yes, No, Unknown
};
- LocResult (*isLocation)(CallSite cs, const Value *Ptr, unsigned Size);
+ LocResult (*isLocation)(CallSite CS, const Value *Ptr, unsigned Size);
};
/// LibCallFunctionInfo - Each record in the array of FunctionInfo structs