LLZK 0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
Include.cpp
Go to the documentation of this file.
1//===-- Include.cpp - Include dialect C API implementation ------*- 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
13
15
16#include <mlir/CAPI/Pass.h>
17#include <mlir/CAPI/Registration.h>
18#include <mlir/CAPI/Wrap.h>
19
20#include <mlir-c/Pass.h>
21
22using namespace llzk::include;
23
24static void registerLLZKIncludeTransformationPasses() { registerTransformationPasses(); }
25
26// Include impl for transformation passes
28
29MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(Include, llzk__include, IncludeDialect)
30
31MlirOperation llzkIncludeOpCreate(MlirLocation location, MlirStringRef name, MlirStringRef path) {
32 return wrap(IncludeOp::create(unwrap(location), unwrap(name), unwrap(path)));
33}
MlirOperation llzkIncludeOpCreate(MlirLocation location, MlirStringRef name, MlirStringRef path)
Creates an IncludeOp pointing to another MLIR file.
Definition Include.cpp:31
static IncludeOp create(::mlir::Location, ::llvm::StringRef name, ::llvm::StringRef path)
void registerTransformationPasses()