[PATCH] D112936: [Docs] Document scripts that are use to generate assertion in test cases

Jessica Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 2 12:52:22 PDT 2021


jrtc27 added a comment.

> Suggested by @jrtc27

I didn't actually suggest doing this, just gave you example commands to run. I kind of take the view that everyone should be capable of reading the first line in the file marked NOTE: and working out how to run the script in question, it has a full --help output.



================
Comment at: llvm/docs/TestingGuide.rst:290
+
+     % llvm/utils/update_llc_test_checks.py --llc-binary build/bin/llc -u `find llvm/test/CodeGen/RISCV/ \( -name '*.ll' -o -name '*.mir' \)`
+
----------------
MaskRay wrote:
> Probably only run on existing tests which have the notice line.
> 
> Change `build` to something else to indicate it is a placeholder. Many people don't use `build` as the build directory.
> Probably only run on existing tests which have the notice line.

That's what the -u is for, will check the NOTE: line exists and matches the script name


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112936/new/

https://reviews.llvm.org/D112936



More information about the llvm-commits mailing list