[llvm] Add IIT_V10 to support 10-element vectors in intrinsics (PR #89383)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 19 06:27:31 PDT 2024
https://github.com/jayfoad created https://github.com/llvm/llvm-project/pull/89383
Needed for a future patch.
>From d81ca26cde064502fb1b7251f5b14f7b1d9f310a Mon Sep 17 00:00:00 2001
From: Jay Foad <jay.foad at amd.com>
Date: Fri, 19 Apr 2024 14:25:28 +0100
Subject: [PATCH] Add IIT_V10 to support 10-element vectors in intrinsics
Needed for a future patch.
---
llvm/include/llvm/IR/Intrinsics.td | 1 +
llvm/lib/IR/Function.cpp | 4 ++++
2 files changed, 5 insertions(+)
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