Lines Matching refs:TheContext

700 static std::unique_ptr<LLVMContext> TheContext;  variable
733 return TmpB.CreateAlloca(Type::getDoubleTy(*TheContext), nullptr, VarName); in CreateEntryBlockAlloca()
737 return ConstantFP::get(*TheContext, APFloat(Val)); in codegen()
747 return Builder->CreateLoad(Type::getDoubleTy(*TheContext), V, Name.c_str()); in codegen()
801 return Builder->CreateUIToFP(L, Type::getDoubleTy(*TheContext), "booltmp"); in codegen()
842 CondV, ConstantFP::get(*TheContext, APFloat(0.0)), "ifcond"); in codegen()
848 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction); in codegen()
849 BasicBlock *ElseBB = BasicBlock::Create(*TheContext, "else"); in codegen()
850 BasicBlock *MergeBB = BasicBlock::Create(*TheContext, "ifcont"); in codegen()
880 PHINode *PN = Builder->CreatePHI(Type::getDoubleTy(*TheContext), 2, "iftmp"); in codegen()
922 BasicBlock *LoopBB = BasicBlock::Create(*TheContext, "loop", TheFunction); in codegen()
949 StepVal = ConstantFP::get(*TheContext, APFloat(1.0)); in codegen()
959 Value *CurVar = Builder->CreateLoad(Type::getDoubleTy(*TheContext), Alloca, in codegen()
966 EndCond, ConstantFP::get(*TheContext, APFloat(0.0)), "loopcond"); 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()
1038 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(*TheContext)); in codegen()
1040 FunctionType::get(Type::getDoubleTy(*TheContext), Doubles, false); in codegen()
1067 BasicBlock *BB = BasicBlock::Create(*TheContext, "entry", TheFunction); in codegen()
1107 TheContext = std::make_unique<LLVMContext>(); in InitializeModule()
1108 TheModule = std::make_unique<Module>("my cool jit", *TheContext); in InitializeModule()
1112 Builder = std::make_unique<IRBuilder<>>(*TheContext); in InitializeModule()
1121 auto TSM = ThreadSafeModule(std::move(TheModule), std::move(TheContext)); in HandleDefinition()
1153 auto TSM = ThreadSafeModule(std::move(TheModule), std::move(TheContext)); in HandleTopLevelExpression()