Remove isLegalAddressImmediate.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 28 Mar 2007 01:53:55 +0000 (01:53 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 28 Mar 2007 01:53:55 +0000 (01:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35406 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/ARM/ARMISelLowering.h

index 5f51d13fcd20b1c3dbd4ecdf9d655d18cf788a54..4af25d8a8e6abb6138e97424d8bc33a6f1d8f353 100644 (file)
@@ -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.
index ee9fa67fa409de01a4e93ab61adb855e2c8d191e..97c0939951b92aaa7c5819f895993aff7f30250a 100644 (file)
@@ -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.
index 50ac5e9c69df1891f6d370512b400ff1d3fc1cb5..c646e54b580c4f26b77178c784fe0a862bd3d186 100644 (file)
@@ -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.
index 149628510b49299a5706c83b98869ba99663196e..74790191d76d3ecac72c9b3e4c45537a5a79157d 100644 (file)
@@ -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.