[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)
commit4bce783ee332553a880135631c5cb3b40e2517dd
tree28e5a18035a1b3de22a3416f55a3860484daaf05
parentcad6336675b50e8065ec57b13c5ccd69834d1f7f
[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.

llvm-svn: 353170
llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h
llvm/include/llvm/MCA/HardwareUnits/Scheduler.h
llvm/include/llvm/MCA/Instruction.h
llvm/include/llvm/MCA/Stages/DispatchStage.h
llvm/lib/MCA/HardwareUnits/RegisterFile.cpp
llvm/lib/MCA/Instruction.cpp
llvm/lib/MCA/Stages/DispatchStage.cpp