Home | History | Annotate | Download | only in Utils

Lines Matching refs:newFunction

93     void moveCodeToFunction(Function *newFunction);
95 void emitCallAndSwitchStatement(Function *newFunction,
297 Function *newFunction = Function::Create(funcType,
303 newFunction->setDoesNotThrow(true);
305 newFunction->getBasicBlockList().push_back(newRootNode);
308 Function::arg_iterator AI = newFunction->arg_begin();
318 TerminatorInst *TI = newFunction->begin()->getTerminator();
335 AI = newFunction->arg_begin();
354 return newFunction;
375 emitCallAndSwitchStatement(Function *newFunction, BasicBlock *codeReplacer,
381 LLVMContext &Context = newFunction->getContext();
411 Type *StructArgTy = StructType::get(newFunction->getContext(), ArgTypes);
431 CallInst *call = CallInst::Create(newFunction, params,
435 Function::arg_iterator OutputArgBegin = newFunction->arg_begin();
492 newFunction);
625 void CodeExtractor::moveCodeToFunction(Function *newFunction) {
628 Function::BasicBlockListType &newBlocks = newFunction->getBasicBlockList();
706 Function *newFunction = constructFunction(inputs, outputs, header,
711 emitCallAndSwitchStatement(newFunction, codeReplacer, inputs, outputs);
713 moveCodeToFunction(newFunction);
746 //cerr << "NEW FUNCTION: " << *newFunction;
747 // verifyFunction(*newFunction);
752 DEBUG(if (verifyFunction(*newFunction))
754 return newFunction;