[MC] Move the instruction latency computation from TargetSchedModel to MCSchedModel.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Tue, 13 Mar 2018 15:22:13 +0000 (15:22 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Tue, 13 Mar 2018 15:22:13 +0000 (15:22 +0000)
commit30c1ba4834a9666ef5536a35c445cd8e91fcd0f5
tree275508c1c5ca028ca1addf748b2d9b296745bb48
parent8150810556479b04e00578c9d7d4c30814898694
[MC] Move the instruction latency computation from TargetSchedModel to MCSchedModel.

The goal is to make the latency information accessible through the MCSchedModel
interface. This is particularly important for tools like llvm-mca that only have
access to the MCSchedModel API.

This partially fixes PR36676.
No functional change intended.

Differential Revision: https://reviews.llvm.org/D44383

llvm-svn: 327406
llvm/include/llvm/MC/MCSchedule.h
llvm/lib/CodeGen/TargetSchedule.cpp
llvm/lib/MC/MCSchedule.cpp