[llvm] [NFC][RISCV] Unify all zvfbfa vl patterns and sd node patterns (PR #171072)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 8 04:43:59 PST 2025


================
@@ -215,13 +215,16 @@ multiclass VPatBinaryFPSDNode_VV_VF<SDPatternOperator vop, string instruction_na
 }
 
 multiclass VPatBinaryFPSDNode_VV_VF_RM<SDPatternOperator vop, string instruction_name,
-                                       bit isSEWAware = 0, bit isBF16 = 0> {
-  foreach vti = !if(isBF16, AllBF16Vectors, AllFloatVectors) in {
+                                       bit isSEWAware = 0, bit supportBF16 = 0> {
+  foreach vti = !if(supportBF16, AllFloatAndBF16Vectors, AllFloatVectors) in {
----------------
lukel97 wrote:

Maybe a nicer way of threading through the allowed pseudos is by passing through the list of allowed VTypeInfos? I think we already do this for `VPatBinarySDNode_VV_VX`, so something like

```suggestion
multiclass VPatBinaryFPSDNode_VV_VF_RM<SDPatternOperator vop, string instruction_name, list<VTypeInfo> vtilist,
                                       bit isSEWAware = 0> {
  foreach vti = vtilist in {
```


https://github.com/llvm/llvm-project/pull/171072


More information about the llvm-commits mailing list