[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelPattern.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Tue May 3 10:19:57 PDT 2005
Changes in directory llvm/lib/Target/X86:
X86ISelPattern.cpp updated: 1.110 -> 1.111
---
Log message:
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.
---
Diffs of the changes: (+3 -0)
X86ISelPattern.cpp | 3 +++
1 files changed, 3 insertions(+)
Index: llvm/lib/Target/X86/X86ISelPattern.cpp
diff -u llvm/lib/Target/X86/X86ISelPattern.cpp:1.110 llvm/lib/Target/X86/X86ISelPattern.cpp:1.111
--- llvm/lib/Target/X86/X86ISelPattern.cpp:1.110 Fri Apr 29 23:25:35 2005
+++ llvm/lib/Target/X86/X86ISelPattern.cpp Tue May 3 12:19:29 2005
@@ -64,6 +64,9 @@
setOperationAction(ISD::FP_ROUND_INREG , MVT::f32 , Expand);
setOperationAction(ISD::SEXTLOAD , MVT::i1 , Expand);
setOperationAction(ISD::SREM , MVT::f64 , Expand);
+ setOperationAction(ISD::CTPOP , MVT::i32 , Expand);
+ setOperationAction(ISD::CTTZ , MVT::i32 , Expand);
+ setOperationAction(ISD::CTTZ , MVT::i32 , Expand);
if (!UnsafeFPMath) {
setOperationAction(ISD::FSIN , MVT::f64 , Expand);
More information about the llvm-commits
mailing list