1 /*===-- llvm-c-test.h - tool for testing libLLVM and llvm-c API -----------===*\
3 |* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|
5 |* See https://llvm.org/LICENSE.txt for license information. *|
6 |* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|
8 |*===----------------------------------------------------------------------===*|
10 |* Header file for llvm-c-test *|
12 \*===----------------------------------------------------------------------===*/
17 #include "llvm-c/Core.h"
24 void llvm_tokenize_stdin(void (*cb
)(char **tokens
, int ntokens
));
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);
36 int llvm_disassemble(void);
39 int llvm_test_dibuilder(void);
42 int llvm_add_named_metadata_operand(void);
43 int llvm_set_metadata(void);
46 int llvm_object_list_sections(void);
47 int llvm_object_list_symbols(void);
50 int llvm_targets_list(void);
53 int llvm_echo(bool OpaquePointers
);
56 int llvm_test_diagnostic_handler(void);
59 int llvm_test_function_attributes(void);
60 int llvm_test_callsite_attributes(void);
64 #endif /* !defined(__cplusplus) */