1//===-- LLZKValidationPasses.td - Validation Passes --------*- tablegen -*-===//
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
8//===----------------------------------------------------------------------===//
11/// This file defines the `-llzk-validate-field-writes` pass.
13//===----------------------------------------------------------------------===//
15#ifndef LLZK_VALIDATION_PASSES_TD
16#define LLZK_VALIDATION_PASSES_TD
18include "llzk/Pass/PassBase.td"
20def FieldWriteValidatorPass
21 : LLZKPass<"llzk-validate-field-writes", "::llzk::component::StructDefOp"> {
23 "Detect multiple and missing writes to the same field of a component.";
24 let constructor = "llzk::createFieldWriteValidatorPass()";
27#endif // LLZK_VALIDATION_PASSES_TD