/external/llvm/examples/Kaleidoscope/Chapter5/ |
toy.cpp | 521 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 525 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); 542 TheFunction->getBasicBlockList().push_back(ElseBB); 553 TheFunction->getBasicBlockList().push_back(MergeBB); 586 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 588 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); 634 BasicBlock *AfterBB = BasicBlock::Create(getGlobalContext(), "afterloop", TheFunction); 701 Function *TheFunction = Proto->Codegen(); 702 if (TheFunction == 0) 706 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction); [all...] |
/external/llvm/examples/Kaleidoscope/Chapter6/ |
toy.cpp | 625 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 629 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); 646 TheFunction->getBasicBlockList().push_back(ElseBB); 657 TheFunction->getBasicBlockList().push_back(MergeBB); 690 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 692 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); 738 BasicBlock *AfterBB = BasicBlock::Create(getGlobalContext(), "afterloop", TheFunction); 805 Function *TheFunction = Proto->Codegen(); 806 if (TheFunction == 0) 814 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction); [all...] |
/external/llvm/examples/Kaleidoscope/Chapter7/ |
toy.cpp | 617 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, 619 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), 620 TheFunction->getEntryBlock().begin()); 721 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 725 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); 742 TheFunction->getBasicBlockList().push_back(ElseBB); 753 TheFunction->getBasicBlockList().push_back(MergeBB); 784 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 787 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); 798 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); [all...] |
/external/llvm/examples/Kaleidoscope/MCJIT/cached/ |
toy-jit.cpp | 634 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, 636 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), 637 TheFunction->getEntryBlock().begin()); 748 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 752 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); 769 TheFunction->getBasicBlockList().push_back(ElseBB); 780 TheFunction->getBasicBlockList().push_back(MergeBB); 811 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 814 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); 825 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); [all...] |
toy.cpp | 1005 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, 1007 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), 1008 TheFunction->getEntryBlock().begin()); [all...] |
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
toy-jit.cpp | 619 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, 621 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), 622 TheFunction->getEntryBlock().begin()); 730 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 734 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); 751 TheFunction->getBasicBlockList().push_back(ElseBB); 762 TheFunction->getBasicBlockList().push_back(MergeBB); 793 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 796 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); 807 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); [all...] |
toy.cpp | 903 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, 905 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), 906 TheFunction->getEntryBlock().begin()); 1010 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 1014 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); 1031 TheFunction->getBasicBlockList().push_back(ElseBB); 1042 TheFunction->getBasicBlockList().push_back(MergeBB); 1073 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 1076 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); 1087 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); [all...] |
/external/llvm/examples/Kaleidoscope/MCJIT/initial/ |
toy.cpp | 863 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, 865 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), 866 TheFunction->getEntryBlock().begin()); 970 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 974 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); 991 TheFunction->getBasicBlockList().push_back(ElseBB); 1002 TheFunction->getBasicBlockList().push_back(MergeBB); 1033 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 1036 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); 1047 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); [all...] |
/external/llvm/examples/Kaleidoscope/Chapter3/ |
toy.cpp | 448 Function *TheFunction = Proto->Codegen(); 449 if (TheFunction == 0) 453 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction); 461 verifyFunction(*TheFunction); 463 return TheFunction; 467 TheFunction->eraseFromParent();
|
/external/llvm/examples/Kaleidoscope/MCJIT/complete/ |
toy.cpp | [all...] |
/external/llvm/examples/Kaleidoscope/Chapter4/ |
toy.cpp | 456 Function *TheFunction = Proto->Codegen(); 457 if (TheFunction == 0) 461 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction); 469 verifyFunction(*TheFunction); 472 TheFPM->run(*TheFunction); 474 return TheFunction; 478 TheFunction->eraseFromParent();
|
/external/llvm/lib/IR/ |
AsmWriter.cpp | 311 /// TheFunction - The function for which we are holding slot numbers. 312 const Function* TheFunction; 346 TheFunction = F; 440 : TheModule(M), TheFunction(nullptr), FunctionProcessed(false), 447 : TheModule(F ? F->getParent() : nullptr), TheFunction(F), 457 if (TheFunction && !FunctionProcessed) 504 for(Function::const_arg_iterator AI = TheFunction->arg_begin(), 505 AE = TheFunction->arg_end(); AI != AE; ++AI) 514 for (Function::const_iterator BB = TheFunction->begin(), 515 E = TheFunction->end(); BB != E; ++BB) [all...] |
/external/llvm/lib/Transforms/Vectorize/ |
LoopVectorize.cpp | 544 DT(DT), TLI(TLI), TheFunction(F), Induction(nullptr), 781 emitOptimizationRemarkAnalysis(TheFunction->getContext(), DEBUG_TYPE, 782 *TheFunction, DL, Message.str()); 796 Function *TheFunction; [all...] |