Skip to content

Commit

Permalink
cleanup: remove dist dialect and its transforms/conversions, reducesc…
Browse files Browse the repository at this point in the history
…ope of ndarray and eliminate NDArrayType
  • Loading branch information
fschlimb committed Nov 15, 2024
1 parent 110a91e commit 6d15257
Show file tree
Hide file tree
Showing 73 changed files with 655 additions and 8,022 deletions.
1 change: 0 additions & 1 deletion include/imex/Conversion/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ mlir_tablegen(Passes.capi.cpp.inc -gen-pass-capi-impl --prefix Conversion)
add_public_tablegen_target(IMEXConversionPassIncGen)

add_mlir_doc(Passes IMEXConversionPasses ./ -gen-pass-doc)
add_subdirectory(DistToStandard)
add_subdirectory(DropRegions)
add_subdirectory(XeTileToXeGPU)
add_subdirectory(XeGPUToVC)
Expand Down
Empty file.
44 changes: 0 additions & 44 deletions include/imex/Conversion/DistToStandard/DistToStandard.h

This file was deleted.

1 change: 0 additions & 1 deletion include/imex/Conversion/Passes.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

#include "mlir/Pass/Pass.h"

#include <imex/Conversion/DistToStandard/DistToStandard.h>
#include <imex/Conversion/DropRegions/DropRegions.h>
#include <imex/Conversion/GPUToGPUX/GPUToGPUX.h>
#include <imex/Conversion/GPUToSPIRV/GPUToSPIRVPass.h>
Expand Down
30 changes: 0 additions & 30 deletions include/imex/Conversion/Passes.td
Original file line number Diff line number Diff line change
Expand Up @@ -57,43 +57,13 @@ def ConvertNDArrayToLinalg : Pass<"convert-ndarray-to-linalg"> {
}];
let constructor = "imex::createConvertNDArrayToLinalgPass()";
let dependentDialects = ["::mlir::linalg::LinalgDialect",
"::mlir::affine::AffineDialect",
"::mlir::func::FuncDialect",
"::mlir::arith::ArithDialect",
"::mlir::tensor::TensorDialect",
"::mlir::tosa::TosaDialect",
"::mlir::scf::SCFDialect",
"::mlir::memref::MemRefDialect",
"::mlir::shape::ShapeDialect",
"::mlir::bufferization::BufferizationDialect",
"::imex::region::RegionDialect"];
let options = [];
}

//===----------------------------------------------------------------------===//
// DistToStandard
//===----------------------------------------------------------------------===//

def ConvertDistToStandard: Pass<"convert-dist-to-standard"> {
let summary = "Convert from the Dist dialect to runtime calls.";
let description = [{
Convert Dist dialect operations into standard dialect operations
by inserting calls into a distributed runtime.

Necessary prototypes of runtime functions will be added.
}];
let constructor = "::imex::createConvertDistToStandardPass()";
let dependentDialects = ["::imex::ndarray::NDArrayDialect",
"::imex::distruntime::DistRuntimeDialect",
"::mlir::linalg::LinalgDialect",
"::mlir::func::FuncDialect",
"::mlir::tensor::TensorDialect",
"::mlir::memref::MemRefDialect",
"::mlir::arith::ArithDialect",
"::mlir::scf::SCFDialect",
"::mlir::bufferization::BufferizationDialect"];
let options = [];
}

//===----------------------------------------------------------------------===//
// DropRegions
Expand Down
1 change: 0 additions & 1 deletion include/imex/Dialect/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
add_subdirectory(Dist)
add_subdirectory(DistRuntime)
add_subdirectory(NDArray)
add_subdirectory(Region)
Expand Down
3 changes: 0 additions & 3 deletions include/imex/Dialect/Dist/CMakeLists.txt

This file was deleted.

8 changes: 0 additions & 8 deletions include/imex/Dialect/Dist/IR/CMakeLists.txt

This file was deleted.

78 changes: 0 additions & 78 deletions include/imex/Dialect/Dist/IR/DistOps.h

This file was deleted.

Loading

0 comments on commit 6d15257

Please sign in to comment.