[all-commits] [llvm/llvm-project] 1698cc: [Utils] Allow "on-the-fly" argument changes for up...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Tue Feb 11 14:30:27 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1698cc7ebabe47be6cf225960e55ddb8a884d118
      https://github.com/llvm/llvm-project/commit/1698cc7ebabe47be6cf225960e55ddb8a884d118
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2020-02-11 (Tue, 11 Feb 2020)

  Changed paths:
    M llvm/test/Transforms/Attributor/align.ll
    M llvm/test/Transforms/Attributor/liveness.ll
    M llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/argument_name_reuse.ll.expected
    M llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/basic.ll.funcsig.expected
    A llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/on_the_fly_arg_change.ll
    A llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/on_the_fly_arg_change.ll.expected
    M llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/scrub_attrs.ll.scrub.expected
    M llvm/test/tools/UpdateTestChecks/update_test_checks/basic.test
    A llvm/test/tools/UpdateTestChecks/update_test_checks/on_the_fly_arg_change.test
    M llvm/test/tools/UpdateTestChecks/update_test_checks/scrub_attrs.test
    M llvm/utils/UpdateTestChecks/common.py
    M llvm/utils/update_test_checks.py

  Log Message:
  -----------
  [Utils] Allow "on-the-fly" argument changes for update_test_check scripts

Update test scripts were limited because they performed a single action
on the entire file and if that action was controlled by arguments, like
the one introduced in D68819, there was no record of it.

This patch introduces the capability of changing the arguments passed to
the script "on-the-fly" while processing a test file. In addition, an
"on/off" switch was added so that processing can be disabled for parts
of the file where the content is simply copied. The last extension is a
record of the invocation arguments in the auto generated NOTE. These
arguments are also picked up in a subsequent invocation, allowing
updates with special options enabled without user interaction.

To change the arguments the string `UTC_ARGS:` has to be present in a
line, followed by "additional command line arguments". That is
everything that follows `UTC_ARGS:` will be added to a growing list
of "command line arguments" which is reparsed after every update.

Reviewed By: arichardson

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




More information about the All-commits mailing list