| Artem Belevich | 5d40ae3 | 2015-10-27 17:56:59 +0000 | [diff] [blame] | 1 | ; Simple bit of IR to mimic CUDA's libdevice. |
| 2 | |||||
| 3 | target triple = "nvptx-unknown-cuda" | ||||
| 4 | |||||
| 5 | define double @__nv_sin(double %a) { | ||||
| 6 | ret double 1.0 | ||||
| 7 | } | ||||
| 8 | |||||
| 9 | define double @__nv_exp(double %a) { | ||||
| 10 | ret double 3.0 | ||||
| 11 | } | ||||
| 12 | |||||
| 13 | define double @__unused(double %a) { | ||||
| 14 | ret double 2.0 | ||||
| 15 | } | ||||
| 16 | |||||