Lines Matching refs:newFunction

346   Function *newFunction = Function::Create(funcType,  in constructFunction()  local
352 newFunction->setDoesNotThrow(); in constructFunction()
354 newFunction->getBasicBlockList().push_back(newRootNode); in constructFunction()
357 Function::arg_iterator AI = newFunction->arg_begin(); in constructFunction()
367 TerminatorInst *TI = newFunction->begin()->getTerminator(); in constructFunction()
384 AI = newFunction->arg_begin(); in constructFunction()
403 return newFunction; in constructFunction()
423 emitCallAndSwitchStatement(Function *newFunction, BasicBlock *codeReplacer, in emitCallAndSwitchStatement() argument
429 LLVMContext &Context = newFunction->getContext(); in emitCallAndSwitchStatement()
460 StructArgTy = StructType::get(newFunction->getContext(), ArgTypes); in emitCallAndSwitchStatement()
478 CallInst *call = CallInst::Create(newFunction, params, in emitCallAndSwitchStatement()
482 Function::arg_iterator OutputArgBegin = newFunction->arg_begin(); in emitCallAndSwitchStatement()
538 newFunction); in emitCallAndSwitchStatement()
675 void CodeExtractor::moveCodeToFunction(Function *newFunction) { in moveCodeToFunction() argument
678 Function::BasicBlockListType &newBlocks = newFunction->getBasicBlockList(); in moveCodeToFunction()
732 Function *newFunction = constructFunction(inputs, outputs, header, in extractCodeRegion() local
737 emitCallAndSwitchStatement(newFunction, codeReplacer, inputs, outputs); in extractCodeRegion()
739 moveCodeToFunction(newFunction); in extractCodeRegion()
778 DEBUG(if (verifyFunction(*newFunction)) in extractCodeRegion()
780 return newFunction; in extractCodeRegion()