-
I have a dpc++ code and want to emit only the device code AST. I use a clang command follows:
When executing this command, there will be a lot of AST host code that I don’t need. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Tagging @Fznamznon to correct me if I'm wrong, but it looks like |
Beta Was this translation helpful? Give feedback.
-
I don't think we have a way to do that. Even if |
Beta Was this translation helpful? Give feedback.
-
Yes, you are right, I have tried it. |
Beta Was this translation helpful? Give feedback.
I don't think we have a way to do that. Even if
-fsycl-device-only
is passed - AST will be built and dumped byast-dump
for the whole translation unit including host code.