2 Commits

Author SHA1 Message Date
402035db49 runtime(cpu): gate 4-byte VEX fusion behind LEONIDA_ISA_FUSE_4B and scan Clang switch tables
- Gate 4-byte 0xC5 cross-instruction fusion in isa_jit_patch::patch_image behind
  opt-in LEONIDA_ISA_FUSE_4B=1 (off by default) and document LEONIDA_ISA_FUSE_4B
  in runtime/README.md.
- When LEONIDA_ISA_FUSE_4B=1 is enabled and mark_block_targets resolves a
  RIP-relative target inside a non-executable data section, also scan
  consecutive signed 32-bit Clang/LLVM table-relative jump-table entries
  (	arget_rva = tbl_rva + entry) within [beg_rva, end_rva) so fusion never
  crosses a relative switch case boundary.
- Update isa_jit_patch_test to verify default non-fusion of 4-byte 0xC5 sites,
  opt-in fusion under LEONIDA_ISA_FUSE_4B=1, and fusion refusal across both
  image-base RVA tables and negative table-relative int32_t .rdata switch tables.
2026-11-27 18:49:18 -03:00
8b14930b3d runtime(cpu): add ahead-of-time AVX1/SSE4.2 stub compiler for pre-Haswell hosts 2026-11-27 18:49:17 -03:00