reilabs / hieratika

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

Introduce compiler-rt and add bitwise `and`, `or`, `xor` polyfills #89

Closed wzmuda closed 3 days ago

wzmuda commented 1 week ago

Summary

Introduce compiler runtime module. Add relevant CI changes and update the PR template to reflect that we should also format the Cairo code.

Start implementing ALU. Add the top-level module and submodules for and, or and xor operations. Add relevant readmes.

Implemented polyfills:

and

Implements bitwise and operation.

API

or

Implements bitwise or operation.

API

xor

Implements bitwise xor operation.

API

Other PRs for issue #38 will follow.

Details

Checklist

wzmuda commented 1 week ago

One thing I want to see is documentation of the structure and why this structure is chosen.

Sure, where would be a good place for this? Dedicated README.md in the compiler_rt directory perhaps? That would be a central point for everybody who starts reading/modifying the runtime and would display nicely on github.