Expand description
Passes. A Pass transforms an IRModule under the current PassContext, which decides
the passes that run and the instruments that observe them; ModulePass wraps a function and
Sequential runs passes in order.
Structs§
- Module
Pass - A pass that applies a function to the whole module.
- Module
Pass Obj - The object behind
ModulePass. - Pass
- A transformation of an
IRModule, with a name and an optimization level (PassInfo). - Pass
Context - The settings passes run under: the optimization level
opt_level, the passes inrequired_passanddisabled_pass, the configuration optionsconfigand theinstruments. - Pass
Context Obj - The object behind
PassContext. - Pass
Context Scope - A scope in which a pass context is the current one, returned by
PassContext::enter. - Pass
Info - The name
nameand optimization levelopt_levelof a pass, by which aPassContextrequires, disables or skips it. - Pass
Info Obj - The object behind
PassInfo. - Pass
Instrument - The base of instruments, which a
PassContextcalls around each pass it runs, such as to trace or time them. - Pass
Instrument Obj - The object behind
PassInstrument. - PassObj
- The object behind
Pass. - Sequential
- A pass that runs a list of passes in order, skipping the ones the current
PassContextdoes not enable. - Sequential
Obj - The object behind
Sequential.
Functions§
- print_
ir - Create a pass that logs
headerand the module, which it returns unchanged (transform.PrintIR).