struct MCRegisterCostEntry
Declaration
struct MCRegisterCostEntry { /* full declaration omitted */ };Description
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.
Declared at: llvm/include/llvm/MC/MCSchedule.h:142
Member Variables
- public unsigned int RegisterClassID
- public unsigned int Cost
- public bool AllowMoveElimination