diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-24 16:34:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-24 16:34:12 +0000 |
commit | 9ed62c16f2b463461fa8667143969fea0b81781e (patch) | |
tree | 0a7d89cf8ba272378830e4177ef912bbe57e0d8c /lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | 9e7a601eaf8de846cee7ada9218346acf6bb864d (diff) |
Adjust to new interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23010 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 46ac8e9633..d3fa34dbee 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -47,7 +47,7 @@ static void SetValueTypeAction(MVT::ValueType VT, 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 @@ void TargetLowering::computeRegisterProperties() { 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 @@ void TargetLowering::computeRegisterProperties() { 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; } |