[llvm] dabf849 - MIRLangRef: fix llc invocation lines to write output (#74104)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 8 01:54:37 PST 2023
Author: Ramkumar Ramachandra
Date: 2023-12-08T09:54:33Z
New Revision: dabf8490a9ad0b8bcfd21f74b1f76ba5cdb493c9
URL: https://github.com/llvm/llvm-project/commit/dabf8490a9ad0b8bcfd21f74b1f76ba5cdb493c9
DIFF: https://github.com/llvm/llvm-project/commit/dabf8490a9ad0b8bcfd21f74b1f76ba5cdb493c9.diff
LOG: MIRLangRef: fix llc invocation lines to write output (#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.
Added:
Modified:
llvm/docs/MIRLangRef.rst
Removed:
################################################################################
diff --git a/llvm/docs/MIRLangRef.rst b/llvm/docs/MIRLangRef.rst
index 223701599ebb8..52ff24daa7fba 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