Lines Matching refs:F1
43 std::unique_ptr<Function> F1(
44 Function::Create(FTy, GlobalValue::ExternalLinkage, "F1"));
46 Function::Create(FTy, GlobalValue::ExternalLinkage, "F1"));
47 EXPECT_TRUE(F1->hasLazyArguments());
54 F1->stealArgumentListFrom(*F2);
55 EXPECT_TRUE(F1->hasLazyArguments());
58 // Save arguments from F1 for later assertions. F1 won't have lazy arguments
61 for (Argument &A : F1->args())
64 EXPECT_FALSE(F1->hasLazyArguments());
66 // Steal arguments from F1 to F2. F1's arguments should be lazy again.
69 F2->stealArgumentListFrom(*F1);
70 EXPECT_TRUE(F1->hasLazyArguments());
79 // Check that arguments in F1 don't have pointer equality with the saved ones.
80 // This also instantiates F1's arguments.
82 for (Argument &A : F1->args()) {
87 EXPECT_FALSE(F1->hasLazyArguments());
93 F1->stealArgumentListFrom(*F2);
94 EXPECT_FALSE(F1->hasLazyArguments());
97 for (Argument &A : F1->args()) {
107 F1->stealArgumentListFrom(*F2);
108 EXPECT_TRUE(F1->hasLazyArguments());