Lines Matching defs:Context
30 std::unique_ptr<Module> parseAssembly(LLVMContext &Context,
33 std::unique_ptr<Module> M = parseAssemblyString(Assembly, Error, Context);
52 static std::unique_ptr<Module> getLazyModuleFromAssembly(LLVMContext &Context,
55 writeModuleToBuffer(parseAssembly(Context, Assembly), Mem);
57 getLazyBitcodeModule(MemoryBufferRef(Mem.str(), "test"), Context);
66 LLVMContext Context;
68 Context, Mem, "define void @f() {\n"
130 LLVMContext Context;
132 Context, Mem, "define double @foo(double %a) {\n"
160 LLVMContext Context;
162 Context, Mem,
194 LLVMContext Context;
196 Context, Mem, "@table = constant i8* blockaddress(@func, %bb)\n"
209 LLVMContext Context;
211 Context, Mem, "define i8* @before() {\n"
236 LLVMContext Context;
238 Context, Mem, "define void @func() {\n"
307 static Metadata *getTypeMetadataEntry(unsigned TypeID, LLVMContext &Context,
314 SignatureMD.push_back(MDString::get(Context, "function"));
317 SignatureMD.push_back(MDString::get(Context, "void"));
320 Context, GetTypeByID,
325 getTypeMetadataEntry(GetContainedTypeID(TypeID, I + 1), Context,
328 return MDTuple::get(Context, SignatureMD);
337 Type::getInt32Ty(Context), Ty->getPointerAddressSpace())));
338 MD.push_back(getTypeMetadataEntry(GetContainedTypeID(TypeID, 0), Context,
340 return MDTuple::get(Context, MD);
350 LLVMContext Context;
369 parseBitcodeFile(MemoryBufferRef(Bitcode, "test"), Context, Callbacks);
394 LLVMContext Context;
422 parseBitcodeFile(MemoryBufferRef(Bitcode, "test"), Context, Callbacks);