Skip to content

Is there a way to emit only the kernel ast on the device side #4880

@malixian

Description

@malixian

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions