Lines Matching defs:TheContext
635 static std::unique_ptr<LLVMContext> TheContext;
671 return ConstantFP::get(*TheContext, APFloat(Val));
710 return Builder->CreateUIToFP(L, Type::getDoubleTy(*TheContext), "booltmp");
751 CondV, ConstantFP::get(*TheContext, APFloat(0.0)), "ifcond");
757 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction);
758 BasicBlock *ElseBB = BasicBlock::Create(*TheContext, "else");
759 BasicBlock *MergeBB = BasicBlock::Create(*TheContext, "ifcont");
789 PHINode *PN = Builder->CreatePHI(Type::getDoubleTy(*TheContext), 2, "iftmp");
821 BasicBlock *LoopBB = BasicBlock::Create(*TheContext, "loop", TheFunction);
831 Builder->CreatePHI(Type::getDoubleTy(*TheContext), 2, VarName);
853 StepVal = ConstantFP::get(*TheContext, APFloat(1.0));
865 EndCond, ConstantFP::get(*TheContext, APFloat(0.0)), "loopcond");
870 BasicBlock::Create(*TheContext, "afterloop", TheFunction);
888 return Constant::getNullValue(Type::getDoubleTy(*TheContext));
893 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(*TheContext));
895 FunctionType::get(Type::getDoubleTy(*TheContext), Doubles, false);
922 BasicBlock *BB = BasicBlock::Create(*TheContext, "entry", TheFunction);
957 TheContext = std::make_unique<LLVMContext>();
958 TheModule = std::make_unique<Module>("KaleidoscopeJIT", *TheContext);
962 Builder = std::make_unique<IRBuilder<>>(*TheContext);
971 TheSI = std::make_unique<StandardInstrumentations>(*TheContext,
999 ThreadSafeModule(std::move(TheModule), std::move(TheContext))));
1030 auto TSM = ThreadSafeModule(std::move(TheModule), std::move(TheContext));