[LoongArch] Add codegen support for ISD::CTPOP, ISD::CTTZ and ISD::CTLZ
authorgonglingqin <gonglingqin@loongson.cn>
Fri, 12 Aug 2022 05:06:11 +0000 (13:06 +0800)
committerWeining Lu <luweining@loongson.cn>
Fri, 12 Aug 2022 06:15:30 +0000 (14:15 +0800)
commit9e09c3186ed287fc9369faa09094473d50e3c38e
treeb9d157c4602b451b5373d2b230f982c3cb92f5e1
parentd561907f27d721558e4372990ca52a8284b7aafc
[LoongArch] Add codegen support for ISD::CTPOP, ISD::CTTZ and ISD::CTLZ

Differential Revision: https://reviews.llvm.org/D131550
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
llvm/lib/Target/LoongArch/LoongArchISelLowering.h
llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
llvm/test/CodeGen/LoongArch/ctlz-cttz-ctpop.ll [new file with mode: 0644]