Skip to content

Preprocessing

-iree-preprocessing-apply-pdl-patternslink

Parse an input file containing PDL patterns and apply them as patterns

Optionslink

-patterns-file : File path to file containing PDL patterns to use.

-iree-preprocessing-attr-based-pipelinelink

Run a pass pipeline specified as an attribute on any function-like operation

The textual representation of the pass pipeline specified in the attribute preprocessing_pipeline=#util.preprocessing_pipeline<...> is to be run on the function-like operation.

-iree-preprocessing-convert-conv-filter-to-channels-lastlink

Convert linalg convolutions filter from hwcf to channel last layout.

Optionslink

-filter-layout : Filter layout of convolution.

-iree-preprocessing-convert-conv-to-channels-lastlink

Convert linalg convolutions to channels last.

Optionslink

-tiling-factor : Tiling factor for the channel dimension of NCHW-like convolutions. Defaults to fully transposing all channel-like dimensions

-iree-preprocessing-convert-conv2d-to-img2collink

Convert linalg convolution ops to matmul img2col based implementation

-iree-preprocessing-fold-attention-with-transposelink

Fold attention operation with transpose

-iree-preprocessing-generalize-linalg-matmul-experimentallink

Convert linalg matmul ops to linalg.generics.

-iree-preprocessing-make-single-dispatch-for-functionlink

Convert entire function into a single dispatch

-iree-preprocessing-pad-linalg-opslink

Pad linalg ops to the next integer multiple of paddingSize.

Optionslink

-pad-size : Specify the padding size

-iree-preprocessing-pad-to-intrinsicslink

Pad linalg ops such that we can use target's intrinsics.

Optionslink

-pad-target-type : Pad target-op type that is being specified.

-iree-preprocessing-transform-interpreterlink

Transform dialect interpreter

This pass runs the transform dialect interpreter and applies the named sequence transformation named __transform_main.

TODO: Drop this pass in favor of the one upstream. The one upstream requires separate loading of the module and thus isn't suited for single-use transform scripts.

Optionslink

-disable-expensive-checks : Disable expensive checks in the interpreter for a faster run.
-transform-spec-path      : File path to the transform spec to use.

-iree-preprocessing-transpose-matmul-passlink

Convert Linalg matmul ops to transposed variants

Optionslink

-input : Input to transpose, one of: 'lhs' (default), 'rhs'