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

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

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
```