#llvm #pass #quickly #directory #cmake #skeletons

app llvm-passgen

一个快速创建 LLVM 程序骨架的工具

5 个版本 (3 个破坏性更新)

0.4.0 2022年4月4日
0.3.0 2022年2月28日
0.2.1 2020年6月4日
0.2.0 2019年9月29日
0.1.0 2019年9月26日

#1939 in 开发工具

自定义许可

11KB
176 代码行

llvm-passgen

license Build Status

一个快速创建 LLVM 程序骨架的工具。

概述

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

用法

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

如果 cmake .. 失败,您可能需要将 LLVM_DIR 设置为 LLVM CMake 配置

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

有关选项的完整列表,请参阅 llvm-passgen --help

依赖关系

~6–14MB
~157K SLoC