Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/woodruffw/llvm-passgen

A small tool for quickly generating LLVM passes
https://github.com/woodruffw/llvm-passgen

llvm llvm-pass rust

Last synced: 12 days ago
JSON representation

A small tool for quickly generating LLVM passes

Awesome Lists containing this project

README

        

llvm-passgen
============

![license](https://raster.shields.io/badge/license-MIT%20with%20restrictions-green.png)
[![CI](https://github.com/woodruffw/llvm-passgen/actions/workflows/ci.yml/badge.svg)](https://github.com/woodruffw/llvm-passgen/actions/workflows/ci.yml)

A tool for rapidly creating LLVM pass skeletons.

## Overview

```bash
cargo install llvm-passgen
# or, build locally with `cargo build`
```

## Usage

```bash
llvm-passgen --kind module Foo
cd Foo/build
cmake ..
make
```

If `cmake ..` fails, you may need to set `LLVM_DIR` to the LLVM CMake configuration:

```bash
LLVM_DIR=/path/to/llvm/lib/cmake cmake ..
```

See `llvm-passgen --help` for a full list of options.