Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laurci/ts-llvm
Macro that converts functions to LLVM IR
https://github.com/laurci/ts-llvm
Last synced: 30 days ago
JSON representation
Macro that converts functions to LLVM IR
- Host: GitHub
- URL: https://github.com/laurci/ts-llvm
- Owner: laurci
- Created: 2022-11-16T18:42:34.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-07T19:20:24.000Z (over 1 year ago)
- Last Synced: 2024-10-30T06:27:13.400Z (3 months ago)
- Language: TypeScript
- Size: 37.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ts-llvm
Macro that converts functions to LLVM IR and builds it.
This project is **incomplete**! It can only compile return statements and i32 values.
## Building and runnning
You need to have llvm 14 installed on your system.
To build the project run `yarn build`. The output can be found in the `demo` directory. The binary is `demo/out/test_main`. The generated IR text can be found in `demo/test_main.ll`.