LLZK
0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
OpInterfaces.h
Go to the documentation of this file.
1
//===-- OpInterfaces.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 TableGen'd declarations
13
#include "
llzk/Dialect/Constrain/IR/OpInterfaces.h.inc
"
14
15
namespace
llzk::constrain
{
16
17
inline
bool
containsConstraintOp
(mlir::Operation *op) {
18
return
op->walk([](
ConstraintOpInterface
p) {
return
mlir::WalkResult::interrupt(); }
19
).wasInterrupted();
20
}
21
22
}
// namespace llzk::constrain
OpInterfaces.h.inc
llzk::constrain::ConstraintOpInterface
Definition
OpInterfaces.h.inc:40
llzk::constrain
Definition
Ops.cpp:23
llzk::constrain::containsConstraintOp
bool containsConstraintOp(mlir::Operation *op)
Definition
OpInterfaces.h:17
include
llzk
Dialect
Constrain
IR
OpInterfaces.h
Generated by
1.13.2
Copyright 2025 Veridise Inc. under the Apache License v2.0.