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
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
22
23namespace llzk::polymorphic {
24
25template <typename OpT>
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
34
35namespace llzk::polymorphic {
36
38bool isInTemplate(mlir::Operation *op);
39
42mlir::FailureOr<TemplateOp> verifyInTemplate(mlir::Operation *op);
43
44} // namespace llzk::polymorphic
bool isInTemplate(Operation *op)
Definition Ops.cpp:32
FailureOr< TemplateOp > verifyInTemplate(Operation *op)
Definition Ops.cpp:34