Skip to content

Commit

Permalink
Revert "[MLIR][DLTI][Transform] Introduce transform.dlti.query (#101561
Browse files Browse the repository at this point in the history
…)"

This reverts commit 8f21ff9.

Crashed CI builds
  • Loading branch information
rengolin committed Aug 9, 2024
1 parent 37c6683 commit 7752fec
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 563 deletions.
2 changes: 0 additions & 2 deletions mlir/include/mlir/Dialect/DLTI/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
add_subdirectory(TransformOps)

add_mlir_dialect(DLTI dlti)
add_mlir_doc(DLTIAttrs DLTIDialect Dialects/ -gen-dialect-doc)

Expand Down
13 changes: 0 additions & 13 deletions mlir/include/mlir/Dialect/DLTI/DLTI.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,6 @@ namespace detail {
class DataLayoutEntryAttrStorage;
} // namespace detail
} // namespace mlir
namespace mlir {
namespace dlti {
/// Find the first DataLayoutSpec associated to `op`, via either the
/// DataLayoutOpInterface, a method on ModuleOp, or an attribute implementing
/// the interface, on `op` and else on `op`'s ancestors in turn.
DataLayoutSpecInterface getDataLayoutSpec(Operation *op);

/// Find the first TargetSystemSpec associated to `op`, via either the
/// DataLayoutOpInterface, a method on ModuleOp, or an attribute implementing
/// the interface, on `op` and else on `op`'s ancestors in turn.
TargetSystemSpecInterface getTargetSystemSpec(Operation *op);
} // namespace dlti
} // namespace mlir

#define GET_ATTRDEF_CLASSES
#include "mlir/Dialect/DLTI/DLTIAttrs.h.inc"
Expand Down
6 changes: 0 additions & 6 deletions mlir/include/mlir/Dialect/DLTI/TransformOps/CMakeLists.txt

This file was deleted.

38 changes: 0 additions & 38 deletions mlir/include/mlir/Dialect/DLTI/TransformOps/DLTITransformOps.h

This file was deleted.

61 changes: 0 additions & 61 deletions mlir/include/mlir/Dialect/DLTI/TransformOps/DLTITransformOps.td

This file was deleted.

2 changes: 0 additions & 2 deletions mlir/include/mlir/InitAllExtensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "mlir/Conversion/UBToLLVM/UBToLLVM.h"
#include "mlir/Dialect/Affine/TransformOps/AffineTransformOps.h"
#include "mlir/Dialect/Bufferization/TransformOps/BufferizationTransformOps.h"
#include "mlir/Dialect/DLTI/TransformOps/DLTITransformOps.h"
#include "mlir/Dialect/Func/Extensions/AllExtensions.h"
#include "mlir/Dialect/Func/TransformOps/FuncTransformOps.h"
#include "mlir/Dialect/GPU/TransformOps/GPUTransformOps.h"
Expand Down Expand Up @@ -70,7 +69,6 @@ inline void registerAllExtensions(DialectRegistry &registry) {
// Register all transform dialect extensions.
affine::registerTransformDialectExtension(registry);
bufferization::registerTransformDialectExtension(registry);
dlti::registerTransformDialectExtension(registry);
func::registerTransformDialectExtension(registry);
gpu::registerTransformDialectExtension(registry);
linalg::registerTransformDialectExtension(registry);
Expand Down
1 change: 0 additions & 1 deletion mlir/lib/Dialect/DLTI/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
add_subdirectory(TransformOps)
add_mlir_dialect_library(MLIRDLTIDialect
DLTI.cpp
Traits.cpp
Expand Down
35 changes: 0 additions & 35 deletions mlir/lib/Dialect/DLTI/DLTI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,41 +393,6 @@ TargetSystemSpecAttr::verify(function_ref<InFlightDiagnostic()> emitError,
// DLTIDialect
//===----------------------------------------------------------------------===//

DataLayoutSpecInterface dlti::getDataLayoutSpec(Operation *op) {
DataLayoutSpecInterface dlSpec = nullptr;

for (Operation *cur = op; cur && !dlSpec; cur = cur->getParentOp()) {
if (auto dataLayoutOp = dyn_cast<DataLayoutOpInterface>(cur))
dlSpec = dataLayoutOp.getDataLayoutSpec();
else if (auto moduleOp = dyn_cast<ModuleOp>(cur))
dlSpec = moduleOp.getDataLayoutSpec();
else
for (NamedAttribute attr : cur->getAttrs())
if ((dlSpec = llvm::dyn_cast<DataLayoutSpecInterface>(attr.getValue())))
break;
}

return dlSpec;
}

TargetSystemSpecInterface dlti::getTargetSystemSpec(Operation *op) {
TargetSystemSpecInterface sysSpec = nullptr;

for (Operation *cur = op; cur && !sysSpec; cur = cur->getParentOp()) {
if (auto dataLayoutOp = dyn_cast<DataLayoutOpInterface>(cur))
sysSpec = dataLayoutOp.getTargetSystemSpec();
else if (auto moduleOp = dyn_cast<ModuleOp>(cur))
sysSpec = moduleOp.getTargetSystemSpec();
else
for (NamedAttribute attr : cur->getAttrs())
if ((sysSpec =
llvm::dyn_cast<TargetSystemSpecInterface>(attr.getValue())))
break;
}

return sysSpec;
}

constexpr const StringLiteral mlir::DLTIDialect::kDataLayoutAttrName;
constexpr const StringLiteral mlir::DLTIDialect::kDataLayoutEndiannessKey;
constexpr const StringLiteral mlir::DLTIDialect::kDataLayoutEndiannessBig;
Expand Down
15 changes: 0 additions & 15 deletions mlir/lib/Dialect/DLTI/TransformOps/CMakeLists.txt

This file was deleted.

94 changes: 0 additions & 94 deletions mlir/lib/Dialect/DLTI/TransformOps/DLTITransformOps.cpp

This file was deleted.

Loading

0 comments on commit 7752fec

Please sign in to comment.