microprobe.code

code generation package

A package for driving the code generation process within microprobe. The sub-packages of this package are:

  • wrapper: Code generation wrapper package.

and the modules in this package are the following:

  • address: Address object module.

  • bbl: Building block object module.

  • benchmark: Benchmark object module.

  • cfg: Control flow graph object module.

  • context: Context object module.

  • ins: Instruction object module.

  • var: Variable objects module.

Visit their respective documentation for further details.

This package defines the benchmark synthesizer (Synthesizer), which is the main object driving the code generation process in the microprobe framework. This object provides a simple interface to define the set of passes (Pass) to apply to generate a benchmark (Benchmark).

Functions

get_wrapper(name)

Return a wrapper object with name name.

Classes

Synthesizer(target, wrapper[, no_scratch, ...])

Benchmark synthesizer.

TraceSynthesizer(target, wrapper[, ...])

Trace synthesizer.

Classes diagram

Inheritance diagram of Synthesizer, TraceSynthesizer



Functions

get_wrapper(name: str)[source]

Return a wrapper object with name name.

Look for the registered Wrapper objects and return and instance of the one with name equal name.

Parameters:

name (str) – Wrapper name

Returns:

A wrapper instance

Return type:

Wrapper