Skip to content

refactor(plan): add asap-plan optimizer layer, move CSE into it (#57, phase 1) - #58

Merged
zzylol merged 1 commit into
mainfrom
refactor/reorg-phase1-asap-plan
Jul 2, 2026
Merged

refactor(plan): add asap-plan optimizer layer, move CSE into it (#57, phase 1)#58
zzylol merged 1 commit into
mainfrom
refactor/reorg-phase1-asap-plan

Conversation

@zzylol

@zzylol zzylol commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Phase 1 of the crate reorg (#57): introduce asap-plan, the cost-aware optimizer layer between the IR (core) and any runtime.

What

Why placeholder-with-CSE

Per the plan in #57: land the layer now with a genuine occupant (CSE) so it isn't an empty shell, and leave stubs so #6/#33/#34 have an obvious home.

Verification

No behavior change — CSE's own unit tests move with it and pass in the new crate. Full workspace suite green (21 test binaries); cargo clippy --all-targets clean. Git tracks cse.rs as a rename (92% similar).

Next

Phase 2 (split asap-sketch out of core), Phase 3 (rename coreasap-ir), Phase 4 (split lower front ends), Phase 5 (README/docs) — tracked in #57.

Part of #57.

🤖 Generated with Claude Code

… phase 1)

Phase 1 of the crate reorg (#57): introduce the optimizer layer that sits
between the IR (core) and any runtime. It lands as a placeholder with one
real occupant — workload-level CSE — plus stub modules marking where the
optimizer work goes.

- New `asap-plan` crate (depends only on the IR crate, never a front end).
- Move `intent_algebra/cse.rs` -> `asap-plan/src/cse.rs` (imports rebased
  onto `asap_control_core::…`); drop the `cse` module + `dedupe_subtrees` /
  `CseWorkloadPlan` re-export from core.
- Stub modules with TODOs: `cost_model` (#6/#33), `boundary` (#34 per-node
  sketch-vs-exact), `canonicalize` (#34 shared normalization pass).

No behavior change; CSE's own tests move with it. Full workspace suite
green; clippy --all-targets clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@zzylol
zzylol merged commit d584b5a into main Jul 2, 2026
1 check passed
@zzylol
zzylol deleted the refactor/reorg-phase1-asap-plan branch July 2, 2026 16:46
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.

1 participant