https://github.com/hughperkins/relooper
Reloop llvm IR output, to have `for`s, `if`s, `while`s. From https://reviews.llvm.org/D12744
https://github.com/hughperkins/relooper
Last synced: 7 months ago
JSON representation
Reloop llvm IR output, to have `for`s, `if`s, `while`s. From https://reviews.llvm.org/D12744
- Host: GitHub
- URL: https://github.com/hughperkins/relooper
- Owner: hughperkins
- License: other
- Created: 2016-11-06T09:41:58.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-06T17:30:30.000Z (almost 9 years ago)
- Last Synced: 2025-02-06T02:47:09.647Z (9 months ago)
- Language: C++
- Size: 50.8 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# relooper
Reloop llvm IR output, to have `for`s, `if`s, `while`s. From https://reviews.llvm.org/D12744
## Why?
I'm using this personally for my [cuda-on-cl](https://github.com/hughperkins/cuda-on-cl) project, to 'reloop' the OpenCL, so it's not full of `goto`s and labels :-)
This code came originally from From https://reviews.llvm.org/D12744 , ie WebAssembly target for llvm.
I * think* the WebAssembly reloop *may* have come originally from https://github.com/kripken/Relooper , but I'm unclear on this point at this time.
I havent definitively decided to use this coe or not in cuda-on-cl, but it sounds promising. Probably better than rolling my own...