LLZK 2.1.1
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
Attrs.td
Go to the documentation of this file.
1//===-- Attrs.td -------------------------------------------*- tablegen -*-===//
2//
3// Part of the LLZK Project, under the Apache License v2.0.
4// See LICENSE.txt for license information.
5// Copyright 2026 Project LLZK
6// SPDX-License-Identifier: Apache-2.0
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLZK_CAST_ATTRS
11#define LLZK_CAST_ATTRS
12
13include "llzk/Dialect/Cast/IR/Dialect.td"
14include "llzk/Dialect/Cast/IR/Enums.td"
15
16class CastDialectEnumAttr<EnumAttrInfo enum, string name, string enumMnemonic,
17 list<Trait> traits = []>
18 : EnumAttr<CastDialect, enum, name, traits> {
19 let mnemonic = enumMnemonic;
20}
21
22def LLZK_OverflowSemanticsAttr
23 : CastDialectEnumAttr<LLZK_OverflowSemantics, "overflow_semantics",
24 "overflow"> {
25 let assemblyFormat = [{ $value }];
26}
27
28#endif // LLZK_CAST_ATTRS