[llvm] 9b9bd99 - [IRBuilder] Remove deprecated CreateShuffleVector() method

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 20 03:11:12 PDT 2022


Author: Nikita Popov
Date: 2022-04-20T12:11:03+02:00
New Revision: 9b9bd995c5425da28b1b3ec150c5dc9540e35b09

URL: https://github.com/llvm/llvm-project/commit/9b9bd995c5425da28b1b3ec150c5dc9540e35b09
DIFF: https://github.com/llvm/llvm-project/commit/9b9bd995c5425da28b1b3ec150c5dc9540e35b09.diff

LOG: [IRBuilder] Remove deprecated CreateShuffleVector() method

This method has been deprecated for two years.

Added: 
    

Modified: 
    llvm/include/llvm/IR/IRBuilder.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/IRBuilder.h b/llvm/include/llvm/IR/IRBuilder.h
index a4b6e43c56f58..5ac7890905720 100644
--- a/llvm/include/llvm/IR/IRBuilder.h
+++ b/llvm/include/llvm/IR/IRBuilder.h
@@ -2324,15 +2324,6 @@ class IRBuilderBase {
     return CreateShuffleVector(V1, V2, IntMask, Name);
   }
 
-  LLVM_ATTRIBUTE_DEPRECATED(Value *CreateShuffleVector(Value *V1, Value *V2,
-                                                       ArrayRef<uint32_t> Mask,
-                                                       const Twine &Name = ""),
-                            "Pass indices as 'int' instead") {
-    SmallVector<int, 16> IntMask;
-    IntMask.assign(Mask.begin(), Mask.end());
-    return CreateShuffleVector(V1, V2, IntMask, Name);
-  }
-
   /// See class ShuffleVectorInst for a description of the mask representation.
   Value *CreateShuffleVector(Value *V1, Value *V2, ArrayRef<int> Mask,
                              const Twine &Name = "") {


        


More information about the llvm-commits mailing list