Warning: That file was not part of the compilation database. It may have many parsing errors.

1/* brig-c.h -- Header file for brig input's gcc C interface.
2 Copyright (C) 2016-2017 Free Software Foundation, Inc.
3 Contributed by Pekka Jaaskelainen <pekka.jaaskelainen@parmance.com>
4 for General Processor Tech.
5
6This file is part of GCC.
7
8GCC is free software; you can redistribute it and/or modify it under
9the terms of the GNU General Public License as published by the Free
10Software Foundation; either version 3, or (at your option) any later
11version.
12
13GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14WARRANTY; without even the implied warranty of MERCHANTABILITY or
15FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16for 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 BRIG_BRIG_C_H
23#define BRIG_BRIG_C_H
24
25#define BRIG_EXTERN_C
26
27#include "machmode.h"
28
29/* Functions defined in the Brig frontend proper called by the GCC
30 interface. */
31
32extern int brig_enable_dump (const char *);
33extern int brig_enable_optimize (const char *);
34
35extern void brig_add_search_path (const char *);
36
37extern void brig_create_brigbrig (int int_type_size, int pointer_size,
38 const char *pkgpath, const char *prefix,
39 const char *relative_import_path);
40
41extern void brig_parse_input_files (const char **, unsigned int,
42 bool only_check_syntax,
43 bool require_return_statement);
44extern void brig_write_globals (void);
45
46extern tree brig_type_for_size (unsigned int bits, int unsignedp);
47extern tree brig_type_for_mode (machine_mode, int unsignedp);
48
49/* Functions defined in the GCC interface called by the Brig frontend
50 proper. */
51
52extern void brig_preserve_from_gc (tree);
53
54extern const char *brig_localize_identifier (const char *);
55
56extern unsigned int brig_field_alignment (tree);
57
58extern void brig_trampoline_info (unsigned int *size, unsigned int *alignment);
59
60extern void brig_imported_unsafe (void);
61
62extern void brig_write_export_data (const char *, unsigned int);
63
64extern const char *brig_read_export_data (int, off_t, char **, size_t *, int *);
65
66#endif /* !defined (BRIG_BRIG_C_H) */
67

Warning: That file was not part of the compilation database. It may have many parsing errors.