ConstantTypeMustBeLoaded has been incorporated into SparcV9PreSelection, its
authorBrian Gaeke <gaeke@uiuc.edu>
Tue, 27 Jul 2004 21:43:38 +0000 (21:43 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Tue, 27 Jul 2004 21:43:38 +0000 (21:43 +0000)
only user.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15294 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetInstrInfo.h
lib/Target/TargetInstrInfo.cpp

index 7b08389919829ab8e72ce18dc9f47ea526ed18cf..8d15c5df95148869bcd762b99208fb7699ed5450 100644 (file)
@@ -241,17 +241,6 @@ public:
     isSignExtended = get(opCode).immedIsSignExtended;
     return get(opCode).maxImmedConst;
   }
-
-  //-------------------------------------------------------------------------
-  // Queries about representation of LLVM quantities (e.g., constants)
-  //-------------------------------------------------------------------------
-
-  /// ConstantTypeMustBeLoaded - Test if this type of constant must be loaded
-  /// from memory into a register, i.e., cannot be set bitwise in register and
-  /// cannot use immediate fields of instructions.  Note that this only makes
-  /// sense for primitive types.
-  ///
-  virtual bool ConstantTypeMustBeLoaded(const Constant* CV) const;
 };
 
 } // End llvm namespace
index efcf9db4eb7ee997dc523796981e108ab3e9aff0..65324988603e42c78d84f9ae9ad6345ebee8f5aa 100644 (file)
@@ -56,9 +56,4 @@ bool TargetInstrInfo::constantFitsInImmedField(MachineOpCode opCode,
   return false;
 }
 
-bool TargetInstrInfo::ConstantTypeMustBeLoaded(const Constant* CV) const {
-  assert(CV->getType()->isPrimitiveType() || isa<PointerType>(CV->getType()));
-  return !(CV->getType()->isIntegral() || isa<PointerType>(CV->getType()));
-}
-
 } // End llvm namespace