Page MenuHomePhabricator

[libc] Simplifies multi implementations and benchmarks
ClosedPublic

Authored by gchatelet on May 11 2021, 5:22 AM.

Details

Summary

This is a roll forward of D101895 with two additional fixes:

Original Patch description:

This is a follow up on D101524 which:

  • simplifies cpu features detection and usage,
  • flattens target dependent optimizations so it's obvious which implementations are generated,
  • provides an implementation targeting the host (march/mtune=native) for the mem* functions,
  • makes sure all implementations are unittested (provided the host can run them).

Additional fixes:

  • Fix uninitialized ALL_CPU_FEATURES
  • Use non pseudo microarch as it is only supported from Clang 12 on

Diff Detail

Event Timeline

gchatelet created this revision.May 11 2021, 5:22 AM
gchatelet requested review of this revision.May 11 2021, 5:22 AM
sivachandra accepted this revision.May 11 2021, 10:17 AM

Does this need clang-11?

This revision is now accepted and ready to land.May 11 2021, 10:17 AM

Does this need clang-11?

Nope it should compile from clang 3.9 on.

This revision was automatically updated to reflect the committed changes.