1 //===- TableGenBackends.h - Declarations for Clang TableGen Backends ------===//
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
7 //===----------------------------------------------------------------------===//
9 // This file contains the declarations for all of the Clang TableGen
10 // backends. A "TableGen backend" is just a function. See
11 // "$LLVM_ROOT/utils/TableGen/TableGenBackends.h" for more info.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_CLANG_UTILS_TABLEGEN_TABLEGENBACKENDS_H
16 #define LLVM_CLANG_UTILS_TABLEGEN_TABLEGENBACKENDS_H
27 void EmitClangDeclContext(llvm::RecordKeeper
&RK
, llvm::raw_ostream
&OS
);
28 void EmitClangASTNodes(llvm::RecordKeeper
&RK
, llvm::raw_ostream
&OS
,
29 const std::string
&N
, const std::string
&S
);
30 void EmitClangBasicReader(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
31 void EmitClangBasicWriter(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
32 void EmitClangTypeNodes(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
33 void EmitClangTypeReader(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
34 void EmitClangTypeWriter(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
35 void EmitClangAttrParserStringSwitches(llvm::RecordKeeper
&Records
,
36 llvm::raw_ostream
&OS
);
37 void EmitClangAttrSubjectMatchRulesParserStringSwitches(
38 llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
39 void EmitClangAttrClass(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
40 void EmitClangAttrImpl(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
41 void EmitClangAttrList(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
42 void EmitClangAttrPrintList(const std::string
&FieldName
,
43 llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
44 void EmitClangAttrSubjectMatchRuleList(llvm::RecordKeeper
&Records
,
45 llvm::raw_ostream
&OS
);
46 void EmitClangAttrPCHRead(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
47 void EmitClangAttrPCHWrite(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
48 void EmitClangAttrTokenKinds(llvm::RecordKeeper
&Records
,
49 llvm::raw_ostream
&OS
);
50 void EmitClangAttrHasAttrImpl(llvm::RecordKeeper
&Records
,
51 llvm::raw_ostream
&OS
);
52 void EmitClangAttrSpellingListIndex(llvm::RecordKeeper
&Records
,
53 llvm::raw_ostream
&OS
);
54 void EmitClangAttrASTVisitor(llvm::RecordKeeper
&Records
,
55 llvm::raw_ostream
&OS
);
56 void EmitClangAttrTemplateInstantiate(llvm::RecordKeeper
&Records
,
57 llvm::raw_ostream
&OS
);
58 void EmitClangAttrParsedAttrList(llvm::RecordKeeper
&Records
,
59 llvm::raw_ostream
&OS
);
60 void EmitClangAttrParsedAttrImpl(llvm::RecordKeeper
&Records
,
61 llvm::raw_ostream
&OS
);
62 void EmitClangAttrParsedAttrKinds(llvm::RecordKeeper
&Records
,
63 llvm::raw_ostream
&OS
);
64 void EmitClangAttrTextNodeDump(llvm::RecordKeeper
&Records
,
65 llvm::raw_ostream
&OS
);
66 void EmitClangAttrNodeTraverse(llvm::RecordKeeper
&Records
,
67 llvm::raw_ostream
&OS
);
68 void EmitClangAttrDocTable(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
70 void EmitClangDiagsDefs(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
,
71 const std::string
&Component
);
72 void EmitClangDiagGroups(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
73 void EmitClangDiagsIndexName(llvm::RecordKeeper
&Records
,
74 llvm::raw_ostream
&OS
);
76 void EmitClangSACheckers(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
78 void EmitClangCommentHTMLTags(llvm::RecordKeeper
&Records
,
79 llvm::raw_ostream
&OS
);
80 void EmitClangCommentHTMLTagsProperties(llvm::RecordKeeper
&Records
,
81 llvm::raw_ostream
&OS
);
82 void EmitClangCommentHTMLNamedCharacterReferences(llvm::RecordKeeper
&Records
,
83 llvm::raw_ostream
&OS
);
85 void EmitClangCommentCommandInfo(llvm::RecordKeeper
&Records
,
86 llvm::raw_ostream
&OS
);
87 void EmitClangCommentCommandList(llvm::RecordKeeper
&Records
,
88 llvm::raw_ostream
&OS
);
89 void EmitClangOpcodes(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
91 void EmitClangSyntaxNodeList(llvm::RecordKeeper
&Records
,
92 llvm::raw_ostream
&OS
);
93 void EmitClangSyntaxNodeClasses(llvm::RecordKeeper
&Records
,
94 llvm::raw_ostream
&OS
);
96 void EmitNeon(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
97 void EmitFP16(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
98 void EmitBF16(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
99 void EmitNeonSema(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
100 void EmitNeonTest(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
102 void EmitSveHeader(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
103 void EmitSveBuiltins(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
104 void EmitSveBuiltinCG(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
105 void EmitSveTypeFlags(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
106 void EmitSveRangeChecks(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
108 void EmitSmeHeader(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
109 void EmitSmeBuiltins(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
110 void EmitSmeBuiltinCG(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
111 void EmitSmeRangeChecks(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
113 void EmitMveHeader(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
114 void EmitMveBuiltinDef(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
115 void EmitMveBuiltinSema(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
116 void EmitMveBuiltinCG(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
117 void EmitMveBuiltinAliases(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
119 void EmitRVVHeader(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
120 void EmitRVVBuiltins(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
121 void EmitRVVBuiltinCG(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
122 void EmitRVVBuiltinSema(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
124 void EmitCdeHeader(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
125 void EmitCdeBuiltinDef(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
126 void EmitCdeBuiltinSema(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
127 void EmitCdeBuiltinCG(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
128 void EmitCdeBuiltinAliases(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
130 void EmitClangAttrDocs(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
131 void EmitClangDiagDocs(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
132 void EmitClangOptDocs(llvm::RecordKeeper
&Records
, llvm::raw_ostream
&OS
);
134 void EmitClangOpenCLBuiltins(llvm::RecordKeeper
&Records
,
135 llvm::raw_ostream
&OS
);
136 void EmitClangOpenCLBuiltinHeader(llvm::RecordKeeper
&Records
,
137 llvm::raw_ostream
&OS
);
138 void EmitClangOpenCLBuiltinTests(llvm::RecordKeeper
&Records
,
139 llvm::raw_ostream
&OS
);
141 void EmitClangDataCollectors(llvm::RecordKeeper
&Records
,
142 llvm::raw_ostream
&OS
);
144 void EmitTestPragmaAttributeSupportedAttributes(llvm::RecordKeeper
&Records
,
145 llvm::raw_ostream
&OS
);
147 } // end namespace clang