Main.h 930 B

123456789101112131415161718192021222324252627282930
  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. #include <sal.h> // HLSL Change - SAL
  16. namespace llvm {
  17. class RecordKeeper;
  18. class raw_ostream;
  19. /// \brief Perform the action using Records, and write output to OS.
  20. /// \returns true on error, false otherwise
  21. typedef bool TableGenMainFn(raw_ostream &OS, RecordKeeper &Records);
  22. int TableGenMain(_In_z_ char *argv0, _In_ TableGenMainFn *MainFn); // HLSL Change - SAL
  23. }
  24. #endif