Lines Matching refs:TheFunction
619 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument
621 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca()
622 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca()
730 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local
734 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen()
751 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen()
762 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen()
793 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local
796 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen()
807 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen()
852 BasicBlock *AfterBB = BasicBlock::Create(getGlobalContext(), "afterloop", TheFunction); in Codegen()
874 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local
894 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen()
971 Function *TheFunction = Proto->Codegen(); in Codegen() local
972 if (TheFunction == 0) in Codegen()
980 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction); in Codegen()
984 Proto->CreateArgumentAllocas(TheFunction); in Codegen()
991 verifyFunction(*TheFunction); in Codegen()
994 TheFPM->run(*TheFunction); in Codegen()
996 return TheFunction; in Codegen()
1000 TheFunction->eraseFromParent(); in Codegen()