[PATCH] D74509: [TBLGEN] Allow to override RC weight

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 13 16:57:54 PST 2020


rampitec marked an inline comment as done.
rampitec added inline comments.


================
Comment at: llvm/include/llvm/Target/Target.td:279
 
+  // Weight override for register pressure calculation.
+  int Weight = ?;
----------------
arsenm wrote:
> Needs more explanation. What does the weight mean?
That's what TargetRegisterClass::getRegClassWeight() will return. It doesn't have much more info though: "Get the weight in units of pressure for this register class."

https://llvm.org/doxygen/classllvm_1_1TargetRegisterInfo.html#a55dc7cf067f4fdc07a902ca0f3e3a87d

Normally tablegen will use weight equal to a number of regunits per register, well "normalized". This value is used to measure register pressure.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74509/new/

https://reviews.llvm.org/D74509





More information about the llvm-commits mailing list