[llvm] CodeGen: Eliminate dynamic relocations in the register superclass tables. (PR #119122)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 8 07:38:11 PST 2024
================
@@ -46,7 +46,7 @@ class TargetRegisterClass {
public:
using iterator = const MCPhysReg *;
using const_iterator = const MCPhysReg *;
- using sc_iterator = const TargetRegisterClass* const *;
+ using sc_iterator = const unsigned *;
----------------
s-barannikov wrote:
Ideally this would be a full-blown class so as to not expose implementation details to users of `getSuperClasses` (which should return `iterator_range`).
See e.g. `MCRegisterInfo::superregs`.
https://github.com/llvm/llvm-project/pull/119122
More information about the llvm-commits
mailing list