[PATCH] D152098: [MC] Add MCRegisterInfo::regunits for iteration over register units
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 5 06:27:15 PDT 2023
foad added inline comments.
================
Comment at: llvm/include/llvm/MC/MCRegister.h:23-29
+/// Register units are used to model interference and register pressure.
+/// Every register is assigned one or more register units such that two
+/// registers overlap if and only if they have a register unit in common.
+///
+/// Normally, one register unit is created per leaf register. Non-leaf
+/// registers inherit the units of their sub-registers.
+using MCRegUnit = unsigned;
----------------
Do you need to touch `MCRegister.h`? There is already an introductory comment like this near the definition of `MCRegUnitIterator` in `MCRegisterInfo.h`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152098/new/
https://reviews.llvm.org/D152098
More information about the llvm-commits
mailing list