LLZK
3.0.0
An open-source IR for Zero Knowledge (ZK) circuits
Toggle main menu visibility
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
13
include "llzk/Dialect/Cast/IR/Dialect.td"
14
include "llzk/Dialect/Cast/IR/Enums.td"
15
16
class CastDialectEnumAttr<EnumAttrInfo enum, string name, string enumMnemonic,
17
list<Trait> traits = []>
18
: EnumAttr<CastDialect, enum, name, traits> {
19
let mnemonic = enumMnemonic;
20
}
21
22
def LLZK_OverflowSemanticsAttr
23
: CastDialectEnumAttr<LLZK_OverflowSemantics, "overflow_semantics",
24
"overflow"> {
25
let assemblyFormat = [{ $value }];
26
}
27
28
#endif // LLZK_CAST_ATTRS
include
llzk
Dialect
Cast
IR
Attrs.td
Generated by
1.17.0
Copyright 2025 Veridise Inc. under the Apache License v2.0. Copyright 2026 Project LLZK under the Apache License v2.0.