Skip to content

[CIR][CodeGen] Basic skeleton of SPIRV64 target support #671

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

Merged
merged 4 commits into from
Jun 20, 2024

Conversation

seven-mile
Copy link
Collaborator

  • SPIRV64 TargetInfo
  • Calling convention SPIR_KERNEL
  • Minimal ABI with Direct/Extend for arguments and Ignore for return

Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @seven-mile, thanks for adding this! This is touching a bunch of the things @sitio-couto is working on right now, and it'd be extremely unfortunate if this is all has to be done differently in a few weeks from now. Please coordinate between the two of you how to make sure you don't duplicate work. I'll wait until he can take a look before I give more feedback

@seven-mile
Copy link
Collaborator Author

seven-mile commented Jun 11, 2024

I tried to make the part about ABI as minimal as possible so that some test cases in OpenCL can land. The ABI implementation is just using Direct & Extend for trivial arguments, which should be very easy to migrate. Looking forward to suggestions from Vinicius then😉

@bcardosolopes
Copy link
Member

I tried to make the part about ABI as minimal as possible so that some test cases in OpenCL can land. The ABI implementation is just using Direct & Extend for trivial arguments, which should be very easy to migrate. Looking forward to suggestions from Vinicius then😉

Direct is fine, but extend might be doing more that it should for now, let's wait on @sitio-couto to coordinate how to go about this so you both are in sync.

@bcardosolopes
Copy link
Member

@sitio-couto review ping!

Copy link
Collaborator

@sitio-couto sitio-couto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bcardosolopes @seven-mile reviewed.

PS: apologies for the late review 😅

Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit changes from @sitio-couto, but other than that seems fine - @sitio-couto will patch this up once he lands his work

Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bcardosolopes bcardosolopes merged commit be29787 into llvm:main Jun 20, 2024
6 checks passed
bruteforceboy pushed a commit to bruteforceboy/clangir that referenced this pull request Oct 2, 2024
* SPIRV64 TargetInfo
* Calling convention `SPIR_KERNEL`
* Minimal ABI with Direct/Extend for arguments and Ignore for return

---------

Co-authored-by: Vinicius Couto Espindola <[email protected]>
Hugobros3 pushed a commit to shady-gang/clangir that referenced this pull request Oct 2, 2024
* SPIRV64 TargetInfo
* Calling convention `SPIR_KERNEL`
* Minimal ABI with Direct/Extend for arguments and Ignore for return

---------

Co-authored-by: Vinicius Couto Espindola <[email protected]>
smeenai pushed a commit to smeenai/clangir that referenced this pull request Oct 9, 2024
* SPIRV64 TargetInfo
* Calling convention `SPIR_KERNEL`
* Minimal ABI with Direct/Extend for arguments and Ignore for return

---------

Co-authored-by: Vinicius Couto Espindola <[email protected]>
keryell pushed a commit to keryell/clangir that referenced this pull request Oct 19, 2024
* SPIRV64 TargetInfo
* Calling convention `SPIR_KERNEL`
* Minimal ABI with Direct/Extend for arguments and Ignore for return

---------

Co-authored-by: Vinicius Couto Espindola <[email protected]>
lanza pushed a commit that referenced this pull request Nov 5, 2024
* SPIRV64 TargetInfo
* Calling convention `SPIR_KERNEL`
* Minimal ABI with Direct/Extend for arguments and Ignore for return

---------

Co-authored-by: Vinicius Couto Espindola <[email protected]>
lanza pushed a commit that referenced this pull request Mar 18, 2025
* SPIRV64 TargetInfo
* Calling convention `SPIR_KERNEL`
* Minimal ABI with Direct/Extend for arguments and Ignore for return

---------

Co-authored-by: Vinicius Couto Espindola <[email protected]>
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.

5 participants