Anders Waldenborg | 2bef1a6 | 2013-10-23 08:10:20 +0000 | [diff] [blame] | 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 | |
Rafael Espindola | 0b270d1 | 2015-12-18 03:57:26 +0000 | [diff] [blame] | 16 | #include <stdbool.h> |
Amaury Sechet | 8824280 | 2016-02-04 23:26:19 +0000 | [diff] [blame] | 17 | #include "llvm-c/Core.h" |
| 18 | |
| 19 | #ifdef __cplusplus |
| 20 | extern "C" { |
| 21 | #endif |
Rafael Espindola | 0b270d1 | 2015-12-18 03:57:26 +0000 | [diff] [blame] | 22 | |
Anders Waldenborg | 2bef1a6 | 2013-10-23 08:10:20 +0000 | [diff] [blame] | 23 | // helpers.c |
Benjamin Kramer | 2e13053 | 2016-02-05 13:31:14 +0000 | [diff] [blame] | 24 | void llvm_tokenize_stdin(void (*cb)(char **tokens, int ntokens)); |
Anders Waldenborg | 2bef1a6 | 2013-10-23 08:10:20 +0000 | [diff] [blame] | 25 | |
| 26 | // module.c |
Benjamin Kramer | 2e13053 | 2016-02-05 13:31:14 +0000 | [diff] [blame] | 27 | LLVMModuleRef llvm_load_module(bool Lazy, bool New); |
| 28 | int llvm_module_dump(bool Lazy, bool New); |
| 29 | int llvm_module_list_functions(void); |
| 30 | int llvm_module_list_globals(void); |
Anders Waldenborg | 2bef1a6 | 2013-10-23 08:10:20 +0000 | [diff] [blame] | 31 | |
| 32 | // calc.c |
Benjamin Kramer | 2e13053 | 2016-02-05 13:31:14 +0000 | [diff] [blame] | 33 | int llvm_calc(void); |
Anders Waldenborg | 2bef1a6 | 2013-10-23 08:10:20 +0000 | [diff] [blame] | 34 | |
| 35 | // disassemble.c |
Benjamin Kramer | 2e13053 | 2016-02-05 13:31:14 +0000 | [diff] [blame] | 36 | int llvm_disassemble(void); |
Anders Waldenborg | 2bef1a6 | 2013-10-23 08:10:20 +0000 | [diff] [blame] | 37 | |
whitequark | 8b4e833 | 2017-11-01 22:18:52 +0000 | [diff] [blame] | 38 | // debuginfo.c |
| 39 | int llvm_test_dibuilder(void); |
| 40 | |
Bjorn Steinbrink | 920382c | 2015-01-28 16:35:59 +0000 | [diff] [blame] | 41 | // metadata.c |
Benjamin Kramer | 2e13053 | 2016-02-05 13:31:14 +0000 | [diff] [blame] | 42 | int llvm_add_named_metadata_operand(void); |
| 43 | int llvm_set_metadata(void); |
Bjorn Steinbrink | 920382c | 2015-01-28 16:35:59 +0000 | [diff] [blame] | 44 | |
Anders Waldenborg | 2bef1a6 | 2013-10-23 08:10:20 +0000 | [diff] [blame] | 45 | // object.c |
Benjamin Kramer | 2e13053 | 2016-02-05 13:31:14 +0000 | [diff] [blame] | 46 | int llvm_object_list_sections(void); |
| 47 | int llvm_object_list_symbols(void); |
Anders Waldenborg | 2bef1a6 | 2013-10-23 08:10:20 +0000 | [diff] [blame] | 48 | |
| 49 | // targets.c |
Benjamin Kramer | 2e13053 | 2016-02-05 13:31:14 +0000 | [diff] [blame] | 50 | int llvm_targets_list(void); |
Anders Waldenborg | 2bef1a6 | 2013-10-23 08:10:20 +0000 | [diff] [blame] | 51 | |
Amaury Sechet | 8824280 | 2016-02-04 23:26:19 +0000 | [diff] [blame] | 52 | // echo.c |
Benjamin Kramer | 2e13053 | 2016-02-05 13:31:14 +0000 | [diff] [blame] | 53 | int llvm_echo(void); |
Amaury Sechet | 8824280 | 2016-02-04 23:26:19 +0000 | [diff] [blame] | 54 | |
Jeroen Ketema | 9640ae7 | 2016-04-08 09:19:02 +0000 | [diff] [blame] | 55 | // diagnostic.c |
| 56 | int llvm_test_diagnostic_handler(void); |
| 57 | |
Amaury Sechet | b451ba8 | 2016-11-15 22:19:59 +0000 | [diff] [blame] | 58 | // attributes.c |
Vitaly Buka | 9991c32 | 2016-11-16 21:51:39 +0000 | [diff] [blame] | 59 | int llvm_test_function_attributes(void); |
| 60 | int llvm_test_callsite_attributes(void); |
Amaury Sechet | b451ba8 | 2016-11-15 22:19:59 +0000 | [diff] [blame] | 61 | |
Amaury Sechet | 8824280 | 2016-02-04 23:26:19 +0000 | [diff] [blame] | 62 | #ifdef __cplusplus |
| 63 | } |
Duncan P. N. Exon Smith | 2707ee3 | 2016-04-05 20:45:04 +0000 | [diff] [blame] | 64 | #endif /* !defined(__cplusplus) */ |
Eugene Zelenko | 9a7a3bc | 2016-04-05 20:19:49 +0000 | [diff] [blame] | 65 | |
Duncan P. N. Exon Smith | 2707ee3 | 2016-04-05 20:45:04 +0000 | [diff] [blame] | 66 | #endif |