Displaying 1 result from an estimated 1 matches for "opvec".
Did you mean:
pvec
2013 Aug 02
1
[LLVMdev] replacing GetElementPtrConstantExpr with GetElementPtrInst ... sometimes
...e_iterator UI = GV->use_begin(), E = GV->use_end(); UI != E; ++UI) {
ConstantExpr * CE = dyn_cast<ConstantExpr>(*UI);
if ( CE && CE->getOpcode() == Instruction::GetElementPtr) {
dbgs() << "ConstantExpr ops...\n";
SmallVector<Value*,4> OpVec;
for (ConstantExpr::op_iterator OpIt = CE->op_begin(), E = CE->op_end(); OpIt != E; ++OpIt) {
OpVec.push_back(cast<Value>(OpIt));
cast<Value>(OpIt)->dump();
}
ArrayRef<Value*> Ops(OpVec);
Instruction * NewInst = GetElementPtrInst::C...