LLZK 2.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 {
18namespace felt {
19class FeltType;
20namespace detail {
21struct FeltTypeStorage;
22} // namespace detail
23class FeltType : public ::mlir::Type::TypeBase<FeltType, ::mlir::Type, detail::FeltTypeStorage> {
24public:
25 using Base::Base;
26 bool hasField() const {
27 auto name = getFieldName();
28 return name && !name.empty();
29 }
30
31 const ::llzk::Field &getField() const;
32 static constexpr ::llvm::StringLiteral name = "felt.type";
33 static constexpr ::llvm::StringLiteral dialectName = "felt";
34 using Base::getChecked;
35 static FeltType get(::mlir::MLIRContext *context, ::mlir::StringAttr fieldName);
36 static FeltType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, ::mlir::StringAttr fieldName);
37 static FeltType get(::mlir::MLIRContext *context);
38 static FeltType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context);
39 static FeltType get(::mlir::MLIRContext *context, ::llvm::StringRef fieldName);
40 static FeltType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, ::llvm::StringRef fieldName);
41 static ::llvm::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::StringAttr fieldName);
42 static ::llvm::LogicalResult verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::StringAttr fieldName);
43 static constexpr ::llvm::StringLiteral getMnemonic() {
44 return {"type"};
45 }
46
47 static ::mlir::Type parse(::mlir::AsmParser &odsParser);
48 void print(::mlir::AsmPrinter &odsPrinter) const;
49 ::mlir::StringAttr getFieldName() const;
50};
51} // namespace felt
52} // namespace llzk
53MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::felt::FeltType)
54
55#endif // GET_TYPEDEF_CLASSES
56
static constexpr ::llvm::StringLiteral getMnemonic()
Definition Types.h.inc:43
static constexpr ::llvm::StringLiteral dialectName
Definition Types.h.inc:33
::llvm::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::StringAttr fieldName)
Definition Dialect.cpp:171
static FeltType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, ::mlir::StringAttr fieldName)
Definition Types.cpp.inc:71
const ::llzk::Field & getField() const
Definition Dialect.cpp:168
::llvm::LogicalResult verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::StringAttr fieldName)
Definition Types.cpp.inc:91
::mlir::StringAttr getFieldName() const
::mlir::Type parse(::mlir::AsmParser &odsParser)
Definition Types.cpp.inc:97
static constexpr ::llvm::StringLiteral name
Definition Types.h.inc:32
void print(::mlir::AsmPrinter &odsPrinter) const
bool hasField() const
Definition Types.h.inc:26
static FeltType get(::mlir::MLIRContext *context, ::mlir::StringAttr fieldName)
Definition Types.cpp.inc:67