LLZK
2.0.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
12
#include "
llzk/Dialect/Polymorphic/IR/Dialect.h
"
13
#include "
llzk/Dialect/Polymorphic/IR/Types.h
"
14
#include "
llzk/Dialect/Shared/OpHelpers.h
"
15
16
#include <mlir/Dialect/Affine/IR/AffineValueMap.h>
17
#include <mlir/Interfaces/ControlFlowInterfaces.h>
18
#include <mlir/Interfaces/InferTypeOpInterface.h>
19
20
// Include TableGen'd declarations
21
#include "
llzk/Dialect/Polymorphic/IR/OpInterfaces.h.inc
"
22
23
namespace
llzk::polymorphic
{
24
25
template
<
typename
OpT>
26
concept
TemplateSymbolBindingOp
=
27
std::is_same_v<OpT, TemplateSymbolBindingOpInterface> ||
28
std::is_base_of_v<TemplateSymbolBindingOpInterface::Trait<OpT>, OpT>;
29
}
30
31
// Include TableGen'd declarations
32
#define GET_OP_CLASSES
33
#include "
llzk/Dialect/Polymorphic/IR/Ops.h.inc
"
34
35
namespace
llzk::polymorphic
{
36
38
bool
isInTemplate
(mlir::Operation *op);
39
42
mlir::FailureOr<TemplateOp>
verifyInTemplate
(mlir::Operation *op);
43
44
}
// namespace llzk::polymorphic
OpHelpers.h
Dialect.h
OpInterfaces.h.inc
Ops.h.inc
Types.h
llzk::polymorphic::TemplateSymbolBindingOp
Definition
Ops.h:26
llzk::polymorphic
Definition
Ops.cpp:30
llzk::polymorphic::isInTemplate
bool isInTemplate(Operation *op)
Definition
Ops.cpp:32
llzk::polymorphic::verifyInTemplate
FailureOr< TemplateOp > verifyInTemplate(Operation *op)
Definition
Ops.cpp:34
include
llzk
Dialect
Polymorphic
IR
Ops.h
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.