LLZK 0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
Global.h
Go to the documentation of this file.
1//===-- Global.h - C API for Global 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// Global 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_GLOBAL_H
19#define LLZK_C_DIALECT_GLOBAL_H
20
21#include "llzk-c/Support.h"
22
23#include <mlir-c/IR.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
30
31//===----------------------------------------------------------------------===//
32// GlobalDefOp
33//===----------------------------------------------------------------------===//
34
37
39LLZK_DECLARE_OP_PREDICATE(GlobalDefOp, IsConstant);
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Global, llzk__global)
#define LLZK_DECLARE_OP_ISA(what)
Definition Support.h:48
#define LLZK_DECLARE_OP_PREDICATE(op, name)
Definition Support.h:41