Skip to content

Fix OpenCL reserved keyword local variable generation#220

Open
Thanhdn1984 wants to merge 1 commit into
Syncleus:masterfrom
Thanhdn1984:susan/fix-opencl-reserved-keyword-locals
Open

Fix OpenCL reserved keyword local variable generation#220
Thanhdn1984 wants to merge 1 commit into
Syncleus:masterfrom
Thanhdn1984:susan/fix-opencl-reserved-keyword-locals

Conversation

@Thanhdn1984
Copy link
Copy Markdown

Summary

  • Escape Java local variable names that collide with OpenCL reserved words during kernel code generation.
  • Apply the same escaping to generated kernel argument names.
  • Add a regression codegen test covering local variables named kernel and global.

Fixes #54

Verification

  • git diff --check
  • Could not run Maven tests locally: this container has no mvn, javac, or jshell installed.

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.

[BOUNTY $25] OpenCL keywords are not escaped during code generation

1 participant