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 | ade525491fbc475387cdb7e66735d378b97156a8 (patch) | |
tree | 807d4e6ae41e79dba981dea4237986763dbb3590 /llvm/lib/Target/TargetLowering.cpp | |
parent | 28a0d918c12b009d3b94461742f61700fe2fc579 (diff) | |
download | bcm5719-llvm-ade525491fbc475387cdb7e66735d378b97156a8.tar.gz bcm5719-llvm-ade525491fbc475387cdb7e66735d378b97156a8.zip |
Adjust to new interface
llvm-svn: 23010
Diffstat (limited to 'llvm/lib/Target/TargetLowering.cpp')
-rw-r--r-- | llvm/lib/Target/TargetLowering.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/TargetLowering.cpp b/llvm/lib/Target/TargetLowering.cpp index 46ac8e96336..d3fa34dbee3 100644 --- a/llvm/lib/Target/TargetLowering.cpp +++ b/llvm/lib/Target/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; } |