Value factory and more Constant subclasses.
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@64 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
parent
a339b69193
commit
d7a5d30029
4 changed files with 326 additions and 148 deletions
|
|
@ -291,6 +291,14 @@ LLVMValueRef LLVMBuildGetResult(LLVMBuilderRef builder,
|
|||
return llvm::wrap(builderp->CreateExtractValue(llvm::unwrap(value), index, name));
|
||||
}
|
||||
|
||||
unsigned LLVMValueGetID(LLVMValueRef value)
|
||||
{
|
||||
llvm::Value *valuep = llvm::unwrap(value);
|
||||
assert(valuep);
|
||||
|
||||
return valuep->getValueID();
|
||||
}
|
||||
|
||||
LLVMValueRef LLVMGetIntrinsic(LLVMModuleRef module, int id,
|
||||
LLVMTypeRef *types, unsigned n_types)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue