aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/TargetInstrInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-20 18:33:11 +0000
committerChris Lattner <sabre@nondot.org>2006-04-20 18:33:11 +0000
commita29526275b45e6cebe569fe0b5dcacf9a55064b9 (patch)
tree831ecdc151b242da4e3051a76696ad0b32cbf717 /lib/Target/TargetInstrInfo.cpp
parent1b87c42c82883e37099c777d08474f89834010dd (diff)
downloadexternal_llvm-a29526275b45e6cebe569fe0b5dcacf9a55064b9.zip
external_llvm-a29526275b45e6cebe569fe0b5dcacf9a55064b9.tar.gz
external_llvm-a29526275b45e6cebe569fe0b5dcacf9a55064b9.tar.bz2
remove some v9 specific code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27900 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetInstrInfo.cpp')
-rw-r--r--lib/Target/TargetInstrInfo.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/Target/TargetInstrInfo.cpp b/lib/Target/TargetInstrInfo.cpp
index 930ca1f..60dd28c 100644
--- a/lib/Target/TargetInstrInfo.cpp
+++ b/lib/Target/TargetInstrInfo.cpp
@@ -38,26 +38,6 @@ TargetInstrInfo::~TargetInstrInfo() {
TargetInstrDescriptors = NULL; // reset global variable
}
-// FIXME: SPARCV9 SPECIFIC!
-bool TargetInstrInfo::constantFitsInImmedField(MachineOpCode opCode,
- int64_t intValue) const {
- // First, check if opCode has an immed field.
- bool isSignExtended;
- uint64_t maxImmedValue = maxImmedConstant(opCode, isSignExtended);
- if (maxImmedValue != 0)
- {
- // NEED TO HANDLE UNSIGNED VALUES SINCE THEY MAY BECOME MUCH
- // SMALLER AFTER CASTING TO SIGN-EXTENDED int, short, or char.
- // See CreateUIntSetInstruction in SparcInstrInfo.cpp.
-
- // Now check if the constant fits
- if (intValue <= (int64_t) maxImmedValue &&
- intValue >= -((int64_t) maxImmedValue+1))
- return true;
- }
-
- return false;
-}
// commuteInstruction - The default implementation of this method just exchanges
// operand 1 and 2.