Lines Matching defs:BInst
326 Instruction *BInst = &*BeginIt;
327 Instruction *CInst = BInst->getNextNode();
366 CInst->moveBefore(BInst->getIterator());
415 Instruction *BInst = &*BB.begin();
416 Instruction *CInst = BInst->getNextNode();
419 ASSERT_FALSE(BInst->DebugMarker);
424 EXPECT_FALSE(BInst->hasDbgRecords());
428 auto Range1 = BInst->cloneDebugInfoFrom(CInst);
429 EXPECT_EQ(BInst->DebugMarker->StoredDbgRecords.size(), 1u);
430 DbgRecord *DVR2 = &*BInst->DebugMarker->StoredDbgRecords.begin();
436 auto Range2 = BInst->getDbgRecordRange();
441 EXPECT_TRUE(BInst->hasDbgRecords());
446 BInst->dropDbgRecords();
447 EXPECT_FALSE(BInst->hasDbgRecords());
448 EXPECT_EQ(BInst->DebugMarker->StoredDbgRecords.size(), 0u);
542 Instruction *BInst, *Branch, *CInst;
554 BInst = &*First;
559 cast<DbgVariableRecord>(&*BInst->DebugMarker->StoredDbgRecords.begin());
637 EXPECT_EQ(BInst->getParent(), BBExit);
648 EXPECT_TRUE(InstContainsDbgVariableRecord(BInst, DVRConst));
690 EXPECT_EQ(BInst->getParent(), BBExit);
746 EXPECT_EQ(BInst->getParent(), BBExit);
754 EXPECT_TRUE(InstContainsDbgVariableRecord(BInst, DVRA));
756 // DVRConst should be ahead of the moved instructions, ahead of BInst.
757 EXPECT_TRUE(InstContainsDbgVariableRecord(BInst, DVRConst));
760 EXPECT_TRUE(CheckDVROrder(BInst, {DVRConst, DVRA}));
801 EXPECT_EQ(BInst->getParent(), BBExit);
809 EXPECT_TRUE(InstContainsDbgVariableRecord(BInst, DVRA));
856 EXPECT_EQ(BInst->getParent(), BBExit);
866 // DVRConst should be ahead of the moved instructions, BInst.
867 EXPECT_TRUE(InstContainsDbgVariableRecord(BInst, DVRConst));
912 EXPECT_EQ(BInst->getParent(), BBExit);
966 EXPECT_EQ(BInst->getParent(), BBExit);
974 EXPECT_TRUE(InstContainsDbgVariableRecord(BInst, DVRA));
976 // DVRConst should be ahead of the moved instructions, on BInst.
977 EXPECT_TRUE(InstContainsDbgVariableRecord(BInst, DVRConst));
980 EXPECT_TRUE(CheckDVROrder(BInst, {DVRConst, DVRA}));
1020 EXPECT_EQ(BInst->getParent(), BBExit);
1028 EXPECT_TRUE(InstContainsDbgVariableRecord(BInst, DVRA));
1077 EXPECT_EQ(BInst->getParent(), BBEntry);
1131 EXPECT_EQ(BInst->getParent(), BBEntry);
1193 Instruction *BInst = &*Entry.begin();
1194 ASSERT_TRUE(BInst->DebugMarker);
1195 EXPECT_EQ(BInst->DebugMarker->StoredDbgRecords.size(), 1u);
1396 Instruction *BInst = &*Entry.begin();
1397 ASSERT_TRUE(BInst->hasDbgRecords());
1398 EXPECT_EQ(BInst->DebugMarker->StoredDbgRecords.size(), 2u);
1400 for (DbgRecord &DVR : BInst->getDbgRecordRange())
1461 Instruction *BInst = &*Entry.begin();
1462 ASSERT_TRUE(BInst->hasDbgRecords());
1463 EXPECT_EQ(BInst->DebugMarker->StoredDbgRecords.size(), 1u);
1465 for (DbgRecord &DVR : BInst->getDbgRecordRange())