Mercurial > hg > CbC > CbC_llvm
view 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 source
//===-- passes.td - PassGen test definition file -----------*- tablegen -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// include "mlir/Pass/PassBase.td" include "mlir/Pass/PassBase.td" include "mlir/Rewrite/PassUtil.td" def TestPass : Pass<"test"> { let summary = "Test pass"; } def TestPassWithOptions : Pass<"test"> { let summary = "Test pass with 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()"; }