LLZK
0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
Bool.h
Go to the documentation of this file.
1
//===-- Bool.h - C API for Bool dialect ---------------------------*- C -*-===//
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
// This header declares the C interface for registering and accessing the
11
// Bool dialect. A dialect should be registered with a context to make it
12
// available to users of the context. These users must load the dialect
13
// before using any of its attributes, operations, or types. Parser and pass
14
// manager can load registered dialects automatically.
15
//
16
//===----------------------------------------------------------------------===//
17
18
#ifndef LLZK_C_DIALECT_BOOL_H
19
#define LLZK_C_DIALECT_BOOL_H
20
21
#include "
llzk-c/Support.h
"
22
23
#include <mlir-c/IR.h>
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
29
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION
(Bool, llzk__boolean);
30
31
enum
LlzkCmp
{
32
LlzkCmp_EQ
= 0,
33
LlzkCmp_NE
= 1,
34
LlzkCmp_LT
= 2,
35
LlzkCmp_LE
= 3,
36
LlzkCmp_GT
= 4,
37
LlzkCmp_GE
= 5
38
};
39
typedef
enum
LlzkCmp
LlzkCmp
;
40
42
MLIR_CAPI_EXPORTED MlirAttribute
llzkFeltCmpPredicateAttrGet
(MlirContext context,
LlzkCmp
cmp);
43
45
LLZK_DECLARE_ATTR_ISA
(FeltCmpPredicateAttr);
46
47
#ifdef __cplusplus
48
}
49
#endif
50
51
#endif
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Bool, llzk__boolean)
llzkFeltCmpPredicateAttrGet
MLIR_CAPI_EXPORTED MlirAttribute llzkFeltCmpPredicateAttrGet(MlirContext context, LlzkCmp cmp)
Returns a llzk::boolean::FeltCmpPredicateAttr attribute.
Definition
Bool.cpp:21
LlzkCmp
LlzkCmp
Definition
Bool.h:31
LlzkCmp_GE
@ LlzkCmp_GE
Definition
Bool.h:37
LlzkCmp_NE
@ LlzkCmp_NE
Definition
Bool.h:33
LlzkCmp_LT
@ LlzkCmp_LT
Definition
Bool.h:34
LlzkCmp_LE
@ LlzkCmp_LE
Definition
Bool.h:35
LlzkCmp_GT
@ LlzkCmp_GT
Definition
Bool.h:36
LlzkCmp_EQ
@ LlzkCmp_EQ
Definition
Bool.h:32
Support.h
LLZK_DECLARE_ATTR_ISA
#define LLZK_DECLARE_ATTR_ISA(what)
Definition
Support.h:49
include
llzk-c
Dialect
Bool.h
Generated by
1.13.2
Copyright 2025 Veridise Inc. under the Apache License v2.0.