Home
last modified time | relevance | path

Searched refs:TheContext (Results 1 – 25 of 50) sorted by relevance

12

/external/llvm/examples/Kaleidoscope/Chapter5/
Dtoy.cpp525 static LLVMContext TheContext; variable
526 static IRBuilder<> Builder(TheContext);
554 return ConstantFP::get(TheContext, APFloat(Val)); in codegen()
581 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in codegen()
614 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in codegen()
620 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
621 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in codegen()
622 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in codegen()
652 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in codegen()
684 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/Chapter5/
Dtoy.cpp539 static LLVMContext TheContext; variable
540 static IRBuilder<> Builder(TheContext);
568 return ConstantFP::get(TheContext, APFloat(Val)); in codegen()
595 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in codegen()
628 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in codegen()
634 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
635 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in codegen()
636 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in codegen()
666 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in codegen()
698 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/MCJIT/cached/
Dtoy-jit.cpp626 static LLVMContext TheContext; variable
627 static IRBuilder<> Builder(TheContext);
638 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), 0, VarName.c_str()); in CreateEntryBlockAlloca()
642 return ConstantFP::get(TheContext, APFloat(Val)); in Codegen()
702 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in Codegen()
743 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in Codegen()
749 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen()
750 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in Codegen()
751 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in Codegen()
779 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in Codegen()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
Dtoy-jit.cpp626 static LLVMContext TheContext; variable
627 static IRBuilder<> Builder(TheContext);
638 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), 0, VarName.c_str()); in CreateEntryBlockAlloca()
642 return ConstantFP::get(TheContext, APFloat(Val)); in Codegen()
702 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in Codegen()
743 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in Codegen()
749 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen()
750 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in Codegen()
751 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in Codegen()
779 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in Codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/MCJIT/lazy/
Dtoy-jit.cpp611 static LLVMContext TheContext; variable
612 static IRBuilder<> Builder(TheContext);
623 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), 0, VarName.c_str()); in CreateEntryBlockAlloca()
627 return ConstantFP::get(TheContext, APFloat(Val)); in Codegen()
684 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in Codegen()
725 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in Codegen()
731 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen()
732 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in Codegen()
733 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in Codegen()
761 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in Codegen()
[all …]
Dtoy.cpp895 static LLVMContext TheContext; variable
896 static IRBuilder<> Builder(TheContext);
907 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), 0, VarName.c_str()); in CreateEntryBlockAlloca()
911 return ConstantFP::get(TheContext, APFloat(Val)); in Codegen()
967 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in Codegen()
1005 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in Codegen()
1011 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen()
1012 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in Codegen()
1013 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in Codegen()
1041 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in Codegen()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
Dtoy-jit.cpp611 static LLVMContext TheContext; variable
612 static IRBuilder<> Builder(TheContext);
623 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), 0, VarName.c_str()); in CreateEntryBlockAlloca()
627 return ConstantFP::get(TheContext, APFloat(Val)); in Codegen()
684 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in Codegen()
725 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in Codegen()
731 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen()
732 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in Codegen()
733 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in Codegen()
761 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in Codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp631 static LLVMContext TheContext; variable
632 static IRBuilder<> Builder(TheContext);
660 return ConstantFP::get(TheContext, APFloat(Val)); in codegen()
699 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in codegen()
740 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in codegen()
746 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
747 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in codegen()
748 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in codegen()
778 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in codegen()
810 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp616 static LLVMContext TheContext; variable
617 static IRBuilder<> Builder(TheContext);
645 return ConstantFP::get(TheContext, APFloat(Val)); in codegen()
684 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in codegen()
725 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in codegen()
731 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
732 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in codegen()
733 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in codegen()
763 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in codegen()
795 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
Dtoy.cpp684 static LLVMContext TheContext; variable
685 static IRBuilder<> Builder(TheContext);
718 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), nullptr, VarName); in CreateEntryBlockAlloca()
722 return ConstantFP::get(TheContext, APFloat(Val)); in codegen()
786 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in codegen()
827 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in codegen()
833 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
834 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in codegen()
835 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in codegen()
865 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/
Dtoy.cpp699 static LLVMContext TheContext; variable
700 static IRBuilder<> Builder(TheContext);
732 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), nullptr, VarName); in CreateEntryBlockAlloca()
736 return ConstantFP::get(TheContext, APFloat(Val)); in codegen()
800 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in codegen()
841 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in codegen()
847 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
848 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in codegen()
849 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in codegen()
879 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/
Dtoy.cpp699 static LLVMContext TheContext; variable
700 static IRBuilder<> Builder(TheContext);
732 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), nullptr, VarName); in CreateEntryBlockAlloca()
736 return ConstantFP::get(TheContext, APFloat(Val)); in codegen()
800 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in codegen()
841 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in codegen()
847 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
848 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in codegen()
849 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in codegen()
879 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in codegen()
[all …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/
Dtoy.cpp687 static LLVMContext TheContext; variable
688 static IRBuilder<> Builder(TheContext);
720 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), nullptr, VarName); in CreateEntryBlockAlloca()
724 return ConstantFP::get(TheContext, APFloat(Val)); in codegen()
788 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in codegen()
829 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in codegen()
835 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
836 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in codegen()
837 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in codegen()
867 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in codegen()
[all …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/
Dtoy.cpp687 static LLVMContext TheContext; variable
688 static IRBuilder<> Builder(TheContext);
720 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), nullptr, VarName); in CreateEntryBlockAlloca()
724 return ConstantFP::get(TheContext, APFloat(Val)); in codegen()
788 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in codegen()
829 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in codegen()
835 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
836 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in codegen()
837 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in codegen()
867 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in codegen()
[all …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/
Dtoy.cpp687 static LLVMContext TheContext; variable
688 static IRBuilder<> Builder(TheContext);
720 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), nullptr, VarName); in CreateEntryBlockAlloca()
724 return ConstantFP::get(TheContext, APFloat(Val)); in codegen()
788 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in codegen()
829 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in codegen()
835 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
836 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in codegen()
837 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in codegen()
867 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in codegen()
[all …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
Dtoy.cpp675 static LLVMContext TheContext; variable
676 static IRBuilder<> Builder(TheContext);
709 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), nullptr, VarName); in CreateEntryBlockAlloca()
713 return ConstantFP::get(TheContext, APFloat(Val)); in codegen()
777 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in codegen()
818 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in codegen()
824 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
825 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in codegen()
826 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in codegen()
856 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/
Dtoy.cpp699 static LLVMContext TheContext; variable
700 static IRBuilder<> Builder(TheContext);
732 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), nullptr, VarName); in CreateEntryBlockAlloca()
736 return ConstantFP::get(TheContext, APFloat(Val)); in codegen()
800 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in codegen()
841 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in codegen()
847 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
848 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in codegen()
849 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in codegen()
879 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp704 static LLVMContext TheContext; variable
705 static IRBuilder<> Builder(TheContext);
738 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), nullptr, VarName); in CreateEntryBlockAlloca()
742 return ConstantFP::get(TheContext, APFloat(Val)); in codegen()
806 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in codegen()
847 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in codegen()
853 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
854 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in codegen()
855 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in codegen()
885 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/Chapter8/
Dtoy.cpp705 static LLVMContext TheContext; variable
706 static IRBuilder<> Builder(TheContext);
737 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), nullptr, VarName); in CreateEntryBlockAlloca()
741 return ConstantFP::get(TheContext, APFloat(Val)); in codegen()
805 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in codegen()
846 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in codegen()
852 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
853 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in codegen()
854 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in codegen()
884 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in codegen()
[all …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/
Dtoy.cpp697 static LLVMContext TheContext; variable
698 static IRBuilder<> Builder(TheContext);
731 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), nullptr, VarName); in CreateEntryBlockAlloca()
735 return ConstantFP::get(TheContext, APFloat(Val)); in codegen()
799 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in codegen()
840 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in codegen()
846 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
847 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in codegen()
848 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in codegen()
878 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in codegen()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter8/
Dtoy.cpp684 static LLVMContext TheContext; variable
685 static IRBuilder<> Builder(TheContext);
716 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), nullptr, VarName); in CreateEntryBlockAlloca()
720 return ConstantFP::get(TheContext, APFloat(Val)); in codegen()
784 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in codegen()
825 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in codegen()
831 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
832 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in codegen()
833 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in codegen()
863 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/
Dtoy.cpp708 static LLVMContext TheContext; variable
709 static IRBuilder<> Builder(TheContext);
742 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), nullptr, VarName); in CreateEntryBlockAlloca()
746 return ConstantFP::get(TheContext, APFloat(Val)); in codegen()
810 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in codegen()
851 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in codegen()
857 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
858 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in codegen()
859 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in codegen()
889 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in codegen()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp687 static LLVMContext TheContext; variable
688 static IRBuilder<> Builder(TheContext);
721 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), nullptr, VarName); in CreateEntryBlockAlloca()
725 return ConstantFP::get(TheContext, APFloat(Val)); in codegen()
789 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in codegen()
830 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in codegen()
836 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in codegen()
837 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in codegen()
838 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in codegen()
868 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in codegen()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/initial/
Dtoy.cpp855 static LLVMContext TheContext; variable
856 static IRBuilder<> Builder(TheContext);
867 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), 0, VarName.c_str()); in CreateEntryBlockAlloca()
871 return ConstantFP::get(TheContext, APFloat(Val)); in Codegen()
927 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in Codegen()
965 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in Codegen()
971 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen()
972 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in Codegen()
973 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in Codegen()
1001 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in Codegen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/MCJIT/initial/
Dtoy.cpp855 static LLVMContext TheContext; variable
856 static IRBuilder<> Builder(TheContext);
867 return TmpB.CreateAlloca(Type::getDoubleTy(TheContext), 0, VarName.c_str()); in CreateEntryBlockAlloca()
871 return ConstantFP::get(TheContext, APFloat(Val)); in Codegen()
927 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp"); in Codegen()
965 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in Codegen()
971 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction); in Codegen()
972 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in Codegen()
973 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in Codegen()
1001 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); in Codegen()
[all …]

12