<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace;font-size:small">Hello,<br clear="all"></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small">I am writing test cases for the OpenMPOpt pass. I am dumping the IR and then checking the correctness of IR (after certain openmp related optimizations). For example;</div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small">// RUN: %clang_cc1 -verify -fopenmp -O3 -x c -std=c99 -emit-llvm %s -o - | FileCheck %s<br>// expected-no-diagnostics<br><br>void test_1(){<br><br>#pragma omp parallel<br>{<br> #pragma omp for <br>      for (int i=0; i < 100; i++);<br>}<br>}<br><br>// CHECK: define void @test_1()<br>// CHECK: ...) @__kmpc_for_call(<br>// CHECK: ret void<br></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small">// CHECK: define internal void @.omp_outlined.(<br>// CHECK: call void @__kmpc_for_static_init_4(<br>// CHECK: call void @__kmpc_for_static_fini(<br>// CHECK-NEXT: call void @__kmpc_barrier(<br></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small">// CHECK: ret void</div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small">Is this a valid test format for the pass or should it be through the opt tool?</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Abid M. Malik<br>******************************************************<br>"I have learned silence from the talkative, toleration from the intolerant, and kindness from the unkind"---Gibran<br>"Success is not for the chosen few, but for the few who choose" --- John Maxwell<br>"Being a good person does not depend on your religion or status in life, your race or skin color, political views or culture. IT DEPENDS ON HOW GOOD YOU TREAT OTHERS"--- Abid<br>"The Universe is talking to us, and the language of the Universe is mathematics."----Abid<br> </div></div></div></div>