Lines Matching defs:Context
25 LLVMContext Context;
26 IntegerType *Int1 = IntegerType::get(Context, 1);
97 LLVMContext Context;
98 IntegerType *Int8Ty = Type::getInt8Ty(Context);
179 LLVMContext Context;
180 std::unique_ptr<Module> M(new Module("MyModule", Context));
182 Type *Int64Ty = Type::getInt64Ty(Context);
183 Type *Int32Ty = Type::getInt32Ty(Context);
184 Type *Int16Ty = Type::getInt16Ty(Context);
187 M->getOrInsertGlobal("dummy", PointerType::getUnqual(Context));
189 M->getOrInsertGlobal("dummy2", PointerType::getUnqual(Context));
197 Constant *Big = ConstantInt::get(Context, APInt{256, uint64_t(-1), true});
225 CHECK(ConstantExpr::getInBoundsGetElementPtr(PointerType::getUnqual(Context),
246 LLVMContext Context;
247 std::unique_ptr<Module> M(new Module("MyModule", Context));
249 Type *Int32Ty = Type::getInt32Ty(Context);
253 M->getOrInsertGlobal("dummy", PointerType::getUnqual(Context));
255 PointerType::getUnqual(Context), Global, One);
266 LLVMContext Context;
267 std::unique_ptr<Module> M(new Module("MyModule", Context));
269 Type *IntTy = Type::getInt8Ty(Context);
291 LLVMContext Context;
292 std::unique_ptr<Module> M(new Module("MyModule", Context));
294 Type *IntTy = Type::getInt8Ty(Context);
314 LLVMContext Context;
315 std::unique_ptr<Module> M(new Module("MyModule", Context));
317 Type *IntTy = Type::getInt32Ty(Context);
318 Type *PtrTy = PointerType::get(Context, 0);
339 LLVMContext Context;
342 parseAssemblyString("@g = global i32 42", Error, Context);
344 Type *I16Ty = Type::getInt16Ty(Context);
345 Type *I16PTy = PointerType::get(Context, 0);
360 LLVMContext Context;
362 for (Type *T : {Type::getInt8Ty(Context), Type::getInt16Ty(Context),
363 Type::getInt32Ty(Context), Type::getInt64Ty(Context)}) {
374 for (Type *T : {Type::getHalfTy(Context), Type::getBFloatTy(Context),
375 Type::getFloatTy(Context), Type::getDoubleTy(Context)}) {
388 LLVMContext Context;
390 for (Type *T : {Type::getInt8Ty(Context), Type::getInt16Ty(Context),
391 Type::getInt32Ty(Context), Type::getInt64Ty(Context)}) {
401 for (Type *T : {Type::getHalfTy(Context), Type::getBFloatTy(Context),
402 Type::getFloatTy(Context), Type::getDoubleTy(Context)}) {
414 LLVMContext Context;
415 std::unique_ptr<Module> M(new Module("MyModule", Context));
417 auto *i32 = Type::getInt32Ty(Context);
418 auto *U = StructType::create(Context, "Unsized");
424 auto *PtrTy = PointerType::get(Context, 0);
430 bool foldFuncPtrAndConstToNull(LLVMContext &Context, Module *TheModule,
433 Type *VoidType(Type::getVoidTy(Context));
441 IntegerType *ConstantIntType(Type::getInt32Ty(Context));
459 LLVMContext Context;
460 Module TheModule("TestModule", Context);
466 ASSERT_TRUE(foldFuncPtrAndConstToNull(Context, &TheModule, 2));
470 LLVMContext Context;
471 Module TheModule("TestModule", Context);
472 ASSERT_FALSE(foldFuncPtrAndConstToNull(Context, &TheModule, 4));
476 LLVMContext Context;
477 Module TheModule("TestModule", Context);
483 ASSERT_TRUE(foldFuncPtrAndConstToNull(Context, &TheModule, AndValue));
489 LLVMContext Context;
490 Module TheModule("TestModule", Context);
495 ASSERT_FALSE(foldFuncPtrAndConstToNull(Context, &TheModule, 2));
500 LLVMContext Context;
501 Module TheModule("TestModule", Context);
503 ASSERT_TRUE(foldFuncPtrAndConstToNull(Context, &TheModule, 2, Align(4)));
507 LLVMContext Context;
508 Module TheModule("TestModule", Context);
510 ASSERT_FALSE(foldFuncPtrAndConstToNull(Context, &TheModule, 2, Align(4)));
514 LLVMContext Context;
517 ASSERT_FALSE(foldFuncPtrAndConstToNull(Context, nullptr, 2, Align(4)));
521 LLVMContext Context;
523 IntegerType *IntType(Type::getInt32Ty(Context));
543 LLVMContext Context;
545 Type *Int32Ty = Type::getInt32Ty(Context);
581 LLVMContext Context;
583 Type *Int32Ty = Type::getInt32Ty(Context);
609 Type *FltTy = Type::getFloatTy(Context);
635 PointerType *PtrTy = PointerType::get(Context, 0);
660 LLVMContext Context;
662 Type *Int32Ty = Type::getInt32Ty(Context);
703 LLVMContext Context;
705 Type *FloatTy = Type::getFloatTy(Context);
706 Type *Int32Ty = Type::getInt32Ty(Context);
707 Type *Int8Ty = Type::getInt8Ty(Context);
732 LLVMContext Context;
733 Module M("MyModule", Context);
739 Type *Ty = Type::getInt8Ty(Context);
769 LLVMContext Context;
772 parseAssemblyString(BlockAddressIR, Error, Context);