Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/xtc/backends/mlir/MlirBindingsExtensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
# Optional XTC extensions to the MLIR Python bindings: the module to import
# mapped to the pass-pipeline entries it contributes.
_EXTENSIONS: dict[str, tuple[str, ...]] = {
"mlir.xtc_transform": ("func.func(reduce-extract-slices)",),
"mlir.xtc_transform": (
"func.func(reduce-extract-slices)",
"scf-add-vector-acc",
),
}

# Reverse map from a contributed pass to its providing module, so a pass can be
Expand Down
3 changes: 2 additions & 1 deletion src/xtc/backends/mlir/MlirTarget/MlirNVGPUTarget.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
from .MlirTarget import MlirTarget
from ..MlirConfig import MlirConfig
from ..MlirProgram import RawMlirProgram
import xtc.backends.mlir.MlirBindingsExtensions as binding_extensions

__all__ = ["MlirNVGPUTarget"]

Expand Down Expand Up @@ -437,7 +438,7 @@ def __init__(
self._mlir_program = mlir_program

def _lowering_pipeline(self, sm_arch: str, ptx_version: str) -> list[str]:
return [
return binding_extensions.passes(["scf-add-vector-acc"]) + [
"canonicalize",
"cse",
"sccp",
Expand Down
Loading