[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGenCXX / pragma-loop-distribute.cpp
blob98aef21da2acd22516203cc324a901dfedcde33f
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -emit-llvm -o - %s | FileCheck %s
3 void while_test(int *List, int Length, int *List2, int Length2) {
4 // CHECK: define {{.*}} @_Z10while_test
5 int i = 0;
7 #pragma clang loop distribute(enable)
8 while (i < Length) {
9 // CHECK: br label {{.*}}, !llvm.loop ![[LOOP_1:.*]]
10 List[i] = i * 2;
11 i++;
14 i = 0;
15 while (i < Length2) {
16 // CHECK: br label {{.*}}, !llvm.loop [[LOOP_2:![0-9]+]]
17 List2[i] = i * 2;
18 i++;
22 // CHECK: ![[LOOP_1]] = distinct !{![[LOOP_1]], [[MP:![0-9]+]], ![[DISTRIBUTE_ENABLE:.*]]}
23 // CHECK: ![[DISTRIBUTE_ENABLE]] = !{!"llvm.loop.distribute.enable", i1 true}
24 // CHECK: [[LOOP_2]] = distinct !{[[LOOP_2]], [[MP]]}