summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineTraceMetrics.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-07-30 21:16:22 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-07-30 21:16:22 +0000
commit20f13c50d88560d75129f4a691fe6b477d04dc70 (patch)
tree8b22d1a3adf50ee69bfad5b9033b8db169e29565 /lib/CodeGen/MachineTraceMetrics.h
parentead66027e8a93dbbb9eec37807c34585aeafe67b (diff)
downloadllvm-20f13c50d88560d75129f4a691fe6b477d04dc70.tar.gz
llvm-20f13c50d88560d75129f4a691fe6b477d04dc70.tar.bz2
llvm-20f13c50d88560d75129f4a691fe6b477d04dc70.tar.xz
Clarify invalidation strategy in comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160997 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineTraceMetrics.h')
-rw-r--r--lib/CodeGen/MachineTraceMetrics.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineTraceMetrics.h b/lib/CodeGen/MachineTraceMetrics.h
index 56ea74ea85..732e4f6ef3 100644
--- a/lib/CodeGen/MachineTraceMetrics.h
+++ b/lib/CodeGen/MachineTraceMetrics.h
@@ -211,6 +211,12 @@ public:
/// Invalidate cached information about MBB. This must be called *before* MBB
/// is erased, or the CFG is otherwise changed.
+ ///
+ /// This invalidates per-block information about resource usage for MBB only,
+ /// and it invalidates per-trace information for any trace that passes
+ /// through MBB.
+ ///
+ /// Call Ensemble::getTrace() again to update any trace handles.
void invalidate(const MachineBasicBlock *MBB);
private: