Commit 2cce5a4
Ensure byref attribute is preserved on rewritten parameters
The byref TypeAttribute may be dropped when copying attributes to the
new function with changed parameter types (ptr -> ptr addrspace(4)).
Explicitly re-add it to ensure the AMDGPU backend knows the kernarg
contains the struct data inline, not a pointer to it.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5e07342 commit 2cce5a4
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
| |||
0 commit comments