Author: jketema Date: Wed Oct 4 12:07:48 2017 New Revision: 314925 URL: http://llvm.org/viewvc/llvm-project?rev=314925&view=rev Log: Add vstore_half helpers for ptx
Reviewed-by: Jan Vesely <jan.ves...@rutgers.edu> Added: libclc/trunk/ptx/lib/SOURCES_3.9 libclc/trunk/ptx/lib/SOURCES_4.0 libclc/trunk/ptx/lib/SOURCES_5.0 libclc/trunk/ptx/lib/shared/ libclc/trunk/ptx/lib/shared/vstore_half_helpers.ll Added: libclc/trunk/ptx/lib/SOURCES_3.9 URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/ptx/lib/SOURCES_3.9?rev=314925&view=auto ============================================================================== --- libclc/trunk/ptx/lib/SOURCES_3.9 (added) +++ libclc/trunk/ptx/lib/SOURCES_3.9 Wed Oct 4 12:07:48 2017 @@ -0,0 +1 @@ +shared/vstore_half_helpers.ll Added: libclc/trunk/ptx/lib/SOURCES_4.0 URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/ptx/lib/SOURCES_4.0?rev=314925&view=auto ============================================================================== --- libclc/trunk/ptx/lib/SOURCES_4.0 (added) +++ libclc/trunk/ptx/lib/SOURCES_4.0 Wed Oct 4 12:07:48 2017 @@ -0,0 +1 @@ +shared/vstore_half_helpers.ll Added: libclc/trunk/ptx/lib/SOURCES_5.0 URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/ptx/lib/SOURCES_5.0?rev=314925&view=auto ============================================================================== --- libclc/trunk/ptx/lib/SOURCES_5.0 (added) +++ libclc/trunk/ptx/lib/SOURCES_5.0 Wed Oct 4 12:07:48 2017 @@ -0,0 +1 @@ +shared/vstore_half_helpers.ll Added: libclc/trunk/ptx/lib/shared/vstore_half_helpers.ll URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/ptx/lib/shared/vstore_half_helpers.ll?rev=314925&view=auto ============================================================================== --- libclc/trunk/ptx/lib/shared/vstore_half_helpers.ll (added) +++ libclc/trunk/ptx/lib/shared/vstore_half_helpers.ll Wed Oct 4 12:07:48 2017 @@ -0,0 +1,35 @@ +define void @__clc_vstore_half_float_helper__private(float %data, half addrspace(0)* nocapture %ptr) nounwind alwaysinline { + %res = fptrunc float %data to half + store half %res, half addrspace(0)* %ptr + ret void +} + +define void @__clc_vstore_half_float_helper__global(float %data, half addrspace(1)* nocapture %ptr) nounwind alwaysinline { + %res = fptrunc float %data to half + store half %res, half addrspace(1)* %ptr + ret void +} + +define void @__clc_vstore_half_float_helper__local(float %data, half addrspace(3)* nocapture %ptr) nounwind alwaysinline { + %res = fptrunc float %data to half + store half %res, half addrspace(3)* %ptr + ret void +} + +define void @__clc_vstore_half_double_helper__private(double %data, half addrspace(0)* nocapture %ptr) nounwind alwaysinline { + %res = fptrunc double %data to half + store half %res, half addrspace(0)* %ptr + ret void +} + +define void @__clc_vstore_half_double_helper__global(double %data, half addrspace(1)* nocapture %ptr) nounwind alwaysinline { + %res = fptrunc double %data to half + store half %res, half addrspace(1)* %ptr + ret void +} + +define void @__clc_vstore_half_double_helper__local(double %data, half addrspace(3)* nocapture %ptr) nounwind alwaysinline { + %res = fptrunc double %data to half + store half %res, half addrspace(3)* %ptr + ret void +} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits