MLIR 22.0.0git
X86VectorTransformOps.cpp
Go to the documentation of this file.
1//===- X86VectorTransformOps.cpp ------------------------------------------===//
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
17
20
21using namespace mlir;
22using namespace mlir::x86vector;
23using namespace mlir::transform;
24
25void mlir::transform::ApplyVectorContractToFMAPatternsOp::populatePatterns(
28}
29
30void mlir::transform::ApplyVectorContractToPackedTypeDotProductPatternsOp::
31 populatePatterns(RewritePatternSet &patterns) {
33}
34
35//===----------------------------------------------------------------------===//
36// Transform op registration
37//===----------------------------------------------------------------------===//
38
39namespace {
40class X86VectorTransformDialectExtension
42 X86VectorTransformDialectExtension> {
43public:
45 X86VectorTransformDialectExtension)
46
47 X86VectorTransformDialectExtension() {
48 declareGeneratedDialect<x86vector::X86VectorDialect>();
49 declareGeneratedDialect<LLVM::LLVMDialect>();
50 registerTransformOps<
51#define GET_OP_LIST
52#include "mlir/Dialect/X86Vector/TransformOps/X86VectorTransformOps.cpp.inc"
53 >();
54 }
55};
56} // namespace
57
58#define GET_OP_CLASSES
59#include "mlir/Dialect/X86Vector/TransformOps/X86VectorTransformOps.cpp.inc"
60
62 DialectRegistry &registry) {
63 registry.addExtensions<X86VectorTransformDialectExtension>();
64}
#define MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(CLASS_NAME)
Definition TypeID.h:331
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
void addExtensions()
Add the given extensions to the registry.
Base class for extensions of the Transform dialect that supports injecting operations into the Transf...
void populateVectorContractToFMAPatterns(RewritePatternSet &patterns)
void populateVectorContractToPackedTypeDotProductPatterns(RewritePatternSet &patterns)
void registerTransformDialectExtension(DialectRegistry &registry)
Include the generated interface declarations.
const FrozenRewritePatternSet & patterns