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§
- Comment
- A comment in a parsed function.
- Details
- 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.
- Location
- The location of a
TokenorError. - Parse
Error - A parse error is returned when the parse failed.
- Parse
Options - Options for configuring the parsing of filetests.
- Source
Map - Mapping from entity names to source locations.
- Test
Command - A command appearing in a test file.
- Test
File - A parsed test case.
Enums§
- Feature
- A cranelift feature in a test file preamble.
- IsaSpec
- The ISA specifications in a
.cliffile. - Test
Option - An option on a test command.
Functions§
- parse_
functions - Parse the entire
textinto a list of functions. - parse_
options - Parse an iterator of command line options and apply them to
config. - parse_
test - Parse the entire
textas a test case file.
Type Aliases§
- Parse
Result - Result of a parser operation. The
ParseErrorvariant includes a location.