Skip to content

[CIR][ABI][NFCI] Enable SPIR-V return value and argument ABI to use Direct and Extend #763

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 1 commit into from
Aug 1, 2024

Conversation

seven-mile
Copy link
Collaborator

This NFCI PR enhances the SPIR-V CIRGen ABI with Direct and Extend in both argument and return value, because some future test cases requires it.

  • kernel argument metadata needs arguments of promotable integer types
  • builtin functions like get_global_id returns si64, rather than void for all OpenCL kernels

Given that CallConvLowering will replace these bits and other targets is already doing the same, I think it's safe to enable it now.

Copy link
Contributor

@jopperm jopperm left a comment

Choose a reason for hiding this comment

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

LGTM!

@jopperm
Copy link
Contributor

jopperm commented Jul 31, 2024

Note to other reviewers: This PR extends the DefaultABIInfo class which is the base class for the SPIR-related target infos, following the OG skeleton. The PR description is still correct because we currently don't have other targets inheriting their info from DefaultABIInfo, and the other target infos in CIR inherit directly from ABIInfo.

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 13ed46a into llvm:main Aug 1, 2024
7 checks passed
Hugobros3 pushed a commit to shady-gang/clangir that referenced this pull request Oct 2, 2024
…irect and Extend (llvm#763)

This NFCI PR enhances the SPIR-V *CIRGen* ABI with Direct and Extend in
both argument and return value, because some future test cases requires
it.

* kernel argument metadata needs arguments of promotable integer types
* builtin functions like `get_global_id` returns `si64`, rather than
void for all OpenCL kernels

Given that CallConvLowering will replace these bits and other targets is
already doing the same, I think it's safe to enable it now.
smeenai pushed a commit to smeenai/clangir that referenced this pull request Oct 9, 2024
…irect and Extend (llvm#763)

This NFCI PR enhances the SPIR-V *CIRGen* ABI with Direct and Extend in
both argument and return value, because some future test cases requires
it.

* kernel argument metadata needs arguments of promotable integer types
* builtin functions like `get_global_id` returns `si64`, rather than
void for all OpenCL kernels

Given that CallConvLowering will replace these bits and other targets is
already doing the same, I think it's safe to enable it now.
smeenai pushed a commit to smeenai/clangir that referenced this pull request Oct 9, 2024
…irect and Extend (llvm#763)

This NFCI PR enhances the SPIR-V *CIRGen* ABI with Direct and Extend in
both argument and return value, because some future test cases requires
it.

* kernel argument metadata needs arguments of promotable integer types
* builtin functions like `get_global_id` returns `si64`, rather than
void for all OpenCL kernels

Given that CallConvLowering will replace these bits and other targets is
already doing the same, I think it's safe to enable it now.
keryell pushed a commit to keryell/clangir that referenced this pull request Oct 19, 2024
…irect and Extend (llvm#763)

This NFCI PR enhances the SPIR-V *CIRGen* ABI with Direct and Extend in
both argument and return value, because some future test cases requires
it.

* kernel argument metadata needs arguments of promotable integer types
* builtin functions like `get_global_id` returns `si64`, rather than
void for all OpenCL kernels

Given that CallConvLowering will replace these bits and other targets is
already doing the same, I think it's safe to enable it now.
lanza pushed a commit that referenced this pull request Nov 5, 2024
…irect and Extend (#763)

This NFCI PR enhances the SPIR-V *CIRGen* ABI with Direct and Extend in
both argument and return value, because some future test cases requires
it.

* kernel argument metadata needs arguments of promotable integer types
* builtin functions like `get_global_id` returns `si64`, rather than
void for all OpenCL kernels

Given that CallConvLowering will replace these bits and other targets is
already doing the same, I think it's safe to enable it now.
lanza pushed a commit that referenced this pull request Mar 18, 2025
…irect and Extend (#763)

This NFCI PR enhances the SPIR-V *CIRGen* ABI with Direct and Extend in
both argument and return value, because some future test cases requires
it.

* kernel argument metadata needs arguments of promotable integer types
* builtin functions like `get_global_id` returns `si64`, rather than
void for all OpenCL kernels

Given that CallConvLowering will replace these bits and other targets is
already doing the same, I think it's safe to enable it now.
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.

3 participants