Lines Matching refs:OldFunc
463 OldFunc = Function::Create(FuncType, GlobalValue::PrivateLinkage, "f", M); in CreateOldFunc()
484 OldFunc->setSubprogram(Subprogram); in CreateOldFunctionBodyAndDI()
487 BasicBlock* Entry = BasicBlock::Create(C, "", OldFunc); in CreateOldFunctionBodyAndDI()
537 NewFunc = CloneFunction(OldFunc, VMap, nullptr); in CreateNewFunc()
546 Function* OldFunc; member in __anon375186cb0111::CloneFunc
554 EXPECT_NE(OldFunc, NewFunc); in TEST_F()
562 EXPECT_NE(NewFunc->getSubprogram(), OldFunc->getSubprogram()); in TEST_F()
570 inst_iterator OldIter = inst_begin(OldFunc); in TEST_F()
571 inst_iterator OldEnd = inst_end(OldFunc); in TEST_F()
591 EXPECT_EQ(OldFunc->getSubprogram(), OldSubprogram); in TEST_F()
607 inst_iterator OldIter = inst_begin(OldFunc); in TEST_F()
608 inst_iterator OldEnd = inst_end(OldFunc); in TEST_F()
619 EXPECT_EQ(OldFunc, cast<AllocaInst>(OldIntrin->getAddress())-> in TEST_F()
631 EXPECT_EQ(OldFunc->getSubprogram(), in TEST_F()
643 EXPECT_EQ(OldFunc->getSubprogram(), in TEST_F()
756 auto *OldFunc = ImplModule->getFunction("test"); in TEST() local
757 EXPECT_TRUE(OldFunc != nullptr); in TEST()
764 CloneFunctionInto(NewFunc, OldFunc, VMap, true, Returns, "", &CCI); in TEST()