diff options
author | Xin Tong <trent.xin.tong@gmail.com> | 2017-06-24 05:16:12 +0000 |
---|---|---|
committer | Xin Tong <trent.xin.tong@gmail.com> | 2017-06-24 05:16:12 +0000 |
commit | 0e0fb186a07f08c45f0d8643a83dc174e2d52ce7 (patch) | |
tree | 5eea695d9f66a9f5229eb56acc50d9148279511c | |
parent | c826a9d608932b3e462db1d7a16310afaa857fcb (diff) | |
download | llvm-0e0fb186a07f08c45f0d8643a83dc174e2d52ce7.tar.gz |
Add comments for OrderedInstruction. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306201 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Transforms/Utils/OrderedInstructions.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/OrderedInstructions.h b/include/llvm/Transforms/Utils/OrderedInstructions.h index e043ff39a99..64c6bcb68b1 100644 --- a/include/llvm/Transforms/Utils/OrderedInstructions.h +++ b/include/llvm/Transforms/Utils/OrderedInstructions.h @@ -43,6 +43,9 @@ public: bool dominates(const Instruction *, const Instruction *) const; /// Invalidate the OrderedBasicBlock cache when its basic block changes. + /// i.e. If an instruction is deleted or added to the basic block, the user + /// should call this function to invalidate the OrderedBasicBlock cache for + /// this basic block. void invalidateBlock(BasicBlock *BB) { OBBMap.erase(BB); } }; |