clean up interface to ValueTypeActions
authorChris Lattner <sabre@nondot.org>
Sun, 29 Jan 2006 08:41:12 +0000 (08:41 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 29 Jan 2006 08:41:12 +0000 (08:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25783 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/TargetLowering.cpp

index 6b6ac57770d7a47e4a4435fc9cb86bb76a1765d3..b45ad00e592ddf06b76fc3730afbac5e2b3165bf 100644 (file)
@@ -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 @@ static void SetValueTypeAction(MVT::ValueType VT,
                                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)