Lines Matching defs:TheContext

683 static std::unique_ptr<LLVMContext> TheContext;
716 return TmpB.CreateAlloca(Type::getDoubleTy(*TheContext), nullptr, VarName);
720 return ConstantFP::get(*TheContext, APFloat(Val));
730 return Builder->CreateLoad(Type::getDoubleTy(*TheContext), V, Name.c_str());
784 return Builder->CreateUIToFP(L, Type::getDoubleTy(*TheContext), "booltmp");
825 CondV, ConstantFP::get(*TheContext, APFloat(0.0)), "ifcond");
831 BasicBlock *ThenBB = BasicBlock::Create(*TheContext, "then", TheFunction);
832 BasicBlock *ElseBB = BasicBlock::Create(*TheContext, "else");
833 BasicBlock *MergeBB = BasicBlock::Create(*TheContext, "ifcont");
863 PHINode *PN = Builder->CreatePHI(Type::getDoubleTy(*TheContext), 2, "iftmp");
905 BasicBlock *LoopBB = BasicBlock::Create(*TheContext, "loop", TheFunction);
932 StepVal = ConstantFP::get(*TheContext, APFloat(1.0));
942 Value *CurVar = Builder->CreateLoad(Type::getDoubleTy(*TheContext), Alloca,
949 EndCond, ConstantFP::get(*TheContext, APFloat(0.0)), "loopcond");
953 BasicBlock::Create(*TheContext, "afterloop", TheFunction);
968 return Constant::getNullValue(Type::getDoubleTy(*TheContext));
992 InitVal = ConstantFP::get(*TheContext, APFloat(0.0));
1021 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(*TheContext));
1023 FunctionType::get(Type::getDoubleTy(*TheContext), Doubles, false);
1058 BasicBlock *BB = BasicBlock::Create(*TheContext, "entry", TheFunction);
1098 TheContext = std::make_unique<LLVMContext>();
1099 TheModule = std::make_unique<Module>("my cool jit", *TheContext);
1103 Builder = std::make_unique<IRBuilder<>>(*TheContext);
1110 auto TSM = ThreadSafeModule(std::move(TheModule), std::move(TheContext));
1151 auto TSM = ThreadSafeModule(std::move(TheModule), std::move(TheContext));