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
14
15namespace llzk::constrain {
16
17inline bool containsConstraintOp(mlir::Operation *op) {
18 return op->walk([](ConstraintOpInterface p) { return mlir::WalkResult::interrupt(); }
19 ).wasInterrupted();
20}
21
22} // namespace llzk::constrain
bool containsConstraintOp(mlir::Operation *op)