Lines Matching refs:OutlinedFn
404 Function *OutlinedFn = PrivAI->getFunction(); in TEST_F() local
405 EXPECT_NE(F, OutlinedFn); in TEST_F()
407 EXPECT_TRUE(OutlinedFn->hasFnAttribute(Attribute::NoUnwind)); in TEST_F()
408 EXPECT_TRUE(OutlinedFn->hasFnAttribute(Attribute::NoRecurse)); in TEST_F()
409 EXPECT_TRUE(OutlinedFn->hasParamAttribute(0, Attribute::NoAlias)); in TEST_F()
410 EXPECT_TRUE(OutlinedFn->hasParamAttribute(1, Attribute::NoAlias)); in TEST_F()
412 EXPECT_TRUE(OutlinedFn->hasInternalLinkage()); in TEST_F()
413 EXPECT_EQ(OutlinedFn->arg_size(), 3U); in TEST_F()
415 EXPECT_EQ(&OutlinedFn->getEntryBlock(), PrivAI->getParent()); in TEST_F()
416 EXPECT_EQ(OutlinedFn->getNumUses(), 1U); in TEST_F()
417 User *Usr = OutlinedFn->user_back(); in TEST_F()
497 for (Function &OutlinedFn : *M) { in TEST_F()
498 if (F == &OutlinedFn || OutlinedFn.isDeclaration()) in TEST_F()
501 EXPECT_TRUE(OutlinedFn.hasFnAttribute(Attribute::NoUnwind)); in TEST_F()
502 EXPECT_TRUE(OutlinedFn.hasFnAttribute(Attribute::NoRecurse)); in TEST_F()
503 EXPECT_TRUE(OutlinedFn.hasParamAttribute(0, Attribute::NoAlias)); in TEST_F()
504 EXPECT_TRUE(OutlinedFn.hasParamAttribute(1, Attribute::NoAlias)); in TEST_F()
506 EXPECT_TRUE(OutlinedFn.hasInternalLinkage()); in TEST_F()
507 EXPECT_EQ(OutlinedFn.arg_size(), 2U); in TEST_F()
509 EXPECT_EQ(OutlinedFn.getNumUses(), 1U); in TEST_F()
510 User *Usr = OutlinedFn.user_back(); in TEST_F()
600 for (Function &OutlinedFn : *M) { in TEST_F()
601 if (F == &OutlinedFn || OutlinedFn.isDeclaration()) in TEST_F()
604 EXPECT_TRUE(OutlinedFn.hasFnAttribute(Attribute::NoUnwind)); in TEST_F()
605 EXPECT_TRUE(OutlinedFn.hasFnAttribute(Attribute::NoRecurse)); in TEST_F()
606 EXPECT_TRUE(OutlinedFn.hasParamAttribute(0, Attribute::NoAlias)); in TEST_F()
607 EXPECT_TRUE(OutlinedFn.hasParamAttribute(1, Attribute::NoAlias)); in TEST_F()
609 EXPECT_TRUE(OutlinedFn.hasInternalLinkage()); in TEST_F()
610 EXPECT_EQ(OutlinedFn.arg_size(), 2U); in TEST_F()
613 for (Instruction &I : instructions(OutlinedFn)) in TEST_F()
617 EXPECT_EQ(OutlinedFn.getNumUses(), 1U); in TEST_F()
618 User *Usr = OutlinedFn.user_back(); in TEST_F()
713 Function *OutlinedFn = PrivAI->getFunction(); in TEST_F() local
714 EXPECT_NE(F, OutlinedFn); in TEST_F()
717 EXPECT_TRUE(OutlinedFn->hasInternalLinkage()); in TEST_F()
718 EXPECT_EQ(OutlinedFn->arg_size(), 3U); in TEST_F()
720 EXPECT_EQ(&OutlinedFn->getEntryBlock(), PrivAI->getParent()); in TEST_F()
721 ASSERT_EQ(OutlinedFn->getNumUses(), 2U); in TEST_F()
725 for (User *Usr : OutlinedFn->users()) { in TEST_F()
745 EXPECT_EQ(DirectCI->getCalledFunction(), OutlinedFn); in TEST_F()
924 Function *OutlinedFn = Internal->getFunction(); in TEST_F() local
926 Type *Arg2Type = OutlinedFn->getArg(2)->getType(); in TEST_F()
933 Type *Arg3Type = OutlinedFn->getArg(3)->getType(); in TEST_F()
937 Type *Arg4Type = OutlinedFn->getArg(4)->getType(); in TEST_F()
940 Type *Arg5Type = OutlinedFn->getArg(5)->getType(); in TEST_F()