Lines Matching defs:TheModule
430 bool foldFuncPtrAndConstToNull(LLVMContext &Context, Module *TheModule,
436 Function::Create(FuncType, GlobalValue::ExternalLinkage, "", TheModule));
450 if (!TheModule) {
460 Module TheModule("TestModule", Context);
466 ASSERT_TRUE(foldFuncPtrAndConstToNull(Context, &TheModule, 2));
471 Module TheModule("TestModule", Context);
472 ASSERT_FALSE(foldFuncPtrAndConstToNull(Context, &TheModule, 4));
477 Module TheModule("TestModule", Context);
482 TheModule.setDataLayout(AlignmentString);
483 ASSERT_TRUE(foldFuncPtrAndConstToNull(Context, &TheModule, AndValue));
490 Module TheModule("TestModule", Context);
494 TheModule.setDataLayout(AlignmentString);
495 ASSERT_FALSE(foldFuncPtrAndConstToNull(Context, &TheModule, 2));
501 Module TheModule("TestModule", Context);
502 TheModule.setDataLayout("Fn8");
503 ASSERT_TRUE(foldFuncPtrAndConstToNull(Context, &TheModule, 2, Align(4)));
508 Module TheModule("TestModule", Context);
509 TheModule.setDataLayout("Fi8");
510 ASSERT_FALSE(foldFuncPtrAndConstToNull(Context, &TheModule, 2, Align(4)));