From 949bf518fcc04285f40aa96a1c123bf0141fafd4 Mon Sep 17 00:00:00 2001 From: Fraser Cormack Date: Wed, 9 Apr 2025 11:59:05 +0100 Subject: [PATCH] [libclc][NFC] Fix up inconsistent copyright headers Some files were accidentally given two copyright headers. Another was missing one. This commit also converts that file's dos line endings to unix ones and reformats a comment. --- libclc/clc/lib/clspv/integer/clc_mul_hi.cl | 17 ++++++++++++----- libclc/generic/include/clc/misc/shuffle.h | 8 -------- libclc/generic/include/clc/misc/shuffle2.h | 8 -------- libclc/generic/lib/misc/shuffle.cl | 8 -------- libclc/generic/lib/misc/shuffle2.cl | 8 -------- 5 files changed, 12 insertions(+), 37 deletions(-) diff --git a/libclc/clc/lib/clspv/integer/clc_mul_hi.cl b/libclc/clc/lib/clspv/integer/clc_mul_hi.cl index 54a51bbce430..aab761736fff 100644 --- a/libclc/clc/lib/clspv/integer/clc_mul_hi.cl +++ b/libclc/clc/lib/clspv/integer/clc_mul_hi.cl @@ -1,5 +1,12 @@ -/* -Opt-out of libclc mul_hi implementation for clspv. -clspv has an internal implementation that does not required using a bigger data size. -That implementation is based on OpMulExtended which is SPIR-V specific, thus it cannot be written in OpenCL-C. -*/ +//===----------------------------------------------------------------------===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +// Opt-out of libclc mul_hi implementation for clspv. +// clspv has an internal implementation that does not required using a bigger +// data size. That implementation is based on OpMulExtended which is SPIR-V +// specific, thus it cannot be written in OpenCL-C. diff --git a/libclc/generic/include/clc/misc/shuffle.h b/libclc/generic/include/clc/misc/shuffle.h index 886c3eb2e341..74a7a528ba0e 100644 --- a/libclc/generic/include/clc/misc/shuffle.h +++ b/libclc/generic/include/clc/misc/shuffle.h @@ -6,14 +6,6 @@ // //===----------------------------------------------------------------------===// -//===-- generic/include/clc/misc/shuffle.h ------------------------------===// -// -// 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 _CLC_SHUFFLE_DECL(TYPE, MASKTYPE, RETTYPE) \ _CLC_OVERLOAD _CLC_DECL RETTYPE shuffle(TYPE x, MASKTYPE mask); diff --git a/libclc/generic/include/clc/misc/shuffle2.h b/libclc/generic/include/clc/misc/shuffle2.h index d56b56c9045a..93845f89911b 100644 --- a/libclc/generic/include/clc/misc/shuffle2.h +++ b/libclc/generic/include/clc/misc/shuffle2.h @@ -6,14 +6,6 @@ // //===----------------------------------------------------------------------===// -//===-- generic/include/clc/misc/shuffle2.h ------------------------------===// -// -// 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 _CLC_SHUFFLE2_DECL(TYPE, MASKTYPE, RETTYPE) \ _CLC_OVERLOAD _CLC_DECL RETTYPE shuffle2(TYPE x, TYPE y, MASKTYPE mask); diff --git a/libclc/generic/lib/misc/shuffle.cl b/libclc/generic/lib/misc/shuffle.cl index 00588ce82ea9..989e307efa57 100644 --- a/libclc/generic/lib/misc/shuffle.cl +++ b/libclc/generic/lib/misc/shuffle.cl @@ -6,14 +6,6 @@ // //===----------------------------------------------------------------------===// -//===-- generic/lib/misc/shuffle.cl ------------------------------===// -// -// 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 -// -//===----------------------------------------------------------------------===// - #include #define _CLC_ELEMENT_CASES2(VAR) \ diff --git a/libclc/generic/lib/misc/shuffle2.cl b/libclc/generic/lib/misc/shuffle2.cl index e49abc06396f..a65e40eece41 100644 --- a/libclc/generic/lib/misc/shuffle2.cl +++ b/libclc/generic/lib/misc/shuffle2.cl @@ -6,14 +6,6 @@ // //===----------------------------------------------------------------------===// -//===-- generic/lib/misc/shuffle2.cl ------------------------------===// -// -// 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 -// -//===----------------------------------------------------------------------===// - #include #define _CLC_ELEMENT_CASES2(VAR) \