pin-server/0024-Pin-server-Fix-VectorType.patch
dingguangya 83fba63fa9 [Update] Fix VectorType and Fix Pass DoOptimize method
(cherry picked from commit 0a8a75b0a9dcef5b928a99c1b30507c51751fe75)
2023-03-19 13:35:10 +08:00

23 lines
634 B
Diff

From e7c49ce6b50918f9bdb7fdaf474d676621694595 Mon Sep 17 00:00:00 2001
From: d00573793 <dingguangya1@huawei.com>
Date: Thu, 9 Mar 2023 15:51:30 +0800
Subject: [PATCH 1/2] [Pin-server] Fix VectorType
diff --git a/lib/Dialect/PluginTypes.cpp b/lib/Dialect/PluginTypes.cpp
index 89e4b1a..6035c4f 100644
--- a/lib/Dialect/PluginTypes.cpp
+++ b/lib/Dialect/PluginTypes.cpp
@@ -415,7 +415,7 @@ unsigned PluginArrayType::getNumElements()
PluginTypeID PluginVectorType::getPluginTypeID()
{
- return PluginTypeID::ArrayTyID;
+ return PluginTypeID::VectorTyID;
}
bool PluginVectorType::isValidElementType(Type type)
--
2.33.0