2013-10-23 10:10:20 +02: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 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
|
|
|
|
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
|
|
|
|
int llvm_test_function_attributes();
|
|
|
|
int llvm_test_callsite_attributes();
|
|
|
|
|
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
|