llvm-for-llvmta/tools/clang/test/CodeGenCUDA/Inputs/device-code-2.ll

17 lines
271 B
LLVM
Raw Normal View History

2022-04-25 13:02:35 +02:00
; Simple bit of IR to mimic CUDA's libdevice.
target triple = "nvptx-unknown-cuda"
define double @__nv_sin(double %a) {
ret double 1.0
}
define double @__nv_exp(double %a) {
ret double 3.0
}
define double @__unused(double %a) {
ret double 2.0
}