TableGenBackends.h 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. #ifndef LLVM_CLANG_UTILS_TABLEGEN_TABLEGENBACKENDS_H
  15. #define LLVM_CLANG_UTILS_TABLEGEN_TABLEGENBACKENDS_H
  16. #include <string>
  17. namespace llvm {
  18. class raw_ostream;
  19. class RecordKeeper;
  20. } // namespace llvm
  21. namespace clang {
  22. void EmitClangDeclContext(llvm::RecordKeeper &RK, llvm::raw_ostream &OS);
  23. void EmitClangASTNodes(llvm::RecordKeeper &RK, llvm::raw_ostream &OS,
  24. const std::string &N, const std::string &S);
  25. void EmitClangBasicReader(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  26. void EmitClangBasicWriter(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  27. void EmitClangTypeNodes(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  28. void EmitClangTypeReader(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  29. void EmitClangTypeWriter(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  30. void EmitClangAttrParserStringSwitches(llvm::RecordKeeper &Records,
  31. llvm::raw_ostream &OS);
  32. void EmitClangAttrSubjectMatchRulesParserStringSwitches(
  33. llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  34. void EmitClangAttrClass(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  35. void EmitClangAttrImpl(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  36. void EmitClangAttrList(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  37. void EmitClangAttrSubjectMatchRuleList(llvm::RecordKeeper &Records,
  38. llvm::raw_ostream &OS);
  39. void EmitClangAttrPCHRead(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  40. void EmitClangAttrPCHWrite(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  41. void EmitClangAttrHasAttrImpl(llvm::RecordKeeper &Records,
  42. llvm::raw_ostream &OS);
  43. void EmitClangAttrSpellingListIndex(llvm::RecordKeeper &Records,
  44. llvm::raw_ostream &OS);
  45. void EmitClangAttrASTVisitor(llvm::RecordKeeper &Records,
  46. llvm::raw_ostream &OS);
  47. void EmitClangAttrTemplateInstantiate(llvm::RecordKeeper &Records,
  48. llvm::raw_ostream &OS);
  49. void EmitClangAttrParsedAttrList(llvm::RecordKeeper &Records,
  50. llvm::raw_ostream &OS);
  51. void EmitClangAttrParsedAttrImpl(llvm::RecordKeeper &Records,
  52. llvm::raw_ostream &OS);
  53. void EmitClangAttrParsedAttrKinds(llvm::RecordKeeper &Records,
  54. llvm::raw_ostream &OS);
  55. void EmitClangAttrTextNodeDump(llvm::RecordKeeper &Records,
  56. llvm::raw_ostream &OS);
  57. void EmitClangAttrNodeTraverse(llvm::RecordKeeper &Records,
  58. llvm::raw_ostream &OS);
  59. void EmitClangAttrDocTable(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  60. void EmitClangDiagsDefs(llvm::RecordKeeper &Records, llvm::raw_ostream &OS,
  61. const std::string &Component);
  62. void EmitClangDiagGroups(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  63. void EmitClangDiagsIndexName(llvm::RecordKeeper &Records,
  64. llvm::raw_ostream &OS);
  65. void EmitClangSACheckers(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  66. void EmitClangCommentHTMLTags(llvm::RecordKeeper &Records,
  67. llvm::raw_ostream &OS);
  68. void EmitClangCommentHTMLTagsProperties(llvm::RecordKeeper &Records,
  69. llvm::raw_ostream &OS);
  70. void EmitClangCommentHTMLNamedCharacterReferences(llvm::RecordKeeper &Records,
  71. llvm::raw_ostream &OS);
  72. void EmitClangCommentCommandInfo(llvm::RecordKeeper &Records,
  73. llvm::raw_ostream &OS);
  74. void EmitClangCommentCommandList(llvm::RecordKeeper &Records,
  75. llvm::raw_ostream &OS);
  76. void EmitClangOpcodes(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  77. void EmitClangSyntaxNodeList(llvm::RecordKeeper &Records,
  78. llvm::raw_ostream &OS);
  79. void EmitClangSyntaxNodeClasses(llvm::RecordKeeper &Records,
  80. llvm::raw_ostream &OS);
  81. void EmitNeon(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  82. void EmitFP16(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  83. void EmitBF16(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  84. void EmitNeonSema(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  85. void EmitNeonTest(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  86. void EmitSveHeader(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  87. void EmitSveBuiltins(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  88. void EmitSveBuiltinCG(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  89. void EmitSveTypeFlags(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  90. void EmitSveRangeChecks(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  91. void EmitMveHeader(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  92. void EmitMveBuiltinDef(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  93. void EmitMveBuiltinSema(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  94. void EmitMveBuiltinCG(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  95. void EmitMveBuiltinAliases(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  96. void EmitRVVHeader(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  97. void EmitRVVBuiltins(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  98. void EmitRVVBuiltinCG(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  99. void EmitRVVBuiltinSema(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  100. void EmitCdeHeader(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  101. void EmitCdeBuiltinDef(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  102. void EmitCdeBuiltinSema(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  103. void EmitCdeBuiltinCG(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  104. void EmitCdeBuiltinAliases(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  105. void EmitClangAttrDocs(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  106. void EmitClangDiagDocs(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  107. void EmitClangOptDocs(llvm::RecordKeeper &Records, llvm::raw_ostream &OS);
  108. void EmitClangOpenCLBuiltins(llvm::RecordKeeper &Records,
  109. llvm::raw_ostream &OS);
  110. void EmitClangOpenCLBuiltinTests(llvm::RecordKeeper &Records,
  111. llvm::raw_ostream &OS);
  112. void EmitClangDataCollectors(llvm::RecordKeeper &Records,
  113. llvm::raw_ostream &OS);
  114. void EmitTestPragmaAttributeSupportedAttributes(llvm::RecordKeeper &Records,
  115. llvm::raw_ostream &OS);
  116. } // end namespace clang
  117. #endif