1- //===- PolynomialOps .td - Polynomial dialect ---------------*- tablegen -*-===//
1+ //===- Polynomial .td - Polynomial dialect --- ---------------*- tablegen -*-===//
22//
33// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44// See https://llvm.org/LICENSE.txt for license information.
@@ -15,22 +15,7 @@ include "mlir/Interfaces/InferTypeOpInterface.td"
1515include "mlir/Interfaces/SideEffectInterfaces.td"
1616include "mlir/Dialect/Polynomial/IR/PolynomialDialect.td"
1717include "mlir/Dialect/Polynomial/IR/PolynomialAttributes.td"
18-
19- class Polynomial_Type<string name, string typeMnemonic>
20- : TypeDef<Polynomial_Dialect, name> {
21- let mnemonic = typeMnemonic;
22- }
23-
24- def Polynomial_PolynomialType : Polynomial_Type<"Polynomial", "polynomial"> {
25- let summary = "An element of a polynomial ring.";
26- let description = [{
27- A type for polynomials in a polynomial quotient ring.
28- }];
29- let parameters = (ins Polynomial_RingAttr:$ring);
30- let assemblyFormat = "`<` struct(params) `>`";
31- }
32-
33- def PolynomialLike: TypeOrContainer<Polynomial_PolynomialType, "polynomial-like">;
18+ include "mlir/Dialect/Polynomial/IR/PolynomialTypes.td"
3419
3520class Polynomial_Op<string mnemonic, list<Trait> traits = []> :
3621 Op<Polynomial_Dialect, mnemonic, traits # [Pure]> {
0 commit comments