[MemFunctions] Add microbenchmarks for memory functions.

Summary:
Memory functions (memcmp, memcpy, ...) are typically recognized by the
compiler and expanded to specific asm patterns when the size is known at
compile time.

This will help catch any regressions in expansions.

Right now we're only testing memcmp (see context in D60318).

Subscribers: mgorny, llvm-commits, gchatelet, spatel

Tags: #llvm

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

llvm-svn: 369707
3 files changed