Implement count leading zeros (ctlz), count trailing zeros (cttz), and count
authorAndrew Lenharth <andrewl@lenharth.org>
Tue, 3 May 2005 17:19:30 +0000 (17:19 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Tue, 3 May 2005 17:19:30 +0000 (17:19 +0000)
commit691ef2ba066dda14ae4ac0ad645054fbc967785a
tree1c06734df74c2303e4c1481e59c9598cd401b11c
parentc88e681498feb35b78a029d029e3de401c75a8d3
Implement count leading zeros (ctlz), count trailing zeros (cttz), and count
population (ctpop).  Generic lowering is implemented, however only promotion
is implemented for SelectionDAG at the moment.

More coming soon.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21676 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
include/llvm/CodeGen/SelectionDAG.h
include/llvm/CodeGen/SelectionDAGNodes.h
include/llvm/Intrinsics.h
lib/CodeGen/IntrinsicLowering.cpp
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
lib/Target/Alpha/AlphaISelPattern.cpp
lib/Target/Alpha/AlphaInstrInfo.td
lib/Target/PowerPC/PPC64ISelPattern.cpp
lib/Target/PowerPC/PPCISelPattern.cpp
lib/Target/X86/X86ISelPattern.cpp
lib/VMCore/Function.cpp
lib/VMCore/Verifier.cpp