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

Chris Lattner lattner at cs.uiuc.edu
Wed Aug 24 09:34:23 PDT 2005



Changes in directory llvm/lib/Target:

TargetLowering.cpp updated: 1.9 -> 1.10
---
Log message:

Adjust to new interface


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

 TargetLowering.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/TargetLowering.cpp
diff -u llvm/lib/Target/TargetLowering.cpp:1.9 llvm/lib/Target/TargetLowering.cpp:1.10
--- llvm/lib/Target/TargetLowering.cpp:1.9	Mon Jul 18 23:52:44 2005
+++ llvm/lib/Target/TargetLowering.cpp	Wed Aug 24 11:34:12 2005
@@ -47,7 +47,7 @@
       PromoteTo = MVT::f64;
     else {
       unsigned LargerReg = VT+1;
-      while (!TLI.hasNativeSupportFor((MVT::ValueType)LargerReg)) {
+      while (!TLI.isTypeLegal((MVT::ValueType)LargerReg)) {
         ++LargerReg;
         assert(MVT::isInteger((MVT::ValueType)LargerReg) &&
                "Nothing to promote to??");
@@ -96,7 +96,7 @@
     if (getNumElements((MVT::ValueType)IntReg) != 1)
       SetValueTypeAction((MVT::ValueType)IntReg, Expand, *this, TransformToType,
                          ValueTypeActions);
-    else if (!hasNativeSupportFor((MVT::ValueType)IntReg))
+    else if (!isTypeLegal((MVT::ValueType)IntReg))
       // Otherwise, if we don't have native support, we must promote to a
       // larger type.
       SetValueTypeAction((MVT::ValueType)IntReg, Promote, *this,
@@ -105,13 +105,13 @@
       TransformToType[(MVT::ValueType)IntReg] = (MVT::ValueType)IntReg;
 
   // If the target does not have native support for F32, promote it to F64.
-  if (!hasNativeSupportFor(MVT::f32))
+  if (!isTypeLegal(MVT::f32))
     SetValueTypeAction(MVT::f32, Promote, *this,
                        TransformToType, ValueTypeActions);
   else
     TransformToType[MVT::f32] = MVT::f32;
 
-  assert(hasNativeSupportFor(MVT::f64) && "Target does not support FP?");
+  assert(isTypeLegal(MVT::f64) && "Target does not support FP?");
   TransformToType[MVT::f64] = MVT::f64;
 }
 






More information about the llvm-commits mailing list