[llvm] [SandboxIR][Tracker] Support nested checkpoints (PR #191097)
Jorge Gorbe Moya via llvm-commits
llvm-commits at lists.llvm.org
Sun May 3 16:16:10 PDT 2026
================
@@ -513,6 +510,8 @@ class Tracker {
LLVM_ABI void accept();
/// Stops tracking and reverts to saved state.
LLVM_ABI void revert();
+ /// \returns the number of nested (outstanding) checkpoints.
+ unsigned nesting() const { return Snapshots.size(); }
----------------
slackito wrote:
how about something like `nestingDepth` instead?
https://github.com/llvm/llvm-project/pull/191097
More information about the llvm-commits
mailing list