OSDN Git Service

[llvm-mca] Use a WriteRef to describe register writes in class RegisterFile.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Thu, 28 Jun 2018 15:50:26 +0000 (15:50 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Thu, 28 Jun 2018 15:50:26 +0000 (15:50 +0000)
commita2237ff0e5a7dc57de894fb6ac32a1313f8d68ec
tree571ece426b7e9426b28a769c3403787075b5ad8d
parent8746f255cdaf65244cd85c5b2676c355a885d3d8
[llvm-mca] Use a WriteRef to describe register writes in class RegisterFile.

This patch introduces a new class named WriteRef. A WriteRef is used by the
RegisterFile to keep track of register definitions. Internally it wraps a
WriteState, as well as the source index of the defining instruction.

This patch allows the tool to propagate additional information to support future
analysis on data dependencies.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335867 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-mca/DispatchStage.cpp
tools/llvm-mca/DispatchStage.h
tools/llvm-mca/Instruction.cpp
tools/llvm-mca/Instruction.h
tools/llvm-mca/RegisterFile.cpp
tools/llvm-mca/RegisterFile.h