Lines Matching refs:newFunction

345   Function *newFunction = Function::Create(funcType,  in constructFunction()  local
351 newFunction->setDoesNotThrow(); in constructFunction()
353 newFunction->getBasicBlockList().push_back(newRootNode); in constructFunction()
356 Function::arg_iterator AI = newFunction->arg_begin(); in constructFunction()
366 TerminatorInst *TI = newFunction->begin()->getTerminator(); in constructFunction()
383 AI = newFunction->arg_begin(); in constructFunction()
402 return newFunction; in constructFunction()
422 emitCallAndSwitchStatement(Function *newFunction, BasicBlock *codeReplacer, in emitCallAndSwitchStatement() argument
428 LLVMContext &Context = newFunction->getContext(); in emitCallAndSwitchStatement()
459 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()
671 void CodeExtractor::moveCodeToFunction(Function *newFunction) { in moveCodeToFunction() argument
674 Function::BasicBlockListType &newBlocks = newFunction->getBasicBlockList(); in moveCodeToFunction()
728 Function *newFunction = constructFunction(inputs, outputs, header, in extractCodeRegion() local
733 emitCallAndSwitchStatement(newFunction, codeReplacer, inputs, outputs); in extractCodeRegion()
735 moveCodeToFunction(newFunction); in extractCodeRegion()
774 DEBUG(if (verifyFunction(*newFunction)) in extractCodeRegion()
776 return newFunction; in extractCodeRegion()