xref: /aosp_15_r20/external/llvm/tools/llvm-c-test/llvm-c-test.h (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker /*===-- llvm-c-test.h - tool for testing libLLVM and llvm-c API -----------===*\
2*9880d681SAndroid Build Coastguard Worker |*                                                                            *|
3*9880d681SAndroid Build Coastguard Worker |*                     The LLVM Compiler Infrastructure                       *|
4*9880d681SAndroid Build Coastguard Worker |*                                                                            *|
5*9880d681SAndroid Build Coastguard Worker |* This file is distributed under the University of Illinois Open Source      *|
6*9880d681SAndroid Build Coastguard Worker |* License. See LICENSE.TXT for details.                                      *|
7*9880d681SAndroid Build Coastguard Worker |*                                                                            *|
8*9880d681SAndroid Build Coastguard Worker |*===----------------------------------------------------------------------===*|
9*9880d681SAndroid Build Coastguard Worker |*                                                                            *|
10*9880d681SAndroid Build Coastguard Worker |* Header file for llvm-c-test                                                *|
11*9880d681SAndroid Build Coastguard Worker |*                                                                            *|
12*9880d681SAndroid Build Coastguard Worker \*===----------------------------------------------------------------------===*/
13*9880d681SAndroid Build Coastguard Worker #ifndef LLVM_C_TEST_H
14*9880d681SAndroid Build Coastguard Worker #define LLVM_C_TEST_H
15*9880d681SAndroid Build Coastguard Worker 
16*9880d681SAndroid Build Coastguard Worker #include <stdbool.h>
17*9880d681SAndroid Build Coastguard Worker #include "llvm-c/Core.h"
18*9880d681SAndroid Build Coastguard Worker 
19*9880d681SAndroid Build Coastguard Worker #ifdef __cplusplus
20*9880d681SAndroid Build Coastguard Worker extern "C" {
21*9880d681SAndroid Build Coastguard Worker #endif
22*9880d681SAndroid Build Coastguard Worker 
23*9880d681SAndroid Build Coastguard Worker // helpers.c
24*9880d681SAndroid Build Coastguard Worker void llvm_tokenize_stdin(void (*cb)(char **tokens, int ntokens));
25*9880d681SAndroid Build Coastguard Worker 
26*9880d681SAndroid Build Coastguard Worker // module.c
27*9880d681SAndroid Build Coastguard Worker LLVMModuleRef llvm_load_module(bool Lazy, bool New);
28*9880d681SAndroid Build Coastguard Worker int llvm_module_dump(bool Lazy, bool New);
29*9880d681SAndroid Build Coastguard Worker int llvm_module_list_functions(void);
30*9880d681SAndroid Build Coastguard Worker int llvm_module_list_globals(void);
31*9880d681SAndroid Build Coastguard Worker 
32*9880d681SAndroid Build Coastguard Worker // calc.c
33*9880d681SAndroid Build Coastguard Worker int llvm_calc(void);
34*9880d681SAndroid Build Coastguard Worker 
35*9880d681SAndroid Build Coastguard Worker // disassemble.c
36*9880d681SAndroid Build Coastguard Worker int llvm_disassemble(void);
37*9880d681SAndroid Build Coastguard Worker 
38*9880d681SAndroid Build Coastguard Worker // metadata.c
39*9880d681SAndroid Build Coastguard Worker int llvm_add_named_metadata_operand(void);
40*9880d681SAndroid Build Coastguard Worker int llvm_set_metadata(void);
41*9880d681SAndroid Build Coastguard Worker 
42*9880d681SAndroid Build Coastguard Worker // object.c
43*9880d681SAndroid Build Coastguard Worker int llvm_object_list_sections(void);
44*9880d681SAndroid Build Coastguard Worker int llvm_object_list_symbols(void);
45*9880d681SAndroid Build Coastguard Worker 
46*9880d681SAndroid Build Coastguard Worker // targets.c
47*9880d681SAndroid Build Coastguard Worker int llvm_targets_list(void);
48*9880d681SAndroid Build Coastguard Worker 
49*9880d681SAndroid Build Coastguard Worker // echo.c
50*9880d681SAndroid Build Coastguard Worker int llvm_echo(void);
51*9880d681SAndroid Build Coastguard Worker 
52*9880d681SAndroid Build Coastguard Worker // diagnostic.c
53*9880d681SAndroid Build Coastguard Worker int llvm_test_diagnostic_handler(void);
54*9880d681SAndroid Build Coastguard Worker 
55*9880d681SAndroid Build Coastguard Worker #ifdef __cplusplus
56*9880d681SAndroid Build Coastguard Worker }
57*9880d681SAndroid Build Coastguard Worker #endif /* !defined(__cplusplus) */
58*9880d681SAndroid Build Coastguard Worker 
59*9880d681SAndroid Build Coastguard Worker #endif
60