Lines Matching refs:outputs
292 const ValueSet &outputs, in constructFunction() argument
299 DEBUG(dbgs() << "outputs: " << outputs.size() << "\n"); in constructFunction()
320 for (ValueSet::const_iterator I = outputs.begin(), E = outputs.end(); in constructFunction()
336 if (AggregateArgs && (inputs.size() + outputs.size() > 0)) { in constructFunction()
386 for (unsigned i = 0, e = outputs.size(); i != e; ++i, ++AI) in constructFunction()
387 AI->setName(outputs[i]->getName()+".out"); in constructFunction()
423 ValueSet &inputs, ValueSet &outputs) { in emitCallAndSwitchStatement() argument
438 for (ValueSet::iterator i = outputs.begin(), e = outputs.end(); i != e; ++i) { in emitCallAndSwitchStatement()
452 if (AggregateArgs && (inputs.size() + outputs.size() > 0)) { in emitCallAndSwitchStatement()
488 for (unsigned i = 0, e = outputs.size(); i != e; ++i) { in emitCallAndSwitchStatement()
495 StructArgTy, Struct, Idx, "gep_reload_" + outputs[i]->getName()); in emitCallAndSwitchStatement()
501 LoadInst *load = new LoadInst(Output, outputs[i]->getName()+".reload"); in emitCallAndSwitchStatement()
504 std::vector<User*> Users(outputs[i]->user_begin(), outputs[i]->user_end()); in emitCallAndSwitchStatement()
508 inst->replaceUsesOfWith(outputs[i], load); in emitCallAndSwitchStatement()
562 for (unsigned out = 0, e = outputs.size(); out != e; ++out) { in emitCallAndSwitchStatement()
565 BasicBlock *DefBlock = cast<Instruction>(outputs[out])->getParent(); in emitCallAndSwitchStatement()
569 if (InvokeInst *Invoke = dyn_cast<InvokeInst>(outputs[out])) { in emitCallAndSwitchStatement()
609 StructArgTy, OAI, Idx, "gep_" + outputs[out]->getName(), in emitCallAndSwitchStatement()
611 new StoreInst(outputs[out], GEP, NTRet); in emitCallAndSwitchStatement()
613 new StoreInst(outputs[out], OAI, NTRet); in emitCallAndSwitchStatement()
690 ValueSet inputs, outputs; in extractCodeRegion() local
717 findInputsOutputs(inputs, outputs); in extractCodeRegion()
728 Function *newFunction = constructFunction(inputs, outputs, header, in extractCodeRegion()
733 emitCallAndSwitchStatement(newFunction, codeReplacer, inputs, outputs); in extractCodeRegion()