LLVM 23.0.0git
MCSchedule.cpp File Reference
#include "llvm/MC/MCSchedule.h"
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/APSInt.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstrDesc.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/Support/CommandLine.h"
#include <optional>
#include <type_traits>

Go to the source code of this file.

Variables

static constexpr float DefaultReservationStationScaleFactor = 1.0f
static cl::opt< float > ReservationStationScaleFactor ("sched-model-reservation-station-scale-factor", cl::Hidden, cl::init(DefaultReservationStationScaleFactor), cl::cat(MCScheduleOptions), cl::desc("Scale the buffer size of all reservation stations by a positive " "factor. Buffer sizes of -1/0/1 (unlimited/unbuffered/in-order) " "are preserved. Likewise, if the scaled result is <= 1, the " "original size is kept. Computed sizes " "are truncated towards zero."))

Variable Documentation

◆ DefaultReservationStationScaleFactor

float DefaultReservationStationScaleFactor = 1.0f
staticconstexpr

Definition at line 28 of file MCSchedule.cpp.

Referenced by llvm::MCSchedModel::getResourceBufferSize().

◆ ReservationStationScaleFactor

cl::opt< float > ReservationStationScaleFactor("sched-model-reservation-station-scale-factor", cl::Hidden, cl::init(DefaultReservationStationScaleFactor), cl::cat(MCScheduleOptions), cl::desc("Scale the buffer size of all reservation stations by a positive " "factor. Buffer sizes of -1/0/1 (unlimited/unbuffered/in-order) " "are preserved. Likewise, if the scaled result is <= 1, the " "original size is kept. Computed sizes " "are truncated towards zero.")) ( "sched-model-reservation-station-scale-factor" ,
cl::Hidden ,
cl::init(DefaultReservationStationScaleFactor) ,
cl::cat(MCScheduleOptions) ,
cl::desc("Scale the buffer size of all reservation stations by a positive " "factor. Buffer sizes of -1/0/1 (unlimited/unbuffered/in-order) " "are preserved. Likewise, if the scaled result is <= 1, the " "original size is kept. Computed sizes " "are truncated towards zero.")  )
static