Commit e4d3140
committed
[AMDGPU][clang] provide device implementation for __builtin_logb and __builtin_scalbn
Clang generates library calls for __builtin_* functions which can be a problem for GPUs that cannot handle them.
This patch generates a device implementations for __builtin_logb and __builtin_scalbn.1 parent 87916f8 commit e4d3140
File tree
3 files changed
+79
-1
lines changed- clang
- lib/CodeGen
- test/CodeGenHIP
3 files changed
+79
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6621 | 6621 | | |
6622 | 6622 | | |
6623 | 6623 | | |
| 6624 | + | |
| 6625 | + | |
| 6626 | + | |
| 6627 | + | |
| 6628 | + | |
| 6629 | + | |
| 6630 | + | |
| 6631 | + | |
| 6632 | + | |
| 6633 | + | |
| 6634 | + | |
| 6635 | + | |
| 6636 | + | |
| 6637 | + | |
| 6638 | + | |
| 6639 | + | |
6624 | 6640 | | |
6625 | 6641 | | |
6626 | 6642 | | |
6627 | | - | |
| 6643 | + | |
| 6644 | + | |
6628 | 6645 | | |
6629 | 6646 | | |
6630 | 6647 | | |
| |||
20910 | 20927 | | |
20911 | 20928 | | |
20912 | 20929 | | |
| 20930 | + | |
| 20931 | + | |
| 20932 | + | |
| 20933 | + | |
| 20934 | + | |
| 20935 | + | |
| 20936 | + | |
| 20937 | + | |
| 20938 | + | |
| 20939 | + | |
| 20940 | + | |
| 20941 | + | |
| 20942 | + | |
| 20943 | + | |
| 20944 | + | |
| 20945 | + | |
| 20946 | + | |
| 20947 | + | |
| 20948 | + | |
| 20949 | + | |
| 20950 | + | |
| 20951 | + | |
| 20952 | + | |
| 20953 | + | |
20913 | 20954 | | |
20914 | 20955 | | |
20915 | 20956 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1231 | 1231 | | |
1232 | 1232 | | |
1233 | 1233 | | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
1234 | 1239 | | |
1235 | 1240 | | |
1236 | 1241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments