https://github.com/phrb/generate-llvm-pass-list
Generate a JSON containing LLVM passes
https://github.com/phrb/generate-llvm-pass-list
llvm-opt llvm-pass
Last synced: about 1 year ago
JSON representation
Generate a JSON containing LLVM passes
- Host: GitHub
- URL: https://github.com/phrb/generate-llvm-pass-list
- Owner: phrb
- Created: 2017-04-08T00:39:32.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-08-28T04:25:38.000Z (almost 7 years ago)
- Last Synced: 2025-03-29T16:33:56.657Z (about 1 year ago)
- Topics: llvm-opt, llvm-pass
- Language: Python
- Homepage:
- Size: 31.3 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## LLVM Pass List Generator
This **Python3** script generates a complete list of LLVM Analysis and Transform
passes.
The generated list is structured as a JSON file containing pass names and
associated `opt` command, pass parameters and pass dependencies.
For each pass parameter the dictionary contains the associated command, type,
and default value.
The `llvm_passes.json` file contains passes for [this llvm-mirror commit](https://github.com/llvm-mirror/llvm/commit/1a7d4ed865abd7bf21d4c1af1f1d2c4788c66c06).
To run the script, it is suggested to run:
```bash
git clone https://github.com/llvm-mirror/llvm.git
git clone https://github.com/phrb/generate-llvm-pass-list.git
cd generate-llvm-pass-list && python generate_llvm_pass_list.py
```