[cfe-dev] Parsing CUDA file to AST
Madhur Amilkanthwar
madhur13490 at gmail.com
Wed Mar 5 20:27:19 PST 2014
one quick approach would be to generate a "dummy" C code out of CUDA device
code.
By "dummy", I mean replace CUDA specific variables with something else and
take special care of them after parsing.
However, this is a hacky solution and may not work in some cases but if
your needs are not huge then I think this should work.
I am also badly waiting for clang to compile CUDA code to LLVM IR.
On Thu, Mar 6, 2014 at 6:53 AM, jotas <julian.maciejewski at gmail.com> wrote:
> Is it possible to do it by hand. Define it somewhere to don;t get error and
> clang will recognize it as statements?
>
>
>
> --
> View this message in context:
> http://clang-developers.42468.n3.nabble.com/Parsing-CUDA-file-to-AST-tp4038287p4038307.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
--
Thank You.
Madhur D. Amilkanthwar
RISE lab,
IIT Madras.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140306/79d84fe0/attachment.html>
More information about the cfe-dev
mailing list