Skip to content

Conversation

anominos
Copy link
Contributor

@anominos anominos commented Mar 6, 2025

Based on

static const unsigned NVPTXAddrSpaceMap[] = {
, the current address space values are incorrect. This PR fixes these values.

@anominos anominos changed the title Fix address space values for NVPTX [CIR][CUDA] Fix address space values for NVPTX Mar 6, 2025
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.

Nice catch! Please also add a testcase

@anominos
Copy link
Contributor Author

anominos commented Mar 7, 2025

Nice catch! Please also add a testcase

Added tests, the __constant__ test will be enabled in #1444

@bcardosolopes bcardosolopes merged commit f59cdbb into llvm:main Mar 11, 2025
6 checks passed
bcardosolopes pushed a commit that referenced this pull request Mar 11, 2025
This PR implements \_\_constant\_\_ variables.

#1438 only implements \_\_device\_\_ and \_\_shared\_\_ variables, 

~~This PR depends on #1445~~
lanza pushed a commit that referenced this pull request Mar 18, 2025
lanza pushed a commit that referenced this pull request Mar 18, 2025
This PR implements \_\_constant\_\_ variables.

#1438 only implements \_\_device\_\_ and \_\_shared\_\_ variables, 

~~This PR depends on #1445~~
terapines-osc-cir pushed a commit to Terapines/clangir that referenced this pull request Sep 2, 2025
terapines-osc-cir pushed a commit to Terapines/clangir that referenced this pull request Sep 2, 2025
This PR implements \_\_constant\_\_ variables.

llvm#1438 only implements \_\_device\_\_ and \_\_shared\_\_ variables, 

~~This PR depends on llvm#1445~~
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