Commit Graph

14 Commits

Author SHA1 Message Date
gingerBill
c9ce8794c7 Replace -> isa.Result with -> (byte_code: u32, ok: bool) 2026-06-15 21:43:58 +01:00
gingerBill
9ec6f3e378 Minimize Instruction and Operand across ISAs further with struct #raw_union #packed 2026-06-15 14:50:55 +01:00
gingerBill
7a17144aa1 Minimize ppc Instruction and Operand 2026-06-15 14:34:45 +01:00
gingerBill
b733f7d7a4 Use @(rodata) where appropriate for the table generation 2026-06-15 13:56:24 +01:00
gingerBill
b7f585f448 Merge branch 'bill/rexcode' of https://github.com/odin-lang/Odin into bill/rexcode 2026-06-15 13:35:28 +01:00
Flāvius
a4f08f8307 Load rexcode encode/decode tables from committed binary blobs
Each ISA's hand-written ENCODING_TABLE (the single source of truth) now lives
in a per-arch tablegen/ metaprogram that flattens it and serializes committed
binary blobs; the library #loads those into @(rodata) at compile time rather
than compiling a table body. No arch keeps encoding_table.odin or
decoding_tables.odin -- only a generated tables.odin loader and tables/*.bin.

* Two-stage, type-checked pipeline: tablegen Stage A emits human-readable
  generated Odin, which compiles and serializes the blobs in Stage B.
* encode() goes through encoding_forms(m); decoders are unchanged apart from
  x86's flattened 2-D index. Decode tables are byte-identical to the old ones.
* build.lua: a LuaJIT driver for the metaprograms, validations, and tests,
  with cross-platform gating and a clear report.
* Docs refreshed; the obsolete forward-looking plan in cross_arch_design.md
  trimmed to what was actually built.
* Attribution headers added to all rexcode source files; the generators emit
  them so generated files keep them.
2026-06-15 07:43:29 -04:00
gingerBill
75a8639426 Make @(rodata) 2026-06-15 12:22:37 +01:00
gingerBill
ecf9a305ee Add @(require_results) to register procedures 2026-06-14 22:00:37 +01:00
gingerBill
5c9cd0146d Add @(require_results) to operand procedures 2026-06-14 21:57:27 +01:00
gingerBill
611cc807cd Add @(require_results) to instruction procedures 2026-06-14 21:54:24 +01:00
gingerBill
ced500fc94 Add fmt formatting to the Instruction.operands 2026-06-14 21:52:14 +01:00
gingerBill
c8ed0d89ed Alignment fields in the decode entry type for ppc 2026-06-14 21:23:07 +01:00
gingerBill
dacb5e3a17 Minimize PPC decoding tables 2026-06-14 19:30:42 +01:00
gingerBill
d6ae77b67e core:rexcode 2026-06-14 16:30:18 +01:00