[llvm] 58764dd - Add IIT_V10 to support 10-element vectors in intrinsics (#89383)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 19 07:14:17 PDT 2024


Author: Jay Foad
Date: 2024-04-19T15:14:13+01:00
New Revision: 58764ddccda99039174ca572c6a94393c290f8ac

URL: https://github.com/llvm/llvm-project/commit/58764ddccda99039174ca572c6a94393c290f8ac
DIFF: https://github.com/llvm/llvm-project/commit/58764ddccda99039174ca572c6a94393c290f8ac.diff

LOG: Add IIT_V10 to support 10-element vectors in intrinsics (#89383)

Needed for a future patch.

Added: 
    

Modified: 
    llvm/include/llvm/IR/Intrinsics.td
    llvm/lib/IR/Function.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/Intrinsics.td b/llvm/include/llvm/IR/Intrinsics.td
index bdd8465883fcff..11262f265100c8 100644
--- a/llvm/include/llvm/IR/Intrinsics.td
+++ b/llvm/include/llvm/IR/Intrinsics.td
@@ -320,6 +320,7 @@ def IIT_I2 : IIT_Int<2, 57>;
 def IIT_I4 : IIT_Int<4, 58>;
 def IIT_AARCH64_SVCOUNT : IIT_VT<aarch64svcount, 59>;
 def IIT_V6 : IIT_Vec<6, 60>;
+def IIT_V10 : IIT_Vec<10, 61>;
 }
 
 defvar IIT_all_FixedTypes = !filter(iit, IIT_all,

diff  --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp
index 10cb6e75ffe69e..e66fe73425e863 100644
--- a/llvm/lib/IR/Function.cpp
+++ b/llvm/lib/IR/Function.cpp
@@ -1172,6 +1172,10 @@ static void DecodeIITType(unsigned &NextElt, ArrayRef<unsigned char> Infos,
     OutputTable.push_back(IITDescriptor::getVector(8, IsScalableVector));
     DecodeIITType(NextElt, Infos, Info, OutputTable);
     return;
+  case IIT_V10:
+    OutputTable.push_back(IITDescriptor::getVector(10, IsScalableVector));
+    DecodeIITType(NextElt, Infos, Info, OutputTable);
+    return;
   case IIT_V16:
     OutputTable.push_back(IITDescriptor::getVector(16, IsScalableVector));
     DecodeIITType(NextElt, Infos, Info, OutputTable);


        


More information about the llvm-commits mailing list