souper-ir
A library for manipulating [Souper] IR.
This crate provides AST types for parsing or generating Souper IR. It is a suitable building block either for writing a custom LHS extractor, or for translating learned optimizations into your own peephole optimizations pass.
The AST type definitions live in the souper_ir::ast
module.
When the parse
Cargo feature is enabled, the souper_ir::parse
module
contains functions for parsing Souper IR from a file or an in-memory string.
When the stringify
Cargo feature is enabled, the souper_ir::stringify
module contains functions for taking an in-memory Souper IR AST and
translating it into Souper IR's text format.