[PATCH] D156646: [RISCV] Expand load extension / truncate store for bf16

Jun Sha via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 30 23:52:01 PDT 2023


joshua-arch1 created this revision.
joshua-arch1 added reviewers: asb, craig.topper, kito-cheng.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
joshua-arch1 requested review of this revision.
Herald added subscribers: llvm-commits, wangpc, eopXD, MaskRay.
Herald added a project: LLVM.

Currentlt, bf16 operations are automatically supported by promoting to float. This patch adds bf16 support by ensuring that load extension / truncate store operations are properly expanded.


https://reviews.llvm.org/D156646

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/test/CodeGen/RISCV/bf16-promote.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156646.545514.patch
Type: text/x-patch
Size: 6494 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230731/0296d0d9/attachment.bin>


More information about the llvm-commits mailing list