Displaying 2 results from an estimated 2 matches for "newrinst".
Did you mean:
newinst
2008 Apr 16
2
[LLVMdev] Problems in removing a cloned instruction.
...t = cast<Instruction>((II));
Instruction *NewInst = II->clone();
if(ReturnInst *RI = dyn_cast<ReturnInst>(NewInst))
{
cerr << "\n Return Found : " << *RI<< "\n";
Instruction *NewRInst = new ReturnInst(); // creating
a new return instruction
Value *v = NULL;
if (II->hasName())
NewRInst->setName(II->getName()+NameSuffix);
NewBB->getInstList().push_back(NewRInst);
ValueMap[II] = NewRIn...
2008 Apr 16
0
[LLVMdev] Problems in removing a cloned instruction.
...g to cleanup NewInst below
if you're not going to use it.
> if(ReturnInst *RI = dyn_cast<ReturnInst>(NewInst))
> {
> cerr << "\n Return Found : " << *RI<< "\n";
>
> Instruction *NewRInst = new ReturnInst(); // creating a new return instruction
> Value *v = NULL;
>
> if (II->hasName())
> NewRInst->setName(II->getName()+NameSuffix);
> NewBB->getInstList().push_back(NewRInst);
>...