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//===----------------------------------------------------------------------===//
10#ifndef LLZK_STRING_OPS
11#define LLZK_STRING_OPS
13include "llzk/Dialect/String/IR/Dialect.td"
14include "llzk/Dialect/String/IR/Types.td"
16include "mlir/IR/OpBase.td"
17include "mlir/Interfaces/SideEffectInterfaces.td"
18include "mlir/IR/SymbolInterfaces.td"
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);
25 let assemblyFormat = [{
31#endif // LLZK_STRING_OPS