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
9#include "mlir/Dialect/Polynomial/IR/Polynomial.h"
10
11#include "mlir/Dialect/Polynomial/IR/PolynomialAttributes.h"
12#include "mlir/Dialect/Polynomial/IR/PolynomialOps.h"
13#include "mlir/Dialect/Polynomial/IR/PolynomialTypes.h"
14#include "llvm/ADT/TypeSwitch.h"
15
16using namespace mlir;
17using namespace mlir::polynomial;
18
19#include "mlir/Dialect/Polynomial/IR/PolynomialDialect.cpp.inc"
20
21#define GET_ATTRDEF_CLASSES
22#include "mlir/Dialect/Polynomial/IR/PolynomialAttributes.cpp.inc"
23#define GET_TYPEDEF_CLASSES
24#include "mlir/Dialect/Polynomial/IR/PolynomialTypes.cpp.inc"
25#define GET_OP_CLASSES
26#include "mlir/Dialect/Polynomial/IR/Polynomial.cpp.inc"
27
28void PolynomialDialect::initialize() {
29 addAttributes<
30#define GET_ATTRDEF_LIST
31#include "mlir/Dialect/Polynomial/IR/PolynomialAttributes.cpp.inc"
32 >();
33 addTypes<
34#define GET_TYPEDEF_LIST
35#include "mlir/Dialect/Polynomial/IR/PolynomialTypes.cpp.inc"
36 >();
37 addOperations<
38#define GET_OP_LIST
39#include "mlir/Dialect/Polynomial/IR/Polynomial.cpp.inc"
40 >();
41}
42

source code of mlir/lib/Dialect/Polynomial/IR/PolynomialDialect.cpp