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.
- Represent a function call; RunCommands invoke a CLIF function using an Invocation.
- The location of a
Token
orError
. - A parse error is returned when the parse failed.
- Options for configuring the parsing of filetests.
- Mapping from entity names to source locations.
- A command appearing in a test file.
- A parsed test case.
Enums
- A CLIF comparison operation; e.g.
==
. - A cranelift feature in a test file preamble.
- The ISA specifications in a
.clif
file. - Like
FlagsOrIsa
, but holds ownership. - An error type returned by
parse_options
. - A run command appearing in a test file.
- An option on a test command.
Functions
- Parse the entire
text
into a list of functions. - Parse an single command line options and apply it to
config
. - Parse an iterator of command line options and apply them to
config
. - Parse a CLIF comment
text
as a run command. - Parse “set” and “triple” commands.
- Parse the entire
text
as a test case file.
Type Aliases
- Result of a parser operation. The
ParseError
variant includes a location.