[PATCH] D29934: [RISCV 12/n] Codegen support for memory operations

Alex Bradbury via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 22 09:00:57 PDT 2017


asb added inline comments.


================
Comment at: lib/Target/RISCV/RISCVISelLowering.cpp:77
+SDValue RISCVTargetLowering::lowerGlobalAddress(SDValue Op,
+                                                SelectionDAG &DAG) const {
+  SDLoc DL(Op);
----------------
glasnak wrote:
> I'm honestly confused. Why is LowerOperation CamelCase, but lowerGlobalAddress is camelCase? I've seen this inconsistency of function naming elsewhere too, and all I can think of is that LLVM is changing to camelCase function code style just very very slowly. Is this correct? 
> 
> Anyway, I'll leave the decision up to you, but these two functions have almost identical signature and a different style, that doesn't seem right.
Yes, LLVM is very slowly moving to camelCase for function names. LowerOperation is called from target-independent code, so we're stuck with the old naming style for now.


https://reviews.llvm.org/D29934





More information about the llvm-commits mailing list