[−][src]Crate 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.
AST
The AST type definitions live in the souper_ir::ast
module.
Parsing Souper IR
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.
Emitting Souper IR's Text Format
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.
Modules
ast | Abstract syntax tree type definitions. |