[llvm-mca] report an error if the assembly sequence contains an unsupported instruction.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Mon, 9 Jul 2018 12:30:55 +0000 (12:30 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Mon, 9 Jul 2018 12:30:55 +0000 (12:30 +0000)
commit88347796440212e7acd97b4e675c568ce5cf1d53
tree6e211e16fbb249acd31f865ff7fc40d5663246ab
parent7e4234fc9743056ca87defd2c7d050826ceba4e0
[llvm-mca] report an error if the assembly sequence contains an unsupported instruction.

This is a short-term fix for PR38093.
For now, we llvm::report_fatal_error if the instruction builder finds an
unsupported instruction in the instruction stream.

We need to revisit this fix once we start addressing PR38101.
Essentially, we need a better framework for error handling.

llvm-svn: 336543
llvm/test/tools/llvm-mca/X86/BtVer2/unsupported-instruction.s [new file with mode: 0644]
llvm/tools/llvm-mca/InstrBuilder.cpp
llvm/tools/llvm-mca/InstrBuilder.h
llvm/tools/llvm-mca/llvm-mca.cpp