add support for metadata.
add related test.
This commit is contained in:
parent
78cde30883
commit
82117d899e
6 changed files with 113 additions and 5 deletions
16
llvm/extra.h
16
llvm/extra.h
|
|
@ -53,15 +53,25 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Wraps Instruction::setMetadata()
|
||||
*/
|
||||
void LLVMInstSetMetaData(LLVMValueRef instref, const char* mdkind,
|
||||
LLVMValueRef metaref);
|
||||
|
||||
/*
|
||||
* Wraps ConstantExpr::getOpcodeName();
|
||||
* Wraps MDNode::get()
|
||||
*/
|
||||
LLVMValueRef LLVMMetaDataGet(LLVMModuleRef modref, LLVMValueRef * valrefs,
|
||||
unsigned valct);
|
||||
|
||||
/*
|
||||
* Wraps ConstantExpr::getOpcodeName()
|
||||
*/
|
||||
const char *LLVMGetConstExprOpcodeName(LLVMValueRef inst);
|
||||
|
||||
/*
|
||||
* Wraps ConstantExpr::getOpcode();
|
||||
* Wraps ConstantExpr::getOpcode()
|
||||
*/
|
||||
unsigned LLVMGetConstExprOpcode(LLVMValueRef inst);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue