search for: alteredbb

Displaying 3 results from an estimated 3 matches for "alteredbb".

Did you mean: altered
2012 Jun 21
3
[LLVMdev] Cloning block for newbie
...e value)? Is there a VMap book for newbies? Is there some documentations I forgot to look at? Thank you. virtual BasicBlock* createAlteredBasicBlock(BasicBlock * basicBlock, const Twine & Name = "", Function * F = 0){ ValueToValueMapTy VMap; BasicBlock * alteredBB = llvm::CloneBasicBlock (basicBlock, VMap, Name, F); return alteredBB; } -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120621/169acc2e/attachment.html>
2012 Jun 21
0
[LLVMdev] Cloning block for newbie
...a, ... ; Note that this references the old %a and >> not %a.clone! >> >> You can loop over the instruction's operands to see if they are >> contained in VMap and replace them if need be. You'll find it helpful >> to view the IR after doing the clone, e.g. "alteredBB->dump()". You >> may also need to update phi nodes in the cloned block and elsewhere, >> depending on how you plan on inserting the clone into your CFG. >> >> On Thu, Jun 21, 2012 at 11:47 AM, Nileih Cimeil <nileih at gmail.com> wrote: >> > Hello every...
2012 Jun 22
1
[LLVMdev] Cloning block for newbie
...eferences the old %a and > >> not %a.clone! > >> > >> You can loop over the instruction's operands to see if they are > >> contained in VMap and replace them if need be. You'll find it helpful > >> to view the IR after doing the clone, e.g. "alteredBB->dump()". You > >> may also need to update phi nodes in the cloned block and elsewhere, > >> depending on how you plan on inserting the clone into your CFG. > >> > >> On Thu, Jun 21, 2012 at 11:47 AM, Nileih Cimeil <nileih at gmail.com> > wrote:...