LLVM 20.0.0git
|
Specify the cost of a register definition in terms of number of physical register allocated at register renaming stage. More...
#include "llvm/MC/MCSchedule.h"
Public Attributes | |
unsigned | RegisterClassID |
unsigned | Cost |
bool | AllowMoveElimination |
Specify the cost of a register definition in terms of number of physical register allocated at register renaming stage.
For example, AMD Jaguar. natively supports 128-bit data types, and operations on 256-bit registers (i.e. YMM registers) are internally split into two COPs (complex operations) and each COP updates a physical register. Basically, on Jaguar, a YMM register write effectively consumes two physical registers. That means, the cost of a YMM write in the BtVer2 model is 2.
Definition at line 154 of file MCSchedule.h.
bool llvm::MCRegisterCostEntry::AllowMoveElimination |
Definition at line 157 of file MCSchedule.h.
unsigned llvm::MCRegisterCostEntry::Cost |
Definition at line 156 of file MCSchedule.h.
unsigned llvm::MCRegisterCostEntry::RegisterClassID |
Definition at line 155 of file MCSchedule.h.