aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp')
-rw-r--r--llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp18
1 files changed, 9 insertions, 9 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