reilabs / llvm-to-cairo

Efforts to compile LLVM bytecode to run on top of the CairoVM and hence execute provably on Starknet
http://starknet.io
Apache License 2.0
1 stars 0 forks source link

Compile LLVM to Equivalent CIR #24

Open ktemkin opened 5 days ago

ktemkin commented 5 days ago

Description

Use Inkwell to ingest LLVM IR from a file on disk and translate it into the Cairo IR structure. This should use equivalent structures where they exist, and start by stubbing out to no-op polyfills where they do not.

At the end of this task, we should be able to ingest LLVM IR and translate it wholesale to FlatLowered, with little regard for semantic mismatches. In other words, where possible we want this phase to just use the closest possible approximation for an operation.

iamrecursion commented 3 days ago

Spec