[GISel]: Add Legalization/lowering code for bit counting operations
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Sat, 18 Aug 2018 00:01:54 +0000 (00:01 +0000)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Sat, 18 Aug 2018 00:01:54 +0000 (00:01 +0000)
commit59b2485ba2850e4b60512eee80e13ddfe3abcfbc
tree117c3b8c1f25c0f74e78ccd136ab25c65c1aa390
parentb300eac47b691cd5391340ca8862c4a62abea1ef
[GISel]: Add Legalization/lowering code for bit counting operations

https://reviews.llvm.org/D48847#inline-448257

Ported legalization expansions for CTLZ/CTTZ from DAG to GISel.

Reviewed by rtereshin.

llvm-svn: 340111
llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
llvm/include/llvm/Target/GlobalISel/SelectionDAGCompat.td
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/unittests/CodeGen/GlobalISel/CMakeLists.txt
llvm/unittests/CodeGen/GlobalISel/LegalizerHelperTest.cpp [new file with mode: 0644]
llvm/unittests/CodeGen/GlobalISel/LegalizerHelperTest.h [new file with mode: 0644]