Skip to content

Lamina v0.2.1

Choose a tag to compare

@github-actions github-actions released this 04 Nov 06:16
· 264 commits to main since this release

What's Changed

Features

  • drop private callee inliner fully expanded
  • rank list scheduler on register pressure
  • describe windows module to assembler under -g
  • emit dwarf for macho targets
  • refuse weld older than version lamina built against
  • ship weld binary beside lamina
  • check stated sret and byval against placement
  • emit macho compact unwind entries
  • build debug info request from mir
  • emit weak and file-local symbols on coff
  • emit pdata and xdata unwind tables on x86_64 windows
  • add inline asm to armv7 backend
  • add inline asm to i686 backend
  • place flattened aggregate in riscv fp and integer banks
  • classify float aggregates for riscv64 and s390x
  • let aggregate class name a flattened float and integer pair
  • read wide va_arg from variadic slots on i686 and armv7
  • lower wide va_arg into stack pair
  • mark wide argument that lands in variadic tail
  • write wasm module in process instead of calling wat2wasm
  • walk riscv va_list from integer save area
  • take opt level and debug lines in object api
  • let weld link aarch64 linux
  • walk windows aarch64 va_list from general save area
  • route aarch64 windows io through crt write and read
  • read and write mapped register directly in integer ops on aarch64
  • let weld link aarch64 windows
  • add x19 and x20 to callee saved pool on aarch64
  • keep value live across call out of caller saved pool on aarch64
  • load extern function address through got on x86_64 macos
  • allocate callee saved registers under global plan on aarch64
  • walk aapcs64 va_list through gr and vr save areas
  • place thread locals through tprel and gottprel on aarch64 elf
  • probe stack pages when frame passes page size
  • add file id to source locations
  • give globals weak linkage and visibility
  • add stable entry from module to object bytes
  • choose float aggregate abi by target operating system
  • place homogeneous float aggregate in v registers on aarch64
  • place float aggregate eightbytes in sse registers on x86_64
  • declare float aggregate support per architecture
  • carry addend into global relocations
  • parse addend after symbol in initializer
  • relocate symbol addresses inside aggregates
  • parse symbol addresses in element lists
  • relocate function addresses and refuse unknown symbols
  • parse function address as global initializer
  • relocate pointer globals instead of refusing them
  • carry symbol addresses in global initializers

Bug Fixes

  • resolve cross emulator to whichever qemu spelling is installed
  • accept qemu- when static build is absent
  • restore patch.crates-io so workspace members unify with ras's copies
  • let darwin start 16-byte arg in odd x register
  • pack only scalar stack args on darwin arm64
  • class aggregate with unaligned field as memory on sysv
  • pin terminator last in scheduler dependence graph
  • take exe suffix from target, not host os
  • unignore src/bin so shipped weld reaches published tarball
  • drop block sort from cfg_simplify so live intervals follow control flow
  • export macho tlv descriptor, not storage
  • warn on fastest benchmark column, not lamina O0
  • pass s390x aggregate by value, right aligned, and copy exact size
  • align s390x global so larl can name it
  • pass wide variadic argument by value, not by buffer address
  • write symbol addresses into wasm global initializers
  • drop single element loop in weld gate test
  • hold base standard to aeabi helpers on armv7
  • compare float on i686 so unordered is never true
  • refuse when scratch runs out, not write callee saved register
  • drop libvcruntime from msvc link line
  • probe stack inline on windows instead of calling chkstk
  • copy exact aggregate size into win64 parameter copy
  • link libvcruntime so chkstk resolves on msvc
  • copy exact aggregate size into win64 caller copy
  • keep test scratch under target
  • count testcase with missing expected output as failure

Performance

  • fold constants into aarch64 arith, logical and cmp

Refactor

  • name s390x reserved registers by their abi constants
  • share inline asm mechanism across five backends

Documentation

  • weld installation
  • compute_intervals index space
  • drop stale testcases index

Tests

  • accept emulator's trap report when guest signal is not host's
  • resolve cross emulator in abi crosscall too
  • gate cross-call abi check on its own tool variable
  • accept version-suffixed debugger name
  • variadic tail call uses frame record its prologue pushed
  • lld-link builds pdb from our codeview
  • run suite at chosen opt level
  • give cross targets 900s so scaled benchmarks finish
  • scale benchmark workloads above timer noise
  • stop skipping float aggregates on riscv64 and s390x
  • flattened aggregate takes its own banks
  • stop skipping wide va_arg on i686 and armv7
  • variadic testcase states its width explicitly
  • wide va_arg rounds its cursor on armv7 and not on i686
  • odd sized global keeps its own address
  • every s390x global is at least halfword aligned
  • sixty four bit value crosses variadic tail on every target
  • wide variadic argument travels as its value
  • relocated wasm global holds real address and variadic call refuses
  • run riscv64 target
  • riscv save area ends where stack arguments begin
  • index struct array by its element type
  • run i686 and armv7 targets
  • unordered compare is false and helper reads its own variant
  • powerpc64 linux is what weld refuses
  • opt level and debug lines change object bytes
  • windows aarch64 sends variadic float in general register
  • riscv64 windows has no object writer
  • mapped three address operand skips scratch copy
  • caller saved register is never read back after call
  • callee saved register survives call on aarch64
  • disassemble with objdump name gate accepted
  • skip float aggregate cases where backend places none
  • windows large frame probes inline
  • run testcases under wine for x86_64 windows
  • win64 parameter copy reads no byte past aggregate
  • report dropped native target instead of skipping quietly
  • run integer wasm checks through wasmtime cli
  • report skipped tool and fail when LAMINA_REQUIRE_TOOLS is set
  • run wasm through wasmtime cli, not python binding
  • large stack frame runs with probed prologue
  • probe touches every page down to frame
  • win64 by reference copy reads no byte past aggregate
  • float aggregate crosses win64 boundary by size
  • crash detection and variant selection in run_tests
  • host assembly matches detected host target
  • each ptx refusal names its own construct
  • drop assertions that re-check their own setup
  • cross target codegen emits target's own add mnemonic
  • homogeneous float aggregate crosses aapcs64 boundary in v registers
  • float aggregate crosses sysv boundary by value
  • symbol address plus constant
  • aggregate holds pointer fields
  • global holds function address
  • global holds another global's address

Internal

  • lock weld 0.2.3 from registry
  • point manifests at Project-Lamina/lamina
  • lock ras 0.2.4 from registry
  • drop patch.crates-io from manifest
  • bump lamina crates to 0.2.1 and ras pin to 0.2.4
  • regenerate x86_64 codegen baseline
  • pin ras 0.2.3
  • drop benchmark drivers predating mir
  • install mingw gcc and report tool availability before tests
  • run cross abi check in its own job, away from gcc-multilib
  • install cross gcc, debuggers and wine for unit tests
  • install qemu provider when qemu-user-static is virtual
  • require testcases to pass on windows and macos
  • drop cross gcc from unit job and keep crash report advisory
  • run testcases on s390x under qemu
  • run testcases on aarch64 under qemu
  • install cross tools and fail on missing tool
  • install wasmtime and run runner tests on linux
  • drop uv from release workflow

Full Changelog: v0.2.0...v0.2.1


C SDK 0.2.1

Archive Target Surface
lamina-c-0.2.1-stable-x86_64-linux.tar.gz x86_64-linux Stable AOT (lamina.h)
lamina-c-0.2.1-nightly-x86_64-linux.tar.gz x86_64-linux + JIT (lamina_nightly.h)

Each archive includes headers, static + shared library, examples, pkg-config, LICENSE.

tar xzf lamina-c-0.2.1-stable-x86_64-linux.tar.gz
cd lamina-c-0.2.1-stable-x86_64-linux
cc examples/builder_aot.c -I include -L lib -llamina_c -Wl,-rpath,$(pwd)/lib -o builder_aot
./builder_aot

Verify checksums: sha256sum -c lamina-c-0.2.1-stable-x86_64-linux.tar.gz.sha256