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.
  • A heap command appearing in a test file.
  • Represent a function call; RunCommands invoke a CLIF function using an Invocation.
  • The location of a Token or Error.
  • 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.
  • CLIF Representation of a heap type. e.g.: static
  • The ISA specifications in a .clif file.
  • An error type returned by parse_options.
  • A run command appearing in a test file.
  • An option on a test command.

Functions

Type Definitions

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