[clang] [clang] fix half && bfloat16 convert node expr codegen (PR #89051)

via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 18 06:22:14 PDT 2024


JinjinLi868 wrote:

> > But In some target, it supply a HW instruction to complete the process (fp16->float32->bf16) . so it just supply a intrinsic (fp16 -> bf16)
> 
> Which is not a bitcast. The correct IR representation of this conversion is fpext+fptrunc

i understand, i have changed. but for the vector convert case, it is also a bitcast IR

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


More information about the cfe-commits mailing list