[CUDA] Map LLVM math intrinsics to libdevice calls
Fixes
@@ -799,7 +799,9 @@ void mapLibDeviceCalls(llvm::Module *Module) {
// clang-format off
#define LDMAP(name) \
{ name "f", "__nv_" name "f"}, \
- {name, "__nv_" name},
+ { name, "__nv_" name}, \
+ {"llvm." name ".f32", "__nv_" name "f"}, \
+ {"llvm." name ".f64", "__nv_" name},
LDMAP("acos")
LDMAP("acosh")
