diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-07-27 21:43:38 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-07-27 21:43:38 +0000 |
commit | de0ceb58bac96a6df133a04cf92bb220a16e12fd (patch) | |
tree | a7b61ec746d98362d0e4946e25b4e11d53513580 | |
parent | a770e0041b07bb66177eff6f473452e1b087eb2a (diff) |
ConstantTypeMustBeLoaded has been incorporated into SparcV9PreSelection, its
only user.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15294 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 11 | ||||
-rw-r--r-- | lib/Target/TargetInstrInfo.cpp | 5 |
2 files changed, 0 insertions, 16 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 7b08389919..8d15c5df95 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/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/lib/Target/TargetInstrInfo.cpp b/lib/Target/TargetInstrInfo.cpp index efcf9db4eb..6532498860 100644 --- a/lib/Target/TargetInstrInfo.cpp +++ b/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<PointerType>(CV->getType())); - return !(CV->getType()->isIntegral() || isa<PointerType>(CV->getType())); -} - } // End llvm namespace |