[llvm-commits] CVS: llvm/lib/Target/TargetLowering.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Jan 29 00:41:23 PST 2006



Changes in directory llvm/lib/Target:

TargetLowering.cpp updated: 1.21 -> 1.22
---
Log message:

clean up interface to ValueTypeActions


---
Diffs of the changes:  (+3 -3)

 TargetLowering.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/TargetLowering.cpp
diff -u llvm/lib/Target/TargetLowering.cpp:1.21 llvm/lib/Target/TargetLowering.cpp:1.22
--- llvm/lib/Target/TargetLowering.cpp:1.21	Thu Jan 26 14:37:03 2006
+++ llvm/lib/Target/TargetLowering.cpp	Sun Jan 29 02:41:12 2006
@@ -19,7 +19,7 @@
 using namespace llvm;
 
 TargetLowering::TargetLowering(TargetMachine &tm)
-  : TM(tm), TD(TM.getTargetData()), ValueTypeActions(0) {
+  : TM(tm), TD(TM.getTargetData()) {
   assert(ISD::BUILTIN_OP_END <= 128 &&
          "Fixed size array in TargetLowering is not large enough!");
   // All operations default to being supported.
@@ -46,8 +46,8 @@
                                TargetLowering::LegalizeAction Action,
                                TargetLowering &TLI,
                                MVT::ValueType *TransformToType,
-                               unsigned long long &ValueTypeActions) {
-  ValueTypeActions |= (unsigned long long)Action << (VT*2);
+                        TargetLowering::ValueTypeActionImpl &ValueTypeActions) {
+  ValueTypeActions.setTypeAction(VT, Action);
   if (Action == TargetLowering::Promote) {
     MVT::ValueType PromoteTo;
     if (VT == MVT::f32)






More information about the llvm-commits mailing list