Skip to content

Move CodeGen_GPU_Host to a lowering pass #5650

@dsharletg

Description

@dsharletg

Here's what I think we should do on this issue. We can't do what #5567 did to the other targets because CodeGen_GPU_Host needs them as CRTP base classes.

We can fix that by refactoring CodeGen_GPU_Host to be a lowering pass like HexagonOffload.cpp instead. I think this would generally be a great cleanup to do anyways. CodeGen_GPU_Host wouldn't be needed any more. This will be much easier after OpenGL goes away (which is #5626), because OpenGL vertex buffer stuff is the hardest thing to move to a separate lowering pass.

After that is done, we can just do basically the same thing as #5567 to the rest of the CodeGen_* classes.

Originally posted by @dsharletg in #5503 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    code_cleanupNo functional changes. Reformatting, reorganizing, or refactoring existing code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions