[PATCH] D126771: [fastalloc] Support allocate specific register class in fastalloc.

LuoYuanke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 1 04:46:13 PDT 2022


LuoYuanke created this revision.
Herald added subscribers: jsji, pengfei, hiraditya, qcolombet, MatzeB.
Herald added a project: All.
LuoYuanke requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The base RA support infrastructure that only allow a specific register
class be allocated in RA pss. Since greedy RA, basic RA derived from
base RA, they all allow allocating specific register class. Fast RA
doesn't support allocating register for specific register class. This
patch is to enable ShouldAllocateClass in fast RA, so that it can
support allocating register for specific register class. AMX register
allocation require such feature, so this patch demo the AMX register
allocation as an example.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126771

Files:
  llvm/lib/CodeGen/RegAllocFast.cpp
  llvm/lib/Target/X86/X86RegisterInfo.cpp
  llvm/lib/Target/X86/X86RegisterInfo.h
  llvm/lib/Target/X86/X86TargetMachine.cpp
  llvm/test/CodeGen/X86/O0-pipeline.ll
  llvm/test/DebugInfo/MIR/InstrRef/survives-livedebugvars.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126771.433356.patch
Type: text/x-patch
Size: 9268 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220601/0e20cd14/attachment.bin>


More information about the llvm-commits mailing list