jaredhoberock wrote: @joker-eph @Hardcode84 @fabianmcg thanks for the reviews. Updated with `MemAlloc<AutomaticAllocationScopeResource>` and a new test for the memory effects. https://github.com/llvm/llvm-project/pull/234427