[PATCH] D115516: [VE][NFC] Improve vector pattern names

Simon Moll via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 10 06:19:56 PST 2021


simoll created this revision.
simoll added a reviewer: kaz7.
simoll added a project: VE.
Herald added a subscriber: hiraditya.
simoll requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Rename VE vector isel patterns to follow the downstream LLVM-VE naming convention.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115516

Files:
  llvm/lib/Target/VE/VVPInstrPatternsVec.td


Index: llvm/lib/Target/VE/VVPInstrPatternsVec.td
===================================================================
--- llvm/lib/Target/VE/VVPInstrPatternsVec.td
+++ llvm/lib/Target/VE/VVPInstrPatternsVec.td
@@ -17,7 +17,7 @@
 //===----------------------------------------------------------------------===//
 include "VVPInstrInfo.td"
 
-multiclass VectorBinaryArith<
+multiclass Binary_rv_vv<
     SDPatternOperator OpNode,
     ValueType ScalarVT, ValueType DataVT, ValueType MaskVT,
     string OpBaseName> {
@@ -49,22 +49,22 @@
 }
 
 // Expand both 64bit and 32 bit variant (256 elements)
-multiclass VectorBinaryArith_ShortLong<
+multiclass Binary_rv_vv_ShortLong<
     SDPatternOperator OpNode,
     ValueType LongScalarVT, ValueType LongDataVT, string LongOpBaseName,
     ValueType ShortScalarVT, ValueType ShortDataVT, string ShortOpBaseName> {
-  defm : VectorBinaryArith<OpNode,
+  defm : Binary_rv_vv<OpNode,
                            LongScalarVT, LongDataVT, v256i1,
                            LongOpBaseName>;
-  defm : VectorBinaryArith<OpNode,
+  defm : Binary_rv_vv<OpNode,
                            ShortScalarVT, ShortDataVT, v256i1,
                            ShortOpBaseName>;
 }
 
 
-defm : VectorBinaryArith_ShortLong<c_vvp_add,
-                                   i64, v256i64, "VADDSL",
-                                   i32, v256i32, "VADDSWSX">;
-defm : VectorBinaryArith_ShortLong<c_vvp_and,
-                                   i64, v256i64, "VAND",
-                                   i32, v256i32, "PVANDLO">;
+defm : Binary_rv_vv_ShortLong<c_vvp_add,
+                              i64, v256i64, "VADDSL",
+                              i32, v256i32, "VADDSWSX">;
+defm : Binary_rv_vv_ShortLong<c_vvp_and,
+                              i64, v256i64, "VAND",
+                              i32, v256i32, "PVANDLO">;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115516.393466.patch
Type: text/x-patch
Size: 1857 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211210/ed8be414/attachment.bin>


More information about the llvm-commits mailing list