1/*===-- llvm-c-test.h - tool for testing libLLVM and llvm-c API -----------===*\
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|* Header file for llvm-c-test                                                *|
11|*                                                                            *|
12\*===----------------------------------------------------------------------===*/
13#ifndef LLVM_C_TEST_H
14#define LLVM_C_TEST_H
15
16#include <stdbool.h>
17#include "llvm-c/Core.h"
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23// helpers.c
24void llvm_tokenize_stdin(void (*cb)(char **tokens, int ntokens));
25
26// module.c
27LLVMModuleRef llvm_load_module(bool Lazy, bool New);
28int llvm_module_dump(bool Lazy, bool New);
29int llvm_module_list_functions(void);
30int llvm_module_list_globals(void);
31
32// calc.c
33int llvm_calc(void);
34
35// disassemble.c
36int llvm_disassemble(void);
37
38// metadata.c
39int llvm_add_named_metadata_operand(void);
40int llvm_set_metadata(void);
41
42// object.c
43int llvm_object_list_sections(void);
44int llvm_object_list_symbols(void);
45
46// targets.c
47int llvm_targets_list(void);
48
49// echo.c
50int llvm_echo(void);
51
52// diagnostic.c
53int llvm_test_diagnostic_handler(void);
54
55#ifdef __cplusplus
56}
57#endif /* !defined(__cplusplus) */
58
59#endif
60