HomePhabricator

[libc] Simplifies multi implementations

Authored by gchatelet on May 12 2021, 12:24 AM.

Description

[libc] Simplifies multi implementations

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

Differential Revision: https://reviews.llvm.org/D102233

Details

Committed
gchateletMay 12 2021, 12:24 AM
Differential Revision
D102233: [libc] Simplifies multi implementations and benchmarks
Parents
rG8aa7f28497b6: scudo: fix CheckFailed-related build breakage
Branches
Unknown
Tags
Unknown