summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetInstrInfo.cpp
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2005-04-22 17:54:37 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2005-04-22 17:54:37 +0000
commite73e76dc4239b99306b7b3c7a9316958106e5f90 (patch)
tree5864f4361a5ec118b4e1994949dc647dafdde128 /llvm/lib/Target/TargetInstrInfo.cpp
parent948f4532541ec99b2baabd01e5e47afaedbf240f (diff)
downloadbcm5719-llvm-e73e76dc4239b99306b7b3c7a9316958106e5f90.tar.gz
bcm5719-llvm-e73e76dc4239b99306b7b3c7a9316958106e5f90.zip
Convert tabs to spaces
llvm-svn: 21452
Diffstat (limited to 'llvm/lib/Target/TargetInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/TargetInstrInfo.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Target/TargetInstrInfo.cpp b/llvm/lib/Target/TargetInstrInfo.cpp
index 677f36d91ba..930ca1f490d 100644
--- a/llvm/lib/Target/TargetInstrInfo.cpp
+++ b/llvm/lib/Target/TargetInstrInfo.cpp
@@ -26,21 +26,21 @@ namespace llvm {
}
TargetInstrInfo::TargetInstrInfo(const TargetInstrDescriptor* Desc,
- unsigned numOpcodes)
+ unsigned numOpcodes)
: desc(Desc), NumOpcodes(numOpcodes) {
// FIXME: TargetInstrDescriptors should not be global
assert(TargetInstrDescriptors == NULL && desc != NULL
&& "TargetMachine data structure corrupt; maybe you tried to create another TargetMachine? (only one may exist in a program)");
- TargetInstrDescriptors = desc; // initialize global variable
+ TargetInstrDescriptors = desc; // initialize global variable
}
TargetInstrInfo::~TargetInstrInfo() {
- TargetInstrDescriptors = NULL; // reset global variable
+ TargetInstrDescriptors = NULL; // reset global variable
}
// FIXME: SPARCV9 SPECIFIC!
bool TargetInstrInfo::constantFitsInImmedField(MachineOpCode opCode,
- int64_t intValue) const {
+ int64_t intValue) const {
// First, check if opCode has an immed field.
bool isSignExtended;
uint64_t maxImmedValue = maxImmedConstant(opCode, isSignExtended);
@@ -52,8 +52,8 @@ bool TargetInstrInfo::constantFitsInImmedField(MachineOpCode opCode,
// Now check if the constant fits
if (intValue <= (int64_t) maxImmedValue &&
- intValue >= -((int64_t) maxImmedValue+1))
- return true;
+ intValue >= -((int64_t) maxImmedValue+1))
+ return true;
}
return false;
OpenPOWER on IntegriCloud