Skip to content

Commit

Permalink
remove linalg-to-library-call pass (#329)
Browse files Browse the repository at this point in the history
* remove linalg-to-library-call pass

* update pyproject.toml

* lockfile
  • Loading branch information
jorendumoulin authored Jan 6, 2025
1 parent 6a1991c commit d663036
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 125 deletions.
2 changes: 0 additions & 2 deletions compiler/tools/snax_opt_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
from compiler.transforms.fuse_streaming_regions import FuseStreamingRegions
from compiler.transforms.insert_accfg_op import InsertAccOp
from compiler.transforms.insert_sync_barrier import InsertSyncBarrier
from compiler.transforms.linalg_to_library_call import LinalgToLibraryCall
from compiler.transforms.memref_to_snax import MemrefToSNAX
from compiler.transforms.realize_memref_casts import RealizeMemrefCastsPass
from compiler.transforms.reuse_memref_allocs import ReuseMemrefAllocs
Expand Down Expand Up @@ -79,7 +78,6 @@ def __init__(
self.ctx.load_dialect(Debug)
self.ctx.load_dialect(Stream)
super().register_pass(DispatchKernels.name, lambda: DispatchKernels)
super().register_pass(LinalgToLibraryCall.name, lambda: LinalgToLibraryCall)
super().register_pass(SetMemorySpace.name, lambda: SetMemorySpace)
super().register_pass(SetMemoryLayout.name, lambda: SetMemoryLayout)
super().register_pass(InsertAccOp.name, lambda: InsertAccOp)
Expand Down
87 changes: 0 additions & 87 deletions compiler/transforms/linalg_to_library_call.py

This file was deleted.

1 change: 0 additions & 1 deletion kernels/alloc/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ config["snaxoptflags"] = ",".join(
"reuse-memref-allocs",
"insert-sync-barrier",
"dispatch-regions",
"linalg-to-library-call",
"snax-copy-to-dma",
"memref-to-snax",
"snax-to-func",
Expand Down
1 change: 0 additions & 1 deletion kernels/simple_copy/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ config["snaxoptflags"] = ",".join(
"reuse-memref-allocs",
"insert-sync-barrier",
"dispatch-regions",
"linalg-to-library-call",
"snax-copy-to-dma",
"memref-to-snax",
"snax-to-func",
Expand Down
1 change: 0 additions & 1 deletion kernels/transform_copy/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ config["snaxoptflags"] = ",".join(
"realize-memref-casts",
"reuse-memref-allocs",
"insert-sync-barrier",
"linalg-to-library-call",
"snax-copy-to-dma",
"memref-to-snax",
"snax-to-func",
Expand Down
2 changes: 1 addition & 1 deletion pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ typeCheckingMode = "strict"
"compiler/transforms/accfg_dedup.py",
"compiler/transforms/convert_linalg_to_accfg.py",
"compiler/transforms/frontend/preprocess_mlperf_tiny.py",
"compiler/transforms/linalg_to_library_call.py",
"compiler/transforms/reuse_memref_allocs.py",
"compiler/transforms/set_memory_layout.py",
"compiler/transforms/snax_copy_to_dma.py",
Expand Down
2 changes: 1 addition & 1 deletion runtime/Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ MLIRPREPROC3FLAGS += --mlir-print-local-scope

# SNAX opt

SNAXOPTFLAGS = -p dispatch-kernels,set-memory-space,set-memory-layout,realize-memref-casts,reuse-memref-allocs,insert-sync-barrier,dispatch-regions,linalg-to-library-call,snax-copy-to-dma,memref-to-snax,snax-to-func,clear-memory-space
SNAXOPTFLAGS = -p dispatch-kernels,set-memory-space,set-memory-layout,realize-memref-casts,reuse-memref-allocs,insert-sync-barrier,dispatch-regions,snax-copy-to-dma,memref-to-snax,snax-to-func,clear-memory-space

%.snax-opt.mlir: %.preprocfinal.mlir
$(SNAXOPT) $(SNAXOPTFLAGS) --print-op-generic -o $@ $<
Expand Down
29 changes: 0 additions & 29 deletions tests/filecheck/transforms/linalg-to-library-call.mlir

This file was deleted.

1 change: 0 additions & 1 deletion util/snake/configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def get_mlperf_tiny_config():
"reuse-memref-allocs",
"insert-sync-barrier",
"dispatch-regions",
"linalg-to-library-call",
"snax-copy-to-dma",
"memref-to-snax",
"snax-to-func",
Expand Down

0 comments on commit d663036

Please sign in to comment.