]> granicus.if.org Git - llvm/commit
[MCA] Moved the logic that updates register dependencies from DispatchStage to Regist...
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Tue, 5 Feb 2019 14:11:41 +0000 (14:11 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Tue, 5 Feb 2019 14:11:41 +0000 (14:11 +0000)
commit8bd15f83d03b1c5f8d859736d054c0276fdf9e31
treecb92f4a51ea8a4b4c986bc87352c0ecfc290d77e
parentda8c61718359d084e98c78094e00b70c65dd12b7
[MCA] Moved the logic that updates register dependencies from DispatchStage to RegisterFile. NFC

DispatchStage should always delegate to an object of class RegisterFile the task
of updating data dependencies.  ReadState and WriteState objects should not be
modified directly by DispatchStage.
This patch also renames stage IS_AVAILABLE to IS_DISPATCHED.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353170 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MCA/HardwareUnits/RegisterFile.h
include/llvm/MCA/HardwareUnits/Scheduler.h
include/llvm/MCA/Instruction.h
include/llvm/MCA/Stages/DispatchStage.h
lib/MCA/HardwareUnits/RegisterFile.cpp
lib/MCA/Instruction.cpp
lib/MCA/Stages/DispatchStage.cpp