brintos

brintos / llvm-project-archived public Read only

0
0
Text · 765 B · fd8e9cc Raw
34 lines · plain
1// RUN: mlir-tblgen -gen-pass-doc -I %S/../../include -dialect=test %s | FileCheck %s2 3include "mlir/Pass/PassBase.td"4 5def TestPassDocA : Pass<"test-pass-doc-a"> {6  let summary = "pass summary";7  let description = [{8    Pass description9  }];10 11  let options = [12    ListOption<"option", "option", "std::string", "pass option">13  ];14}15 16def TestPassDocB : Pass<"test-pass-doc-b"> {17}18 19// Ensure there are empty lines between individual pass docs.20 21// CHECK:      `-test-pass-doc-a`22// CHECK-EMPTY:23// CHECK-NEXT:  _Pass summary_24// CHECK-EMPTY:25// CHECK-NEXT:  Pass description26// CHECK-EMPTY:27// CHECK-NEXT:  Options28// CHECK-EMPTY:29// CHECK-NEXT:  ```30// CHECK-NEXT:  -option : pass option31// CHECK-NEXT:  ```32// CHECK-EMPTY:33// CHECK-NEXT:  `-test-pass-doc-b`34