[TargetLowering] Simplify the interface for expandCTPOP/expandCTLZ/expandCTTZ.
authorCraig Topper <craig.topper@sifive.com>
Thu, 21 Oct 2021 22:23:41 +0000 (15:23 -0700)
committerCraig Topper <craig.topper@sifive.com>
Thu, 21 Oct 2021 22:35:28 +0000 (15:35 -0700)
commit996123e5e8d9b2894c88e02e98ce09abdf33bb7e
tree258bcf8c31d89d94483d1693030e1674dbc34cb5
parent0bf230d4220660af8b2667506f8905df2f716bdf
[TargetLowering] Simplify the interface for expandCTPOP/expandCTLZ/expandCTTZ.

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.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D112267
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp