Displaying 2 results from an estimated 2 matches for "handlegeneratoruses".
2004 Jun 23
0
[LLVMdev] weird issue with mem2reg, still
...CI->getCalledFunction();
if(F == ii || F == fi || F == vi || F == di || F == ci || F == si){
std::cerr << "This Call: " << *CI << std::endl;
std::cerr << "\tNum Operands: " << CI->getNumOperands() << std::endl;
handleGeneratorUses(CI->getOperand(1));
}
}
else if(!(*programValues.find(*OB))){
handleProgramUses(*OB);
}
}
}
}
pmeredit|zion|/localhome/pmeredit/llvm/projects/MetaSplit/lib/MetaSplit|[189
]% opt -load ../Debug/libmetasplit.so -mem2reg -metasplit < test3.s.bc >
m2r.bc
This Call...
2004 Jun 23
2
[LLVMdev] weird issue with mem2reg, still
On Wed, 23 Jun 2004, Patrick Meredith wrote:
> Somehow it fails with operand out of bounds when the number of operands
> is 2 and I am asking for the second operand. Second meaning operand 1.
Okay, so you have something like this:
if (CallInst *CI = dyn_cast<CallInst>(...)) {
... = CI->getOperand(1);
}
Can you send in this snippet of code, the assertion, and the