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