summaryrefslogtreecommitdiff
path: root/include/llvm/Transforms/Utils/OrderedInstructions.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Transforms/Utils/OrderedInstructions.h')
-rw-r--r--include/llvm/Transforms/Utils/OrderedInstructions.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/OrderedInstructions.h b/include/llvm/Transforms/Utils/OrderedInstructions.h
index e043ff39a998b..64c6bcb68b189 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); }
};