llvm-project
af6e3c04 - [mlir][math] Fix intrinsic conversions to LLVM for 0D-vector types (#141020)

Commit
120 days ago
[mlir][math] Fix intrinsic conversions to LLVM for 0D-vector types (#141020) `vector<t>` types are not compatible with the LLVM type system – with the current approach employed within `LLVMTypeConverter`, they must be explicitly converted into `vector<1xt>` when lowering. Employ this rule within the conversion patterns for intrinsics that are handled directly within `MathToLLVM`: `math.ctlz` `.cttz`, `.absi`, `.expm1`, `.log1p`, `.rsqrt`, `.isnan`, `.isfinite`. This change does not cover/test patterns that are based off `VectorConvertToLLVMPattern` template from `LLVMCommon/VectorPattern.h`. --------- Signed-off-by: Artem Gindinson <gindinson@roofline.ai>
Author
Parents
Loading