Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenCL Backend: Structured Control-Flow Generation #44

Closed
m4rs-mt opened this issue Nov 3, 2019 · 1 comment
Closed

OpenCL Backend: Structured Control-Flow Generation #44

m4rs-mt opened this issue Nov 3, 2019 · 1 comment
Assignees
Milestone

Comments

@m4rs-mt
Copy link
Owner

m4rs-mt commented Nov 3, 2019

Most OpenCL drivers complain about general goto commands that could easily be generated from our intermediate representation. For this purpose, we have added the IfInfos and LoopInfos analyses. They allow us to deduce high-level control flow that could be used to create good-looking if(...)and for or while loops within the CLCodeGenerator class.

The missing functionality should be implemented within the method GenerateCodeInternal in the class CLCodeGenerator.

@m4rs-mt m4rs-mt added this to the v0.7 milestone Nov 3, 2019
@m4rs-mt m4rs-mt self-assigned this Nov 27, 2019
@m4rs-mt
Copy link
Owner Author

m4rs-mt commented Nov 27, 2019

This task is no longer necessary - the latest drivers have adequate support for goto statements to model the necessary control flow. However, high level control flow structures may be required in the future for extended SPIR-V support.

@m4rs-mt m4rs-mt closed this as completed Nov 27, 2019
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

No branches or pull requests

1 participant