Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/willothy/kaleidoscope-llvm

Following along with "My First Language Frontend with LLVM" from LLVM.org
https://github.com/willothy/kaleidoscope-llvm

compilers llvm

Last synced: about 2 months ago
JSON representation

Following along with "My First Language Frontend with LLVM" from LLVM.org

Awesome Lists containing this project

README

        

# Kaleidoscope-LLVM

Following along with the "My First Language Frontend with LLVM" tutorial from LLVM.org.

Example usage (from LLVM.org)

$ ready> 2 + 2;
Read top-level expression:
define double @__anon_expr() {
entry:
ret double 4.000000e+00
}

$ ready> extern test();
Read extern:
declare double @test()

$ ready> def main(x) test() + x;
Parsed a function definition:
define double @main(double %x) {
entry:
%calltmp = call double @test()
%addtmp = fadd double %calltmp, %x
ret double %addtmp
}