Make isVectorClearMaskLegal's operand list const.
authorDan Gohman <gohman@apple.com>
Wed, 9 Apr 2008 20:09:42 +0000 (20:09 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 9 Apr 2008 20:09:42 +0000 (20:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49446 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 05e2c85da86ec688dc9c13926bb4d2e662081a82..719f719846b4f435568da7695fa74878c7a4ed33 100644 (file)
@@ -268,7 +268,7 @@ public:
   /// used by Targets can use this to indicate if there is a suitable
   /// VECTOR_SHUFFLE that can be used to replace a VAND with a constant
   /// pool entry.
-  virtual bool isVectorClearMaskLegal(std::vector<SDOperand> &BVOps,
+  virtual bool isVectorClearMaskLegal(const std::vector<SDOperand> &BVOps,
                                       MVT::ValueType EVT,
                                       SelectionDAG &DAG) const {
     return false;
index a8407caf91a7153f0a2d41e695d43b6a04f37d5a..1ab272781b266581f328c8727b85fb5fd199961c 100644 (file)
@@ -5602,9 +5602,10 @@ X86TargetLowering::isShuffleMaskLegal(SDOperand Mask, MVT::ValueType VT) const {
           X86::isUNPCKH_v_undef_Mask(Mask.Val));
 }
 
-bool X86TargetLowering::isVectorClearMaskLegal(std::vector<SDOperand> &BVOps,
-                                               MVT::ValueType EVT,
-                                               SelectionDAG &DAG) const {
+bool
+X86TargetLowering::isVectorClearMaskLegal(const std::vector<SDOperand> &BVOps,
+                                          MVT::ValueType EVT,
+                                          SelectionDAG &DAG) const {
   unsigned NumElts = BVOps.size();
   // Only do shuffles on 128-bit vector types for now.
   if (MVT::getSizeInBits(EVT) * NumElts == 64) return false;
index e7cef080bce7a61da8d1162e02780cad9afc3148..d8099506fd6783beb168da9e481f301b6b2d5776 100644 (file)
@@ -420,7 +420,7 @@ namespace llvm {
     /// used by Targets can use this to indicate if there is a suitable
     /// VECTOR_SHUFFLE that can be used to replace a VAND with a constant
     /// pool entry.
-    virtual bool isVectorClearMaskLegal(std::vector<SDOperand> &BVOps,
+    virtual bool isVectorClearMaskLegal(const std::vector<SDOperand> &BVOps,
                                         MVT::ValueType EVT,
                                         SelectionDAG &DAG) const;