blob: a30b170d7558e3b7fe76d6da4a6e1c32afac3e27 [file]
// Copyright 2022 The IREE Authors
//
// Licensed 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 IREE_COMPILER_CODEGEN_FLOW_TRANSFORMEXTENSIONS_FLOWEXTENSIONS_H_
#define IREE_COMPILER_CODEGEN_FLOW_TRANSFORMEXTENSIONS_FLOWEXTENSIONS_H_
#include "mlir/Bytecode/BytecodeOpInterface.h"
#include "mlir/Dialect/Transform/IR/TransformDialect.h"
#include "mlir/Dialect/Transform/Interfaces/TransformInterfaces.h"
namespace mlir {
class DialectRegistry;
namespace scf {
class ForallOp;
} // namespace scf
} // namespace mlir
namespace mlir::iree_compiler::IREE::Flow {
class DispatchWorkgroupsOp;
class DispatchRegionOp;
} // namespace mlir::iree_compiler::IREE::Flow
#define GET_OP_CLASSES
#include "iree/compiler/Dialect/Flow/TransformExtensions/FlowExtensionsOps.h.inc"
namespace mlir::iree_compiler {
/// Registers Flow transformations that require IREE-specific information into
/// the transform dialect.
void registerTransformDialectFlowExtension(DialectRegistry &registry);
namespace IREE::transform_dialect {
// Hook to register Flow transformations to the transform dialect.
class FlowExtensions
: public transform::TransformDialectExtension<FlowExtensions> {
public:
FlowExtensions();
};
} // namespace IREE::transform_dialect
} // namespace mlir::iree_compiler
#endif // IREE_COMPILER_CODEGEN_FLOW_TRANSFORMEXTENSIONS_FLOWEXTENSIONS_H_