Lines Matching refs:Context
25 LLVMContext Context; in TEST() local
26 IntegerType *Int1 = IntegerType::get(Context, 1); in TEST()
105 LLVMContext Context; in TEST() local
106 IntegerType *Int8Ty = Type::getInt8Ty(Context); in TEST()
119 LLVMContext Context; in TEST() local
120 Type *FP128Ty = Type::getFP128Ty(Context); in TEST()
122 IntegerType *Int128Ty = Type::getIntNTy(Context, 128); in TEST()
204 LLVMContext Context; in TEST() local
205 std::unique_ptr<Module> M(new Module("MyModule", Context)); in TEST()
207 Type *Int64Ty = Type::getInt64Ty(Context); in TEST()
208 Type *Int32Ty = Type::getInt32Ty(Context); in TEST()
209 Type *Int16Ty = Type::getInt16Ty(Context); in TEST()
210 Type *Int1Ty = Type::getInt1Ty(Context); in TEST()
211 Type *FloatTy = Type::getFloatTy(Context); in TEST()
212 Type *DoubleTy = Type::getDoubleTy(Context); in TEST()
229 Constant *Big = ConstantInt::get(Context, APInt{256, uint64_t(-1), true}); in TEST()
308 LLVMContext Context; in TEST() local
309 std::unique_ptr<Module> M(new Module("MyModule", Context)); in TEST()
311 Type *Int32Ty = Type::getInt32Ty(Context); in TEST()
328 LLVMContext Context; in TEST() local
329 std::unique_ptr<Module> M(new Module("MyModule", Context)); in TEST()
331 Type *IntTy = Type::getInt8Ty(Context); in TEST()
353 LLVMContext Context; in TEST() local
354 std::unique_ptr<Module> M(new Module("MyModule", Context)); in TEST()
356 Type *IntTy = Type::getInt8Ty(Context); in TEST()
376 LLVMContext Context; in TEST() local
377 std::unique_ptr<Module> M(new Module("MyModule", Context)); in TEST()
379 Type *IntTy = Type::getInt32Ty(Context); in TEST()
401 LLVMContext Context; in TEST() local
404 parseAssemblyString("@g = global i32 42", Error, Context); in TEST()
406 Type *I16Ty = Type::getInt16Ty(Context); in TEST()
422 LLVMContext Context; in TEST() local
424 for (Type *T : {Type::getInt8Ty(Context), Type::getInt16Ty(Context), in TEST()
425 Type::getInt32Ty(Context), Type::getInt64Ty(Context)}) { in TEST()
436 for (Type *T : {Type::getHalfTy(Context), Type::getBFloatTy(Context), in TEST()
437 Type::getFloatTy(Context), Type::getDoubleTy(Context)}) { in TEST()
450 LLVMContext Context; in TEST() local
452 for (Type *T : {Type::getInt8Ty(Context), Type::getInt16Ty(Context), in TEST()
453 Type::getInt32Ty(Context), Type::getInt64Ty(Context)}) { in TEST()
463 for (Type *T : {Type::getHalfTy(Context), Type::getBFloatTy(Context), in TEST()
464 Type::getFloatTy(Context), Type::getDoubleTy(Context)}) { in TEST()
476 LLVMContext Context; in bitcastToGEPHelper() local
477 Context.setOpaquePointers(useOpaquePointers); in bitcastToGEPHelper()
478 std::unique_ptr<Module> M(new Module("MyModule", Context)); in bitcastToGEPHelper()
480 auto *i32 = Type::getInt32Ty(Context); in bitcastToGEPHelper()
481 auto *U = StructType::create(Context, "Unsized"); in bitcastToGEPHelper()
489 if (Context.supportsTypedPointers()) { in bitcastToGEPHelper()
502 bool foldFuncPtrAndConstToNull(LLVMContext &Context, Module *TheModule, in foldFuncPtrAndConstToNull() argument
505 Type *VoidType(Type::getVoidTy(Context)); in foldFuncPtrAndConstToNull()
513 IntegerType *ConstantIntType(Type::getInt32Ty(Context)); in foldFuncPtrAndConstToNull()
531 LLVMContext Context; in TEST() local
532 Module TheModule("TestModule", Context); in TEST()
538 ASSERT_TRUE(foldFuncPtrAndConstToNull(Context, &TheModule, 2)); in TEST()
542 LLVMContext Context; in TEST() local
543 Module TheModule("TestModule", Context); in TEST()
544 ASSERT_FALSE(foldFuncPtrAndConstToNull(Context, &TheModule, 4)); in TEST()
548 LLVMContext Context; in TEST() local
549 Module TheModule("TestModule", Context); in TEST()
555 ASSERT_TRUE(foldFuncPtrAndConstToNull(Context, &TheModule, AndValue)); in TEST()
561 LLVMContext Context; in TEST() local
562 Module TheModule("TestModule", Context); in TEST()
567 ASSERT_FALSE(foldFuncPtrAndConstToNull(Context, &TheModule, 2)); in TEST()
572 LLVMContext Context; in TEST() local
573 Module TheModule("TestModule", Context); in TEST()
575 ASSERT_TRUE(foldFuncPtrAndConstToNull(Context, &TheModule, 2, Align(4))); in TEST()
579 LLVMContext Context; in TEST() local
580 Module TheModule("TestModule", Context); in TEST()
582 ASSERT_FALSE(foldFuncPtrAndConstToNull(Context, &TheModule, 2, Align(4))); in TEST()
586 LLVMContext Context; in TEST() local
589 ASSERT_FALSE(foldFuncPtrAndConstToNull(Context, nullptr, 2, Align(4))); in TEST()
593 LLVMContext Context; in TEST() local
595 IntegerType *IntType(Type::getInt32Ty(Context)); in TEST()
614 LLVMContext Context; in TEST() local
616 Type *Int32Ty = Type::getInt32Ty(Context); in TEST()
652 LLVMContext Context; in TEST() local
654 Type *Int32Ty = Type::getInt32Ty(Context); in TEST()
670 Type *FltTy = Type::getFloatTy(Context); in TEST()
686 PointerType *PtrTy = Type::getInt8PtrTy(Context); in TEST()
704 LLVMContext Context; in TEST() local
706 Type *Int32Ty = Type::getInt32Ty(Context); in TEST()
747 LLVMContext Context; in TEST() local
749 Type *FloatTy = Type::getFloatTy(Context); in TEST()
750 Type *Int32Ty = Type::getInt32Ty(Context); in TEST()
751 Type *Int8Ty = Type::getInt8Ty(Context); in TEST()
776 LLVMContext Context; in TEST() local
777 Module M("MyModule", Context); in TEST()
783 Type *Ty = Type::getInt8Ty(Context); in TEST()