1
- //===- PolynomialOps .td - Polynomial dialect ---------------*- tablegen -*-===//
1
+ //===- Polynomial .td - Polynomial dialect --- ---------------*- tablegen -*-===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
@@ -15,22 +15,7 @@ include "mlir/Interfaces/InferTypeOpInterface.td"
15
15
include "mlir/Interfaces/SideEffectInterfaces.td"
16
16
include "mlir/Dialect/Polynomial/IR/PolynomialDialect.td"
17
17
include "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"
34
19
35
20
class Polynomial_Op<string mnemonic, list<Trait> traits = []> :
36
21
Op<Polynomial_Dialect, mnemonic, traits # [Pure]> {
0 commit comments