mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
More flexible TargetLowering LSR hooks for testing whether an immediate is a legal target address immediate or scale.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35076 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b01fad6d19
commit
c289faf015
@ -1931,15 +1931,25 @@ getRegForInlineAsmConstraint(const std::string &Constraint,
|
||||
// Loop Strength Reduction hooks
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
/// isLegalAddressImmediate - Return true if the integer value or
|
||||
/// GlobalValue can be used as the offset of the target addressing mode.
|
||||
bool TargetLowering::isLegalAddressImmediate(int64_t V) const {
|
||||
/// isLegalAddressImmediate - Return true if the integer value can be used as
|
||||
/// the offset of the target addressing mode for load / store of the given
|
||||
/// type.
|
||||
bool TargetLowering::isLegalAddressImmediate(int64_t V, const Type *Ty) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
/// isLegalAddressImmediate - Return true if the GlobalValue can be used as
|
||||
/// the offset of the target addressing mode.
|
||||
bool TargetLowering::isLegalAddressImmediate(GlobalValue *GV) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
/// isLegalAddressScale - Return true if the integer value can be used as the
|
||||
/// scale of the target addressing mode for load / store of the given type.
|
||||
bool TargetLowering::isLegalAddressScale(int64_t S, const Type *Ty) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// Magic for divide replacement
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user