forked from OSchip/llvm-project
38 lines
740 B
TableGen
38 lines
740 B
TableGen
// RUN: mlir-tblgen -gen-dialect-doc -I %S/../../include %s | FileCheck %s
|
|
|
|
include "mlir/IR/OpBase.td"
|
|
|
|
def Test_Dialect : Dialect {
|
|
let name = "test";
|
|
let summary = "Dialect of ops to test";
|
|
let description = [{
|
|
Dialect without a [TOC] here.
|
|
TOC added by tool.
|
|
}];
|
|
let cppNamespace = "NS";
|
|
}
|
|
def AOp : Op<Test_Dialect, "a", []>;
|
|
|
|
// CHECK: Dialect without a [TOC] here.
|
|
// CHECK: TOC added by tool.
|
|
// CHECK: [TOC]
|
|
// CHECK-NOT: [TOC]
|
|
|
|
def Toc_Dialect : Dialect {
|
|
let name = "test_toc";
|
|
let summary = "Dialect of ops to test";
|
|
let description = [{
|
|
Dialect with
|
|
|
|
[TOC]
|
|
|
|
here.
|
|
}];
|
|
let cppNamespace = "NS";
|
|
}
|
|
def BOp : Op<Toc_Dialect, "b", []>;
|
|
|
|
// CHECK: Dialect with
|
|
// CHECK: [TOC]
|
|
// CHECK: here.
|