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