1//===-- OpInterfaces.td ------------------------------------*- tablegen -*-===//
3// Part of the LLZK Project, under the Apache License v2.0.
4// See LICENSE.txt for license information.
5// Copyright 2026 Project LLZK
6// SPDX-License-Identifier: Apache-2.0
8//===----------------------------------------------------------------------===//
10#ifndef LLZK_POLYMORPHIC_OP_INTERFACES
11#define LLZK_POLYMORPHIC_OP_INTERFACES
13include "mlir/IR/Interfaces.td"
14include "mlir/IR/SymbolInterfaces.td"
16def TemplateSymbolBindingOpInterface
17 : OpInterface<"TemplateSymbolBindingOpInterface", [Symbol]> {
19 Common interface for constant parameter-like symbol operations that can be
20 defined within a `TemplateOp`
23 let methods = [InterfaceMethod<
24 [{Gets the optional type of this constant symbol.}],
25 "::std::optional<::mlir::Type>", "getTypeOpt", (ins)>,
28 let cppNamespace = "::llzk::polymorphic";
31#endif // LLZK_POLYMORPHIC_OP_INTERFACES