Skip to content

Commit 7752fec

Browse files
committed
Revert "[MLIR][DLTI][Transform] Introduce transform.dlti.query (#101561)"
This reverts commit 8f21ff9. Crashed CI builds
1 parent 37c6683 commit 7752fec

File tree

11 files changed

+0
-563
lines changed

11 files changed

+0
-563
lines changed

mlir/include/mlir/Dialect/DLTI/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
add_subdirectory(TransformOps)
2-
31
add_mlir_dialect(DLTI dlti)
42
add_mlir_doc(DLTIAttrs DLTIDialect Dialects/ -gen-dialect-doc)
53

mlir/include/mlir/Dialect/DLTI/DLTI.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,6 @@ namespace detail {
2222
class DataLayoutEntryAttrStorage;
2323
} // namespace detail
2424
} // namespace mlir
25-
namespace mlir {
26-
namespace dlti {
27-
/// Find the first DataLayoutSpec associated to `op`, via either the
28-
/// DataLayoutOpInterface, a method on ModuleOp, or an attribute implementing
29-
/// the interface, on `op` and else on `op`'s ancestors in turn.
30-
DataLayoutSpecInterface getDataLayoutSpec(Operation *op);
31-
32-
/// Find the first TargetSystemSpec associated to `op`, via either the
33-
/// DataLayoutOpInterface, a method on ModuleOp, or an attribute implementing
34-
/// the interface, on `op` and else on `op`'s ancestors in turn.
35-
TargetSystemSpecInterface getTargetSystemSpec(Operation *op);
36-
} // namespace dlti
37-
} // namespace mlir
3825

3926
#define GET_ATTRDEF_CLASSES
4027
#include "mlir/Dialect/DLTI/DLTIAttrs.h.inc"

mlir/include/mlir/Dialect/DLTI/TransformOps/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

mlir/include/mlir/Dialect/DLTI/TransformOps/DLTITransformOps.h

Lines changed: 0 additions & 38 deletions
This file was deleted.

mlir/include/mlir/Dialect/DLTI/TransformOps/DLTITransformOps.td

Lines changed: 0 additions & 61 deletions
This file was deleted.

mlir/include/mlir/InitAllExtensions.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "mlir/Conversion/UBToLLVM/UBToLLVM.h"
2626
#include "mlir/Dialect/Affine/TransformOps/AffineTransformOps.h"
2727
#include "mlir/Dialect/Bufferization/TransformOps/BufferizationTransformOps.h"
28-
#include "mlir/Dialect/DLTI/TransformOps/DLTITransformOps.h"
2928
#include "mlir/Dialect/Func/Extensions/AllExtensions.h"
3029
#include "mlir/Dialect/Func/TransformOps/FuncTransformOps.h"
3130
#include "mlir/Dialect/GPU/TransformOps/GPUTransformOps.h"
@@ -70,7 +69,6 @@ inline void registerAllExtensions(DialectRegistry &registry) {
7069
// Register all transform dialect extensions.
7170
affine::registerTransformDialectExtension(registry);
7271
bufferization::registerTransformDialectExtension(registry);
73-
dlti::registerTransformDialectExtension(registry);
7472
func::registerTransformDialectExtension(registry);
7573
gpu::registerTransformDialectExtension(registry);
7674
linalg::registerTransformDialectExtension(registry);

mlir/lib/Dialect/DLTI/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
add_subdirectory(TransformOps)
21
add_mlir_dialect_library(MLIRDLTIDialect
32
DLTI.cpp
43
Traits.cpp

mlir/lib/Dialect/DLTI/DLTI.cpp

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -393,41 +393,6 @@ TargetSystemSpecAttr::verify(function_ref<InFlightDiagnostic()> emitError,
393393
// DLTIDialect
394394
//===----------------------------------------------------------------------===//
395395

396-
DataLayoutSpecInterface dlti::getDataLayoutSpec(Operation *op) {
397-
DataLayoutSpecInterface dlSpec = nullptr;
398-
399-
for (Operation *cur = op; cur && !dlSpec; cur = cur->getParentOp()) {
400-
if (auto dataLayoutOp = dyn_cast<DataLayoutOpInterface>(cur))
401-
dlSpec = dataLayoutOp.getDataLayoutSpec();
402-
else if (auto moduleOp = dyn_cast<ModuleOp>(cur))
403-
dlSpec = moduleOp.getDataLayoutSpec();
404-
else
405-
for (NamedAttribute attr : cur->getAttrs())
406-
if ((dlSpec = llvm::dyn_cast<DataLayoutSpecInterface>(attr.getValue())))
407-
break;
408-
}
409-
410-
return dlSpec;
411-
}
412-
413-
TargetSystemSpecInterface dlti::getTargetSystemSpec(Operation *op) {
414-
TargetSystemSpecInterface sysSpec = nullptr;
415-
416-
for (Operation *cur = op; cur && !sysSpec; cur = cur->getParentOp()) {
417-
if (auto dataLayoutOp = dyn_cast<DataLayoutOpInterface>(cur))
418-
sysSpec = dataLayoutOp.getTargetSystemSpec();
419-
else if (auto moduleOp = dyn_cast<ModuleOp>(cur))
420-
sysSpec = moduleOp.getTargetSystemSpec();
421-
else
422-
for (NamedAttribute attr : cur->getAttrs())
423-
if ((sysSpec =
424-
llvm::dyn_cast<TargetSystemSpecInterface>(attr.getValue())))
425-
break;
426-
}
427-
428-
return sysSpec;
429-
}
430-
431396
constexpr const StringLiteral mlir::DLTIDialect::kDataLayoutAttrName;
432397
constexpr const StringLiteral mlir::DLTIDialect::kDataLayoutEndiannessKey;
433398
constexpr const StringLiteral mlir::DLTIDialect::kDataLayoutEndiannessBig;

mlir/lib/Dialect/DLTI/TransformOps/CMakeLists.txt

Lines changed: 0 additions & 15 deletions
This file was deleted.

mlir/lib/Dialect/DLTI/TransformOps/DLTITransformOps.cpp

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)