223
|
1 //===-- passes.td - PassGen test definition file -----------*- tablegen -*-===//
|
|
2 //
|
|
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
|
|
6 //
|
|
7 //===----------------------------------------------------------------------===//
|
|
8
|
|
9 include "mlir/Pass/PassBase.td"
|
|
10 include "mlir/Pass/PassBase.td"
|
|
11 include "mlir/Rewrite/PassUtil.td"
|
|
12
|
|
13 def TestPass : Pass<"test"> {
|
|
14 let summary = "Test pass";
|
236
|
15 }
|
223
|
16
|
236
|
17 def TestPassWithOptions : Pass<"test"> {
|
|
18 let summary = "Test pass with options";
|
223
|
19
|
236
|
20 let options = [
|
|
21 Option<"testOption", "testOption", "int", "0", "Test option">,
|
|
22 ListOption<"testListOption", "test-list-option", "int64_t",
|
|
23 "Test list option">
|
|
24 ];
|
223
|
25 }
|
236
|
26
|
|
27 def TestPassWithCustomConstructor : Pass<"test"> {
|
|
28 let summary = "Test pass with custom constructor";
|
|
29
|
|
30 let constructor = "::createTestPassWithCustomConstructor()";
|
|
31 }
|