2013-10-23 10:10:20 +02:00
|
|
|
/*===-- llvm-c-test.h - tool for testing libLLVM and llvm-c API -----------===*\
|
|
|
|
|* *|
|
2019-01-19 09:50:56 +01: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 10:10:20 +02:00
|
|
|
|* *|
|
|
|
|
|*===----------------------------------------------------------------------===*|
|
|
|
|
|* *|
|
|
|
|
|* Header file for llvm-c-test *|
|
|
|
|
|* *|
|
|
|
|
\*===----------------------------------------------------------------------===*/
|
|
|
|
#ifndef LLVM_C_TEST_H
|
|
|
|
#define LLVM_C_TEST_H
|
|
|
|
|
2015-12-18 04:57:26 +01:00
|
|
|
#include <stdbool.h>
|
2016-02-05 00:26:19 +01:00
|
|
|
#include "llvm-c/Core.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2015-12-18 04:57:26 +01:00
|
|
|
|
2013-10-23 10:10:20 +02:00
|
|
|
// helpers.c
|
2016-02-05 14:31:14 +01:00
|
|
|
void llvm_tokenize_stdin(void (*cb)(char **tokens, int ntokens));
|
2013-10-23 10:10:20 +02:00
|
|
|
|
|
|
|
// module.c
|
2016-02-05 14:31:14 +01: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 10:10:20 +02:00
|
|
|
|
|
|
|
// calc.c
|
2016-02-05 14:31:14 +01:00
|
|
|
int llvm_calc(void);
|
2013-10-23 10:10:20 +02:00
|
|
|
|
|
|
|
// disassemble.c
|
2016-02-05 14:31:14 +01:00
|
|
|
int llvm_disassemble(void);
|
2013-10-23 10:10:20 +02:00
|
|
|
|
2017-11-01 23:18:52 +01:00
|
|
|
// debuginfo.c
|
|
|
|
int llvm_test_dibuilder(void);
|
|
|
|
|
2015-01-28 17:35:59 +01:00
|
|
|
// metadata.c
|
2016-02-05 14:31:14 +01:00
|
|
|
int llvm_add_named_metadata_operand(void);
|
|
|
|
int llvm_set_metadata(void);
|
2015-01-28 17:35:59 +01:00
|
|
|
|
2013-10-23 10:10:20 +02:00
|
|
|
// object.c
|
2016-02-05 14:31:14 +01:00
|
|
|
int llvm_object_list_sections(void);
|
|
|
|
int llvm_object_list_symbols(void);
|
2013-10-23 10:10:20 +02:00
|
|
|
|
|
|
|
// targets.c
|
2016-02-05 14:31:14 +01:00
|
|
|
int llvm_targets_list(void);
|
2013-10-23 10:10:20 +02:00
|
|
|
|
2016-02-05 00:26:19 +01:00
|
|
|
// echo.c
|
2016-02-05 14:31:14 +01:00
|
|
|
int llvm_echo(void);
|
2016-02-05 00:26:19 +01:00
|
|
|
|
2016-04-08 11:19:02 +02:00
|
|
|
// diagnostic.c
|
|
|
|
int llvm_test_diagnostic_handler(void);
|
|
|
|
|
2016-11-15 23:19:59 +01:00
|
|
|
// attributes.c
|
2016-11-16 22:51:39 +01:00
|
|
|
int llvm_test_function_attributes(void);
|
|
|
|
int llvm_test_callsite_attributes(void);
|
2016-11-15 23:19:59 +01:00
|
|
|
|
2016-02-05 00:26:19 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2016-04-05 22:45:04 +02:00
|
|
|
#endif /* !defined(__cplusplus) */
|
2016-04-05 22:19:49 +02:00
|
|
|
|
2016-04-05 22:45:04 +02:00
|
|
|
#endif
|