[libclc] [libclc] Update license headers (PR #132070)

2025-04-05 Thread Fraser Cormack via cfe-commits


@@ -1,24 +1,10 @@
-/*
- * Copyright (c) 2015 Advanced Micro Devices, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to 
deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
+//===- clc_subnormal_config.h 
-===//

frasercrmck wrote:

Oh thanks that's good to know. I might just remove it then as I don't think it 
helps much.

Is the second doxygen section containing `\file` etc. required here? I assume 
not since you didn't point it out (and components like MLIR don't seem to 
include it), but the documentation you linked doesn't make it sound optional. 
I'm not sure libclc is even built with doxygen.

https://github.com/llvm/llvm-project/pull/132070
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[libclc] [libclc] Update license headers (PR #132070)

2025-04-05 Thread via cfe-commits

llvmbot wrote:




@llvm/pr-subscribers-backend-amdgpu

Author: Fraser Cormack (frasercrmck)


Changes

This commit bulk-updates the libclc license headers to the current Apache-2.0 
WITH LLVM-exception license in situations where they were previously attributed 
to AMD - and occasionally under an additional single individual contributor - 
under an MIT license.

AMD signed the LLVM relicensing agreement and so agreed for their past 
contributions under the new LLVM license.

The LLVM project also has had a long-standing, unwritten, policy of not adding 
copyright notices to source code. This policy was recently written up [1]. This 
commit therefore also removes these copyright notices at the same time.

Note that there are outstanding copyright notices attributed to others - and 
many files missing copyright headers - which will be dealt with in future work.

[1] 
https://llvm.org/docs/DeveloperPolicy.html#embedded-copyright-or-contributed-by-statements

---

Patch is 263.69 KiB, truncated to 20.00 KiB below, full version: 
https://github.com/llvm/llvm-project/pull/132070.diff


146 Files Affected:

- (modified) libclc/clc/include/clc/math/clc_subnormal_config.h (+7-21) 
- (modified) libclc/clc/include/clc/math/math.h (+7-21) 
- (modified) libclc/clc/include/clc/math/tables.h (+7-21) 
- (modified) libclc/clc/include/clc/relational/clc_bitselect.h (+7-21) 
- (modified) libclc/clc/include/clc/relational/clc_bitselect.inc (+7-21) 
- (modified) libclc/clc/lib/amdgcn/math/clc_ldexp_override.cl (+7-21) 
- (modified) libclc/clc/lib/amdgpu/math/clc_sqrt_fp64.cl (+7-21) 
- (modified) libclc/clc/lib/clspv/math/clc_sw_fma.cl (+7-21) 
- (modified) libclc/clc/lib/generic/common/clc_degrees.cl (+7-21) 
- (modified) libclc/clc/lib/generic/common/clc_radians.cl (+7-21) 
- (modified) libclc/clc/lib/generic/common/clc_smoothstep.cl (+7-21) 
- (modified) libclc/clc/lib/generic/math/clc_frexp.cl (+7-21) 
- (modified) libclc/clc/lib/generic/math/clc_frexp.inc (+7-22) 
- (modified) libclc/clc/lib/generic/math/clc_hypot.cl (+7-21) 
- (modified) libclc/clc/lib/generic/math/clc_hypot.inc (+7-21) 
- (modified) libclc/clc/lib/generic/math/clc_ldexp.cl (+7-21) 
- (modified) libclc/clc/lib/generic/math/clc_log10.cl (+7-21) 
- (modified) libclc/clc/lib/generic/math/clc_log2.cl (+7-21) 
- (modified) libclc/clc/lib/generic/math/clc_log_base.h (+7-21) 
- (modified) libclc/clc/lib/generic/math/clc_modf.cl (+7-21) 
- (modified) libclc/clc/lib/generic/math/clc_modf.inc (+7-21) 
- (modified) libclc/clc/lib/generic/math/clc_rsqrt.cl (+7-21) 
- (modified) libclc/clc/lib/generic/math/clc_sqrt.cl (+7-21) 
- (modified) libclc/clc/lib/generic/math/clc_sqrt.inc (+7-21) 
- (modified) libclc/clc/lib/generic/math/clc_sw_fma.cl (+7-21) 
- (modified) libclc/clc/lib/generic/relational/clc_bitselect.cl (+7-21) 
- (modified) libclc/clc/lib/generic/relational/clc_bitselect.inc (+7-21) 
- (modified) libclc/clspv/lib/subnormal_config.cl (+7-21) 
- (modified) libclc/generic/include/clc/common/degrees.h (+7-21) 
- (modified) libclc/generic/include/clc/common/degrees.inc (+7-21) 
- (modified) libclc/generic/include/clc/common/radians.h (+7-21) 
- (modified) libclc/generic/include/clc/common/radians.inc (+7-21) 
- (modified) libclc/generic/include/clc/common/smoothstep.h (+7-21) 
- (modified) libclc/generic/include/clc/common/smoothstep.inc (+7-21) 
- (modified) libclc/generic/include/clc/common/step.h (+7-21) 
- (modified) libclc/generic/include/clc/common/step.inc (+7-21) 
- (modified) libclc/generic/include/clc/geometric/distance.inc (+7-21) 
- (modified) libclc/generic/include/clc/geometric/fast_distance.h (+7-21) 
- (modified) libclc/generic/include/clc/geometric/fast_distance.inc (+7-21) 
- (modified) libclc/generic/include/clc/geometric/fast_length.h (+7-21) 
- (modified) libclc/generic/include/clc/geometric/fast_length.inc (+7-21) 
- (modified) libclc/generic/include/clc/geometric/fast_normalize.h (+7-21) 
- (modified) libclc/generic/include/clc/geometric/fast_normalize.inc (+7-22) 
- (modified) libclc/generic/include/clc/math/acosh.h (+7-21) 
- (modified) libclc/generic/include/clc/math/acospi.h (+7-21) 
- (modified) libclc/generic/include/clc/math/asinh.h (+7-21) 
- (modified) libclc/generic/include/clc/math/asinpi.h (+7-21) 
- (modified) libclc/generic/include/clc/math/atan.h (+7-21) 
- (modified) libclc/generic/include/clc/math/atan2.h (+7-21) 
- (modified) libclc/generic/include/clc/math/atan2pi.h (+7-21) 
- (modified) libclc/generic/include/clc/math/atanh.h (+7-21) 
- (modified) libclc/generic/include/clc/math/atanpi.h (+7-21) 
- (modified) libclc/generic/include/clc/math/cbrt.h (+7-21) 
- (modified) libclc/generic/include/clc/math/cosh.h (+7-21) 
- (modified) libclc/generic/include/clc/math/exp2.h (+7-21) 
- (modified) libclc/generic/include/clc/math/fract.h (+7-21) 
- (modified) libclc/generic/include/clc/math/fract.inc (+7-21) 
- (modified) libclc/generic/include/clc/math/half_rsqrt.h (+7-21) 
- (modified) libclc/generic/include/clc/math/half_s

[libclc] [libclc] Update license headers (PR #132070)

2025-03-25 Thread Kristof Beyls via cfe-commits

kbeyls wrote:

Thank you for this change, @frasercrmck ! This all looks good to me.

https://github.com/llvm/llvm-project/pull/132070
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[libclc] [libclc] Update license headers (PR #132070)

2025-03-24 Thread Kristof Beyls via cfe-commits

https://github.com/kbeyls approved this pull request.


https://github.com/llvm/llvm-project/pull/132070
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[libclc] [libclc] Update license headers (PR #132070)

2025-03-20 Thread Fraser Cormack via cfe-commits

https://github.com/frasercrmck closed 
https://github.com/llvm/llvm-project/pull/132070
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[libclc] [libclc] Update license headers (PR #132070)

2025-03-20 Thread Nikita Popov via cfe-commits


@@ -1,24 +1,10 @@
-/*
- * Copyright (c) 2015 Advanced Micro Devices, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to 
deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
+//===- clc_subnormal_config.h 
-===//

nikic wrote:

It's not required, and I don't think you can really add a meaningful file-level 
comment in this kind of mass-change anyway.

https://github.com/llvm/llvm-project/pull/132070
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[libclc] [libclc] Update license headers (PR #132070)

2025-03-20 Thread Fraser Cormack via cfe-commits

frasercrmck wrote:

Note that this work is the result of asking the LLVM Foundation about the state 
of libclc licensing, and their checking with the Foundation's IP lawyer. I've 
CC'd @kbeyls for confirmation.

> I'll just put it out there since my name's on a bunch of these files and it 
> might make a future lawyer happy. I'm ok with changing the license/lines that 
> had my name on them to the new license format.

Thank you for the confirmation, I appreciate it!

https://github.com/llvm/llvm-project/pull/132070
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[libclc] [libclc] Update license headers (PR #132070)

2025-03-19 Thread Fraser Cormack via cfe-commits

frasercrmck wrote:

Note that this work is the result of asking the LLVM Foundation about the state 
of libclc licensing, and their checking with the Foundation's IP lawyer. I've 
CC'd @kbeyls for confirmation.

https://github.com/llvm/llvm-project/pull/132070
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits