mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 07:31:53 +00:00
Make code fit in 80 cols
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9141f03322
commit
fb752ba02a
@ -185,7 +185,7 @@ public:
|
|||||||
/// called from the specified call site. The call site may be null in which
|
/// 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.
|
/// 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);
|
std::vector<PointerAccessInfo> *Info = 0);
|
||||||
|
|
||||||
/// doesNotAccessMemory - If the specified function is known to never read or
|
/// doesNotAccessMemory - If the specified function is known to never read or
|
||||||
/// write memory, return true. If the function only reads from known-constant
|
/// write memory, return true. If the function only reads from known-constant
|
||||||
@ -212,7 +212,8 @@ public:
|
|||||||
/// This property corresponds to the GCC 'pure' attribute.
|
/// This property corresponds to the GCC 'pure' attribute.
|
||||||
///
|
///
|
||||||
bool onlyReadsMemory(Function *F) {
|
bool onlyReadsMemory(Function *F) {
|
||||||
/// FIXME: If the analysis returns more precise info, we can reduce it to this.
|
/// FIXME: If the analysis returns more precise info, we can reduce it to
|
||||||
|
/// this.
|
||||||
return getModRefBehavior(F, CallSite()) == OnlyReadsMemory;
|
return getModRefBehavior(F, CallSite()) == OnlyReadsMemory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user