[llvm-exegesis] Do not silently fail on unknown instruction encoding formats.
authorClement Courbet <courbet@google.com>
Wed, 28 Oct 2020 08:26:29 +0000 (09:26 +0100)
committerClement Courbet <courbet@google.com>
Wed, 28 Oct 2020 09:06:00 +0000 (10:06 +0100)
commit7e2ffe7a6358820c0f1511f3405d3fa8db4c46f4
tree1132677261a77faf33e7a10008ddc4c2df36d41d
parent5ef84688fba28b9f0f69ddc9a5beb75b10696798
[llvm-exegesis] Do not silently fail on unknown instruction encoding formats.

The addition of TILELOADD instructions with a new encoding format
triggered a hard abort instead of proper error reporting due to the use
of `llvm_unreachable` for actually reachable code.
Properly report an error when the encoding format is unknown.

Differential Revision: https://reviews.llvm.org/D90289
llvm/tools/llvm-exegesis/lib/X86/Target.cpp