LLZK 2.0.0
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
Include.h
Go to the documentation of this file.
1//===-- Include.h - C API for Include 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// Include 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_INCLUDE_H
19#define LLZK_C_DIALECT_INCLUDE_H
20
21#include <mlir-c/IR.h>
22#include <mlir-c/Support.h>
23
24// Include the generated CAPI
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
34
35//===----------------------------------------------------------------------===//
36// IncludeOp
37//===----------------------------------------------------------------------===//
38
40MLIR_CAPI_EXPORTED MlirOperation llzkInclude_IncludeOpCreateInferredContext(
41 MlirLocation loc, MlirStringRef name, MlirStringRef path
42);
43
44#ifdef __cplusplus
45}
46#endif
47
48#endif // LLZK_C_DIALECT_INCLUDE_H
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Include, llzk__include)
Get reference to the LLZK include dialect.
MLIR_CAPI_EXPORTED MlirOperation llzkInclude_IncludeOpCreateInferredContext(MlirLocation loc, MlirStringRef name, MlirStringRef path)
Creates an IncludeOp pointing to another MLIR file.
Definition Include.cpp:33