diff options
-rw-r--r-- | libclc/ptx/lib/SOURCES_3.9 | 1 | ||||
-rw-r--r-- | libclc/ptx/lib/SOURCES_4.0 | 1 | ||||
-rw-r--r-- | libclc/ptx/lib/SOURCES_5.0 | 1 | ||||
-rw-r--r-- | libclc/ptx/lib/shared/vload_half_helpers.ll | 23 |
4 files changed, 26 insertions, 0 deletions
diff --git a/libclc/ptx/lib/SOURCES_3.9 b/libclc/ptx/lib/SOURCES_3.9 index 58517988601..69c5e5ce9fb 100644 --- a/libclc/ptx/lib/SOURCES_3.9 +++ b/libclc/ptx/lib/SOURCES_3.9 @@ -1 +1,2 @@ +shared/vload_half_helpers.ll shared/vstore_half_helpers.ll diff --git a/libclc/ptx/lib/SOURCES_4.0 b/libclc/ptx/lib/SOURCES_4.0 index 58517988601..69c5e5ce9fb 100644 --- a/libclc/ptx/lib/SOURCES_4.0 +++ b/libclc/ptx/lib/SOURCES_4.0 @@ -1 +1,2 @@ +shared/vload_half_helpers.ll shared/vstore_half_helpers.ll diff --git a/libclc/ptx/lib/SOURCES_5.0 b/libclc/ptx/lib/SOURCES_5.0 index 58517988601..69c5e5ce9fb 100644 --- a/libclc/ptx/lib/SOURCES_5.0 +++ b/libclc/ptx/lib/SOURCES_5.0 @@ -1 +1,2 @@ +shared/vload_half_helpers.ll shared/vstore_half_helpers.ll diff --git a/libclc/ptx/lib/shared/vload_half_helpers.ll b/libclc/ptx/lib/shared/vload_half_helpers.ll new file mode 100644 index 00000000000..f79d104d547 --- /dev/null +++ b/libclc/ptx/lib/shared/vload_half_helpers.ll @@ -0,0 +1,23 @@ +define float @__clc_vload_half_float_helper__private(half addrspace(0)* nocapture %ptr) nounwind alwaysinline { + %data = load half, half addrspace(0)* %ptr + %res = fpext half %data to float + ret float %res +} + +define float @__clc_vload_half_float_helper__global(half addrspace(1)* nocapture %ptr) nounwind alwaysinline { + %data = load half, half addrspace(1)* %ptr + %res = fpext half %data to float + ret float %res +} + +define float @__clc_vload_half_float_helper__local(half addrspace(3)* nocapture %ptr) nounwind alwaysinline { + %data = load half, half addrspace(3)* %ptr + %res = fpext half %data to float + ret float %res +} + +define float @__clc_vload_half_float_helper__constant(half addrspace(4)* nocapture %ptr) nounwind alwaysinline { + %data = load half, half addrspace(4)* %ptr + %res = fpext half %data to float + ret float %res +} |