Commit 06490c6
authored
[libspirv] Restore overloads of generic address space (#17214)
This adds some missing generic address space overloads of CLC functions:
frexp, and whichever functions make use of the
unary_def_with_(int_)?ptr.inc files.
Note that this commit doesn't map the equivalent SPIR-V functions to
these CLC implementations. This is because the generic SPIR-V
implementation of FP16 types currently use the clang builtins as opposed
to the software implementations. As discussed in #17163, this is not the
proper behaviour for generic implementations, as not all targets support
the builtins. In future work we will need to either provide
target-specific overrides for the builtin implementations, or provide an
easy mechanism by which the CLC implementations can select between
builtins or software implementations automatically.1 parent f957393 commit 06490c6
File tree
3 files changed
+21
-0
lines changed- libclc/clc
- include/clc/math
- lib/generic/math
3 files changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
0 commit comments