[llvm-mca] Check for inconsistencies when constructing instruction descriptors.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Thu, 4 Oct 2018 10:36:49 +0000 (10:36 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Thu, 4 Oct 2018 10:36:49 +0000 (10:36 +0000)
commitaacd5e187b9111d2ee206f4e7b942e7243b6dbc4
tree17314c6a1ce8b6dc3277afa5435ba714f6951f22
parent991b0d24fffc53e49b87978d0b2f2143c1d86759
[llvm-mca] Check for inconsistencies when constructing instruction descriptors.

This should help with catching inconsistent definitions of instructions with
zero opcodes, which also declare to consume scheduler/pipeline resources.

llvm-svn: 343766
llvm/tools/llvm-mca/include/HardwareUnits/RetireControlUnit.h
llvm/tools/llvm-mca/include/InstrBuilder.h
llvm/tools/llvm-mca/lib/HardwareUnits/RetireControlUnit.cpp
llvm/tools/llvm-mca/lib/InstrBuilder.cpp