[all-commits] [llvm/llvm-project] af6e3c: [mlir][math] Fix intrinsic conversions to LLVM for...
Artem Gindinson via All-commits
all-commits at lists.llvm.org
Mon Jun 2 04:28:07 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: af6e3c045b07ebc7ce09318c90048f407a15b391
https://github.com/llvm/llvm-project/commit/af6e3c045b07ebc7ce09318c90048f407a15b391
Author: Artem Gindinson <gindinson at roofline.ai>
Date: 2025-06-02 (Mon, 02 Jun 2025)
Changed paths:
M mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp
M mlir/test/Conversion/MathToLLVM/math-to-llvm.mlir
Log Message:
-----------
[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 at roofline.ai>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list