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
35void mlir::transform::ApplyVectorContractBF16ToFMAPatternsOp::populatePatterns(
38}
39
40void mlir::transform::ApplySinkVectorProducerOpsPatternsOp::populatePatterns(
43}
44
45//===----------------------------------------------------------------------===//
46// Transform op registration
47//===----------------------------------------------------------------------===//
48
49namespace {
50class X86VectorTransformDialectExtension
52 X86VectorTransformDialectExtension> {
53public:
55 X86VectorTransformDialectExtension)
56
57 X86VectorTransformDialectExtension() {
58 declareGeneratedDialect<x86vector::X86VectorDialect>();
59 declareGeneratedDialect<LLVM::LLVMDialect>();
60 registerTransformOps<
61#define GET_OP_LIST
62#include "mlir/Dialect/X86Vector/TransformOps/X86VectorTransformOps.cpp.inc"
63 >();
64 }
65};
66} // namespace
67
68#define GET_OP_CLASSES
69#include "mlir/Dialect/X86Vector/TransformOps/X86VectorTransformOps.cpp.inc"
70
72 DialectRegistry &registry) {
73 registry.addExtensions<X86VectorTransformDialectExtension>();
74}
#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 populateVectorContractBF16ToFMAPatterns(RewritePatternSet &patterns)
void populateVectorContractToFMAPatterns(RewritePatternSet &patterns)
void populateVectorContractToPackedTypeDotProductPatterns(RewritePatternSet &patterns)
void populateSinkVectorProducerOpsPatterns(RewritePatternSet &patterns)
void registerTransformDialectExtension(DialectRegistry &registry)
Include the generated interface declarations.
const FrozenRewritePatternSet & patterns