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.
This commit is contained in:
Ramkumar Ramachandra 2023-12-08 09:54:33 +00:00 committed by GitHub
parent cf2d625a5d
commit dabf8490a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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