Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/willothy/kaleidoscope-llvm
- Owner: willothy
- Created: 2022-04-13T05:28:50.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-21T09:59:23.000Z (almost 3 years ago)
- Last Synced: 2024-10-30T00:49:20.204Z (3 months ago)
- Topics: compilers, llvm
- Language: C++
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
}