[PATCH] D128911: Emit table lookup from TargetLowering::expandCTTZ()
Sergei Barannikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 5 08:56:02 PDT 2022
barannikov88 added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/TargetLowering.h:4762
+ /// \param N Node to expand
+ /// \returns Reference to table generated in Constant Pool.
+ SDValue CTTZTableLookup(SDNode *N, SelectionDAG &DAG, const SDLoc &DL, EVT VT,
----------------
The comment is still confusing. The function does not return reference to the generated table, it returns the expanded node.
The "brief" part of the should also be fixed. Currently, it documents the way the function is used, which it should not. Uses may be added or removed, while the comment should stay the same.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128911/new/
https://reviews.llvm.org/D128911
More information about the llvm-commits
mailing list