Rename getTypeForExtendedInteger() to getTypeForExtArgOrReturn().
authorCameron Zwarich <zwarich@apple.com>
Thu, 17 Mar 2011 14:21:56 +0000 (14:21 +0000)
committerCameron Zwarich <zwarich@apple.com>
Thu, 17 Mar 2011 14:21:56 +0000 (14:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127807 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h

index f257b035b8f5c4e5ce40638ac6866b839d64cb22..bf1188ffdf5a618a1b1f4589b4de146de67b9ea9 100644 (file)
@@ -1287,14 +1287,14 @@ public:
     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;
   }
 
index 5548318835567012f4e1cc528d8676f5c4bafc60..9671a45062f37f3712f1ec74eea3079a2b41482d 100644 (file)
@@ -1129,7 +1129,7 @@ void SelectionDAGBuilder::visitRet(const ReturnInst &I) {
           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;
index c1aa7200befcb43eec709ce8466cf99749da3651..dfb7b87d4ea0168e2e2418d408ea737cc733bf73 100644 (file)
@@ -1449,8 +1449,8 @@ bool X86TargetLowering::isUsedByReturnOnly(SDNode *N) const {
 }
 
 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;
index 0857c594b4f1318d1fcdc93860a625f74d765dae..bd9247b0a65b74f25a15808027e57f9195d7d682 100644 (file)
@@ -844,7 +844,7 @@ namespace llvm {
     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,