Add comments for OrderedInstruction. NFC

llvm-svn: 306201
This commit is contained in:
Xin Tong 2017-06-24 05:16:12 +00:00
parent daaee7151b
commit 25d51d66df
1 changed files with 3 additions and 0 deletions

View File

@ -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); }
};