2013-10-23 16:10:20 +08:00
|
|
|
/*===-- llvm-c-test.h - tool for testing libLLVM and llvm-c API -----------===*\
|
|
|
|
|* *|
|
2019-01-19 16:50:56 +08:00
|
|
|
|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|
|
|
|
|
|* Exceptions. *|
|
|
|
|
|* See https://llvm.org/LICENSE.txt for license information. *|
|
|
|
|
|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|
|
2013-10-23 16:10:20 +08:00
|
|
|
|* *|
|
|
|
|
|*===----------------------------------------------------------------------===*|
|
|
|
|
|* *|
|
|
|
|
|* Header file for llvm-c-test *|
|
|
|
|
|* *|
|
|
|
|
\*===----------------------------------------------------------------------===*/
|
|
|
|
#ifndef LLVM_C_TEST_H
|
|
|
|
#define LLVM_C_TEST_H
|
|
|
|
|
2015-12-18 11:57:26 +08:00
|
|
|
#include <stdbool.h>
|
2016-02-05 07:26:19 +08:00
|
|
|
#include "llvm-c/Core.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2015-12-18 11:57:26 +08:00
|
|
|
|
2013-10-23 16:10:20 +08:00
|
|
|
// helpers.c
|
2016-02-05 21:31:14 +08:00
|
|
|
void llvm_tokenize_stdin(void (*cb)(char **tokens, int ntokens));
|
2013-10-23 16:10:20 +08:00
|
|
|
|
|
|
|
// module.c
|
2016-02-05 21:31:14 +08:00
|
|
|
LLVMModuleRef llvm_load_module(bool Lazy, bool New);
|
|
|
|
int llvm_module_dump(bool Lazy, bool New);
|
|
|
|
int llvm_module_list_functions(void);
|
|
|
|
int llvm_module_list_globals(void);
|
2013-10-23 16:10:20 +08:00
|
|
|
|
|
|
|
// calc.c
|
2016-02-05 21:31:14 +08:00
|
|
|
int llvm_calc(void);
|
2013-10-23 16:10:20 +08:00
|
|
|
|
|
|
|
// disassemble.c
|
2016-02-05 21:31:14 +08:00
|
|
|
int llvm_disassemble(void);
|
2013-10-23 16:10:20 +08:00
|
|
|
|
2017-11-02 06:18:52 +08:00
|
|
|
// debuginfo.c
|
|
|
|
int llvm_test_dibuilder(void);
|
|
|
|
|
2015-01-29 00:35:59 +08:00
|
|
|
// metadata.c
|
2016-02-05 21:31:14 +08:00
|
|
|
int llvm_add_named_metadata_operand(void);
|
|
|
|
int llvm_set_metadata(void);
|
2015-01-29 00:35:59 +08:00
|
|
|
|
2013-10-23 16:10:20 +08:00
|
|
|
// object.c
|
2016-02-05 21:31:14 +08:00
|
|
|
int llvm_object_list_sections(void);
|
|
|
|
int llvm_object_list_symbols(void);
|
2013-10-23 16:10:20 +08:00
|
|
|
|
|
|
|
// targets.c
|
2016-02-05 21:31:14 +08:00
|
|
|
int llvm_targets_list(void);
|
2013-10-23 16:10:20 +08:00
|
|
|
|
2016-02-05 07:26:19 +08:00
|
|
|
// echo.c
|
2016-02-05 21:31:14 +08:00
|
|
|
int llvm_echo(void);
|
2016-02-05 07:26:19 +08:00
|
|
|
|
2016-04-08 17:19:02 +08:00
|
|
|
// diagnostic.c
|
|
|
|
int llvm_test_diagnostic_handler(void);
|
|
|
|
|
2016-11-16 06:19:59 +08:00
|
|
|
// attributes.c
|
2016-11-17 05:51:39 +08:00
|
|
|
int llvm_test_function_attributes(void);
|
|
|
|
int llvm_test_callsite_attributes(void);
|
2016-11-16 06:19:59 +08:00
|
|
|
|
2016-02-05 07:26:19 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2016-04-06 04:45:04 +08:00
|
|
|
#endif /* !defined(__cplusplus) */
|
2016-04-06 04:19:49 +08:00
|
|
|
|
2016-04-06 04:45:04 +08:00
|
|
|
#endif
|