lto-compress.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* LTO IL compression streams.
  2. Copyright (C) 2009-2015 Free Software Foundation, Inc.
  3. Contributed by Simon Baldwin <simonb@google.com>
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify it
  6. under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3, or (at your option)
  8. any later version.
  9. GCC is distributed in the hope that it will be useful, but WITHOUT
  10. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11. or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  12. License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GCC; see the file COPYING3. If not see
  15. <http://www.gnu.org/licenses/>. */
  16. #ifndef GCC_LTO_COMPRESS_H
  17. #define GCC_LTO_COMPRESS_H
  18. struct lto_compression_stream;
  19. /* In lto-compress.c. */
  20. extern struct lto_compression_stream
  21. *lto_start_compression (void (*callback) (const char *, unsigned, void *),
  22. void *opaque);
  23. extern void lto_compress_block (struct lto_compression_stream *stream,
  24. const char *base, size_t num_chars);
  25. extern void lto_end_compression (struct lto_compression_stream *stream);
  26. extern struct lto_compression_stream
  27. *lto_start_uncompression (void (*callback) (const char *, unsigned, void *),
  28. void *opaque);
  29. extern void lto_uncompress_block (struct lto_compression_stream *stream,
  30. const char *base, size_t num_chars);
  31. extern void lto_end_uncompression (struct lto_compression_stream *stream);
  32. #endif /* GCC_LTO_COMPRESS_H */