search for: progslic

Displaying 2 results from an estimated 2 matches for "progslic".

Did you mean: proslic
2008 Apr 16
2
[LLVMdev] Problems in removing a cloned instruction.
...ruction (return void) and removing the cloned instruction. The part of the code that makes these changes is below: // This function, takes a basic block and clones it to another identical basic block, the only changes occur for the return instructions, which are replaced by ret void. BasicBlock *ProgSlicer::CloneBasicBlock(const BasicBlock *BB, DenseMap<const Value*, Value*> &ValueMap, const char *NameSuffix, Function *F) { BasicBlock *NewBB = new BasicBlock("", F); if (BB->hasName()) NewBB->setName(BB->getName()+Na...
2008 Apr 16
0
[LLVMdev] Problems in removing a cloned instruction.
Hi, I'm gonna try to give some feedback, but I have only been working with LLVM for a few days, so don't take what I'm saying without verifying :-) > BasicBlock *ProgSlicer::CloneBasicBlock(const BasicBlock *BB, > DenseMap<const Value*, Value*> &ValueMap, > const char *NameSuffix, Function *F) { > > BasicBlock *NewBB = new BasicBlock("", F); > if (BB->hasName()) NewBB->se...