diff options
Diffstat (limited to 'llvm/unittests')
-rw-r--r-- | llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp | 18 | ||||
-rw-r--r-- | llvm/unittests/FuzzMutate/RandomIRBuilderTest.cpp | 2 | ||||
-rw-r--r-- | llvm/unittests/IR/InstructionsTest.cpp | 4 | ||||
-rw-r--r-- | llvm/unittests/Transforms/Utils/LocalTest.cpp | 14 |
4 files changed, 19 insertions, 19 deletions
diff --git a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp index d019ade..55dc8a7 100644 --- a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp +++ b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp @@ -4655,7 +4655,7 @@ TEST_F(OpenMPIRBuilderTest, CreateTeamsWithThreadLimit) { // Verifying that the next instruction to execute is kmpc_fork_teams BranchInst *BrInst = - dyn_cast<BranchInst>(PushNumTeamsCallInst->getNextNonDebugInstruction()); + dyn_cast<BranchInst>(PushNumTeamsCallInst->getNextNode()); ASSERT_NE(BrInst, nullptr); ASSERT_EQ(BrInst->getNumSuccessors(), 1U); BasicBlock::iterator NextInstruction = @@ -4712,7 +4712,7 @@ TEST_F(OpenMPIRBuilderTest, CreateTeamsWithNumTeamsUpper) { // Verifying that the next instruction to execute is kmpc_fork_teams BranchInst *BrInst = - dyn_cast<BranchInst>(PushNumTeamsCallInst->getNextNonDebugInstruction()); + dyn_cast<BranchInst>(PushNumTeamsCallInst->getNextNode()); ASSERT_NE(BrInst, nullptr); ASSERT_EQ(BrInst->getNumSuccessors(), 1U); BasicBlock::iterator NextInstruction = @@ -4772,7 +4772,7 @@ TEST_F(OpenMPIRBuilderTest, CreateTeamsWithNumTeamsBoth) { // Verifying that the next instruction to execute is kmpc_fork_teams BranchInst *BrInst = - dyn_cast<BranchInst>(PushNumTeamsCallInst->getNextNonDebugInstruction()); + dyn_cast<BranchInst>(PushNumTeamsCallInst->getNextNode()); ASSERT_NE(BrInst, nullptr); ASSERT_EQ(BrInst->getNumSuccessors(), 1U); BasicBlock::iterator NextInstruction = @@ -4838,7 +4838,7 @@ TEST_F(OpenMPIRBuilderTest, CreateTeamsWithNumTeamsAndThreadLimit) { // Verifying that the next instruction to execute is kmpc_fork_teams BranchInst *BrInst = - dyn_cast<BranchInst>(PushNumTeamsCallInst->getNextNonDebugInstruction()); + dyn_cast<BranchInst>(PushNumTeamsCallInst->getNextNode()); ASSERT_NE(BrInst, nullptr); ASSERT_EQ(BrInst->getNumSuccessors(), 1U); BasicBlock::iterator NextInstruction = @@ -7349,8 +7349,8 @@ TEST_F(OpenMPIRBuilderTest, CreateTaskIfCondition) { EXPECT_EQ(TaskBeginIfCall->getParent(), IfConditionBranchInst->getSuccessor(1)); - EXPECT_EQ(TaskBeginIfCall->getNextNonDebugInstruction(), OulinedFnCall); - EXPECT_EQ(OulinedFnCall->getNextNonDebugInstruction(), TaskCompleteCall); + EXPECT_EQ(TaskBeginIfCall->getNextNode(), OulinedFnCall); + EXPECT_EQ(OulinedFnCall->getNextNode(), TaskCompleteCall); } TEST_F(OpenMPIRBuilderTest, CreateTaskgroup) { @@ -7434,12 +7434,12 @@ TEST_F(OpenMPIRBuilderTest, CreateTaskgroup) { OMPRTL___kmpc_global_thread_num)); // Checking the general structure of the IR generated is same as expected. - Instruction *GeneratedStoreInst = TaskgroupCall->getNextNonDebugInstruction(); + Instruction *GeneratedStoreInst = TaskgroupCall->getNextNode(); EXPECT_EQ(GeneratedStoreInst, InternalStoreInst); Instruction *GeneratedLoad32 = - GeneratedStoreInst->getNextNonDebugInstruction(); + GeneratedStoreInst->getNextNode(); EXPECT_EQ(GeneratedLoad32, InternalLoad32); - Instruction *GeneratedLoad128 = GeneratedLoad32->getNextNonDebugInstruction(); + Instruction *GeneratedLoad128 = GeneratedLoad32->getNextNode(); EXPECT_EQ(GeneratedLoad128, InternalLoad128); // Checking the ordering because of the if statements and that diff --git a/llvm/unittests/FuzzMutate/RandomIRBuilderTest.cpp b/llvm/unittests/FuzzMutate/RandomIRBuilderTest.cpp index b7f5234..9bef774 100644 --- a/llvm/unittests/FuzzMutate/RandomIRBuilderTest.cpp +++ b/llvm/unittests/FuzzMutate/RandomIRBuilderTest.cpp @@ -520,7 +520,7 @@ TEST(RandomIRBuilderTest, sinkToIntrinsic) { ASSERT_TRUE(Modified); Modified = false; - I = I->getNextNonDebugInstruction(); + I = I->getNextNode(); for (int i = 0; i < 20; i++) { Value *OldOperand = I->getOperand(0); Value *Src = F.getArg(5); diff --git a/llvm/unittests/IR/InstructionsTest.cpp b/llvm/unittests/IR/InstructionsTest.cpp index 126db4d..fd8838e 100644 --- a/llvm/unittests/IR/InstructionsTest.cpp +++ b/llvm/unittests/IR/InstructionsTest.cpp @@ -1482,11 +1482,11 @@ TEST(InstructionsTest, SkipDebug) { // The first non-debug instruction is the terminator. auto *Term = BB.getTerminator(); - EXPECT_EQ(Term, BB.begin()->getNextNonDebugInstruction()); + EXPECT_EQ(Term, BB.begin()->getNextNode()); EXPECT_EQ(Term->getIterator(), skipDebugIntrinsics(BB.begin())); // After the terminator, there are no non-debug instructions. - EXPECT_EQ(nullptr, Term->getNextNonDebugInstruction()); + EXPECT_EQ(nullptr, Term->getNextNode()); } TEST(InstructionsTest, PhiMightNotBeFPMathOperator) { diff --git a/llvm/unittests/Transforms/Utils/LocalTest.cpp b/llvm/unittests/Transforms/Utils/LocalTest.cpp index 3c7a892..b922216e 100644 --- a/llvm/unittests/Transforms/Utils/LocalTest.cpp +++ b/llvm/unittests/Transforms/Utils/LocalTest.cpp @@ -823,13 +823,13 @@ TEST(Local, ReplaceAllDbgUsesWith) { BasicBlock &BB = F.front(); Instruction &A = BB.front(); - Instruction &B = *A.getNextNonDebugInstruction(); - Instruction &C = *B.getNextNonDebugInstruction(); - Instruction &D = *C.getNextNonDebugInstruction(); - Instruction &E = *D.getNextNonDebugInstruction(); - Instruction &F_ = *E.getNextNonDebugInstruction(); - Instruction &Barrier = *F_.getNextNonDebugInstruction(); - Instruction &G = *Barrier.getNextNonDebugInstruction(); + Instruction &B = *A.getNextNode(); + Instruction &C = *B.getNextNode(); + Instruction &D = *C.getNextNode(); + Instruction &E = *D.getNextNode(); + Instruction &F_ = *E.getNextNode(); + Instruction &Barrier = *F_.getNextNode(); + Instruction &G = *Barrier.getNextNode(); // Simulate i32 <-> i64* conversion. Expect no updates: the datalayout says // pointers are 64 bits, so the conversion would be lossy. |