[llvm-mca] Add an example showing how to get Intel assembly syntax

Patch by Jeff Muizelaar.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332627 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrea Di Biagio 2018-05-17 16:48:53 +00:00
parent 01ff7b72c9
commit a1fecd54c5

View File

@ -63,6 +63,12 @@ directly into llvm-mca for analysis:
$ clang foo.c -O2 -target x86_64-unknown-unknown -S -o - | llvm-mca -mcpu=btver2
Or for Intel syntax:
... code-block:: bash
$ clang foo.c -O2 -target x86_64-unknown-unknown -mllvm -x86-asm-syntax=intel -S -o - | llvm-mca -mcpu=btver2
OPTIONS
-------