mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-25 21:16:19 +00:00
Clarify interface
llvm-svn: 12805
This commit is contained in:
parent
ed37c7cac6
commit
697d1d7df2
@ -102,7 +102,8 @@ public:
|
||||
|
||||
/// doesNotAccessMemory - If the specified function is known to never read or
|
||||
/// write memory, return true. If the function only reads from known-constant
|
||||
/// memory, it is also legal to return true.
|
||||
/// memory, it is also legal to return true. Functions that unwind the stack
|
||||
/// are not legal for this predicate.
|
||||
///
|
||||
/// Many optimizations (such as CSE and LICM) can be performed on calls to it,
|
||||
/// without worrying about aliasing properties, and many functions have this
|
||||
@ -113,7 +114,8 @@ public:
|
||||
virtual bool doesNotAccessMemory(Function *F) { return false; }
|
||||
|
||||
/// onlyReadsMemory - If the specified function is known to only read from
|
||||
/// non-volatile memory (or not access memory at all), return true.
|
||||
/// non-volatile memory (or not access memory at all), return true. Functions
|
||||
/// that unwind the stack are not legal for this predicate.
|
||||
///
|
||||
/// This property allows many common optimizations to be performed in the
|
||||
/// absence of interfering store instructions, such as CSE of strlen calls.
|
||||
|
Loading…
Reference in New Issue
Block a user