summaryrefslogtreecommitdiffstats
path: root/mlir/test/lib/TestDialect/TestOps.td
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/test/lib/TestDialect/TestOps.td')
-rw-r--r--mlir/test/lib/TestDialect/TestOps.td8
1 files changed, 7 insertions, 1 deletions
diff --git a/mlir/test/lib/TestDialect/TestOps.td b/mlir/test/lib/TestDialect/TestOps.td
index f10991dfe5b..0dd32d74a75 100644
--- a/mlir/test/lib/TestDialect/TestOps.td
+++ b/mlir/test/lib/TestDialect/TestOps.td
@@ -74,9 +74,15 @@ def MultiTensorRankOf : TEST_Op<"multi_tensor_rank_of"> {
}
//===----------------------------------------------------------------------===//
-// Test Operands
+// Test Symbols
//===----------------------------------------------------------------------===//
+def SymbolOp : TEST_Op<"symbol", [Symbol]> {
+ let summary = "operation which defines a new symbol";
+ let arguments = (ins StrAttr:$sym_name,
+ OptionalAttr<StrAttr>:$sym_visibility);
+}
+
def SymbolScopeOp : TEST_Op<"symbol_scope",
[SymbolTable, SingleBlockImplicitTerminator<"TerminatorOp">]> {
let summary = "operation which defines a new symbol table";
OpenPOWER on IntegriCloud