diff options
Diffstat (limited to 'include/llvm/TargetTransformInfo.h')
-rw-r--r-- | include/llvm/TargetTransformInfo.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/TargetTransformInfo.h b/include/llvm/TargetTransformInfo.h index 7dd95a79c2..9a02e62104 100644 --- a/include/llvm/TargetTransformInfo.h +++ b/include/llvm/TargetTransformInfo.h @@ -109,7 +109,9 @@ public: /// The type may be VoidTy, in which case only return true if the addressing /// mode is legal for a load/store of any legal type. /// TODO: Handle pre/postinc as well. - virtual bool isLegalAddressingMode(const AddrMode &AM, Type *Ty) const { + virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, + int64_t BaseOffset, bool HasBaseReg, + int64_t Scale) const { return false; } /// isTruncateFree - Return true if it's free to truncate a value of |