LLZK 0.1.0
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
Ops.h
Go to the documentation of this file.
1//===-- Ops.h ---------------------------------------------------*- 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#pragma once
11
15#include "llzk/Util/Constants.h"
17
18#include <mlir/IR/OpImplementation.h>
19#include <mlir/Interfaces/CallInterfaces.h>
20#include <mlir/Interfaces/ControlFlowInterfaces.h>
21#include <mlir/Interfaces/FunctionInterfaces.h>
22
23#include <cstdint>
24
25// Include TableGen'd declarations
26#define GET_OP_CLASSES
28
29namespace llzk::function {
30
42
49FunctionKind fnNameToKind(mlir::StringRef name);
50
51} // namespace llzk::function
FunctionKind fnNameToKind(mlir::StringRef name)
Given a function name, return the corresponding FunctionKind.
Definition Ops.cpp:41
FunctionKind
Kinds of functions in LLZK.
Definition Ops.h:32
@ StructConstrain
Function within a struct named FUNC_NAME_CONSTRAIN.
Definition Ops.h:36
@ StructProduct
Function within a struct named FUNC_NAME_PRODUCT.
Definition Ops.h:38
@ StructCompute
Function within a struct named FUNC_NAME_COMPUTE.
Definition Ops.h:34
@ Free
Function that is not within a struct.
Definition Ops.h:40