LLZK 0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
Enums.td
Go to the documentation of this file.
1//===-- Enums.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_BOOLEAN_ENUMS
11#define LLZK_BOOLEAN_ENUMS
12
13include "mlir/IR/EnumAttr.td"
14
15def LLZK_FeltCmpPredicate
16 : I32EnumAttr<
17 "FeltCmpPredicate", "Field element comparison predicate",
18 [I32EnumAttrCase<"EQ", 0, "eq">, I32EnumAttrCase<"NE", 1, "ne">,
19 I32EnumAttrCase<"LT", 2, "lt">, I32EnumAttrCase<"LE", 3, "le">,
20 I32EnumAttrCase<"GT", 4, "gt">, I32EnumAttrCase<"GE", 5, "ge">,
21]> {
22 let genSpecializedAttr = 0;
23 let cppNamespace = "::llzk::boolean";
24}
25
26#endif // LLZK_BOOLEAN_ENUMS