[clang] [llvm] [AMDGPU][WIP] Extend readlane, writelane and readfirstlane intrinsic lowering for generic types (PR #89217)

Vikram Hegde via cfe-commits cfe-commits at lists.llvm.org
Thu May 23 04:19:02 PDT 2024


vikramRH wrote:

> > 1. What's the proper way to legalize f16 and bf16 for SDAG case without bitcasts ? (I would think  "fp_extend -> LaneOp -> Fptrunc" is wrong)
> 
> Bitcast to i16, anyext to i32, laneop, trunc to i16, bitcast to original type.
> 
> Why wouldn't you use bitcasts?

Just a doubt I had on previous comments, sorry for the noise !

https://github.com/llvm/llvm-project/pull/89217


More information about the cfe-commits mailing list