Skip to content

Conversation

@zharinov
Copy link
Member

@zharinov zharinov commented Jan 6, 2026

Summary

  • Add .neg_fields(), .pre_effects(), .post_effects() batch methods to MatchIR builder
  • Migrate all call sites to use batch methods instead of manual loops
  • Normalize remaining EffectIR::simple() call to use shorthand methods

Why

Reduces boilerplate when constructing MatchIR instructions. The repeated for eff in effects { m = m.post_effect(eff); } pattern appeared 10+ times across the codebase.

@zharinov zharinov enabled auto-merge (squash) January 6, 2026 04:07
@zharinov zharinov closed this Jan 6, 2026
auto-merge was automatically disabled January 6, 2026 04:14

Pull request was closed

@zharinov zharinov deleted the refactor/ir-builder-batch branch January 6, 2026 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants