Author: Fraser Cormack
Date: 2025-03-24T16:21:59Z
New Revision: 7e22b0903150c7f722b5290155d251b50d839c3a

URL: 
https://github.com/llvm/llvm-project/commit/7e22b0903150c7f722b5290155d251b50d839c3a
DIFF: 
https://github.com/llvm/llvm-project/commit/7e22b0903150c7f722b5290155d251b50d839c3a.diff

LOG: [libclc] Add missing license headers to source IR files (#132758)

Added: 
    

Modified: 
    libclc/amdgcn/lib/cl_khr_int64_extended_atomics/minmax_helpers.ll
    libclc/amdgpu/lib/shared/vload_half_helpers.ll
    libclc/amdgpu/lib/shared/vstore_half_helpers.ll
    libclc/generic/lib/subnormal_disable.ll
    libclc/generic/lib/subnormal_helper_func.ll
    libclc/generic/lib/subnormal_use_default.ll
    libclc/ptx/lib/shared/vload_half_helpers.ll
    libclc/ptx/lib/shared/vstore_half_helpers.ll
    libclc/r600/lib/image/get_image_attributes_impl.ll
    libclc/r600/lib/image/read_image_impl.ll
    libclc/r600/lib/image/write_image_impl.ll

Removed: 
    


################################################################################
diff  --git a/libclc/amdgcn/lib/cl_khr_int64_extended_atomics/minmax_helpers.ll 
b/libclc/amdgcn/lib/cl_khr_int64_extended_atomics/minmax_helpers.ll
index 7f12556c0abbc..3ed5e99be3149 100644
--- a/libclc/amdgcn/lib/cl_khr_int64_extended_atomics/minmax_helpers.ll
+++ b/libclc/amdgcn/lib/cl_khr_int64_extended_atomics/minmax_helpers.ll
@@ -1,3 +1,11 @@
+;;===----------------------------------------------------------------------===;;
+;
+; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+; See https://llvm.org/LICENSE.txt for license information.
+; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+;
+;;===----------------------------------------------------------------------===;;
+
 define i64 @__clc__sync_fetch_and_min_global_8(i64 addrspace(1)* nocapture 
%ptr, i64 %value) nounwind alwaysinline {
 entry:
   %0 = atomicrmw volatile min i64 addrspace(1)* %ptr, i64 %value seq_cst

diff  --git a/libclc/amdgpu/lib/shared/vload_half_helpers.ll 
b/libclc/amdgpu/lib/shared/vload_half_helpers.ll
index b8c905af6fc82..bf7d544afbf55 100644
--- a/libclc/amdgpu/lib/shared/vload_half_helpers.ll
+++ b/libclc/amdgpu/lib/shared/vload_half_helpers.ll
@@ -1,3 +1,11 @@
+;;===----------------------------------------------------------------------===;;
+;
+; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+; See https://llvm.org/LICENSE.txt for license information.
+; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+;
+;;===----------------------------------------------------------------------===;;
+
 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

diff  --git a/libclc/amdgpu/lib/shared/vstore_half_helpers.ll 
b/libclc/amdgpu/lib/shared/vstore_half_helpers.ll
index e958664e56016..5ec193d6d40a0 100644
--- a/libclc/amdgpu/lib/shared/vstore_half_helpers.ll
+++ b/libclc/amdgpu/lib/shared/vstore_half_helpers.ll
@@ -1,3 +1,11 @@
+;;===----------------------------------------------------------------------===;;
+;
+; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+; See https://llvm.org/LICENSE.txt for license information.
+; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+;
+;;===----------------------------------------------------------------------===;;
+
 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

diff  --git a/libclc/generic/lib/subnormal_disable.ll 
b/libclc/generic/lib/subnormal_disable.ll
index b935583b5ade0..732d09ff09ab4 100644
--- a/libclc/generic/lib/subnormal_disable.ll
+++ b/libclc/generic/lib/subnormal_disable.ll
@@ -1 +1,9 @@
+;;===----------------------------------------------------------------------===;;
+;
+; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+; See https://llvm.org/LICENSE.txt for license information.
+; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+;
+;;===----------------------------------------------------------------------===;;
+
 @__CLC_SUBNORMAL_DISABLE = unnamed_addr constant i1 true

diff  --git a/libclc/generic/lib/subnormal_helper_func.ll 
b/libclc/generic/lib/subnormal_helper_func.ll
index fb1b5d2b679fe..03beecf979260 100644
--- a/libclc/generic/lib/subnormal_helper_func.ll
+++ b/libclc/generic/lib/subnormal_helper_func.ll
@@ -1,3 +1,11 @@
+;;===----------------------------------------------------------------------===;;
+;
+; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+; See https://llvm.org/LICENSE.txt for license information.
+; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+;
+;;===----------------------------------------------------------------------===;;
+
 @__CLC_SUBNORMAL_DISABLE = external global i1
 
 define i1 @__clc_subnormals_disabled() #0 {

diff  --git a/libclc/generic/lib/subnormal_use_default.ll 
b/libclc/generic/lib/subnormal_use_default.ll
index d70c63bc04755..c648cc0a8aded 100644
--- a/libclc/generic/lib/subnormal_use_default.ll
+++ b/libclc/generic/lib/subnormal_use_default.ll
@@ -1 +1,9 @@
+;;===----------------------------------------------------------------------===;;
+;
+; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+; See https://llvm.org/LICENSE.txt for license information.
+; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+;
+;;===----------------------------------------------------------------------===;;
+
 @__CLC_SUBNORMAL_DISABLE = unnamed_addr constant i1 false

diff  --git a/libclc/ptx/lib/shared/vload_half_helpers.ll 
b/libclc/ptx/lib/shared/vload_half_helpers.ll
index f79d104d547ea..5fbae19fde287 100644
--- a/libclc/ptx/lib/shared/vload_half_helpers.ll
+++ b/libclc/ptx/lib/shared/vload_half_helpers.ll
@@ -1,3 +1,11 @@
+;;===----------------------------------------------------------------------===;;
+;
+; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+; See https://llvm.org/LICENSE.txt for license information.
+; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+;
+;;===----------------------------------------------------------------------===;;
+
 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

diff  --git a/libclc/ptx/lib/shared/vstore_half_helpers.ll 
b/libclc/ptx/lib/shared/vstore_half_helpers.ll
index e958664e56016..5ec193d6d40a0 100644
--- a/libclc/ptx/lib/shared/vstore_half_helpers.ll
+++ b/libclc/ptx/lib/shared/vstore_half_helpers.ll
@@ -1,3 +1,11 @@
+;;===----------------------------------------------------------------------===;;
+;
+; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+; See https://llvm.org/LICENSE.txt for license information.
+; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+;
+;;===----------------------------------------------------------------------===;;
+
 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

diff  --git a/libclc/r600/lib/image/get_image_attributes_impl.ll 
b/libclc/r600/lib/image/get_image_attributes_impl.ll
index 7f1965de7602c..e7b605df62e43 100644
--- a/libclc/r600/lib/image/get_image_attributes_impl.ll
+++ b/libclc/r600/lib/image/get_image_attributes_impl.ll
@@ -1,3 +1,11 @@
+;;===----------------------------------------------------------------------===;;
+;
+; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+; See https://llvm.org/LICENSE.txt for license information.
+; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+;
+;;===----------------------------------------------------------------------===;;
+
 %opencl.image2d_t = type opaque
 %opencl.image3d_t = type opaque
 

diff  --git a/libclc/r600/lib/image/read_image_impl.ll 
b/libclc/r600/lib/image/read_image_impl.ll
index 229a2526c3743..9187469b191f0 100644
--- a/libclc/r600/lib/image/read_image_impl.ll
+++ b/libclc/r600/lib/image/read_image_impl.ll
@@ -1,3 +1,11 @@
+;;===----------------------------------------------------------------------===;;
+;
+; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+; See https://llvm.org/LICENSE.txt for license information.
+; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+;
+;;===----------------------------------------------------------------------===;;
+
 %opencl.image2d_t = type opaque
 
 declare <4 x float> @llvm.R600.tex(<4 x float>, i32, i32, i32, i32, i32, i32,

diff  --git a/libclc/r600/lib/image/write_image_impl.ll 
b/libclc/r600/lib/image/write_image_impl.ll
index 265f5d6045e42..f3dea44c7927c 100644
--- a/libclc/r600/lib/image/write_image_impl.ll
+++ b/libclc/r600/lib/image/write_image_impl.ll
@@ -1,3 +1,11 @@
+;;===----------------------------------------------------------------------===;;
+;
+; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+; See https://llvm.org/LICENSE.txt for license information.
+; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+;
+;;===----------------------------------------------------------------------===;;
+
 %opencl.image2d_t = type opaque
 %opencl.image3d_t = type opaque
 


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to