Create the memref dialect and move dialect-specific ops from std dialect to this dialect. Moved ops: AllocOp -> MemRef_AllocOp AllocaOp -> MemRef_AllocaOp AssumeAlignmentOp -> MemRef_AssumeAlignmentOp DeallocOp -> MemRef_DeallocOp DimOp -> MemRef_DimOp MemRefCastOp -> MemRef_CastOp MemRefReinterpretCastOp -> MemRef_ReinterpretCastOp GetGlobalMemRefOp -> MemRef_GetGlobalOp GlobalMemRefOp -> MemRef_GlobalOp LoadOp -> MemRef_LoadOp PrefetchOp -> MemRef_PrefetchOp ReshapeOp -> MemRef_ReshapeOp StoreOp -> MemRef_StoreOp SubViewOp -> MemRef_SubViewOp TransposeOp -> MemRef_TransposeOp TensorLoadOp -> MemRef_TensorLoadOp TensorStoreOp -> MemRef_TensorStoreOp TensorToMemRefOp -> MemRef_BufferCastOp ViewOp -> MemRef_ViewOp The roadmap to split the memref dialect from std is discussed here: https://llvm.discourse.group/t/rfc-split-the-memref-dialect-from-std/2667 Differential Revision: https://reviews.llvm.org/D98041
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
//===- PassDetail.h - Linalg Pass class details -----------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef DIALECT_LINALG_TRANSFORMS_PASSDETAIL_H_
|
|
#define DIALECT_LINALG_TRANSFORMS_PASSDETAIL_H_
|
|
|
|
#include "mlir/Dialect/Affine/IR/AffineOps.h"
|
|
#include "mlir/IR/Dialect.h"
|
|
#include "mlir/Pass/Pass.h"
|
|
|
|
namespace mlir {
|
|
// Forward declaration from Dialect.h
|
|
template <typename ConcreteDialect>
|
|
void registerDialect(DialectRegistry ®istry);
|
|
|
|
namespace linalg {
|
|
class LinalgDialect;
|
|
} // end namespace linalg
|
|
|
|
namespace scf {
|
|
class SCFDialect;
|
|
} // end namespace scf
|
|
|
|
namespace memref {
|
|
class MemRefDialect;
|
|
} // end namespace memref
|
|
|
|
namespace vector {
|
|
class VectorDialect;
|
|
} // end namespace vector
|
|
|
|
#define GEN_PASS_CLASSES
|
|
#include "mlir/Dialect/Linalg/Passes.h.inc"
|
|
|
|
} // end namespace mlir
|
|
|
|
#endif // DIALECT_LINALG_TRANSFORMS_PASSDETAIL_H_
|