diff options
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/LinkAllPasses.h | 1 | ||||
-rw-r--r-- | include/llvm/Transforms/IPO.h | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/LinkAllPasses.h b/include/llvm/LinkAllPasses.h index f4385dd..2e1887b 100644 --- a/include/llvm/LinkAllPasses.h +++ b/include/llvm/LinkAllPasses.h @@ -119,6 +119,7 @@ namespace { (void) llvm::createPostDomFrontier(); (void) llvm::createInstructionNamerPass(); (void) llvm::createPartialSpecializationPass(); + (void) llvm::createAddReadAttrsPass(); (void)new llvm::IntervalPartition(); (void)new llvm::FindUsedTypes(); 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 |