From 992da89450d6080db3a23ca3e3df09f1ebecb0af Mon Sep 17 00:00:00 2001 From: Clement Courbet Date: Wed, 28 Oct 2020 08:15:58 +0100 Subject: [PATCH] [llvm-exegesis] Update doc. We don't need an external script to scan all opcodes anymore, just use `-opcode-index=-1`. --- llvm/docs/CommandGuide/llvm-exegesis.rst | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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.