LLZK 0.1.0
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
LLZKValidationPasses.td
Go to the documentation of this file.
1//===-- LLZKValidationPasses.td - Validation Passes --------*- tablegen -*-===//
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/// \file
11/// This file defines the `-llzk-validate-member-writes` pass.
12///
13//===----------------------------------------------------------------------===//
14
15#ifndef LLZK_VALIDATION_PASSES_TD
16#define LLZK_VALIDATION_PASSES_TD
17
18include "llzk/Pass/PassBase.td"
19
20def MemberWriteValidatorPass : LLZKPass<"llzk-validate-member-writes",
21 "::llzk::component::StructDefOp"> {
22 let summary =
23 "Detect multiple and missing writes to the same member of a component.";
24 let constructor = "llzk::createMemberWriteValidatorPass()";
25}
26
27#endif // LLZK_VALIDATION_PASSES_TD