[LLVMdev] Cloning block for newbie
Abhinash Jain
omnia at mailinator.com
Mon Oct 21 03:44:01 PDT 2013
Am also new to llvm, and trying to clone an instruction into newly created
basic block of newly created function.
>> orig:
>> %a = ...
>> %b = fadd %a, ...
>>
>> clone:
>> %a.clone = ...
>> %b.clone = fadd %a, ... ; Note that this references the old %a and
>> not %a.clone!
Am also facing this problem, and inspite of your so clear explanation I
still not been able to resolve it.
Can you tell me how to use ValueMap and RemapInstruction on this context?
--
View this message in context: http://llvm.1065342.n5.nabble.com/Cloning-block-for-newbie-tp46552p62274.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
More information about the llvm-dev
mailing list