[libc-commits] [PATCH] D101895: [libc] Simplifies multi implementations and benchmarks

Guillaume Chatelet via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed May 5 09:26:52 PDT 2021

gchatelet added a comment.

This is now ready for review (sorry for the many updates)

@sivachandra with this patch we now produce a `memcpy_opt_host` (resp. `memset_opt_host`, `bzero_opt_host`) variant that compiles to the host native architecture in addition to the `memcpy`, `memset`, `bzero` functions that compiles to the compiler default architecture.

I think we have the following scenarios:

- we compile a release and we want to specify which target to compile for (right now this is what the compiler decide is the default).
- we compile a release via cross compilation (ARM compiled on x86 or vice versa), so we want to explicitly specify which arch to target.
- we want to run benchmarks on a specific machine and want it to leverage -march/-mtune = native.

  rG LLVM Github Monorepo



More information about the libc-commits mailing list