Skip to content

Commit 629a056

Browse files
committed
[NVPTX]: add few llvm_unreachable
1 parent b760feb commit 629a056

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,7 @@ NVPTX::Scope NVPTXDAGToDAGISel::getOperationScope(MemSDNode *N,
957957
// If operation is volatile, then its scope is system.
958958
return N->isVolatile() ? NVPTX::Scope::System : S;
959959
}
960+
llvm_unreachable("unhandled ordering");
960961
}
961962

962963
static bool canLowerToLDG(MemSDNode *N, const NVPTXSubtarget &Subtarget,
@@ -1054,6 +1055,7 @@ static unsigned int getFenceOp(NVPTX::Ordering O, NVPTX::Scope S,
10541055
formatv("Unsupported \"{}\" ordering and \"{}\" scope for fence.",
10551056
OrderingToString(O), ScopeToString(S)));
10561057
}
1058+
llvm_unreachable("unhandled ordering");
10571059
}
10581060

10591061
// Returns Memory Order and Scope of a memory instruction, and

0 commit comments

Comments
 (0)