/external/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
D | toy-jit.cpp | 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() [all …]
|
D | toy.cpp | 903 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument 905 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 906 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 1010 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 1014 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen() 1031 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 1042 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 1073 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 1076 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() 1087 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen() [all …]
|
/external/llvm/examples/Kaleidoscope/MCJIT/cached/ |
D | toy-jit.cpp | 634 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument 636 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 637 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 748 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 752 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen() 769 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 780 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 811 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 814 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() 825 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen() [all …]
|
D | toy.cpp | 1005 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument 1007 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 1008 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 1112 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 1116 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen() 1133 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 1144 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 1175 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 1178 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() 1189 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter7/ |
D | toy.cpp | 617 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument 619 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 620 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 721 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 725 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen() 742 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 753 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 784 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 787 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() 798 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter5/ |
D | toy.cpp | 521 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 525 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen() 542 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 553 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 586 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 588 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen() 634 BasicBlock *AfterBB = BasicBlock::Create(getGlobalContext(), "afterloop", TheFunction); in Codegen() 701 Function *TheFunction = Proto->Codegen(); in Codegen() local 702 if (TheFunction == 0) in Codegen() 706 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction); in Codegen() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter6/ |
D | toy.cpp | 625 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 629 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen() 646 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 657 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 690 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 692 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen() 738 BasicBlock *AfterBB = BasicBlock::Create(getGlobalContext(), "afterloop", TheFunction); in Codegen() 805 Function *TheFunction = Proto->Codegen(); in Codegen() local 806 if (TheFunction == 0) in Codegen() 814 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction); in Codegen() [all …]
|
/external/llvm/examples/Kaleidoscope/MCJIT/initial/ |
D | toy.cpp | 863 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument 865 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 866 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 970 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 974 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen() 991 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 1002 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 1033 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 1036 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() 1047 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen() [all …]
|
/external/llvm/examples/Kaleidoscope/MCJIT/complete/ |
D | toy.cpp | 1172 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument 1174 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 1175 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 1290 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 1294 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen() 1311 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 1322 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 1353 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 1356 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() 1367 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter4/ |
D | toy.cpp | 456 Function *TheFunction = Proto->Codegen(); in Codegen() local 457 if (TheFunction == 0) in Codegen() 461 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction); in Codegen() 469 verifyFunction(*TheFunction); in Codegen() 472 TheFPM->run(*TheFunction); in Codegen() 474 return TheFunction; in Codegen() 478 TheFunction->eraseFromParent(); in Codegen()
|
/external/llvm/examples/Kaleidoscope/Chapter3/ |
D | toy.cpp | 448 Function *TheFunction = Proto->Codegen(); in Codegen() local 449 if (TheFunction == 0) in Codegen() 453 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction); in Codegen() 461 verifyFunction(*TheFunction); in Codegen() 463 return TheFunction; in Codegen() 467 TheFunction->eraseFromParent(); in Codegen()
|
/external/llvm/lib/IR/ |
D | AsmWriter.cpp | 312 const Function* TheFunction; member in llvm::SlotTracker 346 TheFunction = F; in incorporateFunction() 440 : TheModule(M), TheFunction(nullptr), FunctionProcessed(false), in SlotTracker() 447 : TheModule(F ? F->getParent() : nullptr), TheFunction(F), in SlotTracker() 457 if (TheFunction && !FunctionProcessed) in initialize() 504 for(Function::const_arg_iterator AI = TheFunction->arg_begin(), in processFunction() 505 AE = TheFunction->arg_end(); AI != AE; ++AI) in processFunction() 514 for (Function::const_iterator BB = TheFunction->begin(), in processFunction() 515 E = TheFunction->end(); BB != E; ++BB) { in processFunction() 564 TheFunction = nullptr; in purgeFunction()
|
/external/llvm/docs/tutorial/ |
D | LangImpl3.rst | 370 Function *TheFunction = Proto->Codegen(); 371 if (TheFunction == 0) 384 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction); 391 (named "entry"), which is inserted into ``TheFunction``. The second line 406 verifyFunction(*TheFunction); 408 return TheFunction; 425 TheFunction->eraseFromParent();
|
D | LangImpl5.rst | 285 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 289 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); 303 "TheFunction" into the constructor for the "then" block. This causes the 359 TheFunction->getBasicBlockList().push_back(ElseBB); 379 TheFunction->getBasicBlockList().push_back(MergeBB); 588 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 590 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); 685 BasicBlock *AfterBB = BasicBlock::Create(getGlobalContext(), "afterloop", TheFunction);
|
D | LangImpl7.rst | 338 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, 340 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), 341 TheFunction->getEntryBlock().begin()); 374 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 377 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); 772 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 798 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
|
D | LangImpl4.rst | 178 verifyFunction(*TheFunction); 181 TheFPM->run(*TheFunction); 183 return TheFunction;
|
D | LangImpl6.rst | 269 Function *TheFunction = Proto->Codegen(); 270 if (TheFunction == 0) 278 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction);
|
/external/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 544 DT(DT), TLI(TLI), TheFunction(F), Induction(nullptr), in LoopVectorizationLegality() 781 emitOptimizationRemarkAnalysis(TheFunction->getContext(), DEBUG_TYPE, in emitAnalysis() 782 *TheFunction, DL, Message.str()); in emitAnalysis() 796 Function *TheFunction; member in __anon7302df660111::LoopVectorizationLegality
|