Skip to content

Commit

Permalink
[docs] Prefer --target= -masm=intel to -target -mllvm -x86-asm-syntax…
Browse files Browse the repository at this point in the history
…=intel
  • Loading branch information
MaskRay committed May 3, 2023
1 parent a070cb5 commit 081cab0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/docs/CommandGuide/llvm-mca.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ directly into :program:`llvm-mca` for analysis:

.. code-block:: bash
$ clang foo.c -O2 -target x86_64-unknown-unknown -S -o - | llvm-mca -mcpu=btver2
$ clang foo.c -O2 --target=x86_64 -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
$ clang foo.c -O2 --target=x86_64 -masm=intel -S -o - | llvm-mca -mcpu=btver2
(:program:`llvm-mca` detects Intel syntax by the presence of an `.intel_syntax`
directive at the beginning of the input. By default its output syntax matches
Expand Down

0 comments on commit 081cab0

Please sign in to comment.