[all-commits] [llvm/llvm-project] 5eaf70: Replace func name with regex for update test scripts
Giorgis Georgakoudis via All-commits
all-commits at lists.llvm.org
Fri Mar 12 17:01:01 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5eaf70afb5f8ae6789587e60d51c60f56caf18b0
https://github.com/llvm/llvm-project/commit/5eaf70afb5f8ae6789587e60d51c60f56caf18b0
Author: Giorgis Georgakoudis <georgakoudis1 at llnl.gov>
Date: 2021-03-12 (Fri, 12 Mar 2021)
Changed paths:
A clang/test/utils/update_cc_test_checks/Inputs/generated-funcs-regex.c
A clang/test/utils/update_cc_test_checks/Inputs/generated-funcs-regex.c.expected
A clang/test/utils/update_cc_test_checks/generated-funcs-regex.test
M llvm/utils/UpdateTestChecks/common.py
M llvm/utils/update_llc_test_checks.py
Log Message:
-----------
Replace func name with regex for update test scripts
The patch adds an argument to update test scripts, such as update_cc_test_checks, for replacing a function name matching a regex. This functionality is needed to match generated function signatures that include file hashes. Example:
The function signature for the following function:
`__omp_offloading_50_b84c41e__Z9ftemplateIiET_i_l30_worker`
with `--replace-function-regex "__omp_offloading_[0-9]+_[a-z0-9]+_(.*)"` will become:
`CHECK-LABEL: @{{__omp_offloading_[0-9]+_[a-z0-9]+__Z9ftemplateIiET_i_l30_worker}}(`
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D97107
More information about the All-commits
mailing list