[llvm] MIRLangRef: fix llc invocation lines to write output (PR #74104)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 1 08:48:21 PST 2023
https://github.com/artagnon created https://github.com/llvm/llvm-project/pull/74104
The first couple of llc invocations mentioned in the document are wrong, and users will get confused about no output being written. Fix them.
>From 14820788e47f63e9abd504dffbcc497f45cbaa76 Mon Sep 17 00:00:00 2001
From: Ramkumar Ramachandra <Ramkumar.Ramachandra at imgtec.com>
Date: Fri, 1 Dec 2023 16:44:00 +0000
Subject: [PATCH] MIRLangRef: fix llc invocation lines to write output
The first couple of llc invocations mentioned in the document are wrong,
and users will get confused about no output being written. Fix them.
---
llvm/docs/MIRLangRef.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/docs/MIRLangRef.rst b/llvm/docs/MIRLangRef.rst
index 223701599ebb8b5..52ff24daa7fbabb 100644
--- a/llvm/docs/MIRLangRef.rst
+++ b/llvm/docs/MIRLangRef.rst
@@ -58,12 +58,12 @@ for the post register allocation pseudo instruction expansion pass, you can
specify the machine copy propagation pass in the ``-stop-after`` option, as it
runs just before the pass that we are trying to test:
- ``llc -stop-after=machine-cp bug-trigger.ll > test.mir``
+ ``llc -stop-after=machine-cp bug-trigger.ll -o test.mir``
If the same pass is run multiple times, a run index can be included
after the name with a comma.
- ``llc -stop-after=dead-mi-elimination,1 bug-trigger.ll > test.mir``
+ ``llc -stop-after=dead-mi-elimination,1 bug-trigger.ll -o test.mir``
After generating the input MIR file, you'll have to add a run line that uses
the ``-run-pass`` option to it. In order to test the post register allocation
More information about the llvm-commits
mailing list