Skip to content

Move CodeGen_Hexagon to internal linkage and don't include it without WITH_HEXAGON#5567

Merged
dsharletg merged 3 commits intomasterfrom
dsharletg/hexagon-internal
Dec 16, 2020
Merged

Move CodeGen_Hexagon to internal linkage and don't include it without WITH_HEXAGON#5567
dsharletg merged 3 commits intomasterfrom
dsharletg/hexagon-internal

Conversation

@dsharletg
Copy link
Contributor

This PR is an alternative to #5503 to address #5559. This is similar to #5548.

It moves all of CodeGen_Hexagon into an internal linkage namespace, and wraps the whole thing in an #ifdef WITH_HEXAGON.

I wanted to do this for all of the CodeGen_* classes, but this only works for CodeGen_Hexagon because it isn't used by CodeGen_GPU_Host as a template parameter.

I think we should move the runtime calls generated by CodeGen_GPU_Host to a separate lowering pass (like how HexagonOffload does it), and then we could do this for the rest of the CodeGen_* classes as well. I think most of the complexity there is GLSL, which might go away soon (#5475)?

@steven-johnson
Copy link
Contributor

Is GLSL still needed for OpenGLCompute?

@dsharletg
Copy link
Contributor Author

I meant the vertex buffer stuff, which I imagine wouldn't be needed for OpenGLCompute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants