[PATCH] D139616: [TableGen] Emit table mapping physical registers to base classes

Carl Ritson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 8 02:55:26 PST 2022


critson created this revision.
critson added reviewers: arsenm, foad, MaskRay, nhaehnle.
Herald added a subscriber: StephenFan.
Herald added a project: All.
critson requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Allow targets to define a mapping from registers to register
classes such that each register has exactly one base class.
As registers may be in multiple register classes the base class
is determined by the container class with the lowest BaseClassOrder.

Only register classes with BaseClassOrder set are considered
when determining the base classes.  By default BaseClassOrder is
unset in RegisterClass so no code is generated unless a target
explicit defines one or more base register classes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139616

Files:
  llvm/include/llvm/CodeGen/TargetRegisterInfo.h
  llvm/include/llvm/Target/Target.td
  llvm/utils/TableGen/CodeGenRegisters.h
  llvm/utils/TableGen/RegisterInfoEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139616.481222.patch
Type: text/x-patch
Size: 5464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221208/d62ae3f6/attachment.bin>


More information about the llvm-commits mailing list