[llvm-exegesis] Update doc.

We don't need an external script to scan all opcodes anymore, just use
`-opcode-index=-1`.
This commit is contained in:
Clement Courbet 2020-10-28 08:15:58 +01:00
parent d1b9c0fd1d
commit 992da89450
1 changed files with 1 additions and 6 deletions

View File

@ -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.