GCC Middle and Back End API Reference
lto-compress.h
Go to the documentation of this file.
1/* LTO IL compression streams.
2
3 Copyright (C) 2009-2024 Free Software Foundation, Inc.
4 Contributed by Simon Baldwin <simonb@google.com>
5
6This file is part of GCC.
7
8GCC is free software; you can redistribute it and/or modify it
9under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 3, or (at your option)
11any later version.
12
13GCC is distributed in the hope that it will be useful, but WITHOUT
14ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
16License for more details.
17
18You should have received a copy of the GNU General Public License
19along with GCC; see the file COPYING3. If not see
20<http://www.gnu.org/licenses/>. */
21
22#ifndef GCC_LTO_COMPRESS_H
23#define GCC_LTO_COMPRESS_H
24
26
27/* In lto-compress.cc. */
28extern struct lto_compression_stream
29 *lto_start_compression (void (*callback) (const char *, unsigned, void *),
30 void *opaque);
31extern void lto_compress_block (struct lto_compression_stream *stream,
32 const char *base, size_t num_chars);
33extern void lto_end_compression (struct lto_compression_stream *stream);
34
35extern struct lto_compression_stream
36 *lto_start_uncompression (void (*callback) (const char *, unsigned, void *),
37 void *opaque);
38extern void lto_uncompress_block (struct lto_compression_stream *stream,
39 const char *base, size_t num_chars);
40extern void lto_end_uncompression (struct lto_compression_stream *stream,
42
43#endif /* GCC_LTO_COMPRESS_H */
T * ggc_alloc(ALONE_CXX_MEM_STAT_INFO)
Definition ggc.h:184
struct lto_compression_stream * lto_start_compression(void(*callback)(const char *, unsigned, void *), void *opaque)
Definition lto-compress.cc:227
void lto_compress_block(struct lto_compression_stream *stream, const char *base, size_t num_chars)
Definition lto-compress.cc:236
struct lto_compression_stream * lto_start_uncompression(void(*callback)(const char *, unsigned, void *), void *opaque)
Definition lto-compress.cc:318
void lto_end_uncompression(struct lto_compression_stream *stream, lto_compression compression)
Definition lto-compress.cc:400
void lto_end_compression(struct lto_compression_stream *stream)
Definition lto-compress.cc:305
void lto_uncompress_block(struct lto_compression_stream *stream, const char *base, size_t num_chars)
Definition lto-compress.cc:327
lto_compression
Definition lto-streamer.h:362
Definition lto-compress.cc:46
void * opaque
Definition lto-compress.cc:48
void(* callback)(const char *, unsigned, void *)
Definition lto-compress.cc:47