LLZK 2.0.0
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
SMTTypes.h.inc
Go to the documentation of this file.
1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* TypeDef Declarations *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* *|
7\*===----------------------------------------------------------------------===*/
8
9#ifdef GET_TYPEDEF_CLASSES
10#undef GET_TYPEDEF_CLASSES
11
12
13namespace mlir {
14class AsmParser;
15class AsmPrinter;
16} // namespace mlir
17namespace llzk {
18namespace smt {
19class BoolType;
20class IntType;
21class BitVectorType;
22class ArrayType;
23class SMTFuncType;
24class SortType;
25class BoolType : public ::mlir::Type::TypeBase<BoolType, ::mlir::Type, ::mlir::TypeStorage> {
26public:
27 using Base::Base;
28 static constexpr ::llvm::StringLiteral name = "smt.bool";
29 static constexpr ::llvm::StringLiteral dialectName = "smt";
30 static constexpr ::llvm::StringLiteral getMnemonic() {
31 return {"bool"};
32 }
33
34 static ::mlir::Type parse(::mlir::AsmParser &odsParser);
35 void print(::mlir::AsmPrinter &odsPrinter) const;
36};
37class IntType : public ::mlir::Type::TypeBase<IntType, ::mlir::Type, ::mlir::TypeStorage> {
38public:
39 using Base::Base;
40 static constexpr ::llvm::StringLiteral name = "smt.int";
41 static constexpr ::llvm::StringLiteral dialectName = "smt";
42 static constexpr ::llvm::StringLiteral getMnemonic() {
43 return {"int"};
44 }
45
46 static ::mlir::Type parse(::mlir::AsmParser &odsParser);
47 void print(::mlir::AsmPrinter &odsPrinter) const;
48};
49namespace detail {
50struct BitVectorTypeStorage;
51} // namespace detail
52class BitVectorType : public ::mlir::Type::TypeBase<BitVectorType, ::mlir::Type, detail::BitVectorTypeStorage> {
53public:
54 using Base::Base;
55 static constexpr ::llvm::StringLiteral name = "smt.bv";
56 static constexpr ::llvm::StringLiteral dialectName = "smt";
57 using Base::getChecked;
58 static BitVectorType get(::mlir::MLIRContext *context, int64_t width);
59 static BitVectorType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, int64_t width);
60 static ::llvm::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, int64_t width);
61 static ::llvm::LogicalResult verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, int64_t width);
62 static constexpr ::llvm::StringLiteral getMnemonic() {
63 return {"bv"};
64 }
65
66 static ::mlir::Type parse(::mlir::AsmParser &odsParser);
67 void print(::mlir::AsmPrinter &odsPrinter) const;
68 int64_t getWidth() const;
69};
70namespace detail {
71struct ArrayTypeStorage;
72} // namespace detail
73class ArrayType : public ::mlir::Type::TypeBase<ArrayType, ::mlir::Type, detail::ArrayTypeStorage> {
74public:
75 using Base::Base;
76 static constexpr ::llvm::StringLiteral name = "smt.array";
77 static constexpr ::llvm::StringLiteral dialectName = "smt";
78 using Base::getChecked;
79 static ArrayType get(::mlir::MLIRContext *context, mlir::Type domainType, mlir::Type rangeType);
80 static ArrayType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, mlir::Type domainType, mlir::Type rangeType);
81 static ::llvm::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, mlir::Type domainType, mlir::Type rangeType);
82 static ::llvm::LogicalResult verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, mlir::Type domainType, mlir::Type rangeType);
83 static constexpr ::llvm::StringLiteral getMnemonic() {
84 return {"array"};
85 }
86
87 static ::mlir::Type parse(::mlir::AsmParser &odsParser);
88 void print(::mlir::AsmPrinter &odsPrinter) const;
89 mlir::Type getDomainType() const;
90 mlir::Type getRangeType() const;
91};
92namespace detail {
93struct SMTFuncTypeStorage;
94} // namespace detail
95class SMTFuncType : public ::mlir::Type::TypeBase<SMTFuncType, ::mlir::Type, detail::SMTFuncTypeStorage> {
96public:
97 using Base::Base;
98 static constexpr ::llvm::StringLiteral name = "smt.func";
99 static constexpr ::llvm::StringLiteral dialectName = "smt";
100 using Base::getChecked;
101 static SMTFuncType get(::mlir::MLIRContext *context, ::llvm::ArrayRef<mlir::Type> domainTypes, mlir::Type rangeType);
102 static SMTFuncType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, ::llvm::ArrayRef<mlir::Type> domainTypes, mlir::Type rangeType);
103 static SMTFuncType get(llvm::ArrayRef<mlir::Type> domainTypes, mlir::Type rangeType);
104 static SMTFuncType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, llvm::ArrayRef<mlir::Type> domainTypes, mlir::Type rangeType);
105 static SMTFuncType get(mlir::Type rangeType);
106 static SMTFuncType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, mlir::Type rangeType);
107 static ::llvm::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::llvm::ArrayRef<mlir::Type> domainTypes, mlir::Type rangeType);
108 static ::llvm::LogicalResult verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::llvm::ArrayRef<mlir::Type> domainTypes, mlir::Type rangeType);
109 static constexpr ::llvm::StringLiteral getMnemonic() {
110 return {"func"};
111 }
112
113 static ::mlir::Type parse(::mlir::AsmParser &odsParser);
114 void print(::mlir::AsmPrinter &odsPrinter) const;
115 ::llvm::ArrayRef<mlir::Type> getDomainTypes() const;
116 mlir::Type getRangeType() const;
117};
118namespace detail {
119struct SortTypeStorage;
120} // namespace detail
121class SortType : public ::mlir::Type::TypeBase<SortType, ::mlir::Type, detail::SortTypeStorage> {
122public:
123 using Base::Base;
124 static constexpr ::llvm::StringLiteral name = "smt.sort";
125 static constexpr ::llvm::StringLiteral dialectName = "smt";
126 using Base::getChecked;
127 static SortType get(::mlir::MLIRContext *context, mlir::StringAttr identifier, ::llvm::ArrayRef<mlir::Type> sortParams);
128 static SortType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, mlir::StringAttr identifier, ::llvm::ArrayRef<mlir::Type> sortParams);
129 static SortType get(::mlir::MLIRContext *context, llvm::StringRef identifier, llvm::ArrayRef<mlir::Type> sortParams);
130 static SortType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, llvm::StringRef identifier, llvm::ArrayRef<mlir::Type> sortParams);
131 static SortType get(::mlir::MLIRContext *context, llvm::StringRef identifier);
132 static SortType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, llvm::StringRef identifier);
133 static ::llvm::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, mlir::StringAttr identifier, ::llvm::ArrayRef<mlir::Type> sortParams);
134 static ::llvm::LogicalResult verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, mlir::StringAttr identifier, ::llvm::ArrayRef<mlir::Type> sortParams);
135 static constexpr ::llvm::StringLiteral getMnemonic() {
136 return {"sort"};
137 }
138
139 static ::mlir::Type parse(::mlir::AsmParser &odsParser);
140 void print(::mlir::AsmPrinter &odsPrinter) const;
141 mlir::StringAttr getIdentifier() const;
142 ::llvm::ArrayRef<mlir::Type> getSortParams() const;
143};
144} // namespace smt
145} // namespace llzk
146MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::smt::BoolType)
147MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::smt::IntType)
148MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::smt::BitVectorType)
149MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::smt::ArrayType)
150MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::smt::SMTFuncType)
151MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::smt::SortType)
152
153#endif // GET_TYPEDEF_CLASSES
154
mlir::Type getDomainType() const
static constexpr ::llvm::StringLiteral dialectName
static ArrayType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, mlir::Type domainType, mlir::Type rangeType)
mlir::Type getRangeType() const
::llvm::LogicalResult verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, mlir::Type domainType, mlir::Type rangeType)
::llvm::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, mlir::Type domainType, mlir::Type rangeType)
static constexpr ::llvm::StringLiteral getMnemonic()
void print(::mlir::AsmPrinter &odsPrinter) const
static constexpr ::llvm::StringLiteral name
static ArrayType get(::mlir::MLIRContext *context, mlir::Type domainType, mlir::Type rangeType)
::mlir::Type parse(::mlir::AsmParser &odsParser)
static BitVectorType get(::mlir::MLIRContext *context, int64_t width)
static constexpr ::llvm::StringLiteral name
void print(::mlir::AsmPrinter &odsPrinter) const
static constexpr ::llvm::StringLiteral getMnemonic()
::llvm::LogicalResult verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, int64_t width)
static constexpr ::llvm::StringLiteral dialectName
::mlir::Type parse(::mlir::AsmParser &odsParser)
static BitVectorType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, int64_t width)
::llvm::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, int64_t width)
Definition SMTTypes.cpp:43
::mlir::Type parse(::mlir::AsmParser &odsParser)
void print(::mlir::AsmPrinter &odsPrinter) const
static constexpr ::llvm::StringLiteral getMnemonic()
static constexpr ::llvm::StringLiteral name
static constexpr ::llvm::StringLiteral dialectName
static constexpr ::llvm::StringLiteral name
void print(::mlir::AsmPrinter &odsPrinter) const
static constexpr ::llvm::StringLiteral getMnemonic()
::mlir::Type parse(::mlir::AsmParser &odsParser)
static constexpr ::llvm::StringLiteral dialectName
void print(::mlir::AsmPrinter &odsPrinter) const
static constexpr ::llvm::StringLiteral name
static constexpr ::llvm::StringLiteral dialectName
::llvm::ArrayRef< mlir::Type > getDomainTypes() const
::llvm::LogicalResult verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::llvm::ArrayRef< mlir::Type > domainTypes, mlir::Type rangeType)
static SMTFuncType get(::mlir::MLIRContext *context, ::llvm::ArrayRef< mlir::Type > domainTypes, mlir::Type rangeType)
::llvm::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::llvm::ArrayRef< mlir::Type > domainTypes, mlir::Type rangeType)
Definition SMTTypes.cpp:70
mlir::Type getRangeType() const
static SMTFuncType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, ::llvm::ArrayRef< mlir::Type > domainTypes, mlir::Type rangeType)
::mlir::Type parse(::mlir::AsmParser &odsParser)
static constexpr ::llvm::StringLiteral getMnemonic()
::llvm::LogicalResult verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, mlir::StringAttr identifier, ::llvm::ArrayRef< mlir::Type > sortParams)
static SortType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, mlir::StringAttr identifier, ::llvm::ArrayRef< mlir::Type > sortParams)
::mlir::Type parse(::mlir::AsmParser &odsParser)
static constexpr ::llvm::StringLiteral name
void print(::mlir::AsmPrinter &odsPrinter) const
static constexpr ::llvm::StringLiteral getMnemonic()
::llvm::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, mlir::StringAttr identifier, ::llvm::ArrayRef< mlir::Type > sortParams)
Definition SMTTypes.cpp:90
static SortType get(::mlir::MLIRContext *context, mlir::StringAttr identifier, ::llvm::ArrayRef< mlir::Type > sortParams)
mlir::StringAttr getIdentifier() const
static constexpr ::llvm::StringLiteral dialectName
::llvm::ArrayRef< mlir::Type > getSortParams() const