Module.link_in and Instruction.is_volatile APIs added (Seth Warn)
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@62 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
parent
75161701a1
commit
6028e1765b
6 changed files with 89 additions and 2 deletions
|
|
@ -109,6 +109,9 @@ unsigned LLVMInstIsAssociative (LLVMValueRef inst);
|
|||
unsigned LLVMInstIsCommutative (LLVMValueRef inst);
|
||||
unsigned LLVMInstIsTrapping (LLVMValueRef inst);
|
||||
|
||||
/* As above, but these are wrap methods from subclasses of Instruction. */
|
||||
unsigned LLVMInstIsVolatile (LLVMValueRef inst);
|
||||
|
||||
/* Wraps llvm::Instruction::getOpcodeName(). */
|
||||
const char *LLVMInstGetOpcodeName(LLVMValueRef inst);
|
||||
|
||||
|
|
@ -127,6 +130,11 @@ LLVMModuleRef LLVMGetModuleFromAssembly(const char *asmtxt, unsigned txten,
|
|||
LLVMModuleRef LLVMGetModuleFromBitcode(const char *bc, unsigned bclen,
|
||||
char **out);
|
||||
|
||||
/* Wraps llvm::Linker::LinkModules(). Returns 0 on failure (with errmsg
|
||||
* filled in) and 1 on success. Dispose error message after use with
|
||||
* LLVMDisposeMessage(). */
|
||||
unsigned LLVMLinkModules(LLVMModuleRef dest, LLVMModuleRef src, char **errmsg);
|
||||
|
||||
/* Returns pointer to a heap-allocated block of `*len' bytes containing bit code
|
||||
* for the given module. NULL on error. */
|
||||
unsigned char *LLVMGetBitcodeFromModule(LLVMModuleRef module, unsigned *len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue