Zahira Ammarguellat | 27f5d35 | 2019-12-09 00:50:30 -0500 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -target-cpu x86-64 %s -O3 -opt-record-file=t1.opt -fopenmp -emit-llvm-bc -o %t.bc |
| 2 | // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -target-cpu x86-64 -O3 -x ir %t.bc -opt-record-file %t.opt -fopenmp -emit-obj |
Zahira Ammarguellat | a3b2552 | 2019-12-05 10:23:47 -0500 | [diff] [blame] | 3 | // RUN: cat %t.opt | FileCheck -check-prefix=CHECK %s |
Zahira Ammarguellat | 32c802e | 2019-12-09 09:24:47 -0500 | [diff] [blame] | 4 | // REQUIRES: x86-registered-target |
Zahira Ammarguellat | a3b2552 | 2019-12-05 10:23:47 -0500 | [diff] [blame] | 5 | |
| 6 | void foo(int *a, int *b, int *c) { |
| 7 | #pragma omp parallel for |
Zahira Ammarguellat | 27f5d35 | 2019-12-09 00:50:30 -0500 | [diff] [blame] | 8 | for (int i = 0; i < 100; i++) { |
| 9 | a[i] = b[i] + c[i]; |
| 10 | } |
Zahira Ammarguellat | a3b2552 | 2019-12-05 10:23:47 -0500 | [diff] [blame] | 11 | } |
| 12 | |
| 13 | // CHECK: --- !Missed |
| 14 | // CHECK: Pass: inline |
| 15 | // CHECK: Name: NoDefinition |
| 16 | // CHECK: Function: foo |