LLZK 3.0.0
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
SMTAttributes.h.inc
Go to the documentation of this file.
1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* AttrDef Declarations *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* *|
7\*===----------------------------------------------------------------------===*/
8
9#ifdef GET_ATTRDEF_CLASSES
10#undef GET_ATTRDEF_CLASSES
11
12
13namespace mlir {
14class AsmParser;
15class AsmPrinter;
16} // namespace mlir
17namespace llzk {
18namespace smt {
19class BitVectorAttr;
20class KeywordAttr;
21class SymbolAttr;
22namespace detail {
23struct BitVectorAttrStorage;
24} // namespace detail
25class BitVectorAttr : public ::mlir::Attribute::AttrBase<BitVectorAttr, ::mlir::Attribute, detail::BitVectorAttrStorage, ::mlir::TypedAttr::Trait> {
26public:
27 using Base::Base;
29 std::string getValueAsString(bool prefix = true) const;
30 static constexpr ::llvm::StringLiteral name = "smt.bv";
31 static constexpr ::llvm::StringLiteral dialectName = "smt";
32 using Base::getChecked;
33 static BitVectorAttr get(::mlir::MLIRContext *context, ::llvm::APInt value);
34 static BitVectorAttr getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, ::llvm::APInt value);
35 static BitVectorAttr get(::mlir::MLIRContext *context, llvm::StringRef value);
36 static BitVectorAttr getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, llvm::StringRef value);
37 static BitVectorAttr get(::mlir::MLIRContext *context, uint64_t value, unsigned width);
38 static BitVectorAttr getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, uint64_t value, unsigned width);
39 static ::llvm::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::llvm::APInt value);
40 static ::llvm::LogicalResult verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::llvm::APInt value);
41 static constexpr ::llvm::StringLiteral getMnemonic() {
42 return {"bv"};
43 }
44
45 static ::mlir::Attribute parse(::mlir::AsmParser &odsParser, ::mlir::Type odsType);
46 void print(::mlir::AsmPrinter &odsPrinter) const;
47 ::llvm::APInt getValue() const;
48 ::mlir::Type getType() const;
49};
50namespace detail {
51struct KeywordAttrStorage;
52} // namespace detail
53class KeywordAttr : public ::mlir::Attribute::AttrBase<KeywordAttr, ::mlir::Attribute, detail::KeywordAttrStorage> {
54public:
55 using Base::Base;
56 static constexpr ::llvm::StringLiteral name = "smt.keyword";
57 static constexpr ::llvm::StringLiteral dialectName = "smt";
58 using Base::getChecked;
59 static KeywordAttr get(::mlir::MLIRContext *context, ::llvm::StringRef value);
60 static KeywordAttr getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, ::llvm::StringRef value);
61 static ::llvm::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::llvm::StringRef value);
62 static ::llvm::LogicalResult verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::llvm::StringRef value);
63 static constexpr ::llvm::StringLiteral getMnemonic() {
64 return {"keyword"};
65 }
66
67 static ::mlir::Attribute parse(::mlir::AsmParser &odsParser, ::mlir::Type odsType);
68 void print(::mlir::AsmPrinter &odsPrinter) const;
69 ::llvm::StringRef getValue() const;
70};
71namespace detail {
72struct SymbolAttrStorage;
73} // namespace detail
74class SymbolAttr : public ::mlir::Attribute::AttrBase<SymbolAttr, ::mlir::Attribute, detail::SymbolAttrStorage> {
75public:
76 using Base::Base;
77 static constexpr ::llvm::StringLiteral name = "smt.symbol";
78 static constexpr ::llvm::StringLiteral dialectName = "smt";
79 using Base::getChecked;
80 static SymbolAttr get(::mlir::MLIRContext *context, ::llvm::StringRef value);
81 static SymbolAttr getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, ::llvm::StringRef value);
82 static ::llvm::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::llvm::StringRef value);
83 static ::llvm::LogicalResult verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::llvm::StringRef value);
84 static constexpr ::llvm::StringLiteral getMnemonic() {
85 return {"symbol"};
86 }
87
88 static ::mlir::Attribute parse(::mlir::AsmParser &odsParser, ::mlir::Type odsType);
89 void print(::mlir::AsmPrinter &odsPrinter) const;
90 ::llvm::StringRef getValue() const;
91};
92} // namespace smt
93} // namespace llzk
94MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::smt::BitVectorAttr)
95MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::smt::KeywordAttr)
96MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::smt::SymbolAttr)
97
98#endif // GET_ATTRDEF_CLASSES
99