Skip to content

Commit dabf849

Browse files
authored
MIRLangRef: fix llc invocation lines to write output (llvm#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.
1 parent cf2d625 commit dabf849

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/docs/MIRLangRef.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ for the post register allocation pseudo instruction expansion pass, you can
5858
specify the machine copy propagation pass in the ``-stop-after`` option, as it
5959
runs just before the pass that we are trying to test:
6060

61-
``llc -stop-after=machine-cp bug-trigger.ll > test.mir``
61+
``llc -stop-after=machine-cp bug-trigger.ll -o test.mir``
6262

6363
If the same pass is run multiple times, a run index can be included
6464
after the name with a comma.
6565

66-
``llc -stop-after=dead-mi-elimination,1 bug-trigger.ll > test.mir``
66+
``llc -stop-after=dead-mi-elimination,1 bug-trigger.ll -o test.mir``
6767

6868
After generating the input MIR file, you'll have to add a run line that uses
6969
the ``-run-pass`` option to it. In order to test the post register allocation

0 commit comments

Comments
 (0)