This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Generalise shouldExtendTypeInLibcall logic to apply to all <XLEN floats on soft ABIs
ClosedPublic

Authored by asb on May 25 2023, 5:39 AM.

Details

Summary

This results in improved codegen for half/bf16 libcalls on soft ABIs

Adds a RISCVSubtarget helper method for determining if a soft FP ABI is being targeted (future bf16 related patches make use of this).

Diff Detail

Event Timeline

asb created this revision.May 25 2023, 5:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 25 2023, 5:39 AM
asb requested review of this revision.May 25 2023, 5:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 25 2023, 5:39 AM
asb updated this revision to Diff 526187.May 26 2023, 2:00 PM
asb edited the summary of this revision. (Show Details)

Rebase, add a helper method for determining if we're targeting a soft FP ABI.

asb updated this revision to Diff 526453.May 29 2023, 10:08 AM
asb edited the summary of this revision. (Show Details)

Rebase on top of D151563

kito-cheng accepted this revision.May 29 2023, 7:08 PM

LGTM :)

This revision is now accepted and ready to land.May 29 2023, 7:08 PM