MLIR 24.0.0git
ArmSVEVectorTransformOps.cpp
Go to the documentation of this file.
1//===- ArmSVEVectorTransformOps.cpp - Implementation transform ops -------===//
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
10
14
15using namespace mlir;
16
17//===----------------------------------------------------------------------===//
18// Apply...PatternsOp
19//===----------------------------------------------------------------------===//
20
21void transform::ApplyArmSVELowerContractionToI8MMPatternsOp::populatePatterns(
22 RewritePatternSet &patterns) {
24}
25
26void transform::ApplyArmSVELowerContractionToBFMMLAPatternsOp::populatePatterns(
27 RewritePatternSet &patterns) {
29}
30
31void transform::ApplyArmSVELowerContractionToIndexedFMLAPatternsOp::
32 populatePatterns(RewritePatternSet &patterns) {
34}
35
36//===----------------------------------------------------------------------===//
37// Transform op registration
38//===----------------------------------------------------------------------===//
39
40namespace {
41class ArmSVEVectorTransformDialectExtension
43 ArmSVEVectorTransformDialectExtension> {
44public:
46 ArmSVEVectorTransformDialectExtension)
47
48 ArmSVEVectorTransformDialectExtension() {
49 declareGeneratedDialect<arm_sve::ArmSVEDialect>();
50 registerTransformOps<
51#define GET_OP_LIST
52#include "mlir/Dialect/ArmSVE/TransformOps/ArmSVEVectorTransformOps.cpp.inc"
53 >();
54 }
55};
56} // namespace
57
58#define GET_OP_CLASSES
59#include "mlir/Dialect/ArmSVE/TransformOps/ArmSVEVectorTransformOps.cpp.inc"
60
62 DialectRegistry &registry) {
63 registry.addExtensions<ArmSVEVectorTransformDialectExtension>();
64}
#define MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(CLASS_NAME)
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 populateLowerContractionToSVEBFMMLAPatterns(RewritePatternSet &patterns)
void registerTransformDialectExtension(DialectRegistry &registry)
void populateLowerContractionToSVEIndexedFMLAPatterns(RewritePatternSet &patterns)
void populateLowerContractionToSVEI8MMPatterns(RewritePatternSet &patterns)
Include the generated interface declarations.