[cfe-dev] Matching 'OMPThreadPrivateDecl'( like #pragma omp threadprivate(var))
Bataev, Alexey
a.bataev at hotmail.com
Wed Feb 25 00:54:54 PST 2015
Hi,
are you sure that you have OMPThreadPrivateDecl nodes at all? Check that
the code is compiled with -Xclang -fopenmp=libiomp5 option.
Best regards,
Alexey Bataev
=============
Software Engineer
Intel Compiler Team
Intel Corp.
25.02.2015 5:00, Deepak Rajendrakumaran пишет:
> This might sound silly. But I have been trying to
> match OMPThreadPrivateDecl' nodes using ASTMatcher. But I have been
> running into deadends.
>
> What I am doing now is using ASTMatcher to match 'Decl' nodes and
> check if its a 'OMPThreadPrivateDecl' by using a dyn_cast. But this
> does not work.
>
> Alternatively I tried with isa<OMPThreadPrivateDecl>(*D) (which kind
> of does the same thing)
>
> Can anyone point out how I can access the 'OMPThreadPrivateDecl nodes
> using ASTMAtcher or what I am doing wrong?
>
> -Deepak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150225/c9c0e228/attachment.html>
More information about the cfe-dev
mailing list