Main.h 1013 B

123456789101112131415161718192021222324252627282930313233343536
  1. //===- llvm/TableGen/Main.h - tblgen entry point ----------------*- C++ -*-===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. //
  10. // This file declares the common entry point for tblgen tools.
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_TABLEGEN_MAIN_H
  14. #define LLVM_TABLEGEN_MAIN_H
  15. // HLSL Change Begins
  16. #ifdef _WIN32
  17. #include <sal.h>
  18. #else
  19. #include "dxc/Support/WinAdapter.h"
  20. #endif
  21. // HLSL Change Ends
  22. namespace llvm {
  23. class RecordKeeper;
  24. class raw_ostream;
  25. /// \brief Perform the action using Records, and write output to OS.
  26. /// \returns true on error, false otherwise
  27. typedef bool TableGenMainFn(raw_ostream &OS, RecordKeeper &Records);
  28. int TableGenMain(_In_z_ char *argv0, _In_ TableGenMainFn *MainFn); // HLSL Change - SAL
  29. }
  30. #endif