Mlir opt
mlir_opt
¶
DEFAULT_MLIR_OPT_EXECUTABLE = os.environ.get('XDSL_MLIR_OPT') or 'mlir-opt'
module-attribute
¶
Command to run for mlir-opt, defaults to contents of XDSL_MLIR_OPT in environment,
falling back to mlir-opt.
MLIROptPass
dataclass
¶
Bases: ModulePass
A pass for calling the mlir-opt tool with specified parameters. Will fail if
mlir-opt is not available.
Uses XDSL_MLIR_OPT when set, otherwise mlir-opt on PATH.