Lines Matching refs:TheModule
478 bool foldFuncPtrAndConstToNull(LLVMContext &Context, Module *TheModule, in foldFuncPtrAndConstToNull() argument
484 FuncType, GlobalValue::ExternalLinkage, "", TheModule)); in foldFuncPtrAndConstToNull()
499 if (!TheModule) { in foldFuncPtrAndConstToNull()
509 Module TheModule("TestModule", Context); in TEST() local
515 ASSERT_TRUE(foldFuncPtrAndConstToNull(Context, &TheModule, 2)); in TEST()
520 Module TheModule("TestModule", Context); in TEST() local
521 ASSERT_FALSE(foldFuncPtrAndConstToNull(Context, &TheModule, 4)); in TEST()
526 Module TheModule("TestModule", Context); in TEST() local
531 TheModule.setDataLayout(AlignmentString); in TEST()
532 ASSERT_TRUE(foldFuncPtrAndConstToNull(Context, &TheModule, AndValue)); in TEST()
539 Module TheModule("TestModule", Context); in TEST() local
543 TheModule.setDataLayout(AlignmentString); in TEST()
544 ASSERT_FALSE(foldFuncPtrAndConstToNull(Context, &TheModule, 2)); in TEST()
550 Module TheModule("TestModule", Context); in TEST() local
551 TheModule.setDataLayout("Fn8"); in TEST()
552 ASSERT_TRUE(foldFuncPtrAndConstToNull(Context, &TheModule, 2, Align(4))); in TEST()
557 Module TheModule("TestModule", Context); in TEST() local
558 TheModule.setDataLayout("Fi8"); in TEST()
559 ASSERT_FALSE(foldFuncPtrAndConstToNull(Context, &TheModule, 2, Align(4))); in TEST()