mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-21 21:11:36 +00:00
[LLVM-C] Add LLVMInstructionClone.
llvm-svn: 220007
This commit is contained in:
parent
f1146b8238
commit
461cf76486
@ -2408,6 +2408,16 @@ LLVMOpcode LLVMGetInstructionOpcode(LLVMValueRef Inst);
|
||||
*/
|
||||
LLVMIntPredicate LLVMGetICmpPredicate(LLVMValueRef Inst);
|
||||
|
||||
/**
|
||||
* Create a copy of 'this' instruction that is identical in all ways
|
||||
* except the following:
|
||||
* * The instruction has no parent
|
||||
* * The instruction has no name
|
||||
*
|
||||
* @see llvm::Instruction::clone()
|
||||
*/
|
||||
LLVMValueRef LLVMInstructionClone(LLVMValueRef Inst);
|
||||
|
||||
/**
|
||||
* @defgroup LLVMCCoreValueInstructionCall Call Sites and Invocations
|
||||
*
|
||||
|
@ -1888,6 +1888,12 @@ LLVMOpcode LLVMGetInstructionOpcode(LLVMValueRef Inst) {
|
||||
return (LLVMOpcode)0;
|
||||
}
|
||||
|
||||
LLVMValueRef LLVMInstructionClone(LLVMValueRef Inst) {
|
||||
if (Instruction *C = dyn_cast<Instruction>(unwrap(Inst)))
|
||||
return wrap(C->clone());
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
/*--.. Call and invoke instructions ........................................--*/
|
||||
|
||||
unsigned LLVMGetInstructionCallConv(LLVMValueRef Instr) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user