From fa8ab0ab6d0aabf5538a6cb7a2d823e94a0c48ce Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Tue, 27 Jul 2004 21:43:38 +0000 Subject: [PATCH] ConstantTypeMustBeLoaded has been incorporated into SparcV9PreSelection, its only user. llvm-svn: 15294 --- llvm/include/llvm/Target/TargetInstrInfo.h | 11 ----------- llvm/lib/Target/TargetInstrInfo.cpp | 5 ----- 2 files changed, 16 deletions(-) diff --git a/llvm/include/llvm/Target/TargetInstrInfo.h b/llvm/include/llvm/Target/TargetInstrInfo.h index 7b0838991982..8d15c5df9514 100644 --- a/llvm/include/llvm/Target/TargetInstrInfo.h +++ b/llvm/include/llvm/Target/TargetInstrInfo.h @@ -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 diff --git a/llvm/lib/Target/TargetInstrInfo.cpp b/llvm/lib/Target/TargetInstrInfo.cpp index efcf9db4eb7e..65324988603e 100644 --- a/llvm/lib/Target/TargetInstrInfo.cpp +++ b/llvm/lib/Target/TargetInstrInfo.cpp @@ -56,9 +56,4 @@ bool TargetInstrInfo::constantFitsInImmedField(MachineOpCode opCode, return false; } -bool TargetInstrInfo::ConstantTypeMustBeLoaded(const Constant* CV) const { - assert(CV->getType()->isPrimitiveType() || isa(CV->getType())); - return !(CV->getType()->isIntegral() || isa(CV->getType())); -} - } // End llvm namespace -- GitLab