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