1//===-- Ops.td ---------------------------------------------*- 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//===----------------------------------------------------------------------===//
13include "llzk/Dialect/Shared/Types.td"
14include "llzk/Dialect/Undef/IR/Dialect.td"
16include "mlir/IR/OpBase.td"
17include "mlir/Interfaces/SideEffectInterfaces.td"
19def LLZK_UndefOp : Op<UndefDialect, "undef", [Pure]> {
20 let summary = "Creates an undefined value of the specified type.";
22 This operation has no operands or attributes. It represents an undefined
23 value of the specified LLZK IR dialect type. This op can be introduced by
24 the `llzk-array-to-scalar` pass if there is a read from an array index
25 that was not dominated by an earlier write to that same index.
30 %0 = undef.undef : !felt.type
33 let results = (outs AnyLLZKType:$res);
34 let assemblyFormat = [{
35 `:` type($res) attr-dict
39#endif // LLZK_UNDEF_OPS