Lines Matching defs:TheContext
543 static std::unique_ptr<LLVMContext> TheContext;
579 return ConstantFP::get(*TheContext, APFloat(Val));
606 return Builder->CreateUIToFP(L, Type::getDoubleTy(*TheContext), "booltmp");
639 CondV, ConstantFP::get(*TheContext, APFloat(0.0)), "ifcond");
645 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction);
646 BasicBlock *ElseBB = BasicBlock::Create(*TheContext, "else");
647 BasicBlock *MergeBB = BasicBlock::Create(*TheContext, "ifcont");
677 PHINode *PN = Builder->CreatePHI(Type::getDoubleTy(*TheContext), 2, "iftmp");
709 BasicBlock *LoopBB = BasicBlock::Create(*TheContext, "loop", TheFunction);
719 Builder->CreatePHI(Type::getDoubleTy(*TheContext), 2, VarName);
741 StepVal = ConstantFP::get(*TheContext, APFloat(1.0));
753 EndCond, ConstantFP::get(*TheContext, APFloat(0.0)), "loopcond");
758 BasicBlock::Create(*TheContext, "afterloop", TheFunction);
776 return Constant::getNullValue(Type::getDoubleTy(*TheContext));
781 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(*TheContext));
783 FunctionType::get(Type::getDoubleTy(*TheContext), Doubles, false);
806 BasicBlock *BB = BasicBlock::Create(*TheContext, "entry", TheFunction);
838 TheContext = std::make_unique<LLVMContext>();
839 TheModule = std::make_unique<Module>("KaleidoscopeJIT", *TheContext);
843 Builder = std::make_unique<IRBuilder<>>(*TheContext);
852 TheSI = std::make_unique<StandardInstrumentations>(*TheContext,
880 ThreadSafeModule(std::move(TheModule), std::move(TheContext))));
911 auto TSM = ThreadSafeModule(std::move(TheModule), std::move(TheContext));