Home
last modified time | relevance | path

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

123

/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()
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 …]
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter7/
Dtoy.cpp615 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument
617 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca()
618 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca()
719 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local
723 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen()
740 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen()
751 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen()
782 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local
785 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen()
796 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/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()
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 …]
/external/swiftshader/third_party/llvm-7.0/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()
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 …]
/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()
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 …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/
Dtoy.cpp716 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument
718 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca()
719 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca()
831 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
835 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
853 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen()
865 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen()
894 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
897 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen()
909 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/
Dtoy.cpp728 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument
730 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca()
731 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca()
843 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
847 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
865 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen()
877 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen()
906 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
909 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen()
921 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
[all …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/
Dtoy.cpp716 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument
718 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca()
719 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca()
831 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
835 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
853 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen()
865 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen()
894 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
897 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen()
909 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/
Dtoy.cpp728 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument
730 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca()
731 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca()
843 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
847 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
865 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen()
877 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen()
906 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
909 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen()
921 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
[all …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/
Dtoy.cpp716 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument
718 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca()
719 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca()
831 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
835 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
853 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen()
865 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen()
894 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
897 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen()
909 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
[all …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
Dtoy.cpp705 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument
707 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca()
708 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca()
820 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
824 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
842 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen()
854 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen()
883 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
886 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen()
898 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/
Dtoy.cpp728 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument
730 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca()
731 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca()
843 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
847 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
865 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen()
877 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen()
906 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
909 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen()
921 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
Dtoy.cpp714 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument
716 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca()
717 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca()
829 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
833 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
851 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen()
863 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen()
892 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
895 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen()
907 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp717 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument
719 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca()
720 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca()
832 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
836 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
854 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen()
866 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen()
895 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
898 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen()
910 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp734 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 …]
/external/llvm/examples/Kaleidoscope/Chapter8/
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->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 …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/
Dtoy.cpp738 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument
740 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca()
741 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca()
853 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
857 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
875 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen()
887 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen()
916 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
919 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen()
931 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/Chapter8/
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->getBasicBlockList().push_back(ElseBB); in codegen()
882 TheFunction->getBasicBlockList().push_back(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 …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/
Dtoy.cpp727 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument
729 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca()
730 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca()
842 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
846 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
864 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen()
876 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen()
905 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
908 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen()
920 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
[all …]
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter5/
Dtoy.cpp519 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local
523 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen()
540 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen()
551 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen()
584 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local
586 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen()
632 BasicBlock *AfterBB = BasicBlock::Create(getGlobalContext(), "afterloop", TheFunction); in Codegen()
699 Function *TheFunction = Proto->Codegen(); in Codegen() local
700 if (TheFunction == 0) in Codegen()
704 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction); in Codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/Chapter5/
Dtoy.cpp630 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
634 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
652 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen()
664 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen()
696 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
698 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
747 BasicBlock::Create(TheContext, "afterloop", TheFunction); in codegen()
790 Function *TheFunction = getFunction(P.getName()); in codegen() local
791 if (!TheFunction) in codegen()
795 BasicBlock *BB = BasicBlock::Create(TheContext, "entry", TheFunction); in codegen()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter5/
Dtoy.cpp616 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
620 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
638 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen()
650 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen()
682 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
684 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
733 BasicBlock::Create(TheContext, "afterloop", TheFunction); in codegen()
776 Function *TheFunction = getFunction(P.getName()); in codegen() local
777 if (!TheFunction) in codegen()
781 BasicBlock *BB = BasicBlock::Create(TheContext, "entry", TheFunction); in codegen()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter9/
Dtoy.cpp886 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument
888 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca()
889 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca()
1011 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
1015 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
1033 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen()
1045 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen()
1074 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
1077 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen()
1091 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/Chapter9/
Dtoy.cpp886 static AllocaInst *CreateEntryBlockAlloca(Function *TheFunction, in CreateEntryBlockAlloca() argument
888 IRBuilder<> TmpB(&TheFunction->getEntryBlock(), in CreateEntryBlockAlloca()
889 TheFunction->getEntryBlock().begin()); in CreateEntryBlockAlloca()
1011 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
1015 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
1033 TheFunction->getBasicBlockList().push_back(ElseBB); in codegen()
1045 TheFunction->getBasicBlockList().push_back(MergeBB); in codegen()
1074 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in codegen() local
1077 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen()
1091 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
[all …]
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter6/
Dtoy.cpp623 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local
627 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction); in Codegen()
644 TheFunction->getBasicBlockList().push_back(ElseBB); in Codegen()
655 TheFunction->getBasicBlockList().push_back(MergeBB); in Codegen()
688 Function *TheFunction = Builder.GetInsertBlock()->getParent(); in Codegen() local
690 BasicBlock *LoopBB = BasicBlock::Create(getGlobalContext(), "loop", TheFunction); in Codegen()
736 BasicBlock *AfterBB = BasicBlock::Create(getGlobalContext(), "afterloop", TheFunction); in Codegen()
803 Function *TheFunction = Proto->Codegen(); in Codegen() local
804 if (TheFunction == 0) in Codegen()
812 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction); in Codegen()
[all …]

123