1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

ConstantTypeMustBeLoaded has been incorporated into SparcV9PreSelection, its

only user.

llvm-svn: 15294
This commit is contained in:
Brian Gaeke 2004-07-27 21:43:38 +00:00
parent ea9178e184
commit 1ec15e0428
2 changed files with 0 additions and 16 deletions

View 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

View 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