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