LLZK
2.0.0
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
Cast.cpp
Go to the documentation of this file.
1
//===-- Cast.cpp - Cast 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
10
#include "
llzk-c/Dialect/Cast.h
"
11
12
#include "
llzk/CAPI/Builder.h
"
13
#include "
llzk/CAPI/Support.h
"
14
#include "
llzk/Dialect/Cast/IR/Dialect.h
"
15
#include "
llzk/Dialect/Cast/IR/Ops.h
"
16
17
#include <mlir/CAPI/IR.h>
18
#include <mlir/CAPI/Registration.h>
19
20
using namespace
llzk
;
21
using namespace
llzk::cast
;
22
23
// Include the generated CAPI
24
#include "
llzk/Dialect/Cast/IR/Ops.capi.cpp.inc
"
25
26
MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(Cast, llzk__cast,
CastDialect
)
27
28
LLZK_DEFINE_SUFFIX_OP_BUILD_METHOD
(
29
Cast,
IntToFeltOp
, WithType, MlirType feltType, MlirValue value
30
) {
31
return
wrap(
create<IntToFeltOp>
(builder, location, unwrap(feltType), unwrap(value)));
32
}
Dialect.h
Ops.capi.cpp.inc
Ops.h
Cast.h
llzk::cast::CastDialect
Definition
Dialect.h.inc:13
llzk::cast::IntToFeltOp
Definition
Ops.h.inc:260
Builder.h
Support.h
LLZK_DEFINE_SUFFIX_OP_BUILD_METHOD
#define LLZK_DEFINE_SUFFIX_OP_BUILD_METHOD(dialect, op, suffix,...)
Definition
Support.h:27
llzk::cast
Definition
Ops.cpp:23
llzk
Definition
AnalysisPassEnums.cpp:19
llzk::create
mlir::Operation * create(MlirOpBuilder cBuilder, MlirLocation cLocation, Args &&...args)
Creates a new operation using an ODS build method.
Definition
Builder.h:41
lib
CAPI
Dialect
Cast.cpp
Generated by
1.14.0
Copyright 2025 Veridise Inc. under the Apache License v2.0. Copyright 2026 Project LLZK under the Apache License v2.0.