I have a dpc++ code and want to emit only the device code AST. I use a clang command follows:
clang++ -Xclang -ast-dump -fsycl vector_add.cpp
When executing this command, there will be a lot of AST host code that I don’t need.
So is there any way to generate only the kernel ast?