return false;
}
- /// getTypeForExtendedInteger - Return the type that should be used to zero or
+ /// getTypeForExtArgOrReturn - Return the type that should be used to zero or
/// sign extend a zeroext/signext integer argument or return value.
/// FIXME: Most C calling convention requires the return type to be promoted,
/// but this is not true all the time, e.g. i1 on x86-64. It is also not
/// necessary for non-C calling conventions. The frontend should handle this
/// and include all of the necessary information.
virtual MVT
- getTypeForExtendedInteger(EVT VT, ISD::NodeType ExtendKind) const {
+ getTypeForExtArgOrReturn(EVT VT, ISD::NodeType ExtendKind) const {
return MVT::i32;
}
ExtendKind = ISD::ZERO_EXTEND;
if (ExtendKind != ISD::ANY_EXTEND && VT.isInteger()) {
- MVT ReturnMVT = TLI.getTypeForExtendedInteger(VT, ExtendKind);
+ MVT ReturnMVT = TLI.getTypeForExtArgOrReturn(VT, ExtendKind);
EVT MinVT = TLI.getRegisterType(*DAG.getContext(), ReturnMVT);
if (VT.bitsLT(MinVT))
VT = MinVT;
}
MVT
-X86TargetLowering::getTypeForExtendedInteger(EVT VT,
- ISD::NodeType ExtendKind) const {
+X86TargetLowering::getTypeForExtArgOrReturn(EVT VT,
+ ISD::NodeType ExtendKind) const {
// TODO: Is this also valid on 32-bit?
if (Subtarget->is64Bit() && VT == MVT::i1 && ExtendKind == ISD::ZERO_EXTEND)
return MVT::i8;
virtual bool isUsedByReturnOnly(SDNode *N) const;
virtual MVT
- getTypeForExtendedInteger(EVT VT, ISD::NodeType ExtendKind) const;
+ getTypeForExtArgOrReturn(EVT VT, ISD::NodeType ExtendKind) const;
virtual bool
CanLowerReturn(CallingConv::ID CallConv, bool isVarArg,