From 2b95fd67da204c6f608cc280ea91230ff781d998 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 9 Apr 2007 23:34:08 +0000 Subject: [PATCH] remove dead target hooks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35847 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetLowering.h | 13 ------------- lib/CodeGen/SelectionDAG/TargetLowering.cpp | 19 ------------------- 2 files changed, 32 deletions(-) diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 6bf72a3d15d..0669425a488 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -879,19 +879,6 @@ public: /// AM is legal for this target, for a load/store of the specified type. /// TODO: Handle pre/postinc as well. virtual bool isLegalAddressingMode(const AddrMode &AM, 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. - virtual bool isLegalAddressImmediate(int64_t V, const Type *Ty) const; - - /// isLegalAddressImmediate - Return true if the GlobalValue can be used as - /// the offset of the target addressing mode. - virtual bool isLegalAddressImmediate(GlobalValue *GV) const; - - /// 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. - virtual bool isLegalAddressScale(int64_t S, const Type *Ty) const; //===--------------------------------------------------------------------===// // Div utility functions diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 51d8187aa17..f1cd9a58a2f 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -1974,25 +1974,6 @@ bool TargetLowering::isLegalAddressingMode(const AddrMode &AM, return true; } -/// 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 struct ms {