1 //===-- passes.td - PassGen test definition file -----------*- tablegen -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 include "mlir/Pass/PassBase.td"
10 include "mlir/Pass/PassBase.td"
11 include "mlir/Rewrite/PassUtil.td"
13 def TestPass : Pass<"test"> {
14 let summary = "Test pass";
17 def TestPassWithOptions : Pass<"test"> {
18 let summary = "Test pass with options";
21 Option<"testOption", "testOption", "int", "0", "Test option">,
22 ListOption<"testListOption", "test-list-option", "int64_t",
27 def TestPassWithCustomConstructor : Pass<"test"> {
28 let summary = "Test pass with custom constructor";
30 let constructor = "::createTestPassWithCustomConstructor()";