Add the --include-generated-funcs option to update_cc_test_checks.py so that any functions created by the compiler that don't exist in the source will also be checked. We need to maintain the output order of generated function checks so that CHECK-LABEL works properly. To do so, maintain a list of functions output for each prefix in the order they are output. Use this list to output checks for generated functions in the proper order. Differential Revision: https://reviews.llvm.org/D83004
32 lines
604 B
C
32 lines
604 B
C
// Check that the CHECK lines are generated for clang-generated functions
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fopenmp %s -emit-llvm -o - | FileCheck --check-prefix=OMP %s
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu %s -emit-llvm -o - | FileCheck --check-prefix=NOOMP %s
|
|
|
|
const int size = 1024 * 1024 * 32;
|
|
|
|
double A[size];
|
|
|
|
void foo(void);
|
|
|
|
int main() {
|
|
int i = 0;
|
|
|
|
#pragma omp parallel for
|
|
for (i = 0; i < size; ++i) {
|
|
A[i] = 0.0;
|
|
}
|
|
|
|
foo();
|
|
|
|
return 0;
|
|
}
|
|
|
|
void foo(void) {
|
|
int i = 0;
|
|
|
|
#pragma omp parallel for
|
|
for (i = 0; i < size; ++i) {
|
|
A[i] = 1.0;
|
|
}
|
|
}
|