[libc-commits] [libc] [NFC][CodeGen] Create method to clear registers (PR #66958)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Thu Sep 21 13:29:05 PDT 2023


================
@@ -8335,6 +8335,26 @@ bool AArch64InstrInfo::shouldOutlineFromFunctionByDefault(
   return MF.getFunction().hasMinSize();
 }
 
+void AArch64InstrInfo::buildClearRegister(Register Reg, MachineBasicBlock &MBB,
----------------
nickdesaulniers wrote:

Why make it a method on InstrInfo? Why not another method of FrameLowering?

Do you plan to call `buildClearRegister` from somewhere other than FrameLowering?

https://github.com/llvm/llvm-project/pull/66958


More information about the libc-commits mailing list