Mercurial > hg > CbC > CbC_llvm
diff mlir/unittests/TableGen/passes.td @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 5f17cb93ff66 |
children |
line wrap: on
line diff
--- a/mlir/unittests/TableGen/passes.td Wed Jul 21 10:27:27 2021 +0900 +++ b/mlir/unittests/TableGen/passes.td Wed Nov 09 17:45:10 2022 +0900 @@ -12,8 +12,20 @@ def TestPass : Pass<"test"> { let summary = "Test pass"; +} - let constructor = "::createTestPass()"; +def TestPassWithOptions : Pass<"test"> { + let summary = "Test pass with options"; - let options = RewritePassUtils.options; + let options = [ + Option<"testOption", "testOption", "int", "0", "Test option">, + ListOption<"testListOption", "test-list-option", "int64_t", + "Test list option"> + ]; } + +def TestPassWithCustomConstructor : Pass<"test"> { + let summary = "Test pass with custom constructor"; + + let constructor = "::createTestPassWithCustomConstructor()"; +}