blob: d9d99dd09df040db86019a52febeb25c5986bcb3 [file] [log] [blame]
//===- Verifier.h - Verifier analysis for MLIR structures -------*- C++ -*-===//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
namespace mlir {
struct LogicalResult;
class Operation;
/// Perform (potentially expensive) checks of invariants, used to detect
/// compiler bugs, on this operation and any nested operations. On error, this
/// reports the error through the MLIRContext and returns failure.
LogicalResult verify(Operation *op);
} // end namespace mlir