Crate cranelift_reader

source ·
Expand description

Cranelift file reader library.

The cranelift_reader library supports reading .clif files. This functionality is needed for testing Cranelift, but is not essential for a JIT compiler.

Structs

A comment in a parsed function.
Additional details about a function parsed from a text string. These are useful for detecting test commands embedded in comments etc. The details to not affect the semantics of the function.
The location of a Token or Error.
A parse error is returned when the parse failed.
Mapping from entity names to source locations.
A command appearing in a test file.
A parsed test case.

Enums

The ISA specifications in a .clif file.
An option on a test command.

Functions

Parse the entire text into a list of functions.
Parse an iterator of command line options and apply them to config.
Parse the entire text as a test case file.

Type Definitions

Result of a parser operation. The ParseError variant includes a location.