diff options
author | Duncan Sands <baldrick@free.fr> | 2008-09-19 08:17:05 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-09-19 08:17:05 +0000 |
commit | 9f07a290b92a8ff06dfb9f3c28d6aa082217d9a6 (patch) | |
tree | dc0a348fff4ee26f4af1dc1254b2836267b439e9 /include/llvm/Transforms | |
parent | e763f7eec216dbc07f66599f4c3827cfe59da274 (diff) | |
download | external_llvm-9f07a290b92a8ff06dfb9f3c28d6aa082217d9a6.zip external_llvm-9f07a290b92a8ff06dfb9f3c28d6aa082217d9a6.tar.gz external_llvm-9f07a290b92a8ff06dfb9f3c28d6aa082217d9a6.tar.bz2 |
Add a new pass AddReadAttrs which works out which functions
can get the readnone/readonly attributes, and gives them it.
The plan is to remove markmodref (which did the same thing
by querying GlobalsModRef) and delete the analogous
functionality from GlobalsModRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r-- | include/llvm/Transforms/IPO.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h index ad35498..ac8da77 100644 --- a/include/llvm/Transforms/IPO.h +++ b/include/llvm/Transforms/IPO.h @@ -188,6 +188,12 @@ ModulePass *createStripDeadPrototypesPass(); /// ModulePass* createPartialSpecializationPass(); +//===----------------------------------------------------------------------===// +/// createAddReadAttrsPass - This pass discovers functions that do not access +/// memory, or only read memory, and gives them the readnone/readonly attribute. +/// +Pass* createAddReadAttrsPass(); + } // End llvm namespace #endif |