diff options
author | Dan Gohman <gohman@apple.com> | 2009-01-15 17:34:08 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-01-15 17:34:08 +0000 |
commit | c13cf130c45c5675ea879e1c5454298dfbe5e02f (patch) | |
tree | 0ae340106cf61aa77626ec5152d13bfa4d8e6f44 | |
parent | 661d9c35b0af2286f15d7fdad6ecb62ac3d7c741 (diff) | |
download | external_llvm-c13cf130c45c5675ea879e1c5454298dfbe5e02f.zip external_llvm-c13cf130c45c5675ea879e1c5454298dfbe5e02f.tar.gz external_llvm-c13cf130c45c5675ea879e1c5454298dfbe5e02f.tar.bz2 |
Make getWidenVectorType const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62265 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 2 | ||||
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 2 | ||||
-rw-r--r-- | lib/Target/X86/X86ISelLowering.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 4808cd4..3e8a93a 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -300,7 +300,7 @@ public: /// If there is no vector type that we want to widen to, returns MVT::Other /// When and were to widen is target dependent based on the cost of /// scalarizing vs using the wider vector type. - virtual MVT getWidenVectorType(MVT VT); + virtual MVT getWidenVectorType(MVT VT) const; typedef std::vector<APFloat>::const_iterator legal_fpimm_iterator; legal_fpimm_iterator legal_fpimm_begin() const { diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 00405ab..9499a9d 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -8036,7 +8036,7 @@ X86TargetLowering::getRegForInlineAsmConstraint(const std::string &Constraint, /// When and where to widen is target dependent based on the cost of /// scalarizing vs using the wider vector type. -MVT X86TargetLowering::getWidenVectorType(MVT VT) { +MVT X86TargetLowering::getWidenVectorType(MVT VT) const { assert(VT.isVector()); if (isTypeLegal(VT)) return VT; diff --git a/lib/Target/X86/X86ISelLowering.h b/lib/Target/X86/X86ISelLowering.h index 46005d0..ea9c931 100644 --- a/lib/Target/X86/X86ISelLowering.h +++ b/lib/Target/X86/X86ISelLowering.h @@ -499,7 +499,7 @@ namespace llvm { /// If there is no vector type that we want to widen to, returns MVT::Other /// When and were to widen is target dependent based on the cost of /// scalarizing vs using the wider vector type. - virtual MVT getWidenVectorType(MVT VT); + virtual MVT getWidenVectorType(MVT VT) const; /// createFastISel - This method returns a target specific FastISel object, /// or null if the target does not support "fast" ISel. |