Instead of std::unique_ptr<RegisterBankInfo>. This allows us to return a RISCVRegisterBankInfo* from getRegBankInfo so we can avoid a static_cast. This does require an additional header file to be included in RISCVSubtarget.h, but I don't think it's a big deal.
7.4 KiB
7.4 KiB