//===---------------------- RetireControlUnit.h -----------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// /// \file /// /// This file simulates the hardware responsible for retiring instructions. /// //===----------------------------------------------------------------------===// #ifndef LLVM_MCA_HARDWAREUNITS_RETIRECONTROLUNIT_H #define LLVM_MCA_HARDWAREUNITS_RETIRECONTROLUNIT_H #include "llvm/MC/MCSchedule.h" #include "llvm/MCA/HardwareUnits/HardwareUnit.h" #include "llvm/MCA/Instruction.h" #include <vector> namespace llvm { namespace mca { /// This class tracks which instructions are in-flight (i.e., dispatched but not /// retired) in the OoO backend. // /// This class checks on every cycle if/which instructions can be retired. /// Instructions are retired in program order. /// In the event of an instruction being retired, the pipeline that owns /// this RetireControlUnit (RCU) gets notified. /// /// On instruction retired, register updates are all architecturally /// committed, and any physicall registers previously allocated for the /// retired instruction are freed. struct RetireControlUnit : public HardwareUnit { … }; } // namespace mca } // namespace llvm #endif // LLVM_MCA_HARDWAREUNITS_RETIRECONTROLUNIT_H