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 // helpers.c
17 void tokenize_stdin(void (*cb)(char **tokens, int ntokens));
18 
19 // module.c
20 int module_dump(void);
21 int module_list_functions(void);
22 int module_list_globals(void);
23 
24 // calc.c
25 int calc(void);
26 
27 // disassemble.c
28 int disassemble(void);
29 
30 // metadata.c
31 int add_named_metadata_operand(void);
32 int set_metadata(void);
33 
34 // object.c
35 int object_list_sections(void);
36 int object_list_symbols(void);
37 
38 // targets.c
39 int targets_list(void);
40 
41 #endif
42