LLZK 2.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;
20namespace detail {
21struct BitVectorAttrStorage;
22} // namespace detail
23class BitVectorAttr : public ::mlir::Attribute::AttrBase<BitVectorAttr, ::mlir::Attribute, detail::BitVectorAttrStorage, ::mlir::TypedAttr::Trait> {
24public:
25 using Base::Base;
27 std::string getValueAsString(bool prefix = true) const;
28 static constexpr ::llvm::StringLiteral name = "smt.bv";
29 static constexpr ::llvm::StringLiteral dialectName = "smt";
30 using Base::getChecked;
31 static BitVectorAttr get(::mlir::MLIRContext *context, ::llvm::APInt value);
32 static BitVectorAttr getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, ::llvm::APInt value);
33 static BitVectorAttr get(::mlir::MLIRContext *context, llvm::StringRef value);
34 static BitVectorAttr getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, llvm::StringRef value);
35 static BitVectorAttr get(::mlir::MLIRContext *context, uint64_t value, unsigned width);
36 static BitVectorAttr getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, uint64_t value, unsigned width);
37 static ::llvm::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::llvm::APInt value);
38 static ::llvm::LogicalResult verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::llvm::APInt value);
39 static constexpr ::llvm::StringLiteral getMnemonic() {
40 return {"bv"};
41 }
42
43 static ::mlir::Attribute parse(::mlir::AsmParser &odsParser, ::mlir::Type odsType);
44 void print(::mlir::AsmPrinter &odsPrinter) const;
45 ::llvm::APInt getValue() const;
46 ::mlir::Type getType() const;
47};
48} // namespace smt
49} // namespace llzk
50MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::smt::BitVectorAttr)
51
52#endif // GET_ATTRDEF_CLASSES
53