[clang] [CIR] Implement matrix to matrix int & fp casts (PR #238862)
Amr Hesham via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 10 08:52:55 PST 2026
AmrDeveloper wrote:
> > Interesting... I think this makes sense to me, @andykaylor : Are you comfortable with making these casts work with matrixes? it seems reasonable to me...
>
> Yes. I don't see a reason not to do this. I was a bit surprised that no additional lowering work was needed, but I guess that just falls out of the type conversion and existing vector handling.
Because it's lowered to a vector at the end, there's no need for extra lowering, but I guess for other cast kinds, I might need to extend other vec ops to support matrix operations similar to Splat or introduce a matrix version of them, for example Shuffle op
https://github.com/llvm/llvm-project/pull/238862
More information about the cfe-commits
mailing list