diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2013-07-20 22:20:05 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2013-07-20 22:20:05 +0000 |
commit | 02aea0116a0f5a5092a659d57f66cd042c212332 (patch) | |
tree | 5c3b6c5ba0c794dbb96762835edbb7074f17292e /include/llvm/Transforms/Utils | |
parent | 5f53c3be6fce77d494e82f23d5ea0b6a0144eb5d (diff) | |
download | external_llvm-02aea0116a0f5a5092a659d57f66cd042c212332.zip external_llvm-02aea0116a0f5a5092a659d57f66cd042c212332.tar.gz external_llvm-02aea0116a0f5a5092a659d57f66cd042c212332.tar.bz2 |
Update mem2reg's comments to conform to the new doxygen standards. No
functionality changed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186772 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils')
-rw-r--r-- | include/llvm/Transforms/Utils/PromoteMemToReg.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/include/llvm/Transforms/Utils/PromoteMemToReg.h b/include/llvm/Transforms/Utils/PromoteMemToReg.h index 52a6157..fde4b81 100644 --- a/include/llvm/Transforms/Utils/PromoteMemToReg.h +++ b/include/llvm/Transforms/Utils/PromoteMemToReg.h @@ -23,19 +23,23 @@ class AllocaInst; class DominatorTree; class AliasSetTracker; -/// isAllocaPromotable - Return true if this alloca is legal for promotion. -/// This is true if there are only loads and stores to the alloca... +/// \brief Return true if this alloca is legal for promotion. /// +/// This is true if there are only loads, stores, and lifetime markers +/// (transitively) using this alloca. This also enforces that there is only +/// ever one layer of bitcasts or GEPs between the alloca and the lifetime +/// markers. bool isAllocaPromotable(const AllocaInst *AI); -/// PromoteMemToReg - Promote the specified list of alloca instructions into -/// scalar registers, inserting PHI nodes as appropriate. This function makes -/// use of DominanceFrontier information. This function does not modify the CFG -/// of the function at all. All allocas must be from the same function. +/// \brief Promote the specified list of alloca instructions into scalar +/// registers, inserting PHI nodes as appropriate. +/// +/// This function makes use of DominanceFrontier information. This function +/// does not modify the CFG of the function at all. All allocas must be from +/// the same function. /// /// If AST is specified, the specified tracker is updated to reflect changes /// made to the IR. -/// void PromoteMemToReg(const std::vector<AllocaInst*> &Allocas, DominatorTree &DT, AliasSetTracker *AST = 0); |