MLIR  21.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 
15 using namespace mlir;
16 
17 //===----------------------------------------------------------------------===//
18 // Apply...PatternsOp
19 //===----------------------------------------------------------------------===//
20 
21 void transform::ApplyArmSVELowerContractionPatternsOp::populatePatterns(
24 }
25 
26 //===----------------------------------------------------------------------===//
27 // Transform op registration
28 //===----------------------------------------------------------------------===//
29 
30 namespace {
31 class ArmSVEVectorTransformDialectExtension
33  ArmSVEVectorTransformDialectExtension> {
34 public:
36  ArmSVEVectorTransformDialectExtension)
37 
38  ArmSVEVectorTransformDialectExtension() {
39  declareGeneratedDialect<arm_sve::ArmSVEDialect>();
40  registerTransformOps<
41 #define GET_OP_LIST
42 #include "mlir/Dialect/ArmSVE/TransformOps/ArmSVEVectorTransformOps.cpp.inc"
43  >();
44  }
45 };
46 } // namespace
47 
48 #define GET_OP_CLASSES
49 #include "mlir/Dialect/ArmSVE/TransformOps/ArmSVEVectorTransformOps.cpp.inc"
50 
52  DialectRegistry &registry) {
53  registry.addExtensions<ArmSVEVectorTransformDialectExtension>();
54 }
#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 registerTransformDialectExtension(DialectRegistry &registry)
Include the generated interface declarations.
const FrozenRewritePatternSet & patterns
void populateLowerContractionToSVEI8MMPatternPatterns(RewritePatternSet &patterns)