]> granicus.if.org Git - llvm/commitdiff
Add comments for OrderedInstruction. NFC
authorXin Tong <trent.xin.tong@gmail.com>
Sat, 24 Jun 2017 05:16:12 +0000 (05:16 +0000)
committerXin Tong <trent.xin.tong@gmail.com>
Sat, 24 Jun 2017 05:16:12 +0000 (05:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306201 cdac9f57-aa62-4fd3-8940-286f4534e8a0

include/llvm/Transforms/Utils/OrderedInstructions.h

index e043ff39a998b0f89526c7709ae7119525cb000f..64c6bcb68b189c4aa943011b241d9cc9305aa0f8 100644 (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); }
 };