[PATCH] D112267: [TargetLowering] Simplify the interface for expandCTPOP/expandCTLZ/expandCTTZ.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 21 13:55:19 PDT 2021


craig.topper created this revision.
craig.topper added reviewers: spatel, RKSimon.
Herald added a subscriber: hiraditya.
craig.topper requested review of this revision.
Herald added a project: LLVM.

There is no need to return a bool and have an SDValue output
parameter. Just return the SDValue and let the caller check if it
is null.

I have another patch to add more callers of these so I thought
I'd clean up the interface first.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112267

Files:
  llvm/include/llvm/CodeGen/TargetLowering.h
  llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112267.381379.patch
Type: text/x-patch
Size: 9441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211021/e9b21bc1/attachment.bin>


More information about the llvm-commits mailing list