[mlir] Add CtPop to MathOps with lowering to LLVM
authorRob Suderman <rob.suderman@gmail.com>
Mon, 6 Dec 2021 19:54:09 +0000 (11:54 -0800)
committerRob Suderman <rob.suderman@gmail.com>
Mon, 6 Dec 2021 19:54:20 +0000 (11:54 -0800)
commitc5fef77bc35d3ba3ad110a9622cb533fa9a47883
treeb797a8eaea41b778d92a7e4931cac4e6c047382c
parent7c0e066869de74ece2215095f2246e43d991b942
[mlir] Add CtPop to  MathOps with lowering to LLVM

math.ctpop maths to the llvm.ctpop intrinsic.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D114998
mlir/include/mlir/Dialect/Math/IR/MathOps.td
mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp
mlir/test/Conversion/MathToLLVM/math-to-llvm.mlir