Open victor-eds opened 3 months ago
Use patterns from the -arith-emulate-unsupported-floats pass in the pipeline to transform:
-arith-emulate-unsupported-floats
%2 = arith.addf %0, %1 : tensor<512xbf16, #blocked>
into:
%ext0 = arith.extf %0 : tensor<512xbf16, #blocked> to tensor<512xf32, #blocked> %ext1 = arith.extf %1 : tensor<512xbf16, #blocked> to tensor<512xf32, #blocked> %ext2 = arith.addf %tmp0, %tmp1 : tensor<512xf32, #blocked> %2 = arith.truncf %ext2 : tensor<512xf32, #blocked> to tensor<512xbf16, #blocked>
Currently, custom arith->llvm patterns are used for this. Using this would simplify our code and rely on upstream work.
arith->llvm
Use patterns from the
-arith-emulate-unsupported-floats
pass in the pipeline to transform:into:
Currently, custom
arith->llvm
patterns are used for this. Using this would simplify our code and rely on upstream work.