| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter5/ |
| H A D | toy.cpp | 539 static std::unique_ptr<LLVMContext> TheContext; variable 569 return ConstantFP::get(*TheContext, APFloat(Val)); in codegen() 629 CondV, ConstantFP::get(*TheContext, APFloat(0.0)), "ifcond"); in codegen() 636 BasicBlock *ElseBB = BasicBlock::Create(*TheContext, "else"); in codegen() 637 BasicBlock *MergeBB = BasicBlock::Create(*TheContext, "ifcont"); in codegen() 731 StepVal = ConstantFP::get(*TheContext, APFloat(1.0)); in codegen() 748 BasicBlock::Create(*TheContext, "afterloop", TheFunction); in codegen() 766 return Constant::getNullValue(Type::getDoubleTy(*TheContext)); in codegen() 828 TheContext = std::make_unique<LLVMContext>(); in InitializeModuleAndPassManager() 829 TheModule = std::make_unique<Module>("my cool jit", *TheContext); in InitializeModuleAndPassManager() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter6/ |
| H A D | toy.cpp | 631 static std::unique_ptr<LLVMContext> TheContext; variable 661 return ConstantFP::get(*TheContext, APFloat(Val)); in codegen() 741 CondV, ConstantFP::get(*TheContext, APFloat(0.0)), "ifcond"); in codegen() 748 BasicBlock *ElseBB = BasicBlock::Create(*TheContext, "else"); in codegen() 749 BasicBlock *MergeBB = BasicBlock::Create(*TheContext, "ifcont"); in codegen() 843 StepVal = ConstantFP::get(*TheContext, APFloat(1.0)); in codegen() 860 BasicBlock::Create(*TheContext, "afterloop", TheFunction); in codegen() 878 return Constant::getNullValue(Type::getDoubleTy(*TheContext)); in codegen() 947 TheContext = std::make_unique<LLVMContext>(); in InitializeModuleAndPassManager() 948 TheModule = std::make_unique<Module>("my cool jit", *TheContext); in InitializeModuleAndPassManager() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/ |
| H A D | toy.cpp | 700 static std::unique_ptr<LLVMContext> TheContext; variable 737 return ConstantFP::get(*TheContext, APFloat(Val)); in codegen() 842 CondV, ConstantFP::get(*TheContext, APFloat(0.0)), "ifcond"); in codegen() 849 BasicBlock *ElseBB = BasicBlock::Create(*TheContext, "else"); in codegen() 850 BasicBlock *MergeBB = BasicBlock::Create(*TheContext, "ifcont"); in codegen() 949 StepVal = ConstantFP::get(*TheContext, APFloat(1.0)); in codegen() 970 BasicBlock::Create(*TheContext, "afterloop", TheFunction); in codegen() 985 return Constant::getNullValue(Type::getDoubleTy(*TheContext)); in codegen() 1009 InitVal = ConstantFP::get(*TheContext, APFloat(0.0)); in codegen() 1107 TheContext = std::make_unique<LLVMContext>(); in InitializeModule() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/ |
| H A D | toy.cpp | 683 static std::unique_ptr<LLVMContext> TheContext; variable 720 return ConstantFP::get(*TheContext, APFloat(Val)); in codegen() 825 CondV, ConstantFP::get(*TheContext, APFloat(0.0)), "ifcond"); in codegen() 832 BasicBlock *ElseBB = BasicBlock::Create(*TheContext, "else"); in codegen() 833 BasicBlock *MergeBB = BasicBlock::Create(*TheContext, "ifcont"); in codegen() 932 StepVal = ConstantFP::get(*TheContext, APFloat(1.0)); in codegen() 953 BasicBlock::Create(*TheContext, "afterloop", TheFunction); in codegen() 968 return Constant::getNullValue(Type::getDoubleTy(*TheContext)); in codegen() 992 InitVal = ConstantFP::get(*TheContext, APFloat(0.0)); in codegen() 1098 TheContext = std::make_unique<LLVMContext>(); in InitializeModule() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/ |
| H A D | toy.cpp | 700 static std::unique_ptr<LLVMContext> TheContext; variable 737 return ConstantFP::get(*TheContext, APFloat(Val)); in codegen() 842 CondV, ConstantFP::get(*TheContext, APFloat(0.0)), "ifcond"); in codegen() 849 BasicBlock *ElseBB = BasicBlock::Create(*TheContext, "else"); in codegen() 850 BasicBlock *MergeBB = BasicBlock::Create(*TheContext, "ifcont"); in codegen() 949 StepVal = ConstantFP::get(*TheContext, APFloat(1.0)); in codegen() 970 BasicBlock::Create(*TheContext, "afterloop", TheFunction); in codegen() 985 return Constant::getNullValue(Type::getDoubleTy(*TheContext)); in codegen() 1009 InitVal = ConstantFP::get(*TheContext, APFloat(0.0)); in codegen() 1107 TheContext = std::make_unique<LLVMContext>(); in InitializeModule() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/ |
| H A D | toy.cpp | 700 static std::unique_ptr<LLVMContext> TheContext; variable 737 return ConstantFP::get(*TheContext, APFloat(Val)); in codegen() 842 CondV, ConstantFP::get(*TheContext, APFloat(0.0)), "ifcond"); in codegen() 849 BasicBlock *ElseBB = BasicBlock::Create(*TheContext, "else"); in codegen() 850 BasicBlock *MergeBB = BasicBlock::Create(*TheContext, "ifcont"); in codegen() 949 StepVal = ConstantFP::get(*TheContext, APFloat(1.0)); in codegen() 970 BasicBlock::Create(*TheContext, "afterloop", TheFunction); in codegen() 985 return Constant::getNullValue(Type::getDoubleTy(*TheContext)); in codegen() 1009 InitVal = ConstantFP::get(*TheContext, APFloat(0.0)); in codegen() 1107 TheContext = std::make_unique<LLVMContext>(); in InitializeModule() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/cached/ |
| H A D | toy-jit.cpp | 626 static LLVMContext TheContext; variable 627 static IRBuilder<> Builder(TheContext); 642 return ConstantFP::get(TheContext, APFloat(Val)); in Codegen() 750 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in Codegen() 751 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in Codegen() 847 StepVal = ConstantFP::get(TheContext, APFloat(1.0)); in Codegen() 866 BasicBlock::Create(TheContext, "afterloop", TheFunction); in Codegen() 882 return Constant::getNullValue(Type::getDoubleTy(TheContext)); in Codegen() 905 InitVal = ConstantFP::get(TheContext, APFloat(0.0)); in Codegen() 1121 Module *M = ParseIRFile(InputFile, Err, TheContext); in parseInputIR() [all …]
|
| H A D | toy.cpp | 997 static LLVMContext TheContext; variable 998 static IRBuilder<> Builder(TheContext); 1013 return ConstantFP::get(TheContext, APFloat(Val)); in Codegen() 1114 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in Codegen() 1115 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in Codegen() 1211 StepVal = ConstantFP::get(TheContext, APFloat(1.0)); in Codegen() 1230 BasicBlock::Create(TheContext, "afterloop", TheFunction); in Codegen() 1246 return Constant::getNullValue(Type::getDoubleTy(TheContext)); in Codegen() 1269 InitVal = ConstantFP::get(TheContext, APFloat(0.0)); in Codegen() 1491 Module *M = ParseIRFile(InputFile, Err, TheContext); in parseInputIR() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
| H A D | toy-jit.cpp | 611 static LLVMContext TheContext; variable 612 static IRBuilder<> Builder(TheContext); 627 return ConstantFP::get(TheContext, APFloat(Val)); in Codegen() 725 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in Codegen() 732 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in Codegen() 733 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in Codegen() 829 StepVal = ConstantFP::get(TheContext, APFloat(1.0)); in Codegen() 848 BasicBlock::Create(TheContext, "afterloop", TheFunction); in Codegen() 864 return Constant::getNullValue(Type::getDoubleTy(TheContext)); in Codegen() 887 InitVal = ConstantFP::get(TheContext, APFloat(0.0)); in Codegen() [all …]
|
| H A D | toy.cpp | 895 static LLVMContext TheContext; variable 896 static IRBuilder<> Builder(TheContext); 911 return ConstantFP::get(TheContext, APFloat(Val)); in Codegen() 1005 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in Codegen() 1012 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in Codegen() 1013 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in Codegen() 1109 StepVal = ConstantFP::get(TheContext, APFloat(1.0)); in Codegen() 1128 BasicBlock::Create(TheContext, "afterloop", TheFunction); in Codegen() 1144 return Constant::getNullValue(Type::getDoubleTy(TheContext)); in Codegen() 1167 InitVal = ConstantFP::get(TheContext, APFloat(0.0)); in Codegen() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter8/ |
| H A D | toy.cpp | 705 static std::unique_ptr<LLVMContext> TheContext; variable 742 return ConstantFP::get(*TheContext, APFloat(Val)); in codegen() 847 CondV, ConstantFP::get(*TheContext, APFloat(0.0)), "ifcond"); in codegen() 854 BasicBlock *ElseBB = BasicBlock::Create(*TheContext, "else"); in codegen() 855 BasicBlock *MergeBB = BasicBlock::Create(*TheContext, "ifcont"); in codegen() 954 StepVal = ConstantFP::get(*TheContext, APFloat(1.0)); in codegen() 975 BasicBlock::Create(*TheContext, "afterloop", TheFunction); in codegen() 990 return Constant::getNullValue(Type::getDoubleTy(*TheContext)); in codegen() 1014 InitVal = ConstantFP::get(*TheContext, APFloat(0.0)); in codegen() 1112 TheContext = std::make_unique<LLVMContext>(); in InitializeModuleAndPassManager() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter7/ |
| H A D | toy.cpp | 704 static std::unique_ptr<LLVMContext> TheContext; variable 743 return ConstantFP::get(*TheContext, APFloat(Val)); in codegen() 848 CondV, ConstantFP::get(*TheContext, APFloat(0.0)), "ifcond"); in codegen() 855 BasicBlock *ElseBB = BasicBlock::Create(*TheContext, "else"); in codegen() 856 BasicBlock *MergeBB = BasicBlock::Create(*TheContext, "ifcont"); in codegen() 955 StepVal = ConstantFP::get(*TheContext, APFloat(1.0)); in codegen() 976 BasicBlock::Create(*TheContext, "afterloop", TheFunction); in codegen() 991 return Constant::getNullValue(Type::getDoubleTy(*TheContext)); in codegen() 1015 InitVal = ConstantFP::get(*TheContext, APFloat(0.0)); in codegen() 1116 TheContext = std::make_unique<LLVMContext>(); in InitializeModuleAndPassManager() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter4/ |
| H A D | toy.cpp | 412 static std::unique_ptr<LLVMContext> TheContext; variable 442 return ConstantFP::get(*TheContext, APFloat(Val)); in codegen() 469 return Builder->CreateUIToFP(L, Type::getDoubleTy(*TheContext), "booltmp"); in codegen() 497 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(*TheContext)); in codegen() 499 FunctionType::get(Type::getDoubleTy(*TheContext), Doubles, false); in codegen() 522 BasicBlock *BB = BasicBlock::Create(*TheContext, "entry", TheFunction); in codegen() 554 TheContext = std::make_unique<LLVMContext>(); in InitializeModuleAndPassManager() 555 TheModule = std::make_unique<Module>("my cool jit", *TheContext); in InitializeModuleAndPassManager() 559 Builder = std::make_unique<IRBuilder<>>(*TheContext); in InitializeModuleAndPassManager() 583 ThreadSafeModule(std::move(TheModule), std::move(TheContext)))); in HandleDefinition() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter9/ |
| H A D | toy.cpp | 820 static std::unique_ptr<LLVMContext> TheContext; variable 903 return ConstantFP::get(*TheContext, APFloat(Val)); in codegen() 1016 CondV, ConstantFP::get(*TheContext, APFloat(0.0)), "ifcond"); in codegen() 1023 BasicBlock *ElseBB = BasicBlock::Create(*TheContext, "else"); in codegen() 1024 BasicBlock *MergeBB = BasicBlock::Create(*TheContext, "ifcont"); in codegen() 1125 StepVal = ConstantFP::get(*TheContext, APFloat(1.0)); in codegen() 1146 BasicBlock::Create(*TheContext, "afterloop", TheFunction); in codegen() 1161 return Constant::getNullValue(Type::getDoubleTy(*TheContext)); in codegen() 1185 InitVal = ConstantFP::get(*TheContext, APFloat(0.0)); in codegen() 1325 TheContext = std::make_unique<LLVMContext>(); in InitializeModule() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/initial/ |
| H A D | toy.cpp | 855 static LLVMContext TheContext; variable 856 static IRBuilder<> Builder(TheContext); 871 return ConstantFP::get(TheContext, APFloat(Val)); in Codegen() 965 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in Codegen() 972 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in Codegen() 973 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in Codegen() 1069 StepVal = ConstantFP::get(TheContext, APFloat(1.0)); in Codegen() 1088 BasicBlock::Create(TheContext, "afterloop", TheFunction); in Codegen() 1104 return Constant::getNullValue(Type::getDoubleTy(TheContext)); in Codegen() 1127 InitVal = ConstantFP::get(TheContext, APFloat(0.0)); in Codegen() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter3/ |
| H A D | toy.cpp | 402 static std::unique_ptr<LLVMContext> TheContext; variable 413 return ConstantFP::get(*TheContext, APFloat(Val)); in codegen() 440 return Builder->CreateUIToFP(L, Type::getDoubleTy(*TheContext), "booltmp"); in codegen() 468 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(*TheContext)); in codegen() 470 FunctionType::get(Type::getDoubleTy(*TheContext), Doubles, false); in codegen() 494 BasicBlock *BB = BasicBlock::Create(*TheContext, "entry", TheFunction); in codegen() 523 TheContext = std::make_unique<LLVMContext>(); in InitializeModule() 524 TheModule = std::make_unique<Module>("my cool jit", *TheContext); in InitializeModule() 527 Builder = std::make_unique<IRBuilder<>>(*TheContext); in InitializeModule()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/complete/ |
| H A D | toy.cpp | 1069 static LLVMContext TheContext; variable 1070 static IRBuilder<> Builder(TheContext); 1085 return ConstantFP::get(TheContext, APFloat(Val)); in Codegen() 1185 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); in Codegen() 1192 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); in Codegen() 1193 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); in Codegen() 1289 StepVal = ConstantFP::get(TheContext, APFloat(1.0)); in Codegen() 1308 BasicBlock::Create(TheContext, "afterloop", TheFunction); in Codegen() 1324 return Constant::getNullValue(Type::getDoubleTy(TheContext)); in Codegen() 1347 InitVal = ConstantFP::get(TheContext, APFloat(0.0)); in Codegen() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | ExprSequence.cpp | 67 ASTContext *TheContext) in ExprSequence() argument 68 : Context(TheContext), Root(Root) { in ExprSequence() 187 StmtToBlockMap::StmtToBlockMap(const CFG *TheCFG, ASTContext *TheContext) in StmtToBlockMap() argument 188 : Context(TheContext) { in StmtToBlockMap()
|
| H A D | ExprSequence.h | 72 ExprSequence(const CFG *TheCFG, const Stmt *Root, ASTContext *TheContext); 107 StmtToBlockMap(const CFG *TheCFG, ASTContext *TheContext);
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | UseAfterMoveCheck.cpp | 61 UseAfterMoveFinder(ASTContext *TheContext); 106 UseAfterMoveFinder::UseAfterMoveFinder(ASTContext *TheContext) in UseAfterMoveFinder() argument 107 : Context(TheContext) {} in UseAfterMoveFinder()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | ValueHandleTest.cpp | 317 RecoveringVH(LLVMContext &TheContext) in TEST_F() argument 318 : DeletedCalls(0), AURWArgument(nullptr), Context(&TheContext) {} in TEST_F() 320 RecoveringVH(LLVMContext &TheContext, Value *V) in TEST_F() argument 322 Context(&TheContext) {} in TEST_F()
|
| /llvm-project-15.0.7/llvm/docs/tutorial/MyFirstLanguageFrontend/ |
| H A D | LangImpl05.rst | 296 CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond"); 309 BasicBlock::Create(TheContext, "then", TheFunction); 310 BasicBlock *ElseBB = BasicBlock::Create(TheContext, "else"); 311 BasicBlock *MergeBB = BasicBlock::Create(TheContext, "ifcont"); 404 Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp"); 652 BasicBlock::Create(TheContext, "loop", TheFunction); 669 PHINode *Variable = Builder.CreatePHI(Type::getDoubleTy(TheContext), 720 StepVal = ConstantFP::get(TheContext, APFloat(1.0)); 739 EndCond, ConstantFP::get(TheContext, APFloat(0.0)), "loopcond"); 750 BasicBlock::Create(TheContext, "afterloop", TheFunction); [all …]
|
| H A D | LangImpl03.rst | 76 static LLVMContext TheContext; 77 static IRBuilder<> Builder(TheContext); 86 The static variables will be used during code generation. ``TheContext`` 125 return ConstantFP::get(TheContext, APFloat(Val)); 174 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), 273 Type::getDoubleTy(TheContext)); 275 FunctionType::get(Type::getDoubleTy(TheContext), Doubles, false); 349 BasicBlock *BB = BasicBlock::Create(TheContext, "entry", TheFunction);
|
| H A D | LangImpl06.rst | 255 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), 294 BasicBlock *BB = BasicBlock::Create(TheContext, "entry", TheFunction);
|
| H A D | LangImpl04.rst | 142 TheModule = std::make_unique<Module>("my cool jit", TheContext); 274 TheModule = std::make_unique<Module>("my cool jit", TheContext);
|