MLIR
24.0.0git
lib
Dialect
Transform
SMTExtension
SMTExtension.cpp
Go to the documentation of this file.
1
//===- SMTExtension.cpp - SMT extension for the Transform dialect ---------===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#include "
mlir/Dialect/Transform/SMTExtension/SMTExtension.h
"
10
#include "
mlir/Dialect/Transform/SMTExtension/SMTExtensionOps.h
"
11
#include "
mlir/IR/DialectRegistry.h
"
12
13
using namespace
mlir
;
14
15
//===----------------------------------------------------------------------===//
16
// Transform op registration
17
//===----------------------------------------------------------------------===//
18
19
namespace
{
20
class
SMTExtension :
public
transform::TransformDialectExtension
<SMTExtension> {
21
public
:
22
MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID
(SMTExtension)
23
24
SMTExtension() {
25
registerTransformOps<
26
#define GET_OP_LIST
27
#include "mlir/Dialect/Transform/SMTExtension/SMTExtensionOps.cpp.inc"
28
>();
29
}
30
};
31
}
// namespace
32
33
void
mlir::transform::registerSMTExtension
(
DialectRegistry
&dialectRegistry) {
34
dialectRegistry.
addExtensions
<SMTExtension>();
35
}
DialectRegistry.h
SMTExtensionOps.h
MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID
#define MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(CLASS_NAME)
SMTExtension.h
mlir::DialectRegistry
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
Definition
DialectRegistry.h:150
mlir::DialectRegistry::addExtensions
void addExtensions()
Add the given extensions to the registry.
Definition
DialectRegistry.h:262
mlir::transform::TransformDialectExtension
Base class for extensions of the Transform dialect that supports injecting operations into the Transf...
Definition
TransformDialect.h:118
mlir::transform::registerSMTExtension
void registerSMTExtension(DialectRegistry &dialectRegistry)
Registers the SMT extension of the Transform dialect in the given registry.
Definition
SMTExtension.cpp:33
mlir
Include the generated interface declarations.
Definition
ABIRewriteContext.h:32
Generated on
for MLIR by
1.14.0