mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 12:08:33 +00:00
Remove isLegalAddressImmediate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35406 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
73ad8354ec
commit
caaf69107e
@ -856,12 +856,6 @@ public:
|
||||
// Loop Strength Reduction hooks
|
||||
//
|
||||
|
||||
/// isLegalAddressExpression - Return true if the binary expression made up of
|
||||
/// specified opcode, operands, and type can be folded into target addressing
|
||||
/// mode for load / store of the given type.
|
||||
virtual bool isLegalAddressExpression(unsigned Opc, Value *Op0, Value *Op1,
|
||||
const Type *Ty) 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.
|
||||
|
@ -1940,14 +1940,6 @@ getRegForInlineAsmConstraint(const std::string &Constraint,
|
||||
// Loop Strength Reduction hooks
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
/// isLegalAddressExpression - Return true if the binary expression made up of
|
||||
/// specified opcode, operands, and type can be folded into target addressing
|
||||
/// mode for load / store of the given type.
|
||||
bool TargetLowering::isLegalAddressExpression(unsigned Opc, Value *Op0,
|
||||
Value *Op1, const Type *Ty) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
/// 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.
|
||||
|
@ -1281,20 +1281,6 @@ ARMTargetLowering::InsertAtEndOfBasicBlock(MachineInstr *MI,
|
||||
// ARM Optimization Hooks
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
/// isLegalAddressExpression - Return true if the binary expression made up of
|
||||
/// specified opcode, operands, and type can be folded into target addressing
|
||||
/// mode for load / store of the given type.
|
||||
bool ARMTargetLowering::isLegalAddressExpression(unsigned Opc, Value *Op0,
|
||||
Value *Op1, const Type *Ty) const {
|
||||
if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) {
|
||||
if (Opc == Instruction::Add)
|
||||
return isLegalAddressImmediate(Op1C->getSExtValue(), Ty);
|
||||
if (Opc == Instruction::Sub)
|
||||
return isLegalAddressImmediate(-Op1C->getSExtValue(), Ty);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/// 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.
|
||||
|
@ -80,12 +80,6 @@ namespace llvm {
|
||||
virtual MachineBasicBlock *InsertAtEndOfBasicBlock(MachineInstr *MI,
|
||||
MachineBasicBlock *MBB);
|
||||
|
||||
/// isLegalAddressExpression - Return true if the binary expression made up
|
||||
/// of specified opcode, operands, and type can be folded into target
|
||||
/// addressing mode for load / store of the given type.
|
||||
virtual bool isLegalAddressExpression(unsigned Opc, Value *Op0, Value *Op1,
|
||||
const Type *Ty) 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.
|
||||
|
Loading…
Reference in New Issue
Block a user