Commit aa2b0c6
committed
[SPIR-V] Support sizeof(vk::BufferPointer)
This commit enables sizeof operator support for vk::BufferPointer types.
It updates SemaExpr to allow vk::BufferPointer in sizeof expressions,
and modifies ASTContext to correctly report the size and alignment of
vk::BufferPointer as equivalent to uint64_t.
Fixes #79981 parent 5f29bff commit aa2b0c6
File tree
3 files changed
+33
-0
lines changed- tools/clang
- lib
- AST
- Sema
- test/CodeGenSPIRV
3 files changed
+33
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
1804 | 1805 | | |
1805 | 1806 | | |
1806 | 1807 | | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
1807 | 1819 | | |
1808 | 1820 | | |
1809 | 1821 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
3820 | 3821 | | |
3821 | 3822 | | |
3822 | 3823 | | |
| 3824 | + | |
| 3825 | + | |
| 3826 | + | |
| 3827 | + | |
| 3828 | + | |
| 3829 | + | |
| 3830 | + | |
3823 | 3831 | | |
3824 | 3832 | | |
3825 | 3833 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments