| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/cached/ |
| H A D | toy-jit.cpp | 636 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 637 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 766 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 777 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 984 Function *TheFunction = Proto->Codegen(); in Codegen() local 985 if (TheFunction == 0) in Codegen() 997 Proto->CreateArgumentAllocas(TheFunction); in Codegen() 1004 verifyFunction(*TheFunction); in Codegen() 1007 TheFPM->run(*TheFunction); in Codegen() 1009 return TheFunction; in Codegen() [all …]
|
| H A D | toy.cpp | 1007 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 1008 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 1130 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 1141 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 1230 BasicBlock::Create(TheContext, "afterloop", TheFunction); in Codegen() 1355 Function *TheFunction = Proto->Codegen(); in Codegen() local 1356 if (TheFunction == 0) in Codegen() 1368 Proto->CreateArgumentAllocas(TheFunction); in Codegen() 1375 verifyFunction(*TheFunction); in Codegen() 1377 return TheFunction; in Codegen() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
| H A D | toy-jit.cpp | 621 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 622 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 748 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 759 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 966 Function *TheFunction = Proto->Codegen(); in Codegen() local 967 if (TheFunction == 0) in Codegen() 979 Proto->CreateArgumentAllocas(TheFunction); in Codegen() 986 verifyFunction(*TheFunction); in Codegen() 989 TheFPM->run(*TheFunction); in Codegen() 991 return TheFunction; in Codegen() [all …]
|
| H A D | toy.cpp | 905 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 906 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 1028 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 1039 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 1128 BasicBlock::Create(TheContext, "afterloop", TheFunction); in Codegen() 1253 Function *TheFunction = Proto->Codegen(); in Codegen() local 1254 if (TheFunction == 0) in Codegen() 1266 Proto->CreateArgumentAllocas(TheFunction); in Codegen() 1273 verifyFunction(*TheFunction); in Codegen() 1275 return TheFunction; in Codegen() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter7/ |
| H A D | toy.cpp | 737 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 738 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 872 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen() 884 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen() 1064 Function *TheFunction = getFunction(P.getName()); in codegen() local 1065 if (!TheFunction) in codegen() 1078 for (auto &Arg : TheFunction->args()) { in codegen() 1094 verifyFunction(*TheFunction); in codegen() 1097 TheFPM->run(*TheFunction); in codegen() 1099 return TheFunction; in codegen() [all …]
|
| /llvm-project-15.0.7/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() 866 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen() 878 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen() 1058 Function *TheFunction = getFunction(P.getName()); in codegen() local 1059 if (!TheFunction) in codegen() 1072 for (auto &Arg : TheFunction->args()) { in codegen() 1088 verifyFunction(*TheFunction); in codegen() 1090 return TheFunction; in codegen() [all …]
|
| /llvm-project-15.0.7/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() 871 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen() 883 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen() 1063 Function *TheFunction = getFunction(P.getName()); in codegen() local 1064 if (!TheFunction) in codegen() 1077 for (auto &Arg : TheFunction->args()) { in codegen() 1093 verifyFunction(*TheFunction); in codegen() 1095 return TheFunction; in codegen() [all …]
|
| /llvm-project-15.0.7/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() 849 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen() 861 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen() 1049 Function *TheFunction = getFunction(P.getName()); in codegen() local 1050 if (!TheFunction) in codegen() 1063 for (auto &Arg : TheFunction->args()) { in codegen() 1079 verifyFunction(*TheFunction); in codegen() 1081 return TheFunction; in codegen() [all …]
|
| /llvm-project-15.0.7/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() 866 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen() 878 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen() 1058 Function *TheFunction = getFunction(P.getName()); in codegen() local 1059 if (!TheFunction) in codegen() 1072 for (auto &Arg : TheFunction->args()) { in codegen() 1088 verifyFunction(*TheFunction); in codegen() 1090 return TheFunction; in codegen() [all …]
|
| /llvm-project-15.0.7/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() 866 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen() 878 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen() 1058 Function *TheFunction = getFunction(P.getName()); in codegen() local 1059 if (!TheFunction) in codegen() 1072 for (auto &Arg : TheFunction->args()) { in codegen() 1088 verifyFunction(*TheFunction); in codegen() 1090 return TheFunction; in codegen() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter9/ |
| H A D | toy.cpp | 896 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 897 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 1040 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen() 1052 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen() 1236 Function *TheFunction = getFunction(P.getName()); in codegen() local 1237 if (!TheFunction) in codegen() 1258 TheFunction->setSubprogram(SP); in codegen() 1271 for (auto &Arg : TheFunction->args()) { in codegen() 1301 verifyFunction(*TheFunction); in codegen() 1303 return TheFunction; in codegen() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/initial/ |
| H A D | toy.cpp | 865 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 866 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 988 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 999 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 1088 BasicBlock::Create(TheContext, "afterloop", TheFunction); in Codegen() 1213 Function *TheFunction = Proto->Codegen(); in Codegen() local 1214 if (TheFunction == 0) in Codegen() 1226 Proto->CreateArgumentAllocas(TheFunction); in Codegen() 1233 verifyFunction(*TheFunction); in Codegen() 1235 return TheFunction; in Codegen() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter5/ |
| H A D | toy.cpp | 631 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 653 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen() 665 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen() 748 BasicBlock::Create(*TheContext, "afterloop", TheFunction); in codegen() 791 Function *TheFunction = getFunction(P.getName()); in codegen() local 792 if (!TheFunction) in codegen() 801 for (auto &Arg : TheFunction->args()) in codegen() 809 verifyFunction(*TheFunction); in codegen() 812 TheFPM->run(*TheFunction); in codegen() 814 return TheFunction; in codegen() [all …]
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter6/ |
| H A D | toy.cpp | 743 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local 765 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen() 777 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen() 860 BasicBlock::Create(*TheContext, "afterloop", TheFunction); in codegen() 903 Function *TheFunction = getFunction(P.getName()); in codegen() local 904 if (!TheFunction) in codegen() 917 for (auto &Arg : TheFunction->args()) in codegen() 925 verifyFunction(*TheFunction); in codegen() 928 TheFPM->run(*TheFunction); in codegen() 930 return TheFunction; in codegen() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/complete/ |
| H A D | toy.cpp | 1079 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca() 1080 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca() 1208 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen() 1219 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen() 1308 BasicBlock::Create(TheContext, "afterloop", TheFunction); in Codegen() 1433 Function *TheFunction = Proto->Codegen(); in Codegen() local 1434 if (TheFunction == 0) in Codegen() 1446 Proto->CreateArgumentAllocas(TheFunction); in Codegen() 1453 verifyFunction(*TheFunction); in Codegen() 1455 return TheFunction; in Codegen() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | MachineModuleSlotTracker.cpp | 38 if (&F != &TheFunction) in processMachineModule() 52 if (!ShouldInitializeAllMetadata && F == &TheFunction) { in processMachineFunction() 69 TheFunction(MF->getFunction()), TheMMI(MF->getMMI()) { in MachineModuleSlotTracker()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | MachineModuleSlotTracker.h | 23 const Function &TheFunction; variable
|
| /llvm-project-15.0.7/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()), 268 TheFunction->setSubprogram(SP); 394 for (auto &Arg : TheFunction->args()) { 396 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)
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | AsmWriter.cpp | 666 const Function* TheFunction = nullptr; member in llvm::SlotTracker 753 TheFunction = F; in incorporateFunction() 757 const Function *getFunction() const { return TheFunction; } in getFunction() 923 : TheModule(F ? F->getParent() : nullptr), TheFunction(F), in SlotTracker() 935 if (TheFunction && !FunctionProcessed) in initializeIfNeeded() 1006 processFunctionMetadata(*TheFunction); in processFunction() 1009 for(Function::const_arg_iterator AI = TheFunction->arg_begin(), in processFunction() 1010 AE = TheFunction->arg_end(); AI != AE; ++AI) in processFunction() 1017 for (auto &BB : *TheFunction) { in processFunction() 1037 ProcessFunctionHookFn(this, TheFunction, ShouldInitializeAllMetadata); in processFunction() [all …]
|