LLZK
3.0.0
An open-source IR for Zero Knowledge (ZK) circuits
Toggle main menu visibility
Loading...
Searching...
No Matches
ConstraintDiagnostics.h
Go to the documentation of this file.
1
//===-- ConstraintDiagnostics.h ---------------------------------*- C++ -*-===//
2
//
3
// Part of the LLZK Project, under the Apache License v2.0.
4
// See LICENSE.txt for license information.
5
// Copyright 2026 Project LLZK
6
// SPDX-License-Identifier: Apache-2.0
7
//
8
//===----------------------------------------------------------------------===//
9
10
#pragma once
11
12
#include <mlir/IR/Diagnostics.h>
13
#include <mlir/IR/Operation.h>
14
15
#include <llvm/ADT/StringRef.h>
16
#include <llvm/ADT/Twine.h>
17
18
namespace
llzk::polymorphic::detail
{
20
inline
constexpr
llvm::StringLiteral
CONSTRAINT_DIAGNOSTIC_PREFIX
=
"llzk-flatten-constraints: "
;
21
23
inline
mlir::LogicalResult
constraintError
(mlir::Operation *site,
const
llvm::Twine &message) {
24
return
site->emitError(
CONSTRAINT_DIAGNOSTIC_PREFIX
) << message;
25
}
26
}
// namespace llzk::polymorphic::detail
llzk::polymorphic::detail
Common interface for constant parameter-like symbol operations that can be defined within a TemplateO...
Definition
ConstraintBindings.h:24
llzk::polymorphic::detail::constraintError
mlir::LogicalResult constraintError(mlir::Operation *site, const llvm::Twine &message)
Emit the common diagnostic prefix for constraint expansion and storage helpers.
Definition
ConstraintDiagnostics.h:23
llzk::polymorphic::detail::CONSTRAINT_DIAGNOSTIC_PREFIX
constexpr llvm::StringLiteral CONSTRAINT_DIAGNOSTIC_PREFIX
Identify expansion diagnostics separately from IR verifier errors.
Definition
ConstraintDiagnostics.h:20
lib
Dialect
Polymorphic
Transforms
ConstraintDiagnostics.h
Generated by
1.17.0
Copyright 2025 Veridise Inc. under the Apache License v2.0. Copyright 2026 Project LLZK under the Apache License v2.0.