MLIR  20.0.0git
PolynomialDialect.cpp
Go to the documentation of this file.
1 //===- PolynomialDialect.cpp - Polynomial dialect ---------------*- C++ -*-===//
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 
15 #include "mlir/IR/Builders.h"
16 #include "mlir/IR/BuiltinOps.h"
17 #include "mlir/IR/BuiltinTypes.h"
18 #include "mlir/IR/Dialect.h"
19 #include "mlir/IR/PatternMatch.h"
21 #include "llvm/ADT/APInt.h"
22 #include "llvm/ADT/TypeSwitch.h"
23 
24 using namespace mlir;
25 using namespace mlir::polynomial;
26 
27 #include "mlir/Dialect/Polynomial/IR/PolynomialDialect.cpp.inc"
28 
29 #define GET_ATTRDEF_CLASSES
30 #include "mlir/Dialect/Polynomial/IR/PolynomialAttributes.cpp.inc"
31 #define GET_TYPEDEF_CLASSES
32 #include "mlir/Dialect/Polynomial/IR/PolynomialTypes.cpp.inc"
33 #define GET_OP_CLASSES
34 #include "mlir/Dialect/Polynomial/IR/Polynomial.cpp.inc"
35 
36 void PolynomialDialect::initialize() {
37  addAttributes<
38 #define GET_ATTRDEF_LIST
39 #include "mlir/Dialect/Polynomial/IR/PolynomialAttributes.cpp.inc"
40  >();
41  addTypes<
42 #define GET_TYPEDEF_LIST
43 #include "mlir/Dialect/Polynomial/IR/PolynomialTypes.cpp.inc"
44  >();
45  addOperations<
46 #define GET_OP_LIST
47 #include "mlir/Dialect/Polynomial/IR/Polynomial.cpp.inc"
48  >();
49 }
Include the generated interface declarations.