1 // RUN: mlir-tblgen -gen-directive-decl -directives-dialect=TDL -I %S/../../../llvm/include %s | FileCheck -match-full-lines %s
3 include "llvm/Frontend/Directive/DirectiveBase.td"
5 def TestDirectiveLanguage : DirectiveLanguage {
7 let cppNamespace = "tdl";
10 def TDLCV_vala : ClauseVal<"vala",1,1> {}
11 def TDLCV_valb : ClauseVal<"valb",2,1> {}
12 def TDLCV_valc : ClauseVal<"valc",3,0> { let isDefault = 1; }
14 def TDLC_ClauseA : Clause<"clausea"> {
15 let flangClass = "TdlClauseA";
16 let enumClauseValue = "AKind";
17 let allowedClauseValues = [
24 // CHECK: def AKindvala : I32EnumAttrCase<"Vala", 0, "vala">;
25 // CHECK: def AKindvalb : I32EnumAttrCase<"Valb", 1, "valb">;
26 // CHECK: def AKind: I32EnumAttr<
27 // CHECK: "ClauseAKind",
28 // CHECK: "AKind Clause",
29 // CHECK: [AKindvala, AKindvalb]> {
30 // CHECK: let cppNamespace = "::mlir::tdl";
32 // CHECK: def AKindAttr : EnumAttr<TDL_Dialect, AKind, "akind">;