Debian Codegraph @

clang/utils/TableGen/TableGenBackends.h

raw
1 //===- TableGenBackends.h - Declarations for Clang TableGen Backends ------===//
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-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
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.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_CLANG_UTILS_TABLEGEN_TABLEGENBACKENDS_H
16 #define LLVM_CLANG_UTILS_TABLEGEN_TABLEGENBACKENDS_H
17
18 #include <string>
19
20 namespace llvm {
21 class raw_ostream;
22 class RecordKeeper;
23 } // namespace llvm
24
25 namespace clang {
26
27 void EmitCIRLowering(const llvm::RecordKeeper &RK, llvm::raw_ostream &OS);
28 void EmitClangDeclContext(const llvm::RecordKeeper &RK, llvm::raw_ostream &OS);
29 /**
30 @param PriorizeIfSubclassOf These classes should be prioritized in the output.
31 This is useful to force enum generation/jump tables/lookup tables to be more
32 compact in both size and surrounding code in hot functions. An example use is
33 in Decl for classes that inherit from DeclContext, for functions like
34 castFromDeclContext.
35 */
36 void EmitClangASTNodes(const llvm::RecordKeeper &RK, llvm::raw_ostream &OS,
37 const std::string &N, const std::string &S,
38 std::string_view PriorizeIfSubclassOf = "");
39 void EmitClangBasicReader(const llvm::RecordKeeper &Records,
40 llvm::raw_ostream &OS);
41 void EmitClangBasicWriter(const llvm::RecordKeeper &Records,
42 llvm::raw_ostream &OS);
43 void EmitClangTypeNodes(const llvm::RecordKeeper &Records,
44 llvm::raw_ostream &OS);
45 void EmitClangTypeReader(const llvm::RecordKeeper &Records,
46 llvm::raw_ostream &OS);
47 void EmitClangTypeWriter(const llvm::RecordKeeper &Records,
48 llvm::raw_ostream &OS);
49 void EmitClangAttrParserStringSwitches(const llvm::RecordKeeper &Records,
50 llvm::raw_ostream &OS);
51 void EmitClangAttrSubjectMatchRulesParserStringSwitches(
52 const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
53 void EmitCXX11AttributeInfo(const llvm::RecordKeeper &Records,
54 llvm::raw_ostream &OS);
55 void EmitAttributeSpellingList(const llvm::RecordKeeper &Records,
56 llvm::raw_ostream &OS);
57 void EmitClangAttrClass(const llvm::RecordKeeper &Records,
58 llvm::raw_ostream &OS);
59 void EmitClangAttrImpl(const llvm::RecordKeeper &Records,
60 llvm::raw_ostream &OS);
61 void EmitClangAttrList(const llvm::RecordKeeper &Records,
62 llvm::raw_ostream &OS);
63 void EmitClangAttrSubjectMatchRuleList(const llvm::RecordKeeper &Records,
64 llvm::raw_ostream &OS);
65 void EmitClangAttrPCHRead(const llvm::RecordKeeper &Records,
66 llvm::raw_ostream &OS);
67 void EmitClangAttrPCHWrite(const llvm::RecordKeeper &Records,
68 llvm::raw_ostream &OS);
69 void EmitClangRegularKeywordAttributeInfo(const llvm::RecordKeeper &Records,
70 llvm::raw_ostream &OS);
71 void EmitClangAttrHasAttrImpl(const llvm::RecordKeeper &Records,
72 llvm::raw_ostream &OS);
73 void EmitClangAttrSpellingListIndex(const llvm::RecordKeeper &Records,
74 llvm::raw_ostream &OS);
75 void EmitClangAttrASTVisitor(const llvm::RecordKeeper &Records,
76 llvm::raw_ostream &OS);
77 void EmitClangAttrTemplateInstantiate(const llvm::RecordKeeper &Records,
78 llvm::raw_ostream &OS);
79 void EmitClangAttrParsedAttrList(const llvm::RecordKeeper &Records,
80 llvm::raw_ostream &OS);
81 void EmitClangAttrParsedAttrImpl(const llvm::RecordKeeper &Records,
82 llvm::raw_ostream &OS);
83 void EmitClangAttrParsedAttrKinds(const llvm::RecordKeeper &Records,
84 llvm::raw_ostream &OS);
85 void EmitClangAttrIsTypeDependent(const llvm::RecordKeeper &Records,
86 llvm::raw_ostream &OS);
87 void EmitClangAttrTextNodeDump(const llvm::RecordKeeper &Records,
88 llvm::raw_ostream &OS);
89 void EmitClangAttrNodeTraverse(const llvm::RecordKeeper &Records,
90 llvm::raw_ostream &OS);
91 void EmitClangAttrDocTable(const llvm::RecordKeeper &Records,
92 llvm::raw_ostream &OS);
93
94 void EmitClangBuiltins(const llvm::RecordKeeper &Records,
95 llvm::raw_ostream &OS);
96 void EmitClangBuiltinTemplates(const llvm::RecordKeeper &Records,
97 llvm::raw_ostream &OS);
98
99 void EmitClangDiagsCompatIDs(const llvm::RecordKeeper &Records,
100 llvm::raw_ostream &OS,
101 const std::string &Component);
102 void EmitClangDiagsDefs(const llvm::RecordKeeper &Records,
103 llvm::raw_ostream &OS, const std::string &Component);
104 void EmitClangDiagsEnums(const llvm::RecordKeeper &Records,
105 llvm::raw_ostream &OS, const std::string &Component);
106 void EmitClangDiagGroups(const llvm::RecordKeeper &Records,
107 llvm::raw_ostream &OS);
108 void EmitClangDiagsIndexName(const llvm::RecordKeeper &Records,
109 llvm::raw_ostream &OS);
110 void EmitClangDiagsInterface(llvm::raw_ostream &OS,
111 const std::string &Component);
112
113 void EmitClangSACheckers(const llvm::RecordKeeper &Records,
114 llvm::raw_ostream &OS);
115
116 void EmitClangCommentHTMLTags(const llvm::RecordKeeper &Records,
117 llvm::raw_ostream &OS);
118 void EmitClangCommentHTMLTagsProperties(const llvm::RecordKeeper &Records,
119 llvm::raw_ostream &OS);
120 void EmitClangCommentHTMLNamedCharacterReferences(
121 const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
122
123 void EmitClangCommentCommandInfo(const llvm::RecordKeeper &Records,
124 llvm::raw_ostream &OS);
125 void EmitClangCommentCommandList(const llvm::RecordKeeper &Records,
126 llvm::raw_ostream &OS);
127 void EmitClangOpcodes(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
128
129 void EmitClangSyntaxNodeList(const llvm::RecordKeeper &Records,
130 llvm::raw_ostream &OS);
131 void EmitClangSyntaxNodeClasses(const llvm::RecordKeeper &Records,
132 llvm::raw_ostream &OS);
133
134 void EmitNeon(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
135 void EmitFP16(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
136 void EmitBF16(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
137 void EmitNeonSema(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
138 void EmitVectorTypes(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
139 void EmitNeonTest(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
140
141 void EmitImmCheckTypes(const llvm::RecordKeeper &Records,
142 llvm::raw_ostream &OS);
143 void EmitSveHeader(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
144 void EmitSveBuiltins(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
145 void EmitSveBuiltinsJSON(const llvm::RecordKeeper &Records,
146 llvm::raw_ostream &OS);
147 void EmitSveBuiltinCG(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
148 void EmitSveTypeFlags(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
149 void EmitSveRangeChecks(const llvm::RecordKeeper &Records,
150 llvm::raw_ostream &OS);
151 void EmitSveStreamingAttrs(const llvm::RecordKeeper &Records,
152 llvm::raw_ostream &OS);
153
154 void EmitSmeHeader(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
155 void EmitSmeBuiltins(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
156 void EmitSmeBuiltinsJSON(const llvm::RecordKeeper &Records,
157 llvm::raw_ostream &OS);
158 void EmitSmeBuiltinCG(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
159 void EmitSmeRangeChecks(const llvm::RecordKeeper &Records,
160 llvm::raw_ostream &OS);
161 void EmitSmeStreamingAttrs(const llvm::RecordKeeper &Records,
162 llvm::raw_ostream &OS);
163 void EmitSmeBuiltinZAState(const llvm::RecordKeeper &Records,
164 llvm::raw_ostream &OS);
165
166 void EmitMveHeader(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
167 void EmitMveBuiltinDef(const llvm::RecordKeeper &Records,
168 llvm::raw_ostream &OS);
169 void EmitMveBuiltinSema(const llvm::RecordKeeper &Records,
170 llvm::raw_ostream &OS);
171 void EmitMveBuiltinCG(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
172 void EmitMveBuiltinAliases(const llvm::RecordKeeper &Records,
173 llvm::raw_ostream &OS);
174
175 void EmitRVVHeader(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
176 void EmitRVVBuiltins(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
177 void EmitRVVBuiltinCG(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
178 void EmitRVVBuiltinSema(const llvm::RecordKeeper &Records,
179 llvm::raw_ostream &OS);
180
181 void EmitCdeHeader(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
182 void EmitCdeBuiltinDef(const llvm::RecordKeeper &Records,
183 llvm::raw_ostream &OS);
184 void EmitCdeBuiltinSema(const llvm::RecordKeeper &Records,
185 llvm::raw_ostream &OS);
186 void EmitCdeBuiltinCG(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
187 void EmitCdeBuiltinAliases(const llvm::RecordKeeper &Records,
188 llvm::raw_ostream &OS);
189
190 void EmitClangAttrDocs(const llvm::RecordKeeper &Records,
191 llvm::raw_ostream &OS);
192 void EmitClangDiagDocs(const llvm::RecordKeeper &Records,
193 llvm::raw_ostream &OS);
194 void EmitClangOptDocs(const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
195
196 void EmitClangOpenCLBuiltins(const llvm::RecordKeeper &Records,
197 llvm::raw_ostream &OS);
198 void EmitClangOpenCLBuiltinHeader(const llvm::RecordKeeper &Records,
199 llvm::raw_ostream &OS);
200 void EmitClangOpenCLBuiltinTests(const llvm::RecordKeeper &Records,
201 llvm::raw_ostream &OS);
202
203 void EmitClangDataCollectors(const llvm::RecordKeeper &Records,
204 llvm::raw_ostream &OS);
205
206 void EmitTestPragmaAttributeSupportedAttributes(
207 const llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
208
209 } // end namespace clang
210
211 #endif