TableGenBackends.h 5.1 KB

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