Lines Matching refs:Clone
510 std::unique_ptr<CallInst> Clone(cast<CallInst>(Call->clone())); in TEST() local
511 EXPECT_EQ(Call->getTailCallKind(), Clone->getTailCallKind()); in TEST()
520 std::unique_ptr<CallInst> Clone(cast<CallInst>(Call->clone())); in TEST() local
521 EXPECT_TRUE(Clone->onlyReadsMemory()); in TEST()
541 std::unique_ptr<CallInst> Clone(CallInst::Create(Call.get(), NewBundle)); in TEST() local
542 EXPECT_EQ(Call->getNumArgOperands(), Clone->getNumArgOperands()); in TEST()
543 EXPECT_EQ(Call->getArgOperand(0), Clone->getArgOperand(0)); in TEST()
544 EXPECT_EQ(Call->getCallingConv(), Clone->getCallingConv()); in TEST()
545 EXPECT_EQ(Call->getTailCallKind(), Clone->getTailCallKind()); in TEST()
546 EXPECT_TRUE(Clone->hasFnAttr(Attribute::AttrKind::Cold)); in TEST()
547 EXPECT_EQ(Call->getDebugLoc(), Clone->getDebugLoc()); in TEST()
548 EXPECT_EQ(Clone->getNumOperandBundles(), 1U); in TEST()
549 EXPECT_TRUE(Clone->getOperandBundle("after").hasValue()); in TEST()
569 std::unique_ptr<InvokeInst> Clone( in TEST() local
571 EXPECT_EQ(Invoke->getNormalDest(), Clone->getNormalDest()); in TEST()
572 EXPECT_EQ(Invoke->getUnwindDest(), Clone->getUnwindDest()); in TEST()
573 EXPECT_EQ(Invoke->getNumArgOperands(), Clone->getNumArgOperands()); in TEST()
574 EXPECT_EQ(Invoke->getArgOperand(0), Clone->getArgOperand(0)); in TEST()
575 EXPECT_EQ(Invoke->getCallingConv(), Clone->getCallingConv()); in TEST()
576 EXPECT_TRUE(Clone->hasFnAttr(Attribute::AttrKind::Cold)); in TEST()
577 EXPECT_EQ(Invoke->getDebugLoc(), Clone->getDebugLoc()); in TEST()
578 EXPECT_EQ(Clone->getNumOperandBundles(), 1U); in TEST()
579 EXPECT_TRUE(Clone->getOperandBundle("after").hasValue()); in TEST()