Lines Matching defs:TheContext
708 static std::unique_ptr<LLVMContext> TheContext;
749 return TmpB.CreateAlloca(Type::getDoubleTy(*TheContext), nullptr, VarName);
753 return ConstantFP::get(*TheContext, APFloat(Val));
817 return Builder->CreateUIToFP(L, Type::getDoubleTy(*TheContext), "booltmp");
858 CondV, ConstantFP::get(*TheContext, APFloat(0.0)), "ifcond");
864 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction);
865 BasicBlock *ElseBB = BasicBlock::Create(*TheContext, "else");
866 BasicBlock *MergeBB = BasicBlock::Create(*TheContext, "ifcont");
896 PHINode *PN = Builder->CreatePHI(Type::getDoubleTy(*TheContext), 2, "iftmp");
938 BasicBlock *LoopBB = BasicBlock::Create(*TheContext, "loop", TheFunction);
965 StepVal = ConstantFP::get(*TheContext, APFloat(1.0));
982 EndCond, ConstantFP::get(*TheContext, APFloat(0.0)), "loopcond");
986 BasicBlock::Create(*TheContext, "afterloop", TheFunction);
1001 return Constant::getNullValue(Type::getDoubleTy(*TheContext));
1025 InitVal = ConstantFP::get(*TheContext, APFloat(0.0));
1054 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(*TheContext));
1056 FunctionType::get(Type::getDoubleTy(*TheContext), Doubles, false);
1083 BasicBlock *BB = BasicBlock::Create(*TheContext, "entry", TheFunction);
1126 TheContext = std::make_unique<LLVMContext>();
1127 TheModule = std::make_unique<Module>("KaleidoscopeJIT", *TheContext);
1131 Builder = std::make_unique<IRBuilder<>>(*TheContext);
1140 TheSI = std::make_unique<StandardInstrumentations>(*TheContext,
1170 ThreadSafeModule(std::move(TheModule), std::move(TheContext))));
1201 auto TSM = ThreadSafeModule(std::move(TheModule), std::move(TheContext));