/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
H A 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() 727 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 731 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen() 748 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 759 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 789 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 792 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() 803 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in Codegen() [all …]
|
H A 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() 1007 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 1011 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen() 1028 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 1039 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 1069 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 1072 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() 1083 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in Codegen() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/cached/ |
H A 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() 745 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 749 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen() 766 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 777 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 807 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 810 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() 821 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in Codegen() [all …]
|
H A 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() 1109 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 1113 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen() 1130 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 1141 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 1171 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 1174 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() 1185 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in Codegen() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter7/ |
H A D | toy.cpp | 735 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument 737 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 738 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 850 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 854 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen() 872 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen() 884 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen() 913 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 916 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() 928 BasicBlock *LoopBB = BasicBlock::Create(*TheContext, "loop", TheFunction); in codegen() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter8/ |
H A D | toy.cpp | 734 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument 736 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 737 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 849 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 853 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen() 871 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen() 883 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen() 912 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 915 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() 927 BasicBlock *LoopBB = BasicBlock::Create(*TheContext, "loop", TheFunction); in codegen() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/ |
H A D | toy.cpp | 729 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument 731 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 732 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 844 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 848 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen() 866 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen() 878 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen() 907 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 910 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() 922 BasicBlock *LoopBB = BasicBlock::Create(*TheContext, "loop", TheFunction); in codegen() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/ |
H A D | toy.cpp | 729 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument 731 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 732 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 844 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 848 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen() 866 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen() 878 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen() 907 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 910 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() 922 BasicBlock *LoopBB = BasicBlock::Create(*TheContext, "loop", TheFunction); in codegen() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/ |
H A D | toy.cpp | 729 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument 731 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 732 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 844 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 848 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen() 866 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen() 878 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen() 907 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 910 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() 922 BasicBlock *LoopBB = BasicBlock::Create(*TheContext, "loop", TheFunction); in codegen() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/ |
H A D | toy.cpp | 712 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument 714 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 715 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 827 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 831 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen() 849 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen() 861 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen() 890 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 893 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() 905 BasicBlock *LoopBB = BasicBlock::Create(*TheContext, "loop", TheFunction); in codegen() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter9/ |
H A D | toy.cpp | 894 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument 896 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 897 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 1018 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 1022 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen() 1040 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen() 1052 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen() 1081 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 1084 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() 1098 BasicBlock *LoopBB = BasicBlock::Create(*TheContext, "loop", TheFunction); in codegen() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/initial/ |
H A 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() 967 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 971 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen() 988 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 999 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 1029 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 1032 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() 1043 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in Codegen() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter5/ |
H A D | toy.cpp | 631 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 635 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen() 653 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen() 665 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen() 697 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 699 BasicBlock *LoopBB = BasicBlock::Create(*TheContext, "loop", TheFunction); in codegen() 748 BasicBlock::Create(*TheContext, "afterloop", TheFunction); in codegen() 791 Function *TheFunction = getFunction(P.getName()); in codegen() local 792 if (!TheFunction) in codegen() 796 BasicBlock *BB = BasicBlock::Create(*TheContext, "entry", TheFunction); in codegen() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter3/ |
H A D | toy.cpp | 485 Function *TheFunction = TheModule->getFunction(Proto->getName()); in codegen() local 487 if (!TheFunction) in codegen() 488 TheFunction = Proto->codegen(); in codegen() 490 if (!TheFunction) in codegen() 494 BasicBlock *BB = BasicBlock::Create(*TheContext, "entry", TheFunction); in codegen() 499 for (auto &Arg : TheFunction->args()) in codegen() 507 verifyFunction(*TheFunction); in codegen() 509 return TheFunction; in codegen() 513 TheFunction->eraseFromParent(); in codegen()
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter6/ |
H A D | toy.cpp | 743 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 747 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen() 765 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen() 777 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen() 809 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 811 BasicBlock *LoopBB = BasicBlock::Create(*TheContext, "loop", TheFunction); in codegen() 860 BasicBlock::Create(*TheContext, "afterloop", TheFunction); in codegen() 903 Function *TheFunction = getFunction(P.getName()); in codegen() local 904 if (!TheFunction) in codegen() 912 BasicBlock *BB = BasicBlock::Create(*TheContext, "entry", TheFunction); in codegen() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/complete/ |
H A D | toy.cpp | 1077 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument 1079 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 1080 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 1187 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 1191 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen() 1208 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 1219 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 1249 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local 1252 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() 1263 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in Codegen() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter4/ |
H A D | toy.cpp | 517 Function *TheFunction = getFunction(P.getName()); in codegen() local 518 if (!TheFunction) in codegen() 522 BasicBlock *BB = BasicBlock::Create(*TheContext, "entry", TheFunction); in codegen() 527 for (auto &Arg : TheFunction->args()) in codegen() 535 verifyFunction(*TheFunction); in codegen() 538 TheFPM->run(*TheFunction); in codegen() 540 return TheFunction; in codegen() 544 TheFunction->eraseFromParent(); in codegen()
|
/netbsd-src/external/apache2/llvm/dist/llvm/docs/tutorial/MyFirstLanguageFrontend/ |
H A D | LangImpl03.rst | 328 Function *TheFunction = TheModule->getFunction(Proto->getName()); 330 if (!TheFunction) 331 TheFunction = Proto->codegen(); 333 if (!TheFunction) 336 if (!TheFunction->empty()) 349 BasicBlock *BB = BasicBlock::Create(TheContext, "entry", TheFunction); 354 for (auto &Arg : TheFunction->args()) 359 (named "entry"), which is inserted into ``TheFunction``. The second line 377 verifyFunction(*TheFunction); 379 return TheFunction; [all …]
|
H A D | LangImpl07.rst | 338 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, 340 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), 341 TheFunction->getEntryBlock().begin()); 375 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 378 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); 417 for (auto &Arg : TheFunction->args()) { 419 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); 793 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 820 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
|
H A D | LangImpl05.rst | 304 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 309 BasicBlock::Create(TheContext, "then", TheFunction); 323 "TheFunction" into the constructor for the "then" block. This causes the 380 TheFunction->getBasicBlockList().push_back(ElseBB); 401 TheFunction->getBasicBlockList().push_back(MergeBB); 649 Function *TheFunction = Builder.GetInsertBlock()->getParent(); 652 BasicBlock::Create(TheContext, "loop", TheFunction); 750 BasicBlock::Create(TheContext, "afterloop", TheFunction);
|
H A D | LangImpl09.rst | 264 CreateFunctionType(TheFunction->arg_size(), Unit), 267 TheFunction->setSubprogram(SP); 393 for (auto &Arg : TheFunction->args()) { 395 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName());
|
H A D | LangImpl04.rst | 179 verifyFunction(*TheFunction); 182 TheFPM->run(*TheFunction); 184 return TheFunction; 472 Function *TheFunction = getFunction(P.getName()); 473 if (!TheFunction)
|
H A D | LangImpl06.rst | 285 Function *TheFunction = getFunction(P.getName()); 286 if (!TheFunction) 294 BasicBlock *BB = BasicBlock::Create(TheContext, "entry", TheFunction);
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/ |
H A D | AsmWriter.cpp | 733 const Function* TheFunction = nullptr; member in llvm::SlotTracker 804 TheFunction = F; in incorporateFunction() 808 const Function *getFunction() const { return TheFunction; } in getFunction() 958 : TheModule(F ? F->getParent() : nullptr), TheFunction(F), in SlotTracker() 970 if (TheFunction && !FunctionProcessed) in initializeIfNeeded() 1038 processFunctionMetadata(*TheFunction); in processFunction() 1041 for(Function::const_arg_iterator AI = TheFunction->arg_begin(), in processFunction() 1042 AE = TheFunction->arg_end(); AI != AE; ++AI) in processFunction() 1049 for (auto &BB : *TheFunction) { in processFunction() 1143 TheFunction = nullptr; in purgeFunction()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/ |
H A D | LoopVectorize.cpp | 1231 TTI(TTI), TLI(TLI), DB(DB), AC(AC), ORE(ORE), TheFunction(F), in LoopVectorizationCostModel() 1872 const Function *TheFunction; member in llvm::LoopVectorizationCostModel 6222 const DataLayout &DL = TheFunction->getParent()->getDataLayout(); in getSmallestAndWidestTypes()
|