From 081cab0d3136ffdfd5f6e3d84b1cbfb9cc4bd076 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 2 May 2023 22:08:05 -0700 Subject: [PATCH] [docs] Prefer --target= -masm=intel to -target -mllvm -x86-asm-syntax=intel --- llvm/docs/CommandGuide/llvm-mca.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/docs/CommandGuide/llvm-mca.rst b/llvm/docs/CommandGuide/llvm-mca.rst index 04248f6..324e1e6 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 -- 2.7.4