2013-10-23 16:10:20 +08:00
|
|
|
/*===-- llvm-c-test.h - tool for testing libLLVM and llvm-c API -----------===*\
|
|
|
|
|* *|
|
|
|
|
|* The LLVM Compiler Infrastructure *|
|
|
|
|
|* *|
|
|
|
|
|* This file is distributed under the University of Illinois Open Source *|
|
|
|
|
|* License. See LICENSE.TXT for details. *|
|
|
|
|
|* *|
|
|
|
|
|*===----------------------------------------------------------------------===*|
|
|
|
|
|* *|
|
|
|
|
|* 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
|
|
|
|
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-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
|