Home
last modified time | relevance | path

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

/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
Dtoy-jit.cpp619 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 …]
Dtoy.cpp903 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/
Dtoy-jit.cpp634 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 …]
Dtoy.cpp1005 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/
Dtoy.cpp617 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/
Dtoy.cpp521 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/
Dtoy.cpp625 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/
Dtoy.cpp863 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/
Dtoy.cpp1172 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/
Dtoy.cpp456 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/
Dtoy.cpp448 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/
DAsmWriter.cpp312 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/
DLangImpl3.rst370 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();
DLangImpl5.rst285 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);
DLangImpl7.rst338 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);
DLangImpl4.rst178 verifyFunction(*TheFunction);
181 TheFPM->run(*TheFunction);
183 return TheFunction;
DLangImpl6.rst269 Function *TheFunction = Proto->Codegen();
270 if (TheFunction == 0)
278 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction);
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp544 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