[llvm] [RISCV][llvm] Support VFADD, VFSUB, VFMUL codegen for Zvfbfa (PR #170612)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 4 09:21:40 PST 2025
================
@@ -215,8 +215,8 @@ multiclass VPatBinaryFPSDNode_VV_VF<SDPatternOperator vop, string instruction_na
}
multiclass VPatBinaryFPSDNode_VV_VF_RM<SDPatternOperator vop, string instruction_name,
- bit isSEWAware = 0> {
- foreach vti = AllFloatVectors in {
+ bit isSEWAware = 0, bit isBF16 = 0> {
+ foreach vti = !if(isBF16, AllBF16Vectors, AllFloatVectors) in {
----------------
topperc wrote:
If you used a single instantiation, the isBF16 argument wouldn't exist. So you'd have to get it from `fvti`.
https://github.com/llvm/llvm-project/pull/170612
More information about the llvm-commits
mailing list