Skip to content

Commit 7e22b09

Browse files
authored
[libclc] Add missing license headers to source IR files (#132758)
1 parent d447c6e commit 7e22b09

File tree

11 files changed

+88
-0
lines changed

11 files changed

+88
-0
lines changed

libclc/amdgcn/lib/cl_khr_int64_extended_atomics/minmax_helpers.ll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
;;===----------------------------------------------------------------------===;;
2+
;
3+
; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
; See https://llvm.org/LICENSE.txt for license information.
5+
; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
;
7+
;;===----------------------------------------------------------------------===;;
8+
19
define i64 @__clc__sync_fetch_and_min_global_8(i64 addrspace(1)* nocapture %ptr, i64 %value) nounwind alwaysinline {
210
entry:
311
%0 = atomicrmw volatile min i64 addrspace(1)* %ptr, i64 %value seq_cst

libclc/amdgpu/lib/shared/vload_half_helpers.ll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
;;===----------------------------------------------------------------------===;;
2+
;
3+
; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
; See https://llvm.org/LICENSE.txt for license information.
5+
; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
;
7+
;;===----------------------------------------------------------------------===;;
8+
19
define float @__clc_vload_half_float_helper__private(half addrspace(0)* nocapture %ptr) nounwind alwaysinline {
210
%data = load half, half addrspace(0)* %ptr
311
%res = fpext half %data to float

libclc/amdgpu/lib/shared/vstore_half_helpers.ll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
;;===----------------------------------------------------------------------===;;
2+
;
3+
; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
; See https://llvm.org/LICENSE.txt for license information.
5+
; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
;
7+
;;===----------------------------------------------------------------------===;;
8+
19
define void @__clc_vstore_half_float_helper__private(float %data, half addrspace(0)* nocapture %ptr) nounwind alwaysinline {
210
%res = fptrunc float %data to half
311
store half %res, half addrspace(0)* %ptr
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1+
;;===----------------------------------------------------------------------===;;
2+
;
3+
; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
; See https://llvm.org/LICENSE.txt for license information.
5+
; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
;
7+
;;===----------------------------------------------------------------------===;;
8+
19
@__CLC_SUBNORMAL_DISABLE = unnamed_addr constant i1 true

libclc/generic/lib/subnormal_helper_func.ll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
;;===----------------------------------------------------------------------===;;
2+
;
3+
; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
; See https://llvm.org/LICENSE.txt for license information.
5+
; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
;
7+
;;===----------------------------------------------------------------------===;;
8+
19
@__CLC_SUBNORMAL_DISABLE = external global i1
210

311
define i1 @__clc_subnormals_disabled() #0 {
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1+
;;===----------------------------------------------------------------------===;;
2+
;
3+
; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
; See https://llvm.org/LICENSE.txt for license information.
5+
; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
;
7+
;;===----------------------------------------------------------------------===;;
8+
19
@__CLC_SUBNORMAL_DISABLE = unnamed_addr constant i1 false

libclc/ptx/lib/shared/vload_half_helpers.ll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
;;===----------------------------------------------------------------------===;;
2+
;
3+
; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
; See https://llvm.org/LICENSE.txt for license information.
5+
; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
;
7+
;;===----------------------------------------------------------------------===;;
8+
19
define float @__clc_vload_half_float_helper__private(half addrspace(0)* nocapture %ptr) nounwind alwaysinline {
210
%data = load half, half addrspace(0)* %ptr
311
%res = fpext half %data to float

libclc/ptx/lib/shared/vstore_half_helpers.ll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
;;===----------------------------------------------------------------------===;;
2+
;
3+
; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
; See https://llvm.org/LICENSE.txt for license information.
5+
; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
;
7+
;;===----------------------------------------------------------------------===;;
8+
19
define void @__clc_vstore_half_float_helper__private(float %data, half addrspace(0)* nocapture %ptr) nounwind alwaysinline {
210
%res = fptrunc float %data to half
311
store half %res, half addrspace(0)* %ptr

libclc/r600/lib/image/get_image_attributes_impl.ll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
;;===----------------------------------------------------------------------===;;
2+
;
3+
; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
; See https://llvm.org/LICENSE.txt for license information.
5+
; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
;
7+
;;===----------------------------------------------------------------------===;;
8+
19
%opencl.image2d_t = type opaque
210
%opencl.image3d_t = type opaque
311

libclc/r600/lib/image/read_image_impl.ll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
;;===----------------------------------------------------------------------===;;
2+
;
3+
; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
; See https://llvm.org/LICENSE.txt for license information.
5+
; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
;
7+
;;===----------------------------------------------------------------------===;;
8+
19
%opencl.image2d_t = type opaque
210

311
declare <4 x float> @llvm.R600.tex(<4 x float>, i32, i32, i32, i32, i32, i32,

libclc/r600/lib/image/write_image_impl.ll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
;;===----------------------------------------------------------------------===;;
2+
;
3+
; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
; See https://llvm.org/LICENSE.txt for license information.
5+
; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
;
7+
;;===----------------------------------------------------------------------===;;
8+
19
%opencl.image2d_t = type opaque
210
%opencl.image3d_t = type opaque
311

0 commit comments

Comments
 (0)