forked from xcore/tool_axe
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLLVMExtra.h
More file actions
29 lines (21 loc) · 784 Bytes
/
LLVMExtra.h
File metadata and controls
29 lines (21 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) 2012, Richard Osborne, All rights reserved
// This software is freely distributable under a derivative of the
// University of Illinois/NCSA Open Source License posted in
// LICENSE.txt and at <http://github.xcore.com/>
#ifndef _LLVMExtra_h_
#define _LLVMExtra_h_
#include "llvm-c/Core.h"
#include "llvm-c/ExecutionEngine.h"
#ifdef __cplusplus
extern "C" {
#endif
LLVMMemoryBufferRef
LLVMExtraCreateMemoryBufferWithPtr(const char *ptr, size_t length);
LLVMBool LLVMExtraInlineFunction(LLVMValueRef call);
void LLVMExtraAddDeadCodeEliminationPass(LLVMPassManagerRef PM);
void LLVMExtraRegisterJitDisassembler(LLVMExecutionEngineRef EE,
const char *triple);
#ifdef __cplusplus
} // extern "C"
#endif
#endif //_LLVMExtra_h_