[CodeGen] Use delegate to notify targets when virtual registers are created
authorChristudasan Devadasan <Christudasan.Devadasan@amd.com>
Fri, 30 Sep 2022 07:50:58 +0000 (13:20 +0530)
committerChristudasan Devadasan <Christudasan.Devadasan@amd.com>
Sat, 17 Dec 2022 06:23:34 +0000 (11:53 +0530)
commit2f23f5c0d53c619101541a348cd817174ac27783
tree813ea4c1291b8c0aed406aaae67172d2ec7aed96
parent29247824f57e5d075dbdc320cf65e7f27fd86401
[CodeGen] Use delegate to notify targets when virtual registers are created

This will help targets to customize certain codegen decisions based on
the virtual registers involved in special operations. This patch also
extends the existing delegate in MRI to start support multicast.

Reviewed By: qcolombet

Differential Revision: https://reviews.llvm.org/D134950
llvm/include/llvm/CodeGen/LiveRangeEdit.h
llvm/include/llvm/CodeGen/MachineRegisterInfo.h
llvm/lib/CodeGen/MachineRegisterInfo.cpp