[PATCH] D78545: [RISCV] Make CanLowerReturn protected for downstream maintenance

Luís Marques via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 6 07:30:11 PDT 2020


luismarques added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.h:164-169
+protected:
+  bool CanLowerReturn(CallingConv::ID CallConv, MachineFunction &MF,
+                      bool IsVarArg,
+                      const SmallVectorImpl<ISD::OutputArg> &Outs,
+                      LLVMContext &Context) const override;
+
----------------
It might be a good idea to add a comment explaining why it isn't private. Since it's only for the benefit of downstream users, it might not be obvious from looking around the mainline code, without looking at the reviews.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78545/new/

https://reviews.llvm.org/D78545





More information about the llvm-commits mailing list