Author: Fraser Cormack
Date: 2025-04-09T12:00:08+01:00
New Revision: 949bf518fcc04285f40aa96a1c123bf0141fafd4

URL: 
https://github.com/llvm/llvm-project/commit/949bf518fcc04285f40aa96a1c123bf0141fafd4
DIFF: 
https://github.com/llvm/llvm-project/commit/949bf518fcc04285f40aa96a1c123bf0141fafd4.diff

LOG: [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.

Added: 
    

Modified: 
    libclc/clc/lib/clspv/integer/clc_mul_hi.cl
    libclc/generic/include/clc/misc/shuffle.h
    libclc/generic/include/clc/misc/shuffle2.h
    libclc/generic/lib/misc/shuffle.cl
    libclc/generic/lib/misc/shuffle2.cl

Removed: 
    


################################################################################
diff  --git a/libclc/clc/lib/clspv/integer/clc_mul_hi.cl 
b/libclc/clc/lib/clspv/integer/clc_mul_hi.cl
index 54a51bbce4303..aab761736fff2 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 886c3eb2e341e..74a7a528ba0e5 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 d56b56c9045a1..93845f89911bd 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 00588ce82ea9d..989e307efa579 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 <clc/clc.h>
 
 #define _CLC_ELEMENT_CASES2(VAR) \

diff  --git a/libclc/generic/lib/misc/shuffle2.cl 
b/libclc/generic/lib/misc/shuffle2.cl
index e49abc06396fc..a65e40eece415 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 <clc/clc.h>
 
 #define _CLC_ELEMENT_CASES2(VAR) \


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

Reply via email to