Pragmas from IR code

Hi,

is it possible to figure out from the IR which is the line of an OpenMP pragma?

I noticed that printing the lines of code from the metadata of the instructions of some example programs,
the instruction that calls “__kmpc_global_thread_num” always ends up to be in aline with a pragma.
But I guess this is not enough to say that, right? Is there any other way?

Thanks.
Best,
Simone

Simone Atzeni
simone.at@gmail.com
+1 (801) 696-8373