灵符lingfu

ling-mir

↓ 0 downloads

Mid-level IR with real optimization passes

Keywords mir, compiler, optimizer, ir
lingfu install ling-mir
LicenseApache-2.0 OR MIT
AuthorsLing Lin, Sanny Lin
READMECode / FilesVersionsDependency GraphDependentsSecurityBuildsSettings

README

ling-mir

Ling's mid-level IR, sitting between the AST and code generation.

Functionality

Lowers the AST to an analyzable form, then runs optimization passes before handing off to the codegen backend.

Features

  • Real optimization passes (~3.8k lines)
  • A structure suited to both JIT and AOT
  • A shared contract between interpreter and compiler

Applications

The middle layer that makes Ling programs run fast via ling-codegen.

← Back to index