Lines Matching defs:TheFunction
745 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction,
747 IRBuilder<> TmpB(&TheFunction->getEntryBlock(),
748 TheFunction->getEntryBlock().begin());
860 Function *TheFunction = Builder->GetInsertBlock()->getParent();
864 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction);
882 TheFunction->insert(TheFunction->end(), ElseBB);
894 TheFunction->insert(TheFunction->end(), MergeBB);
923 Function *TheFunction = Builder->GetInsertBlock()->getParent();
926 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
938 BasicBlock *LoopBB = BasicBlock::Create(*TheContext, "loop", TheFunction);
986 BasicBlock::Create(*TheContext, "afterloop", TheFunction);
1007 Function *TheFunction = Builder->GetInsertBlock()->getParent();
1028 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
1074 Function *TheFunction = getFunction(P.getName());
1075 if (!TheFunction)
1083 BasicBlock *BB = BasicBlock::Create(*TheContext, "entry", TheFunction);
1088 for (auto &Arg : TheFunction->args()) {
1090 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName());
1104 verifyFunction(*TheFunction);
1107 TheFPM->run(*TheFunction, *TheFAM);
1109 return TheFunction;
1113 TheFunction->eraseFromParent();