xref: /freebsd/contrib/llvm-project/clang/utils/TableGen/TableGenBackends.h (revision 2f513db72b034fd5ef7f080b11be5c711c15186a)
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 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 
31 void EmitClangAttrParserStringSwitches(llvm::RecordKeeper &Records,
32                                        llvm::raw_ostream &OS);
33 void EmitClangAttrSubjectMatchRulesParserStringSwitches(
34     llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
35 void EmitClangAttrClass(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
36 void EmitClangAttrImpl(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
37 void EmitClangAttrList(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
38 void EmitClangAttrSubjectMatchRuleList(llvm::RecordKeeper &Records,
39                                        llvm::raw_ostream &OS);
40 void EmitClangAttrPCHRead(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
41 void EmitClangAttrPCHWrite(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
42 void EmitClangAttrHasAttrImpl(llvm::RecordKeeper &Records,
43                               llvm::raw_ostream &OS);
44 void EmitClangAttrSpellingListIndex(llvm::RecordKeeper &Records,
45                                     llvm::raw_ostream &OS);
46 void EmitClangAttrASTVisitor(llvm::RecordKeeper &Records,
47                              llvm::raw_ostream &OS);
48 void EmitClangAttrTemplateInstantiate(llvm::RecordKeeper &Records,
49                                       llvm::raw_ostream &OS);
50 void EmitClangAttrParsedAttrList(llvm::RecordKeeper &Records,
51                                  llvm::raw_ostream &OS);
52 void EmitClangAttrParsedAttrImpl(llvm::RecordKeeper &Records,
53                                  llvm::raw_ostream &OS);
54 void EmitClangAttrParsedAttrKinds(llvm::RecordKeeper &Records,
55                                   llvm::raw_ostream &OS);
56 void EmitClangAttrTextNodeDump(llvm::RecordKeeper &Records,
57                                llvm::raw_ostream &OS);
58 void EmitClangAttrNodeTraverse(llvm::RecordKeeper &Records,
59                                llvm::raw_ostream &OS);
60 
61 void EmitClangDiagsDefs(llvm::RecordKeeper &Records, llvm::raw_ostream &OS,
62                         const std::string &Component);
63 void EmitClangDiagGroups(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
64 void EmitClangDiagsIndexName(llvm::RecordKeeper &Records,
65                              llvm::raw_ostream &OS);
66 
67 void EmitClangSACheckers(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
68 
69 void EmitClangCommentHTMLTags(llvm::RecordKeeper &Records,
70                               llvm::raw_ostream &OS);
71 void EmitClangCommentHTMLTagsProperties(llvm::RecordKeeper &Records,
72                                         llvm::raw_ostream &OS);
73 void EmitClangCommentHTMLNamedCharacterReferences(llvm::RecordKeeper &Records,
74                                                   llvm::raw_ostream &OS);
75 
76 void EmitClangCommentCommandInfo(llvm::RecordKeeper &Records,
77                                  llvm::raw_ostream &OS);
78 void EmitClangCommentCommandList(llvm::RecordKeeper &Records,
79                                  llvm::raw_ostream &OS);
80 
81 void EmitNeon(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
82 void EmitFP16(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
83 void EmitNeonSema(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
84 void EmitNeonTest(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
85 void EmitNeon2(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
86 void EmitNeonSema2(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
87 void EmitNeonTest2(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
88 
89 void EmitClangAttrDocs(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
90 void EmitClangDiagDocs(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
91 void EmitClangOptDocs(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
92 
93 void EmitClangOpenCLBuiltins(llvm::RecordKeeper &Records,
94                              llvm::raw_ostream &OS);
95 
96 void EmitClangDataCollectors(llvm::RecordKeeper &Records,
97                              llvm::raw_ostream &OS);
98 
99 void EmitTestPragmaAttributeSupportedAttributes(llvm::RecordKeeper &Records,
100                                                 llvm::raw_ostream &OS);
101 
102 } // end namespace clang
103 
104 #endif
105