LLZK 0.1.0
Veridise's ZK Language IR
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// APInts that allows comparison involving different bitwidths.
16class APIntParameter<string desc = "">
17 : AttrOrTypeParameter<"::llvm::APInt", desc> {
18 let comparator = "::llvm::APInt::isSameValue($_lhs, $_rhs)";
19}
20
21#endif // LLZK_ATTRIBUTE_HELPER