[PATCH] D35058: [docs] Document how to debug instruction scheduling model generation

Christof Douma via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 17 03:26:08 PDT 2017


christof added a comment.

Please make sure that the build directory is not assumed to be present in the root of the source tree. For the rest I'm happy to approve it.



================
Comment at: docs/WritingAnLLVMBackend.rst:1038
+  $ <build>/bin/llvm-tblgen -debug-only=subtarget-emitter -gen-subtarget \
+    -I <build>/../lib/Target/AArch64 -I <build>/../include \
+    -I <build>/../lib/Target <build>/../lib/Target/<target>/<target>.td \
----------------
This assumes the <build> directory is at the top of the source directory. That is not true in general.


================
Comment at: docs/WritingAnLLVMBackend.rst:1040
+    -I <build>/../lib/Target <build>/../lib/Target/<target>/<target>.td \
+    -o <build>/lib/Target/<target>/<target>GenSubtargetInfo.inc.tmp \
+    > tblGenSubtarget.dbg 2>&1
----------------
Any particular reason to write to the result there? I would go for -o /dev/null because we are not interested in the generated C output.



Repository:
  rL LLVM

https://reviews.llvm.org/D35058





More information about the llvm-commits mailing list