[llvm] 992da89 - [llvm-exegesis] Update doc.
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 28 00:44:17 PDT 2020
Author: Clement Courbet
Date: 2020-10-28T08:42:38+01:00
New Revision: 992da89450d6080db3a23ca3e3df09f1ebecb0af
URL: https://github.com/llvm/llvm-project/commit/992da89450d6080db3a23ca3e3df09f1ebecb0af
DIFF: https://github.com/llvm/llvm-project/commit/992da89450d6080db3a23ca3e3df09f1ebecb0af.diff
LOG: [llvm-exegesis] Update doc.
We don't need an external script to scan all opcodes anymore, just use
`-opcode-index=-1`.
Added:
Modified:
llvm/docs/CommandGuide/llvm-exegesis.rst
Removed:
################################################################################
diff --git a/llvm/docs/CommandGuide/llvm-exegesis.rst b/llvm/docs/CommandGuide/llvm-exegesis.rst
index c5756f652bee..5a4ac7f40fca 100644
--- a/llvm/docs/CommandGuide/llvm-exegesis.rst
+++ b/llvm/docs/CommandGuide/llvm-exegesis.rst
@@ -73,12 +73,7 @@ To measure the latency of all instructions for the host architecture, run:
.. code-block:: bash
- #!/bin/bash
- readonly INSTRUCTIONS=$(($(grep INSTRUCTION_LIST_END build/lib/Target/X86/X86GenInstrInfo.inc | cut -f2 -d=) - 1))
- for INSTRUCTION in $(seq 1 ${INSTRUCTIONS});
- do
- ./build/bin/llvm-exegesis -mode=latency -opcode-index=${INSTRUCTION} | sed -n '/---/,$p'
- done
+ $ llvm-exegesis -mode=latency -opcode-index=-1
FIXME: Provide an :program:`llvm-exegesis` option to test all instructions.
More information about the llvm-commits
mailing list