diff options
author | Henrik G. Olsson <hnrklssn@gmail.com> | 2023-07-05 17:08:51 +0000 |
---|---|---|
committer | Alex Brachet <abrachet@google.com> | 2023-07-05 17:10:47 +0000 |
commit | 68f5d1be3d8f9b2ee2f25098203b24a32057b4e6 (patch) | |
tree | 190285fdfee3324e45f270871ee91ddc5d15978a /clang/test/utils | |
parent | 80368a104e09f50ceab23f84dea97ed117804ba2 (diff) | |
download | llvm-68f5d1be3d8f9b2ee2f25098203b24a32057b4e6.zip llvm-68f5d1be3d8f9b2ee2f25098203b24a32057b4e6.tar.gz llvm-68f5d1be3d8f9b2ee2f25098203b24a32057b4e6.tar.bz2 |
[UTC] Adapt version matcher to glob CLANG_VENDOR
Both the pattern for finding the clang version metadata, and the emitted
checker, are now more robust, to handle a vendor prefix.
Differential Revision: https://reviews.llvm.org/D154520
Diffstat (limited to 'clang/test/utils')
-rw-r--r-- | clang/test/utils/update_cc_test_checks/Inputs/generated-funcs.c.generated.all.expected | 4 | ||||
-rw-r--r-- | clang/test/utils/update_cc_test_checks/Inputs/generated-funcs.c.no-generated.all.expected | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/utils/update_cc_test_checks/Inputs/generated-funcs.c.generated.all.expected b/clang/test/utils/update_cc_test_checks/Inputs/generated-funcs.c.generated.all.expected index 6695981..6ec6116 100644 --- a/clang/test/utils/update_cc_test_checks/Inputs/generated-funcs.c.generated.all.expected +++ b/clang/test/utils/update_cc_test_checks/Inputs/generated-funcs.c.generated.all.expected @@ -247,12 +247,12 @@ void foo(void) { //. // OMP: [[META0:![0-9]+]] = !{i32 1, !"wchar_size", i32 4} // OMP: [[META1:![0-9]+]] = !{i32 7, !"openmp", i32 51} -// OMP: [[META2:![0-9]+]] = !{!"clang version {{.*}}"} +// OMP: [[META2:![0-9]+]] = !{!"{{.*}}clang version {{.*}}"} // OMP: [[META3:![0-9]+]] = !{[[META4:![0-9]+]]} // OMP: [[META4]] = !{i64 2, i64 -1, i64 -1, i1 true} //. // NOOMP: [[META0:![0-9]+]] = !{i32 1, !"wchar_size", i32 4} -// NOOMP: [[META1:![0-9]+]] = !{!"clang version {{.*}}"} +// NOOMP: [[META1:![0-9]+]] = !{!"{{.*}}clang version {{.*}}"} // NOOMP: [[LOOP2]] = distinct !{[[LOOP2]], [[META3:![0-9]+]]} // NOOMP: [[META3]] = !{!"llvm.loop.mustprogress"} // NOOMP: [[LOOP4]] = distinct !{[[LOOP4]], [[META3]]} diff --git a/clang/test/utils/update_cc_test_checks/Inputs/generated-funcs.c.no-generated.all.expected b/clang/test/utils/update_cc_test_checks/Inputs/generated-funcs.c.no-generated.all.expected index 219e5ce..1b00740 100644 --- a/clang/test/utils/update_cc_test_checks/Inputs/generated-funcs.c.no-generated.all.expected +++ b/clang/test/utils/update_cc_test_checks/Inputs/generated-funcs.c.no-generated.all.expected @@ -118,12 +118,12 @@ void foo(void) { //. // OMP: [[META0:![0-9]+]] = !{i32 1, !"wchar_size", i32 4} // OMP: [[META1:![0-9]+]] = !{i32 7, !"openmp", i32 51} -// OMP: [[META2:![0-9]+]] = !{!"clang version {{.*}}"} +// OMP: [[META2:![0-9]+]] = !{!"{{.*}}clang version {{.*}}"} // OMP: [[META3:![0-9]+]] = !{[[META4:![0-9]+]]} // OMP: [[META4]] = !{i64 2, i64 -1, i64 -1, i1 true} //. // NOOMP: [[META0:![0-9]+]] = !{i32 1, !"wchar_size", i32 4} -// NOOMP: [[META1:![0-9]+]] = !{!"clang version {{.*}}"} +// NOOMP: [[META1:![0-9]+]] = !{!"{{.*}}clang version {{.*}}"} // NOOMP: [[LOOP2]] = distinct !{[[LOOP2]], [[META3:![0-9]+]]} // NOOMP: [[META3]] = !{!"llvm.loop.mustprogress"} // NOOMP: [[LOOP4]] = distinct !{[[LOOP4]], [[META3]]} |