[llvm-exegesis] Update doc.
authorClement Courbet <courbet@google.com>
Wed, 28 Oct 2020 07:15:58 +0000 (08:15 +0100)
committerClement Courbet <courbet@google.com>
Wed, 28 Oct 2020 07:42:38 +0000 (08:42 +0100)
We don't need an external script to scan all opcodes anymore, just use
`-opcode-index=-1`.

llvm/docs/CommandGuide/llvm-exegesis.rst

index c5756f6..5a4ac7f 100644 (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.