Skip to content

backend: introduce be_desc_t contract and static registration - #155

Merged
Zaneham merged 6 commits into
masterfrom
feat/backend-contract
Aug 6, 2026
Merged

backend: introduce be_desc_t contract and static registration#155
Zaneham merged 6 commits into
masterfrom
feat/backend-contract

Conversation

@Zaneham

@Zaneham Zaneham commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Every existing backend now sits behind a be_desc_t (is_on, isel, sched, regalloc, verify, emit, mfree) registered in a static be_list; the driver iterates once instead of the copy-pasted if-chain in main.c.

Skeleton at src/backend/skeleton/ is the starting point for a new target. docs/backends.md is the walkthrough.

Tests 352/12/1 (+4 be_ tests, no regressions).

Zaneham added 4 commits August 6, 2026 21:36
Every existing backend now sits behind a be_desc_t (is_on, isel,
sched, regalloc, verify, emit, mfree) registered in a static
be_list; the driver iterates once instead of the copy-pasted
if-chain in main.c.

Skeleton at src/backend/skeleton/ is the starting point for a new
target. docs/backends.md is the walkthrough.

Tests 352/12/1 (+4 be_ tests, no regressions).
@Zaneham
Zaneham force-pushed the feat/backend-contract branch from 46660ff to 8ae4705 Compare August 6, 2026 09:51
@Zaneham
Zaneham merged commit 107b866 into master Aug 6, 2026
11 checks passed
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