[RISCV] Move implementation of adjustReg from frame lowering to register info [nfc]
authorPhilip Reames <preames@rivosinc.com>
Mon, 28 Nov 2022 20:38:50 +0000 (12:38 -0800)
committerPhilip Reames <listmail@philipreames.com>
Mon, 28 Nov 2022 20:41:00 +0000 (12:41 -0800)
commit1a5be5265cc0eeb5d4b2571e72af01754a167042
tree07ad711feab13a2cd5669e1bb988515ec82c6b60
parent4ed8fcc59a699b3eb62c6a8929f4589dd3463776
[RISCV] Move implementation of adjustReg from frame lowering to register info [nfc]

Putting both variants of this function in the same place, in advance of code resuse.  Note that I tweaked the API slightly in advance of additional callers without the alignment requirement.  Some of the existing callers may also be okay with weaker alignment requirements, but that should be it's own set of changes.
llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp
llvm/lib/Target/RISCV/RISCVRegisterInfo.h