brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 79c57a9 Raw
35 lines · plain
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-exception6//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    // Testing the output of multi-line description. This would fail compilation23    // if not properly handled.24    ListOption<"testListOption", "test-list-option", "int64_t", [{25      Test26               list option}]>27  ];28}29 30def TestPassWithCustomConstructor : Pass<"test"> {31  let summary = "Test pass with custom constructor";32 33  let constructor = "::createTestPassWithCustomConstructor()";34}35