This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add riscv64 fenv implementation and enable the fenv.h functions.
ClosedPublic

Authored by sivachandra on Mar 8 2023, 2:00 AM.

Diff Detail

Event Timeline

sivachandra created this revision.Mar 8 2023, 2:00 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 8 2023, 2:00 AM
sivachandra requested review of this revision.Mar 8 2023, 2:00 AM

Cleanup few typos.

Remove few redundant constraints from inline assembly.

mikhail.ramalho accepted this revision.Mar 8 2023, 5:37 AM
This revision is now accepted and ready to land.Mar 8 2023, 5:37 AM

This needs an fenv_t type in the public headers

This needs an fenv_t type in the public headers

@mikhail.ramalho has a patch out for the full build which includes fenv_t definition: https://reviews.llvm.org/D145444

This needs an fenv_t type in the public headers

For now, we are focusing on building libc with -DLLVM_LIBC_FULL_BUILD=OFF, that's why the definition is only added in the next patch in the series.