Make getWidenVectorType const.
authorDan Gohman <gohman@apple.com>
Thu, 15 Jan 2009 17:34:08 +0000 (17:34 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 15 Jan 2009 17:34:08 +0000 (17:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62265 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLowering.h
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h

index 4808cd48d54f3342f361c42cd6315eb892b7481b..3e8a93aafcb0b7dcb7e3e6795f52a975d1e3b44f 100644 (file)
@@ -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 {
index 00405ab4f6af90bb0bda1a314a15a4246ea38c4a..9499a9de6cca6af6fdc1868e7dd209f974f0d022 100644 (file)
@@ -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;
index 46005d06947341f29dd023e34b1e8cf489eedc49..ea9c9311692785039755fdf39638e855a9c2577f 100644 (file)
@@ -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.