[llvm] 081cab0 - [docs] Prefer --target= -masm=intel to -target -mllvm -x86-asm-syntax=intel

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue May 2 22:08:10 PDT 2023


Author: Fangrui Song
Date: 2023-05-02T22:08:05-07:00
New Revision: 081cab0d3136ffdfd5f6e3d84b1cbfb9cc4bd076

URL: https://github.com/llvm/llvm-project/commit/081cab0d3136ffdfd5f6e3d84b1cbfb9cc4bd076
DIFF: https://github.com/llvm/llvm-project/commit/081cab0d3136ffdfd5f6e3d84b1cbfb9cc4bd076.diff

LOG: [docs] Prefer --target= -masm=intel to -target -mllvm -x86-asm-syntax=intel

Added: 
    

Modified: 
    llvm/docs/CommandGuide/llvm-mca.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/CommandGuide/llvm-mca.rst b/llvm/docs/CommandGuide/llvm-mca.rst
index 04248f68ab42..324e1e6e7bd1 100644
--- a/llvm/docs/CommandGuide/llvm-mca.rst
+++ b/llvm/docs/CommandGuide/llvm-mca.rst
@@ -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


        


More information about the llvm-commits mailing list