Repository navigation
Lamina v0.1.0
What's Changed
Features
- codegen: pass and return aggregates by reference on windows x86_64
- codegen: return large aggregates through x8 on aarch64
- pass aggregates over 16 bytes by reference on aarch64
- return large aggregates through hidden pointer on x86_64
- pass aggregates over 16 bytes in memory on x86_64
- initialize struct and tuple globals from element list
- initialize array globals from element list
- declare extern functions without body
- add funcaddr and callptr for calls through pointer
- add neg, not and sqrt unary ops
- accept exponent in float literals
- add fpext and fptrunc between float widths
- lower array globals and string initializers
- route float print through printf32 and printf64
- codegen: write pointee bytes for writeptr on riscv and powerpc64
- codegen: convert between floats and integers on powerpc64
- codegen: convert between floats and integers on riscv
- codegen: return integer aggregates in x0 and x1 on aarch64
- codegen: return integer aggregates in rax and rdx on x86_64
- codegen: reject aggregate returns alongside aggregate parameters
- lower integer aggregate returns to slot plus pointer
- mir: add aggregate marker to return
- codegen: reject aggregate parameters on backends without classification
- codegen: pass integer aggregates in x registers on aarch64
- codegen: pass integer aggregates in gprs on x86_64
- lower integer aggregate parameters to pointer plus slot
- mir: add aggregate marker to parameter
- codegen: place powerpc64 globals and address them through toc
- codegen: set r2 from global entry in powerpc64 prologue
- codegen: place riscv globals and address them with la
- honour noinline when inlining calls
- mir: add no_inline flag to mir signature
- address module globals on aarch64
- convert between integers and floats on aarch64
- partially unroll loops with remainder prologues
- fully unroll small constant counting loops
- analyze signed counting loop trip counts
- reject globals on backends without support
- place globals in wasm linear memory
- emit globals on x86_64 with rip-relative access
- lower globals and their exports from ir to mir
- add symbol address instruction to mir
- emit int-float conversions on wasm32
- emit int-float conversions on x86_64
- lower int-float conversions from ir to mir
- add IntToFloat and FloatToInt to mir
- parse sitofp, uitofp, fptosi and fptoui opcodes
- ir: add sitofp, uitofp, fptosi and fptoui instructions
- eliminate guarded unit-step linear sum loops
- reduce quadratic induction products
- lower wasm simd128 vectors
- lower riscv vectors behind v extension
- lower aarch64 neon vectors
- codegen: model riscv vector extension
- lower vector lane access
- lower vector splats
- lower packed vector shifts
- lower vector bitwise operations
- lower packed vector arithmetic
- lower vector loads and stores
- reserve vector stack slots
- enable module inlining through shared optimization pipeline
- accept ppc64 targets on command line
- lower lea in riscv
- grow ptx scaffolding for integer kernels
- lower dispatch dimensions in amdgpu
- emit validated global integer memory operations in amdgpu
- emit scalar integer arithmetic and conversions in amdgpu
- lower work-item and workgroup identifiers in amdgpu
- load scalar kernel arguments from kernarg in amdgpu
- select gfx1200 and gfx900 processors in amdgpu
- wire GPU targets to kernel text artifacts
- emit minimal PTX and AMDHSA kernels
- declare GPU capabilities without host runtime or print
- mir: reserve GPU intrinsic calls to reuse call side effects
- mir: mark kernel entries with optional launch metadata
- preserve pointer and memory address spaces
- recognize CUDA and AMDHSA GPU targets
- accept u64 literals above i64::MAX
- implement readbyte and writeptr on x86_64
- model xlen and extension set, gate M-extension arithmetic in riscv
- mir: add SSA, dominance, type and terminator verification
- mir: add typed Copy instruction
- correct entry codegen for riscv
- expose lia_builder_memcpy, lia_builder_memmove, lia_builder_memset in c-api
- add memcpy, memmove, memset to OwnedIRBuilder
- add struct_gep_typed for ABI-correct field pointer computation in builder
- add memcpy, memmove, memset to IRBuilder
- ir: add field_byte_offset to GetFieldPtr for ABI-correct struct access
- ir: add struct layout utilities and fix stale FEAT:TODO comments
- extend c builder bindings
- composite types, switch, opt_level, JIT arity
- add orbis and prospero
- add basic c binding layout
- add weld linker usage
- state more targets
- add support for switch
- extend simd inst
- add experimental arx test platform
- add C abi support for jit
- refine JIT behavior
- add proper colorization
- implement proper reg alloc with colorization for powerpc
- add powerpc suppoert
- add helper for mir handle
- add codegen's target support base code
- add print usage error (only for debug)
- add weld usage to link
- prepare for
ras,weld - extend test coverage
- add bit more support for codegen
- add transform o1 testcase and other minor
- add support to dynamic builtin
- add basic auto vectorization
- add macro for inline JIT
- support
jobflag - platform: add cpu number detect
- introduce proper parallel compile
- prepare multi thread
- enhance error message and hint
- implement proper levenshtein edit distance
- extend error message for annotation
- add support for
externannotation - modulate assembler in ras
- add basic simd support
- platform: add simd detection
- add basic simd
- add basic
SIMDdetection - add aarch64 jit support in ras
- add basic assembler
rascrate - modulate target code to sub-crate
- add basic assembler with encoder
- mir: add common abi module
- add capabilities marking
- use assembler/linker in raw ld/lld, as/gas
- add assemble and link for utilizing the linkers
- add support for
tailcallforx86_64 - update based on the transform changes
- enhance
peephole,scheduleopt in transform - improve and cleanup
memoryopt in transform - improve and cleanup
deadcodeelimination in transform - improve and cleanup
loopopt in transform - add constants per os in order in mir_codegen
- cleanup comments and write proper docstring
- add factorial bench and alter script in benchmark
- add memory inst placeholder
- finish implementing
switch - add support for builder for new inst
- add support for parsing it
- add support for
switch - add ir conversion inst
- ad bitwise support
- improve float parse
- implement proper call to wasm in mir_backend
- add calling support for risc-v in mir_codegen
- support float for aarch64 in mir_codegen
- add func call for x86 in mir_codegen
- add load/store to risc-v in mir_codegen
- adjust code based on nightly
- add support for more nightly simd/atomic
- annotate nightly feature
- ir: change display order
- mark
arteryriscv128as nightly - mark unimplemented op with error in mir_codegen
- add placeholder for build issue
- mir: add placeholder for
atomic,simd - ir: add placeholder for
SIMD - improve
BSDhandling - add more function annotation
- enhance
bsdhandling - utilize new target enums
- unify target enum usage
- add proper target handling
- expose new codegen
- expose
wasmin mir_codegen - add more pattern for matmul in transfrom
- add brach opt and sanity check in transform
- add ssa elimination in transform
- add schedule opt in transform
- add peephole opt for 2dmatmul in transform
- implement basic
risc-vin mir_codegen - support
wasmin mir_codegen - modulate, use trait on
x86_64in mir_codegen - mark more stable opts in transform
- add more platform support
- implement basic
x86_64support in mir_codegen - for
aarch64, use mir as default flow - stablize loop opt in transform
- improve copy propagation in transform
- merge
mir_codegen's error to main error - add prime generation bench for modulo
- for
mortionadd more copy pattern in transform - enhance load/store operation opt in transform
- add remove dup loop in transform
- mir: enhance mir generation
- add addressing opt for memory in transform
- add cfg opts in transform
- add some special opts
- add some cononicalize opt in transform
- add basic memory optimization in transform
- ir: add rem support
- codegen: add placeholder for compiler error on rem
- add targeted optimization to Rem in transform
- expose two more opts in transform
- add basic strength reduction in transform
- support tailcall to deadcode in transform
- add
--versionflag - add basic tailcall in transform
- add verbose opt log
- expose inline, motion opts and add to pipeline in transform
- mir: expose transforms
- add sets of motion opts in transform
- extend
peepholeopt in transform - extend inlining opt in transform
- add basic
loopopt in transform - implement transform pipeline
- add dyn dispatch support #14 in regalloc
- add dyn dispatch support #14 in regalloc
- codegen: add basic regalloc for
mips - codegen: add regalloc for
x86_64 - codegen: implement basic regalloc trait
- codegen: mark TODO for other arch's symbol
- codegen: alter the
aarch64to use the trait - mir: add placeholder for
simd - codegen: state static for codegen option
- codegen: mark types for types, globals, funcs
- codegen: add
Redoxto target os list - add placeholder for more opt methods #3 in transform
- mark all
.DS_Storeto.gitignore - refactor to use manual marking on Result
- codegen: state more backend arch
- codegen: state basic regalloc idea
- codegen: state basic
Codegentrait #14 - add script for mir flow
- add experimental support to use the mir flow
- mir: extend support to more ir
- codegen: add basic
mirtoaarch64 - codegen: add placeholder for
MIRasm x86_64 - codegen: add basic
MIRto asm foraarch64 - add support for stack and alloc operation in risc-v
- expose
riscassembly generation - add
riscas a supported backend - add support for emmit
MIR - mir: add proper
Displaytrait support - support width based operation in risc-v
- implement basic
Risc-Varch - add basic
Peepholeoptimization as a reference in trasnform - add
WASMto supported list - expose mir to
lib.rs - add
peepholeoptimization placeholder in transform - add
deadcodeelemination optimization placeholder in transform - mir: set the mod file with testcase
- mir: add basic module structure
- mir: add basic function baseplate
- add
emit-miroption - mir: add
BlockforFunctionimplementation - mir: add basic
instructionset - mir: add types
- codegen: enable
wasmbackend - mir: basic register handling
- mir: add
opt_levelmark - mir: add placeholder for
transform - mir: add comments for mark
- codegen: Add WASM codegen.
- add
stdintestcase - implemnt
ptrtoint,inttoptroperation in aarch64 - add testcases for the bugs
- add support for dynamic allocation support in x86_64
- introduce variable indices for gep in x86_64
- add tests for expected bugs
- add suit of tests for types
- implement type conversion for the rest
- state type conversion for parser
- implement basic IO in x86_64
- extend docstrings
- add io tests
- add some more test
- add
hello_worldas test - introcude proper stdout
- add parser support for IO
- add placeholder for IO
- update test code
- add testcases for pointer releated ones
- introduce basic advance error handle
- add more mem test
- remove and change some testcases
- implement basic
Float - add
fibonaccitest in bench - add more test with runner
- add basic testcases
- fix print calling on macOS aarch64
- implement basic
aarch64operation - improve target handling
- add support for new
IRonCodegen - add Float and other types to
IR - clean up codes, and implement basic optimization
- add batch benchmark code
- add nim to the benchmark
- add memory tracking to benchmarker
- add inline optimization
- arch based behavior change implemented
- improve cli usage and error report
- export basic IR and etc
- implement IRBuilder
- implement ratio view to bench
- implement basic linking and build
- add benchmark runner script
- add some matmul benchmark sources
- add some more testcases to inst
- add zext, load test
- implement basic
IRbuilder - add basic tests per function of inst
- implement basic codegen
- add support for
I8Literal - add basic form of ir parser
- implement basic ir structure
- init
Cargo
Bug Fixes
- gate callee frame headroom to the hosts that use it
- borrow closure once in riscv rv32 check
- codegen: keep powerpc64 locals out of parameter save area
- codegen: flush after print on riscv and powerpc64
- codegen: give aarch64 switch register for its case constant
- let phi read value its own block defines later
- replace folded float unary instead of folding its operand
- codegen: pass fd to write and read intrinsics
- print unsigned values through printu
- parse global initializer at width of declared type
- treat bool as one bit when checking conversion widths
- codegen: give riscv floats integer registers when float bank runs out
- name bad width conversions instead of reporting composite types
- codegen: pass floats in f registers on powerpc64
- codegen: pass floats in fa registers on riscv
- codegen: pass floats in v registers on aarch64
- codegen: place powerpc64 stack arguments in parameter save area
- codegen: route byte io through libc on riscv and powerpc64
- codegen: wrap i64 subtraction in riscv load_imm
- name instruction, block and function in lowering error
- never inline calls to external functions
- materialize aarch64 switch case constants beyond mov immediate range
- invert aarch64 conditional branches for functions beyond branch reach
- encode aarch64 frame offsets beyond 12-bit immediates
- release aarch64 frame size prologue reserved on tail calls
- keep aarch64 global allocation out of caller-saved registers across calls
- encode riscv vector slot addresses beyond 12-bit immediates
- encode ppc64 lea offsets beyond 16-bit displacement
- reserve stack allocations in powerpc frame
- encode ppc64 frame offsets beyond 16-bit displacement
- use darwin syscalls on apple mobile x86 targets
- encode riscv lea offsets beyond 12-bit immediates
- reserve stack allocations in riscv frame
- accept apple mobile targets in assembly support check
- encode riscv frame offsets beyond 12-bit immediates
- link apple mobile targets with mach-o conventions
- pass mach-o assembler flags to apple mobile targets
- route aarch64 print and syscalls through mach-o check
- emit mach-o directives for apple mobile targets
- classify horizon, orbis and prospero as elf
- emit mach-o symbols for apple mobile targets
- clarify errors for bare ret and trailing instructions
- reject type nesting beyond 256 levels
- platform: reject big-endian powerpc64 target name
- run ir validation after parsing
- codegen: classify apple mobile oses as mach-o
- codegen: support android as elf and assembly target
- ir: exempt pointer returns from return type check
- ir: reject unknown named types and size cycles
- ir: reject literal out of range for its type
- ir: reject repeated switch case values
- ir: reject phi edge from undefined block
- ir: reject return value of wrong type
- ir: allow cross-block uses in validation
- truncate long error context at char boundary
- stop panicking on non-ascii input in parser peek
- preserve jump targets across adjacent cfg merges
- licm recomputes loop analysis after each hoist
- instruction scheduling keeps reads before later redefinition
- licm natural loop of self-loop excludes predecessors
- licm skips definitions whose register is read elsewhere
- x86 binary ops read rhs before loading lhs into destination
- zero-extend bool params on powerpc64 entry
- zero-extend bool params on aarch64 entry
- sign-extend narrow params on powerpc64 entry
- sign-extend narrow params on aarch64 entry
- emit gnu stack note on elf targets
- extend narrow params by declared signedness, not always signed
- treat char as signed in abi signedness
- riscv and powerpc64 reject writeptr instead of calling it
- writeptr width can be stated with typed suffixes
- pass pointee width to writeptr
- drop redundant reference in assert argument
- classify float arguments and results into xmm registers on x86_64
- widen narrow external arguments and unsigned results by signedness
- emit numbered .file once per translation unit
- emit global binding for exported functions
- sign-extend narrow params and call results to their width
- drop redundant wildcard in address pattern
- verify ssa before phi edge lowering
- verify call types against mir signatures
- verify typed mir at optimizer boundaries
- mir: verify terminator placement at pipeline boundaries
- emit rv32-compatible floating loads and scalar operations
- normalize interpreter comparisons and integer conversions
- preserve caller frames for stack-derived tail arguments
- keep wasm caller frame live across tail calls
- lower wasm tail calls to return_call
- normalize wasm integer compare operands at their width
- allocate wasm stack slots in per-call linear-memory frames
- start wasm dispatcher at entry block
- emit valid powerpc float unary mnemonics
- reserve complete aggregate storage after resolving named types
- preserve ieee float comparison semantics on x86_64
- trap div by zero and MIN over -1 in every backend
- codegen: reserve arithmetic scratch registers
- fold wrapping integers and preserve division traps
- eliminate dead loop-carried updates
- preserve x86 scratch across stack copy cycles
- initialize globally allocated aarch64 parameters
- lower arx64 tail calls
- stabilize wasm local numbering
- reduce induction products to fixed point
- find loop headers from cfg back edges, not layout position
- process loops in block order
- give peeled block its own registers for values it does not export
- size struct allocations with abi padding
- drop unreachable ret left behind by tail call conversion
- place planned spills below local stack slots
- preserve MIR namespaces during module inlining
- number ppc64 float compare labels by sequence
- number ppc64 compare labels by sequence, not by operand address
- sign extend narrow ints in powerpc64
- sign extend narrow ints in riscv
- sign extend narrow ints in aarch64
- normalize narrow integer conversion results
- sign extend narrow ints in x86_64
- preserve global register allocations across control flow
- chain atomics and fences onto memory dependency edges
- push float immediates as bit patterns in wasm
- import wasm runtime helpers that calls reference
- declare wasm memory and wrap addresses to i32
- materialize 64-bit constants and name double float ops in powerpc
- lower stackaddr in powerpc
- support composite element types in getelem.ptr
- lower stackaddr in riscv
- lower stackaddr in wasm
- report worker codegen error instead of closed channel
- join block labels with dot so function and block names cannot alias
- namespace riscv select labels out of block label space
- qualify block labels by function in powerpc
- label entry block in aarch64
- qualify block labels by function in aarch64
- transfer powerpc float memory values through fprs
- preserve pointer width in constant gep arithmetic
- zero extend narrow integer loads in riscv
- invalidate aliasing stores during memory forwarding
- keep inline register IDs above stack storage
- honor gfx1200 kernarg and workgroup register ABI in amdgpu
- preserve immediate widths in arithmetic rewrites
- preserve GPU intrinsic calls in tail position
- add explicit int and pointer conversions
- give straight-line reassignments fresh registers
- add explicit stack storage addresses
- match integer immediates to consuming types
- skip the Windows home space when reading incoming stack arguments
- run tests with stdin at EOF so readbyte cannot block on a terminal
- zero al before variadic printf on macOS x86_64
- always reserve Windows home space at call sites
- report bytes written from writebyte and writeptr on Windows
- name each failing test and repeat failures in the final summary
- load the pointer for aarch64 lea instead of using the slot address
- keep rsp 16-aligned across call argument setup on both x86_64 ABIs
- round x86_64 frames up to 16 bytes so rsp stays aligned at calls
- report exit status on execution failure and only fail on real crashes
- stop repointing sp at a heap buffer for aarch64 dynamic calls
- reserve aarch64 stack space for allocations wider than one slot
- reject out-of-range integer literals instead of parsing them as floats
- use real struct field offsets for getfieldptr parsed from text
- reserve stack space for allocations wider than one slot
- report EOF from readbyte as 0 on Windows to match the syscall paths
- force UTF-8 output in run_tests.py so Windows consoles do not crash
- ignore dealloc.heap on stack allocations
- lower dealloc.heap to free instead of an undefined dealloc symbol
- spill caller-saved across calls, save callee-saved, reject i64 on rv32 in riscv
- gate float arithmetic and comparison on the F and D extensions in riscv
- emit word-width memory ops and frame offsets for rv32 in riscv
- stop the allocator handing out argument and live registers in riscv
- qualify block labels by function and drop pointer-derived label names in riscv
- copy incoming arguments into their stack slots in riscv
- place locals below the saved ra and fp, and align sp to 16 in riscv
- keep sandbox mapping alive after timeout in runtime
- return owned handle from compile_function in runtime
- parse float literals as f64 in parser
- mir: limit identical-select rewrite to integer types
- use operand width for load and store in x86_64
- pass clippy checks
- use CRT putchar for writebyte on Windows (#20)
- fix missing PI import and wrong crate paths in nightly doctests
- mir: use correct unsigned ops for div, rem, shr on unsigned integer types
- pass linux ci checks
- merge conflict
- make stack-slot assignment deterministic
- gate encoder-only runtime imports and fields behind cfg
- eliminate inline imports and unnecessary allocations in tests
- move inline use statements out of function bodies
- remove redundant and in-function imports in x86_64 regalloc tests
- remove unused test_utils imports and gate encoder-only test imports
- resolve clippy errors in nightly-gated code
- add SAFETY comment and replace owned params with borrows
- remove redundant explicit derefs flagged by clippy
- fix CI and minor warns
- fix rebuilding stops for stamp
- fix hardcoding and minor build bug
- fix minor build bug
- harden codebase for c binding
- fix minor bugs found by coderabbit
- fix minor standalone build bug fix
- fix msvc detection
- fix weld usage on linux
- fix windows link with PE
- fix linux build
- fix linux buld
- fix warning
- fix args and link issues
- fix windows build
- fix abi usage and assembled machinecode
- fix using llvm used register
- fix inline
- fix experimental to stable
- fix opt bug
- fix mir opt bug
- fix target handling
- codegen: fix regalloc for aarch64
- fix aarch64 macOS not able to run encode issue in ras
- fix x86 assemble with encode issue in ras
- fix doctest for the one that is now working
- fix executor not working on x86
- fix jit runtime to use C based approach for system call
- fix encoder layout issue on aarch64 in ras
rustclippy- fix test for check functional equivalence
- avoid hardcoded list of types
- fix test result cause of the structure change
- fix simd vector nightly build
- fix nightly build setup
- fix jit on macOS
- fix jit crash
- fix ci workflow order
- fix test execution
- fix clippy warning
- implement std fromstr trait properly
- fix clippy warning
- fix unwrap usage much safer
- tempory fix for builder
- fix wasm bin generation flag
- state clippy allow to testcase unwrap
- temporary fix for ci with no executable
- fix linker flag for x86 need to support more advance control in the future
- fix linker args
- fix wasm build
- fix wasm to work properly with wat2wasm
- fix codegen on x86 in mir_codegen
- fix self calling error
- fix for build error
- add memory barrier, flushing for
writein mir_codegen - fix syntax error
- overhaul the testcases and use expected based test
- fix more than 8 args issue in mir_codegen
- fix target processing on x86
- change lifetime parameter
- remove timeout and other unused
- remove arch dependent test
- fix bug may occure on parsing
- fix target wasm to wasm32 / wasm64
- enhance
memoryopt to be more stable in transform - make
loopopt more stable in transform - mark few more stable opts in transform
- fix unstable peephole Cmp in transform
- fix wrong testcase in parser
- mark some more unstable opts in transform
- make
deadcodeto be more stable in transform - re-sort cfg and re-introduce opt1 in transform
- fix gating issue and make properly phi lowering
- overhaul the list of useable regs in mir_codegen
- fix error on tensor test and overhaul testcase in parser
- fix use of
mir_codegenrefactored unit - fix use of
mir_codegenrefactored unit - fix tailcall frame issue in transform
- pre-detect overflow for subtract in transform
- fix incorrect propagation in transform
- add signed division overflow check in transform
- remove issue of chain elemination in transform
- remove always applying opt in transform
- fix
inlineonly using hardcoded types in transform - fix unstable opt to be more stable in transform
- use checked operation in transform
- fix to preserve original types in transform
- fix unsafe control flow in transform
- fix overflow risk in transform
- for
loopopt fix issue with physical registers in transform - mir: mark
MirTypeimport on test section - codegen: fix missing import
- fix
OUTPUTwritten asOUTOUT - support stack offsets beyond [-256, 255] range in aarch64
- rename
risc-vbackend in riscv - fix problemetic docstring in transform
- mir: fix lifetime issue of inst
- change generate::WasmInstruction::Comment to format to a block comment
- fix stdin and function issue in aarch64
- fix read's return value in x86_64
- fix testing
- fix read return value in x86_64
- fix function issue in x86_64
- fix stdin codegen in x86_64
- fix aarch stackframe bug in aarch64
- fix zero extension, deallocation, division in aarch64
- fix doctests
- fix test not returning 0 exit code
- fix varible index support
- large_constants test
- for
GEPadd support for type aware in x86_64 - fix more type bugs
- iprove heap stack memory control in x86_64
- fix GEP, field offset
- adjust testcases
- temp implementation for wrong element size in x86_64
- add flush for IO in x86_64
- fix doctest, remove emoji
- remove emoji
- fix testcases for wrong printing
- fix operation of
writeptr - fix writeptr being same wit save in aarch64
- fix buffer not getting flushed in aarch64
- fix old tests
- fix docs errror
- fix memory allocation in aarch64
- fix stack and heap allocation in aarch64
- implement heap memory usage in aarch64
- utilize localsize in x86_64
- use fixed offset for struct for now in x86_64
- fix testcases
- fix two more memory pointer implementation in x86_64
- fix external function test
- fix test not returning 0
- fix basic memory allocation in x86_64
- fix typo issue in aarch64
- fix test's value in x86_64
- remove all String based error
- remove helper
- fix var releated bug in x86_64
- fix hardcoded shifts, threshold, etc in aarch64
- fix hardcoded values in x86_64
- fix malform in x86_64
- fix main function issue in x86_64
- fix recursive error in aarch64
- fix register bug and non bug as fine in aarch64
- fix plain
todo!to proper error for now - fix
Zero Extendin aarch64 - fix aarch64 using x86_64 size and stack alignment
- make it use
Mach-Ocompatible section directive in aarch64 - refine and fix arch detection
- fix warning
- on macOS, prefer
Clang - fix warnings
- fix the benchmark code is only running the sample iter
- fix batch size of
Go - fix print not printing newline
- fix function label gen
Performance
- mir: replace dominator sets with dominator tree
- skip copies that stay in their physical register
- compare register against immediate without loading rax
- enable bounded loop unrolling at o2 and o3
- retain scalar loops for serialized multiplication
- bound unroll factors and instruction growth
- preserve terminal comparisons during instruction scheduling
- coalesce unrolled recurrences and preserve guarded exits
- rename mutable values across unrolled iterations
- apply shared mir analyses to ppc64
- apply shared mir analyses to riscv
- apply shared mir analyses to aarch64
- rotate x86 loops onto conditional back edges
- coalesce x86 dying inputs with copy destinations
- select x86 lea for three-address addition
- invert loop branch so latch needs no extra jump
- track block definitions in set so conversion stays linear
- weight spills by loop depth
- align loop headers past size threshold
- strip self moves from emitted assembly
- probe for block label instead of building discarded parse error
- reserve stack slots only for global allocation storage
- reduce induction products with guarded recurrences
- copy self tail call arguments straight into parameter homes
- treat self tail call as jump so caller-saved registers stay usable
- lay out blocks so branches fall through instead of jumping
- branch on compare flags instead of materializing 0 or 1
- re-enter self tail call past prologue instead of through function symbol
- default optimized x86_64 builds to linear scan
- stage incoming parameters only for register conflicts
- allocate caller-saved registers within safe live intervals
- widen x86_64 global register pool
- skip redundant x86_64 rax reloads
- compare against imm32 without scratch register
Refactor
- pass io error helper without closure
- wrap x86_64 write failures with shared helper
- move aarch64 and wasm tests beside their backends
- move ir lowering tests to own file
- move riscv and powerpc64 tests beside their backends
- share printf and flush emission on x86_64
- share riscv argument passing between call forms
- wrap wasm write failures with shared helper
- share call signature table between riscv and powerpc64
- share align_up, writeptr_width and print format label
- drop unread slot index in powerpc64 argument place
- drop unused stack argument count in powerpc64 call
- share compiler driver entry point with unit tests
- return mir liveness and coalescing data
- split x86_64 code generation by responsibility
- share mir control flow and copy analyses
- share vector stack reservations
- pick copy mnemonics by type size
- merge imports per crate
- drop prelude imports and merge split ones
- apply main workspace clippy policy
- Clean up duplicate imports
- deduplicate parse_getelem type matching; propagate field_byte_offset in parser
- import cleanup
- Remove unused import
- Remove unused import
- cleanup codebase and tighten clippy
- clean up all-target clippy findings
- cargo fmt
- extract shared transform size-guard into helper
- replace stringly-typed transform errors with TransformError
- extract shared stack-slot assignment into common helper
- collapse binary-op lowering and drop redundant clones
- import std cleanup
- import std cleanup
- import std cleanup
- Remove null import
- import std cleanup
- cargo fmt
- Remove unnecessary path prefixes
- Change description
- Remove unnecessary imports
- cargo fmt
- replace manual cfg chains with std::env::consts in detection.rs
- Remove unused import
- Remove unused import
- trim excessive doc comment in error.rs and add proper docstrings
- extract shared test helpers in transform modules
- replace Box in executor and JIT with LaminaError
- replace String errors in transform passes with TransformError enum
- reduce owned string allocations in MIR transform passes
- fix last inline crate:: path and wire SIMD detection into codegen
- remove deprecated legacy API functions and dead file
- Remove unnecessary path prefixes
- Remove unnecessary path prefixes
- remove remaining inline crate:: qualified paths across workspace
- Update explain
- Remove import super
- Remove import super
- cargo fmt
- Remove import super
- import cleanup
- Remove unnecessary path prefixes
- test import integration
- test import integration
- cargo fmt
- refactor import usage
- prefer idiomatic Option combinators
- merge duplicate match arms
- Snake case applied
- extract identity_copy_source helper, deduplicate arithmetic-copy detection
- extract call_args_valid helper, deduplicate guards in c_abi_dynamic
- deduplicate CFG utilities, fix Block::successors Switch case
- extract suggest_alternatives helper, deduplicate suggestion pattern
- deduplicate helpers in mir/codegen/convert.rs
- remove redundant #[allow(dead_code)] in regalloc impls
- remove dead code and restore arch ABI tests
- consolidate arch backends into lamina-codegen
rustclippy- prefix changed to lia
- refine minor warning
- refine docstring
- fix naming of ras for crates io upload
- refine comments and code struct
- refine code executable method
- refine transform codes
- modularize cli code
- refine codebase
- refine JIT runtime sandbox
- modularize ir def
- alternate docs and codes to use writebyte
- platform: narrow detection export, and deprecate old one
- match other files to the new fixes in ras
- modularze motion transform
- mark unsafe for JIT
- migrate to mir based exports not legacy
rustfmt- move jit interaction code into runtime
rustclippy- move
edit_distancesince it's used common - improve docstring
- harden codebase releated to annotation
- modulate mir def
- modulate codegen
- support readable errormsg for ir parser
- modularize builder
rustclippyrustclippy- fix unwrap used in production code
- unify abi usage
- standardize emit_asm and finalize
- unify code inconsistencies
rustclippy- improve code reuse
rustclippy- use new assembler linker pipeline
rustclippy- cleanup
inline,motionin transform rustclippyin transform- cleanup codebase
- cleanup code and improve maintainablity in mir_codegen
- cleanup codebase
- modulate parser
- simplify code
rustclippyrustclippyrustclippy- utilize Codegen trait for codegen pipeline
- stablize target parse
- optimize
primegenerationbench code - re-structureize usage releated code quality
- mir: makee it insert at once
rustclippy- remove some aggresive opts causing issue in transform
- move mir_ver for future removing old path in mir_codegen
- improve basic loop detect
- fix code inconsistency in transform
rustclippyrustclippy- mir: modularize
IRtoMIRcodegen - mir: move mir codegen as it's own folder
- mir:
rustclippy - avoid use of
While Letchain - change comment to docstring in transform
- remove duplicate () in wasm
rustclippyin wasm- mir:
rustclippy - not use
printmethod since it's for debugging rustclippyrustclippyrustclippy- cleanup
x86_64 - cleanup
common - cleanup
aarch64 - optimize lamina's IR code
- remove
IndexMap - remove unneeded lifetime a
Documentation
- contracts for mir registers, signatures and ir types
- name what MIR types and the jit interpret switch are for
- globals and extern declarations
- conversions, unary ops and function pointers
- ir: wrapping integer semantics
- codegen: refine docstring
- enhance docs bit more detailed
- enhance comment and testcase
- add more abi docs
- enhance documentation for ABI
- enhance ABI docs
- Add Contributor Covenant Code of Conduct
- add docstring to few legacy codes
- add docstring for builder each types
- add more docstring to the codebase
- refine
READMEFinally Exam is almost over - state Unknown case
- state safty comment in transform
- write some opt ideas
- mark doc comments to proper doc
- mir: update
LUMIRexplanation - update msrv to
1.89 - improve with more examples
- update docs for
IR - extend document
- document missing ones
- enhance main docs
- apply the number of tests removed
- refine
README - refine
README - remove unneeded info
- improve
README - add
logofile - add
IRBuilderto README - add basic README
Tests
- measure matmul with monotonic clock at microsecond resolution
- normalize crlf and name the runner mode for what it is
- gate native oracle tests on the host they need
- build testcase programs under target
- sret call with mixed register and memory arguments
- skip wasm runs where uv cannot fetch wasmtime
- drop constructor echo tests
- switch dispatch and memory intrinsics reach every arm
- aggregate at either boundary reaches only classifying backends
- cross assembly tests skip on hosts without target
- wasm stdout compares equal on crlf hosts
- mir: dominator queries hold across long block chain
- riscv lea offset past 2047 lands inside reservation
- mach-o print calls resolve to underscored symbols
- powerpc64 entry zero-extends bool params
- aarch64 entry zero-extends bool params
- wasm narrow arguments keep declared signedness across calls
- riscv unsigned narrow compares zero-extend both operands
- interpreter compares narrow arguments at declared width
- powerpc64 entry sign-extends narrow params
- aarch64 entry sign-extends narrow params
- narrow param prologue picks extension from signedness
- char returned from call reads back signed
- globals observe initial, zeroed and stored values
- fptosi and fptoui saturate and map NaN to zero as C does
- sitofp and uitofp match C for every integer width
- io_types stdout is compared byte for byte
- io_types expected output holds raw binary bytes
- writeptr byte count follows pointee width
- conversion corpus preserves outputs with explicit widths
- linear sum elimination matches interpreter and refuses unproven loops
- integer ops wrap mask and trap on every backend
- gpu emission assembles and rejects unsupported kernels
- inlining preserves execution across driver modes
- narrow integer execution preserves bit patterns
- global allocation preserves outputs and frames
- simd executes and encodes on every backend
- c# and zig matmul compute every cell
- parser reads 2d matmul with five functions
- 2d matmul benchmark runs same algorithm as c version
- shared backend plans keep register aliases
- narrow integer codegen holds across optimization levels
- capable_lamina prints expected output
- build i64::MIN without an out-of-range literal
- replace the out-of-range scale factor in register_size_mismatch_bug_test
- rewrite tiny.lamina against the real getelem.ptr syntax
- repair struct_operations_comprehensive getelementptr arity and expected output
- refresh expected outputs that no longer matched their sources
- repair gep_variable_indices duplicate functions and wrong sum
- add tests for struct_gep_typed, memcpy, memmove, memset in builder
- add inline tests for x86_64 register allocator
- add inline tests for cfg transform module
- add inline tests for sanity and memory transform modules
- add inline tests for lamina-c builder, jit, and module
- add inline tests for cli jit module
- add inline tests for runtime executor and compiler
Internal
- bump crates for 0.1.0 release
- ignore testcase binaries built into the repo root
- Added a test to verify the existence of the value.
- platform: bump version
- bump minor versions
- fix too long tag
- prepare release
- add clippy settings
- bump version
- improvement error msg and documentation
- add clippy lint option
- bump to
0.0.8-dev - bump to 0.0.7 from dev ver
- update
.gitignore - comment out arm32 placeholder
- state bumped version and dev state
- deprecate unstable
LICMin transform - remove resolved bug
- bump version
- update
.gitignorefor macOS - bump version
- bump version
- bump to
0.0.3 - add some TODO
- mark more bugs in aarch64
- mark
Cargo.toml - improve todo
- mark bugs
- cleanup code
- set version
0.0.1for initial release - due to faster processor on my server, reduce timeout
- rustfmt
- wrap long lines in riscv and ppc64 frame code
- import codegen helper paths
- use ? instead of matching on convert_instruction
rustfmt- import struct_field_byte_offset directly
- trim comments to what the code does not already say
- inline variables into format! strings
- apply rustfmt to transform and runtime modules
- move all inline module paths to file-scope imports across workspace
- apply more import stripping
- apply clippy lint suggestions (uninlined_format_args, redundant_closure)
- move inline use statements to file scope in simd.rs
- apply rustfmt
- move inline use statements to file/module scope
- move inline use statements to module scope, remove redundant comment
- rustfmt import ordering in aarch64 mod.rs
rustfmtrustfmtrustfmtrustfmt- rustfmt
rustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmt- codegen:
rustfmt rustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmtrustfmt- fail tagged release when tag does not name lamina version
- install uv so wasm simd test runs
- reject commit subjects that are not conventional commits
- generate release notes from conventional commits
- capture the macOS crash report and backtrace on failure
- run testcases on linux, windows and macos
- fix back to automatic changelog generation
- record registry source and checksum for lamina-ras in lock
- follow published versions in lamina-c deps
- lock lamina-ras to the published 0.1.4
- untrack compiled testcase programs
- require lamina-ras 0.1.4
- require lamina-ras 0.1.3
- depend on published lamina-ras instead of vendored copy
- use newer crate version
- add msrv
- release C Binding SDK release
- bump ras version
- mark version for later maintain
- cargo toml update
- add nightly feature
- add automation
- place
use_moldfeature - ir: drop integer literal range check
Other
- chore : Remove unused dependencies
- chore : Add missing code during merge
- chore : Add missing imports
- refactor : Change match to iterator
- refactor : import cleanup
- refactor : cargo fmt
- refactor : Consolidate frequently used path prefixes into imports
- refactor : Consolidate frequently used path prefixes into imports
- refactor : Consolidate frequently used path prefixes into imports
- refactor : Consolidate frequently used path prefixes into imports
- refactor : Integration of imports separated in test
- refactor : Remove path prefixes that are already imported
- refactor : Move import to the top
- refactor : Edit comments
- refact : Remove unnecessary path prefixes
- chore : Remove unused uses
- refactor : apply cargo fmt
- chore : code refact
- remove: migrate
rasto separate repo - remove: remove legacy codegen
- stye:
rustfmt - remove: remove useless testcase
- remove: remove ai generated codes
- remove: remove binary
- remove: remvoe cache file
- remove: remove mistaken commit
- remove: remove debug print
- refact : Code Cleanup
- remove: remove readptr from testcase
- remove: remove unneeded
readptr - remove: remove unneeded testcase
- Initial commit
Full Changelog: v0.0.10...v0.1.0
C SDK 0.1.0
| Archive | Target | Surface |
|---|---|---|
lamina-c-0.1.0-stable-x86_64-linux.tar.gz |
x86_64-linux | Stable AOT (lamina.h) |
lamina-c-0.1.0-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.1.0-stable-x86_64-linux.tar.gz
cd lamina-c-0.1.0-stable-x86_64-linux
cc examples/builder_aot.c -I include -L lib -llamina_c -Wl,-rpath,$(pwd)/lib -o builder_aot
./builder_aotVerify checksums: sha256sum -c lamina-c-0.1.0-stable-x86_64-linux.tar.gz.sha256