155b6f170SJeremy Kun //===- PolynomialDialect.cpp - Polynomial dialect ---------------*- C++ -*-===// 255b6f170SJeremy Kun // 355b6f170SJeremy Kun // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 455b6f170SJeremy Kun // See https://llvm.org/LICENSE.txt for license information. 555b6f170SJeremy Kun // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 655b6f170SJeremy Kun // 755b6f170SJeremy Kun //===----------------------------------------------------------------------===// 855b6f170SJeremy Kun 955b6f170SJeremy Kun #include "mlir/Dialect/Polynomial/IR/Polynomial.h" 1055b6f170SJeremy Kun 11*145176dcSJeremy Kun #include "mlir/Dialect/Arith/IR/Arith.h" 1255b6f170SJeremy Kun #include "mlir/Dialect/Polynomial/IR/PolynomialAttributes.h" 1355b6f170SJeremy Kun #include "mlir/Dialect/Polynomial/IR/PolynomialOps.h" 1455b6f170SJeremy Kun #include "mlir/Dialect/Polynomial/IR/PolynomialTypes.h" 15*145176dcSJeremy Kun #include "mlir/IR/Builders.h" 16*145176dcSJeremy Kun #include "mlir/IR/BuiltinOps.h" 17*145176dcSJeremy Kun #include "mlir/IR/BuiltinTypes.h" 18*145176dcSJeremy Kun #include "mlir/IR/Dialect.h" 19*145176dcSJeremy Kun #include "mlir/IR/PatternMatch.h" 20*145176dcSJeremy Kun #include "mlir/Interfaces/InferTypeOpInterface.h" 21*145176dcSJeremy Kun #include "llvm/ADT/APInt.h" 2255b6f170SJeremy Kun #include "llvm/ADT/TypeSwitch.h" 2355b6f170SJeremy Kun 2455b6f170SJeremy Kun using namespace mlir; 2555b6f170SJeremy Kun using namespace mlir::polynomial; 2655b6f170SJeremy Kun 2755b6f170SJeremy Kun #include "mlir/Dialect/Polynomial/IR/PolynomialDialect.cpp.inc" 2855b6f170SJeremy Kun 2955b6f170SJeremy Kun #define GET_ATTRDEF_CLASSES 3055b6f170SJeremy Kun #include "mlir/Dialect/Polynomial/IR/PolynomialAttributes.cpp.inc" 3155b6f170SJeremy Kun #define GET_TYPEDEF_CLASSES 3255b6f170SJeremy Kun #include "mlir/Dialect/Polynomial/IR/PolynomialTypes.cpp.inc" 3355b6f170SJeremy Kun #define GET_OP_CLASSES 3455b6f170SJeremy Kun #include "mlir/Dialect/Polynomial/IR/Polynomial.cpp.inc" 3555b6f170SJeremy Kun initialize()3655b6f170SJeremy Kunvoid PolynomialDialect::initialize() { 3755b6f170SJeremy Kun addAttributes< 3855b6f170SJeremy Kun #define GET_ATTRDEF_LIST 3955b6f170SJeremy Kun #include "mlir/Dialect/Polynomial/IR/PolynomialAttributes.cpp.inc" 4055b6f170SJeremy Kun >(); 4155b6f170SJeremy Kun addTypes< 4255b6f170SJeremy Kun #define GET_TYPEDEF_LIST 4355b6f170SJeremy Kun #include "mlir/Dialect/Polynomial/IR/PolynomialTypes.cpp.inc" 4455b6f170SJeremy Kun >(); 4555b6f170SJeremy Kun addOperations< 4655b6f170SJeremy Kun #define GET_OP_LIST 4755b6f170SJeremy Kun #include "mlir/Dialect/Polynomial/IR/Polynomial.cpp.inc" 4855b6f170SJeremy Kun >(); 4955b6f170SJeremy Kun } 50