LLZK 3.0.0
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
Types.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::felt {
18
41class FeltType;
42namespace detail {
43
44struct FeltTypeStorage;
45
46} // namespace detail
47class FeltType : public ::mlir::Type::TypeBase<FeltType, ::mlir::Type, detail::FeltTypeStorage> {
48public:
49 using Base::Base;
50 bool hasField() const {
51 auto name = getFieldName();
52 return name && !name.empty();
53 }
54
55 const ::llzk::Field &getField() const;
56 static constexpr ::llvm::StringLiteral name = "felt.type";
57 static constexpr ::llvm::StringLiteral dialectName = "felt";
58 using Base::getChecked;
59 static FeltType get(::mlir::MLIRContext *context, ::mlir::StringAttr fieldName);
60 static FeltType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, ::mlir::StringAttr fieldName);
61 static FeltType get(::mlir::MLIRContext *context);
62 static FeltType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context);
63 static FeltType get(::mlir::MLIRContext *context, ::llvm::StringRef fieldName);
64 static FeltType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, ::llvm::StringRef fieldName);
65 static ::llvm::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::StringAttr fieldName);
66 static ::llvm::LogicalResult verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::StringAttr fieldName);
67 static constexpr ::llvm::StringLiteral getMnemonic() {
68 return {"type"};
69 }
70
71 static ::mlir::Type parse(::mlir::AsmParser &odsParser);
72 void print(::mlir::AsmPrinter &odsPrinter) const;
73 ::mlir::StringAttr getFieldName() const;
74};
75
76} // namespace llzk::felt
77MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::felt::FeltType)
78
79#endif // GET_TYPEDEF_CLASSES
80
static constexpr ::llvm::StringLiteral getMnemonic()
Definition Types.h.inc:67
static constexpr ::llvm::StringLiteral dialectName
Definition Types.h.inc:57
::llvm::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::StringAttr fieldName)
Definition Dialect.cpp:258
static FeltType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, ::mlir::StringAttr fieldName)
Definition Types.cpp.inc:73
const ::llzk::Field & getField() const
Definition Dialect.cpp:255
::llvm::LogicalResult verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::StringAttr fieldName)
Definition Types.cpp.inc:93
::mlir::StringAttr getFieldName() const
::mlir::Type parse(::mlir::AsmParser &odsParser)
Definition Types.cpp.inc:99
static constexpr ::llvm::StringLiteral name
Definition Types.h.inc:56
void print(::mlir::AsmPrinter &odsPrinter) const
bool hasField() const
Definition Types.h.inc:50
static FeltType get(::mlir::MLIRContext *context, ::mlir::StringAttr fieldName)
Definition Types.cpp.inc:69
Common interface for binary arithmetic operations on felts.