LLZK 0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
Ops.td
Go to the documentation of this file.
1//===-- Ops.td ---------------------------------------------*- 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#ifndef LLZK_STRING_OPS
11#define LLZK_STRING_OPS
12
13include "llzk/Dialect/String/IR/Dialect.td"
14include "llzk/Dialect/String/IR/Types.td"
15
16include "mlir/IR/OpBase.td"
17include "mlir/Interfaces/SideEffectInterfaces.td"
18include "mlir/IR/SymbolInterfaces.td"
19
20def LLZK_LitStringOp : Op<StringDialect, "new", [Pure, ConstantLike]> {
21 let summary = "literal string";
22 let arguments = (ins StrAttr:$value);
23 let results = (outs LLZK_String:$result);
24
25 let assemblyFormat = [{
26 $value attr-dict
27 }];
28 let hasFolder = 1;
29}
30
31#endif // LLZK_STRING_OPS