mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-09 07:24:39 +00:00
Set up identity transforms.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19584 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -94,8 +94,15 @@ void TargetLowering::computeRegisterProperties() {
|
|||||||
// larger type.
|
// larger type.
|
||||||
SetValueTypeAction((MVT::ValueType)IntReg, 1, *this, TransformToType,
|
SetValueTypeAction((MVT::ValueType)IntReg, 1, *this, TransformToType,
|
||||||
ValueTypeActions);
|
ValueTypeActions);
|
||||||
|
else
|
||||||
|
TransformToType[(MVT::ValueType)IntReg] = (MVT::ValueType)IntReg;
|
||||||
|
|
||||||
// If the target does not have native support for F32, promote it to F64.
|
// If the target does not have native support for F32, promote it to F64.
|
||||||
if (!hasNativeSupportFor(MVT::f32))
|
if (!hasNativeSupportFor(MVT::f32))
|
||||||
SetValueTypeAction(MVT::f32, 1, *this, TransformToType, ValueTypeActions);
|
SetValueTypeAction(MVT::f32, 1, *this, TransformToType, ValueTypeActions);
|
||||||
|
else
|
||||||
|
TransformToType[MVT::f32] = MVT::f32;
|
||||||
|
|
||||||
|
assert(hasNativeSupportFor(MVT::f64) && "Target does not support FP?");
|
||||||
|
TransformToType[MVT::f64] = MVT::f64;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user