Home | History | Annotate | Download | only in Utils

Lines Matching defs:newFunction

335   Function *newFunction = Function::Create(funcType,
341 newFunction->setDoesNotThrow();
343 newFunction->getBasicBlockList().push_back(newRootNode);
346 Function::arg_iterator AI = newFunction->arg_begin();
356 TerminatorInst *TI = newFunction->begin()->getTerminator();
372 AI = newFunction->arg_begin();
391 return newFunction;
411 emitCallAndSwitchStatement(Function *newFunction, BasicBlock *codeReplacer,
417 LLVMContext &Context = newFunction->getContext();
448 StructArgTy = StructType::get(newFunction->getContext(), ArgTypes);
466 CallInst *call = CallInst::Create(newFunction, params,
470 Function::arg_iterator OutputArgBegin = newFunction->arg_begin();
525 newFunction);
661 void CodeExtractor::moveCodeToFunction(Function *newFunction) {
664 Function::BasicBlockListType &newBlocks = newFunction->getBasicBlockList();
717 Function *newFunction = constructFunction(inputs, outputs, header,
722 emitCallAndSwitchStatement(newFunction, codeReplacer, inputs, outputs);
724 moveCodeToFunction(newFunction);
757 //cerr << "NEW FUNCTION: " << *newFunction;
758 // verifyFunction(*newFunction);
763 DEBUG(if (verifyFunction(*newFunction))
765 return newFunction;