This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Expand load extension / truncate store for bf16
ClosedPublic

Authored by joshua-arch1 on Jul 30 2023, 11:51 PM.

Details

Summary

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.

Diff Detail

Event Timeline

joshua-arch1 created this revision.Jul 30 2023, 11:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 30 2023, 11:51 PM
joshua-arch1 requested review of this revision.Jul 30 2023, 11:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 30 2023, 11:52 PM
craig.topper added inline comments.Jul 31 2023, 12:16 PM
llvm/test/CodeGen/RISCV/bf16-promote.ll
2

Use -mattr= and -target-abi=

craig.topper accepted this revision.Jul 31 2023, 12:30 PM

LGTM with the comment addressed.

This revision is now accepted and ready to land.Jul 31 2023, 12:30 PM