CodeGen: Refactor regallocator command line and target selection
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 22 Feb 2019 18:15:39 +0000 (13:15 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 7 Jan 2021 18:13:25 +0000 (13:13 -0500)
commitc9122ddef5213fbdd2d82c473a74e1742010f62f
treec5557f198c4c773422e8a9285a872f1214d0b688
parentcf5415c727dda0ea4b27ee16347d170f118b037b
CodeGen: Refactor regallocator command line and target selection

Make the sequence of passes to select and rewrite instructions to
physical registers be a target callback. This is to prepare to allow
targets to split register allocation into multiple phases.
llvm/include/llvm/CodeGen/TargetPassConfig.h
llvm/lib/CodeGen/TargetPassConfig.cpp
llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp