Home
last modified time | relevance | path

Searched refs:TheFunction (Results 1 – 25 of 28) sorted by relevance

12

/llvm-project/llvm/examples/Kaleidoscope/MCJIT/lazy/
H A Dtoy-jit.cpp619 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->insert(TheFunction->end(), ElseBB); in Codegen()
759 TheFunction->insert(TheFunction->end(), 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 Dtoy.cpp903 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->insert(TheFunction->end(), ElseBB); in Codegen()
1039 TheFunction->insert(TheFunction->end(), 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 …]
/llvm-project/llvm/examples/Kaleidoscope/MCJIT/cached/
H A Dtoy-jit.cpp634 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->insert(TheFunction->end(), ElseBB); in Codegen()
777 TheFunction->insert(TheFunction->end(), 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 Dtoy.cpp1005 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->insert(TheFunction->end(), ElseBB); in Codegen()
1141 TheFunction->insert(TheFunction->end(), 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 …]
/llvm-project/llvm/examples/Kaleidoscope/Chapter7/
H A Dtoy.cpp745 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument
747 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca()
748 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca()
860 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local
864 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen()
882 TheFunction->insert(TheFunction->end(), ElseBB); in codegen()
894 TheFunction->insert(TheFunction->end(), MergeBB); in codegen()
923 Function *TheFunction in codegen() local
1007 Function *TheFunction = Builder->GetInsertBlock()->getParent(); codegen() local
1074 Function *TheFunction = getFunction(P.getName()); codegen() local
[all...]
/llvm-project/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
H A Dtoy.cpp712 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->insert(TheFunction->end(), ElseBB); in codegen()
861 TheFunction->insert(TheFunction->end(), MergeBB); in codegen()
890 Function *TheFunction in codegen() local
974 Function *TheFunction = Builder->GetInsertBlock()->getParent(); codegen() local
1049 Function *TheFunction = getFunction(P.getName()); codegen() local
[all...]
/llvm-project/llvm/examples/Kaleidoscope/Chapter8/
H A Dtoy.cpp733 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument
735 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca()
736 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca()
848 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local
852 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen()
870 TheFunction->insert(TheFunction->end(), ElseBB); in codegen()
882 TheFunction->insert(TheFunction->end(), MergeBB); in codegen()
911 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local
914 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen()
926 BasicBlock *LoopBB = BasicBlock::Create(*TheContext, "loop", TheFunction); in codegen()
[all …]
/llvm-project/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/
H A Dtoy.cpp729 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->insert(TheFunction->end(), ElseBB); in codegen()
878 TheFunction->insert(TheFunction->end(), MergeBB); in codegen()
907 Function *TheFunction in codegen() local
991 Function *TheFunction = Builder->GetInsertBlock()->getParent(); codegen() local
1058 Function *TheFunction = getFunction(P.getName()); codegen() local
[all...]
/llvm-project/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/
H A Dtoy.cpp729 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->insert(TheFunction->end(), ElseBB); in codegen()
878 TheFunction->insert(TheFunction->end(), MergeBB); in codegen()
907 Function *TheFunction in codegen() local
991 Function *TheFunction = Builder->GetInsertBlock()->getParent(); codegen() local
1058 Function *TheFunction = getFunction(P.getName()); codegen() local
[all...]
/llvm-project/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/
H A Dtoy.cpp729 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->insert(TheFunction->end(), ElseBB); in codegen()
878 TheFunction->insert(TheFunction->end(), MergeBB); in codegen()
907 Function *TheFunction in codegen() local
991 Function *TheFunction = Builder->GetInsertBlock()->getParent(); codegen() local
1058 Function *TheFunction = getFunction(P.getName()); codegen() local
[all...]
/llvm-project/llvm/examples/Kaleidoscope/Chapter5/
H A Dtoy.cpp641 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local
645 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen()
663 TheFunction->insert(TheFunction->end(), ElseBB); in codegen()
675 TheFunction->insert(TheFunction->end(), MergeBB); in codegen()
707 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local
709 BasicBlock *LoopBB = BasicBlock::Create(*TheContext, "loop", TheFunction); in codegen()
758 BasicBlock::Create(*TheContext, "afterloop", TheFunction); in codegen()
801 Function *TheFunction in codegen() local
[all...]
/llvm-project/llvm/examples/Kaleidoscope/Chapter9/
H A Dtoy.cpp894 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->insert(TheFunction->end(), ElseBB); in codegen()
1052 TheFunction->insert(TheFunction->end(), 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 …]
/llvm-project/llvm/examples/Kaleidoscope/MCJIT/initial/
H A Dtoy.cpp863 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->insert(TheFunction->end(), ElseBB); in Codegen()
999 TheFunction->insert(TheFunction->end(), 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 …]
/llvm-project/llvm/examples/Kaleidoscope/Chapter6/
H A Dtoy.cpp753 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local
757 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen()
775 TheFunction->insert(TheFunction->end(), ElseBB); in codegen()
787 TheFunction->insert(TheFunction->end(), MergeBB); in codegen()
819 Function *TheFunction = Builder->GetInsertBlock()->getParent(); in codegen() local
821 BasicBlock *LoopBB = BasicBlock::Create(*TheContext, "loop", TheFunction); in codegen()
870 BasicBlock::Create(*TheContext, "afterloop", TheFunction); in codegen()
913 Function *TheFunction in codegen() local
[all...]
/llvm-project/llvm/examples/Kaleidoscope/MCJIT/complete/
H A Dtoy.cpp1077 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->insert(TheFunction->end(), ElseBB); in Codegen()
1219 TheFunction->insert(TheFunction->end(), 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 …]
/llvm-project/llvm/examples/Kaleidoscope/Chapter3/
H A Dtoy.cpp485 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/llvm/lib/CodeGen/
H A DMachineModuleSlotTracker.cpp39 if (&F != &TheFunction) in processMachineModule()
53 if (!ShouldInitializeAllMetadata && F == &TheFunction) { in processMachineFunction()
71 TheFunction(MF->getFunction()), TheMMI(MMI) { in MachineModuleSlotTracker()
/llvm-project/llvm/examples/Kaleidoscope/Chapter4/
H A Dtoy.cpp527 Function *TheFunction = getFunction(P.getName()); in codegen() local
528 if (!TheFunction) in codegen()
532 BasicBlock *BB = BasicBlock::Create(*TheContext, "entry", TheFunction); in codegen()
537 for (auto &Arg : TheFunction->args()) in codegen()
545 verifyFunction(*TheFunction); in codegen()
548 TheFPM->run(*TheFunction, *TheFAM); in codegen()
550 return TheFunction; in codegen()
554 TheFunction->eraseFromParent(); in codegen()
/llvm-project/llvm/docs/tutorial/MyFirstLanguageFrontend/
H A DLangImpl03.rst328 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 DLangImpl05.rst304 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->insert(TheFunction->end(), ElseBB);
401 TheFunction->insert(TheFunction->end(), MergeBB);
649 Function *TheFunction = Builder->GetInsertBlock()->getParent();
652 BasicBlock::Create(*TheContext, "loop", TheFunction);
750 BasicBlock::Create(*TheContext, "afterloop", TheFunction);
H A DLangImpl07.rst338 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);
418 for (auto &Arg : TheFunction->args()) {
420 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName());
796 Function *TheFunction = Builder->GetInsertBlock()->getParent();
823 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
H A DLangImpl09.rst264 CreateFunctionType(TheFunction->arg_size()),
268 TheFunction->setSubprogram(SP);
396 for (auto &Arg : TheFunction->args()) {
398 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName());
H A DLangImpl04.rst207 verifyFunction(*TheFunction);
210 TheFPM->run(*TheFunction, *TheFAM);
212 return TheFunction;
508 Function *TheFunction = getFunction(P.getName());
509 if (!TheFunction)
/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineModuleSlotTracker.h23 const Function &TheFunction; variable
/llvm-project/llvm/lib/IR/
H A DAsmWriter.cpp707 /// TheFunction - The function for which we are holding slot numbers.
708 const Function* TheFunction = nullptr;
801 TheFunction = F; in incorporateFunction()
805 const Function *getFunction() const { return TheFunction; }
975 : TheModule(F ? F->getParent() : nullptr), TheFunction(F),
987 if (TheFunction && !FunctionProcessed) in initializeIfNeeded()
1058 processFunctionMetadata(*TheFunction); in processFunction()
1061 for(Function::const_arg_iterator AI = TheFunction->arg_begin(), in processFunction()
1062 AE = TheFunction->arg_end(); AI != AE; ++AI) in processFunction()
1069 for (auto &BB : *TheFunction) { in processFunction()
706 const Function* TheFunction = nullptr; global() member in llvm::SlotTracker
[all...]

12