LLZK 3.0.0
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
AttributeHelper.td
Go to the documentation of this file.
1//===-- AttributeHelper.td ---------------------------------*- tablegen -*-===//
2//
3// Part of the LLZK Project, under the Apache License v2.0.
4// See LICENSE.txt for license information.
5// Copyright 2025 Veridise Inc.
6// SPDX-License-Identifier: Apache-2.0
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLZK_ATTRIBUTE_HELPER
11#define LLZK_ATTRIBUTE_HELPER
12
13include "mlir/IR/AttrTypeBase.td"
14
15// Signed mathematical integer with representation-independent equality and
16// hashing.
17class DynamicAPIntParameter<string desc = "">
18 : AttrOrTypeParameter<"::llzk::DynamicAPIntValue", desc,
19 "const ::llvm::DynamicAPInt &"> {
20 let parser = "::llzk::parseDynamicAPIntValue($_parser)";
21 let printer = "$_printer << $_self";
22 let comparator = "$_lhs == $_rhs";
23}
24
25#endif // LLZK_ATTRIBUTE_HELPER