[all-commits] [llvm/llvm-project] 2f5b2e: [UpdateCCTestChecks] Implement --global-value-regex

Joel E. Denny via All-commits all-commits at lists.llvm.org
Tue Jul 20 08:24:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f5b2ea6cd854edfa2722ae0b5acf604a333e785
      https://github.com/llvm/llvm-project/commit/2f5b2ea6cd854edfa2722ae0b5acf604a333e785
  Author: Joel E. Denny <jdenny.ornl at gmail.com>
  Date:   2021-07-20 (Tue, 20 Jul 2021)

  Changed paths:
    A clang/test/utils/update_cc_test_checks/Inputs/global-value-regex.c
    A clang/test/utils/update_cc_test_checks/Inputs/global-value-regex.c.expected
    A clang/test/utils/update_cc_test_checks/global-value-regex.test
    M llvm/utils/UpdateTestChecks/common.py

  Log Message:
  -----------
  [UpdateCCTestChecks] Implement --global-value-regex

`--check-globals` activates checks for all global values, and
`--global-value-regex` filters them.  For example, I'd like to use it
in OpenMP offload codegen tests to check only global variables like
`.offload_maptypes*`.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D104742


  Commit: 5b0a948a81e695f044e88659be18a28256b1e309
      https://github.com/llvm/llvm-project/commit/5b0a948a81e695f044e88659be18a28256b1e309
  Author: Joel E. Denny <jdenny.ornl at gmail.com>
  Date:   2021-07-20 (Tue, 20 Jul 2021)

  Changed paths:
    A clang/test/utils/update_cc_test_checks/Inputs/global-hex-value-regex.c
    A clang/test/utils/update_cc_test_checks/Inputs/global-hex-value-regex.c.expected
    A clang/test/utils/update_cc_test_checks/global-hex-value-regex.test
    M llvm/utils/UpdateTestChecks/common.py

  Log Message:
  -----------
  [UpdateCCTestChecks] Implement --global-hex-value-regex

For example, in OpenMP offload codegen tests, global variables like
`.offload_maptypes*` are much easier to read in hex.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D104743


Compare: https://github.com/llvm/llvm-project/compare/7cefcd9230ef...5b0a948a81e6


More information about the All-commits mailing list