Index: CREDITS.TXT =================================================================== --- CREDITS.TXT +++ CREDITS.TXT @@ -1,2 +1,13 @@ N: Peter Collingbourne E: peter@pcc.me.uk + +N: Victor Oliveira +E: victormatheus@gmail.com + +N: Jesse Towner +E: jessetowner@lavabit.com + +N: Aaron Watry +E: awatry@gmail.com + +N: Advanced Micro Devices, Inc. Index: LICENSE.TXT =================================================================== --- LICENSE.TXT +++ LICENSE.TXT @@ -43,7 +43,7 @@ ============================================================================== -Copyright (c) 2011-2014 by the contributors listed in CREDITS.TXT +Copyright (c) 2011-2016 by the contributors listed in CREDITS.TXT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal Index: amdgcn-amdhsa/lib/OVERRIDES =================================================================== --- amdgcn-amdhsa/lib/OVERRIDES +++ amdgcn-amdhsa/lib/OVERRIDES @@ -1 +1,10 @@ +//===-- amdgcn-amdhsa/lib/OVERRIDES ---------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// workitem/get_num_groups.ll Index: amdgcn-amdhsa/lib/SOURCES =================================================================== --- amdgcn-amdhsa/lib/SOURCES +++ amdgcn-amdhsa/lib/SOURCES @@ -1,3 +1,12 @@ +//===-- amdgcn-amdhsa/lib/SOURCES -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// workitem/get_global_size.ll workitem/get_local_size.ll workitem/get_num_groups.cl Index: amdgcn-amdhsa/lib/workitem/get_global_size.ll =================================================================== --- amdgcn-amdhsa/lib/workitem/get_global_size.ll +++ amdgcn-amdhsa/lib/workitem/get_global_size.ll @@ -1,3 +1,12 @@ +//===-- amdgcn-amdhsa/lib/workitem/get_global_size.ll ---------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// declare i8 addrspace(2)* @llvm.amdgcn.dispatch.ptr() #0 define i64 @get_global_size(i32 %dim) #1 { Index: amdgcn-amdhsa/lib/workitem/get_local_size.ll =================================================================== --- amdgcn-amdhsa/lib/workitem/get_local_size.ll +++ amdgcn-amdhsa/lib/workitem/get_local_size.ll @@ -1,3 +1,12 @@ +//===-- amdgcn-amdhsa/lib/workitem/get_local_size.ll ----------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// declare i8 addrspace(2)* @llvm.amdgcn.dispatch.ptr() #0 define i64 @get_local_size(i32 %dim) #1 { Index: amdgcn-amdhsa/lib/workitem/get_num_groups.cl =================================================================== --- amdgcn-amdhsa/lib/workitem/get_num_groups.cl +++ amdgcn-amdhsa/lib/workitem/get_num_groups.cl @@ -1,3 +1,12 @@ +//===-- amdgcn-amdhsa/lib/workitem/get_num_groups.cl ----------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include Index: amdgcn/lib/OVERRIDES =================================================================== --- amdgcn/lib/OVERRIDES +++ amdgcn/lib/OVERRIDES @@ -0,0 +1,9 @@ +//===-- amdgcn/lib/OVERRIDES ----------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// Index: amdgcn/lib/SOURCES =================================================================== --- amdgcn/lib/SOURCES +++ amdgcn/lib/SOURCES @@ -1,3 +1,12 @@ +//===-- amdgcn/lib/SOURCES ------------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// math/ldexp.cl synchronization/barrier_impl.ll workitem/get_global_offset.cl Index: amdgcn/lib/math/ldexp.cl =================================================================== --- amdgcn/lib/math/ldexp.cl +++ amdgcn/lib/math/ldexp.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- amdgcn/lib/math/ldexp.cl ------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../../../generic/lib/clcmacro.h" Index: amdgcn/lib/synchronization/barrier_impl.ll =================================================================== --- amdgcn/lib/synchronization/barrier_impl.ll +++ amdgcn/lib/synchronization/barrier_impl.ll @@ -1,3 +1,12 @@ +//===-- amdgcn/lib/synchronization/barrier_impl.ll ------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// declare i32 @__clc_clk_local_mem_fence() #1 declare i32 @__clc_clk_global_mem_fence() #1 declare void @llvm.amdgcn.s.barrier() #0 Index: amdgcn/lib/workitem/get_global_offset.cl =================================================================== --- amdgcn/lib/workitem/get_global_offset.cl +++ amdgcn/lib/workitem/get_global_offset.cl @@ -1,3 +1,12 @@ +//===-- amdgcn/lib/workitem/get_global_offset.cl --------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DEF size_t get_global_offset(uint dim) Index: amdgcn/lib/workitem/get_global_size.ll =================================================================== --- amdgcn/lib/workitem/get_global_size.ll +++ amdgcn/lib/workitem/get_global_size.ll @@ -1,3 +1,12 @@ +//===-- amdgcn/lib/workitem/get_global_size.ll ----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// declare i32 @llvm.r600.read.global.size.x() nounwind readnone declare i32 @llvm.r600.read.global.size.y() nounwind readnone declare i32 @llvm.r600.read.global.size.z() nounwind readnone Index: amdgcn/lib/workitem/get_group_id.cl =================================================================== --- amdgcn/lib/workitem/get_group_id.cl +++ amdgcn/lib/workitem/get_group_id.cl @@ -1,3 +1,12 @@ +//===-- amdgcn/lib/workitem/get_group_id.cl -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DEF size_t get_group_id(uint dim) Index: amdgcn/lib/workitem/get_local_id.cl =================================================================== --- amdgcn/lib/workitem/get_local_id.cl +++ amdgcn/lib/workitem/get_local_id.cl @@ -1,3 +1,12 @@ +//===-- amdgcn/lib/workitem/get_local_id.cl -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DEF size_t get_local_id(uint dim) Index: amdgcn/lib/workitem/get_local_size.ll =================================================================== --- amdgcn/lib/workitem/get_local_size.ll +++ amdgcn/lib/workitem/get_local_size.ll @@ -1,3 +1,12 @@ +//===-- amdgcn/lib/workitem/get_local_size.ll -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// declare i32 @llvm.r600.read.local.size.x() nounwind readnone declare i32 @llvm.r600.read.local.size.y() nounwind readnone declare i32 @llvm.r600.read.local.size.z() nounwind readnone Index: amdgcn/lib/workitem/get_num_groups.ll =================================================================== --- amdgcn/lib/workitem/get_num_groups.ll +++ amdgcn/lib/workitem/get_num_groups.ll @@ -1,3 +1,12 @@ +//===-- amdgcn/lib/workitem/get_num_groups.ll -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// declare i32 @llvm.r600.read.ngroups.x() nounwind readnone declare i32 @llvm.r600.read.ngroups.y() nounwind readnone declare i32 @llvm.r600.read.ngroups.z() nounwind readnone Index: amdgcn/lib/workitem/get_work_dim.cl =================================================================== --- amdgcn/lib/workitem/get_work_dim.cl +++ amdgcn/lib/workitem/get_work_dim.cl @@ -1,3 +1,12 @@ +//===-- amdgcn/lib/workitem/get_work_dim.cl -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DEF uint get_work_dim() Index: amdgpu/lib/OVERRIDES =================================================================== --- amdgpu/lib/OVERRIDES +++ amdgpu/lib/OVERRIDES @@ -1,2 +1,11 @@ +//===-- amdgpu/lib/OVERRIDES ----------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// workitem/get_group_id.cl workitem/get_global_size.cl Index: amdgpu/lib/SOURCES =================================================================== --- amdgpu/lib/SOURCES +++ amdgpu/lib/SOURCES @@ -1,3 +1,12 @@ +//===-- amdgpu/lib/SOURCES ------------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// atomic/atomic.cl math/nextafter.cl math/sqrt.cl Index: amdgpu/lib/atomic/atomic.cl =================================================================== --- amdgpu/lib/atomic/atomic.cl +++ amdgpu/lib/atomic/atomic.cl @@ -1,3 +1,12 @@ +//===-- amdgpu/lib/atomic/atomic.cl ---------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define ATOMIC_FUNC_DEFINE(RET_SIGN, ARG_SIGN, TYPE, CL_FUNCTION, CLC_FUNCTION, CL_ADDRSPACE, LLVM_ADDRSPACE) \ Index: amdgpu/lib/image/get_image_attributes_impl.ll =================================================================== --- amdgpu/lib/image/get_image_attributes_impl.ll +++ amdgpu/lib/image/get_image_attributes_impl.ll @@ -1,3 +1,12 @@ +//===-- amdgpu/lib/image/get_image_attributes_impl.ll ---------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// %opencl.image2d_t = type opaque %opencl.image3d_t = type opaque Index: amdgpu/lib/image/get_image_channel_data_type.cl =================================================================== --- amdgpu/lib/image/get_image_channel_data_type.cl +++ amdgpu/lib/image/get_image_channel_data_type.cl @@ -1,3 +1,12 @@ +//===-- amdgpu/lib/image/get_image_channel_data_type.cl -------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DECL int __clc_get_image_channel_data_type_2d(image2d_t); Index: amdgpu/lib/image/get_image_channel_order.cl =================================================================== --- amdgpu/lib/image/get_image_channel_order.cl +++ amdgpu/lib/image/get_image_channel_order.cl @@ -1,3 +1,12 @@ +//===-- amdgpu/lib/image/get_image_channel_order.cl -----------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DECL int __clc_get_image_channel_order_2d(image2d_t); Index: amdgpu/lib/image/get_image_depth.cl =================================================================== --- amdgpu/lib/image/get_image_depth.cl +++ amdgpu/lib/image/get_image_depth.cl @@ -1,3 +1,12 @@ +//===-- amdgpu/lib/image/get_image_depth.cl -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DECL int __clc_get_image_depth_3d(image3d_t); Index: amdgpu/lib/image/get_image_height.cl =================================================================== --- amdgpu/lib/image/get_image_height.cl +++ amdgpu/lib/image/get_image_height.cl @@ -1,3 +1,12 @@ +//===-- amdgpu/lib/image/get_image_height.cl ------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DECL int __clc_get_image_height_2d(image2d_t); Index: amdgpu/lib/image/get_image_width.cl =================================================================== --- amdgpu/lib/image/get_image_width.cl +++ amdgpu/lib/image/get_image_width.cl @@ -1,3 +1,12 @@ +//===-- amdgpu/lib/image/get_image_width.cl -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DECL int __clc_get_image_width_2d(image2d_t); Index: amdgpu/lib/image/read_image_impl.ll =================================================================== --- amdgpu/lib/image/read_image_impl.ll +++ amdgpu/lib/image/read_image_impl.ll @@ -1,3 +1,12 @@ +//===-- amdgpu/lib/image/read_image_impl.ll -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// %opencl.image2d_t = type opaque declare <4 x float> @llvm.R600.tex(<4 x float>, i32, i32, i32, i32, i32, i32, Index: amdgpu/lib/image/read_imagef.cl =================================================================== --- amdgpu/lib/image/read_imagef.cl +++ amdgpu/lib/image/read_imagef.cl @@ -1,3 +1,12 @@ +//===-- amdgpu/lib/image/read_imagef.cl -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DECL float4 __clc_read_imagef_tex(image2d_t, sampler_t, float2); Index: amdgpu/lib/image/read_imagei.cl =================================================================== --- amdgpu/lib/image/read_imagei.cl +++ amdgpu/lib/image/read_imagei.cl @@ -1,3 +1,12 @@ +//===-- amdgpu/lib/image/read_imagei.cl -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DECL float4 __clc_read_imagef_tex(image2d_t, sampler_t, float2); Index: amdgpu/lib/image/read_imageui.cl =================================================================== --- amdgpu/lib/image/read_imageui.cl +++ amdgpu/lib/image/read_imageui.cl @@ -1,3 +1,12 @@ +//===-- amdgpu/lib/image/read_imageui.cl ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DECL float4 __clc_read_imagef_tex(image2d_t, sampler_t, float2); Index: amdgpu/lib/image/write_image_impl.ll =================================================================== --- amdgpu/lib/image/write_image_impl.ll +++ amdgpu/lib/image/write_image_impl.ll @@ -1,3 +1,12 @@ +//===-- amdgpu/lib/image/write_image_impl.ll ------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// %opencl.image2d_t = type opaque %opencl.image3d_t = type opaque Index: amdgpu/lib/image/write_imagef.cl =================================================================== --- amdgpu/lib/image/write_imagef.cl +++ amdgpu/lib/image/write_imagef.cl @@ -1,3 +1,12 @@ +//===-- amdgpu/lib/image/write_imagef.cl ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DECL void __clc_write_imagef_2d(image2d_t image, int2 coord, float4 color); Index: amdgpu/lib/image/write_imagei.cl =================================================================== --- amdgpu/lib/image/write_imagei.cl +++ amdgpu/lib/image/write_imagei.cl @@ -1,3 +1,12 @@ +//===-- amdgpu/lib/image/write_imagei.cl ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DECL void __clc_write_imagei_2d(image2d_t image, int2 coord, int4 color); Index: amdgpu/lib/image/write_imageui.cl =================================================================== --- amdgpu/lib/image/write_imageui.cl +++ amdgpu/lib/image/write_imageui.cl @@ -1,3 +1,12 @@ +//===-- amdgpu/lib/image/write_imageui.cl ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DECL void __clc_write_imageui_2d(image2d_t image, int2 coord, uint4 color); Index: amdgpu/lib/math/nextafter.cl =================================================================== --- amdgpu/lib/math/nextafter.cl +++ amdgpu/lib/math/nextafter.cl @@ -1,3 +1,12 @@ +//===-- amdgpu/lib/math/nextafter.cl --------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../lib/clcmacro.h" Index: amdgpu/lib/math/sqrt.cl =================================================================== --- amdgpu/lib/math/sqrt.cl +++ amdgpu/lib/math/sqrt.cl @@ -1,25 +1,12 @@ -/* - * 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. - */ - +//===-- amdgpu/lib/math/sqrt.cl -------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../../../generic/lib/clcmacro.h" #include "math/clc_sqrt.h" Index: amdgpu/lib/synchronization/barrier.cl =================================================================== --- amdgpu/lib/synchronization/barrier.cl +++ amdgpu/lib/synchronization/barrier.cl @@ -1,3 +1,12 @@ +//===-- amdgpu/lib/synchronization/barrier.cl -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include Index: build/metabuild.py =================================================================== --- build/metabuild.py +++ build/metabuild.py @@ -1,3 +1,12 @@ +//===-- build/metabuild.py ------------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// import ninja_syntax import os Index: build/ninja_syntax.py =================================================================== --- build/ninja_syntax.py +++ build/ninja_syntax.py @@ -1,3 +1,12 @@ +//===-- build/ninja_syntax.py ---------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #!/usr/bin/python """Python module for generating .ninja files. Index: compile-test.sh =================================================================== --- compile-test.sh +++ compile-test.sh @@ -1,3 +1,12 @@ +//===-- compile-test.sh ---------------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #!/bin/sh clang -target nvptx--nvidiacl -Iptx-nvidiacl/include -Igeneric/include -Xclang -mlink-bitcode-file -Xclang nvptx--nvidiacl/lib/builtins.bc -include clc/clc.h -Dcl_clang_storage_class_specifiers -Dcl_khr_fp64 "$@" Index: configure.py =================================================================== --- configure.py +++ configure.py @@ -1,3 +1,12 @@ +//===-- configure.py ------------------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #!/usr/bin/python def c_compiler_rule(b, name, description, compiler, flags): Index: generic/include/clc/as_type.h =================================================================== --- generic/include/clc/as_type.h +++ generic/include/clc/as_type.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/as_type.h -------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define as_char(x) __builtin_astype(x, char) #define as_uchar(x) __builtin_astype(x, uchar) #define as_short(x) __builtin_astype(x, short) Index: generic/include/clc/async/async_work_group_copy.h =================================================================== --- generic/include/clc/async/async_work_group_copy.h +++ generic/include/clc/async/async_work_group_copy.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/async/async_work_group_copy.h -----------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_DST_ADDR_SPACE local #define __CLC_SRC_ADDR_SPACE global #define __CLC_BODY Index: generic/include/clc/async/async_work_group_copy.inc =================================================================== --- generic/include/clc/async/async_work_group_copy.inc +++ generic/include/clc/async/async_work_group_copy.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/async/async_work_group_copy.inc ---------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL event_t async_work_group_copy( __CLC_DST_ADDR_SPACE __CLC_GENTYPE *dst, const __CLC_SRC_ADDR_SPACE __CLC_GENTYPE *src, Index: generic/include/clc/async/async_work_group_strided_copy.h =================================================================== --- generic/include/clc/async/async_work_group_strided_copy.h +++ generic/include/clc/async/async_work_group_strided_copy.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/async/async_work_group_strided_copy.h ---------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_DST_ADDR_SPACE local #define __CLC_SRC_ADDR_SPACE global #define __CLC_BODY Index: generic/include/clc/async/async_work_group_strided_copy.inc =================================================================== --- generic/include/clc/async/async_work_group_strided_copy.inc +++ generic/include/clc/async/async_work_group_strided_copy.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/async/async_work_group_strided_copy.inc -------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL event_t async_work_group_strided_copy( __CLC_DST_ADDR_SPACE __CLC_GENTYPE *dst, const __CLC_SRC_ADDR_SPACE __CLC_GENTYPE *src, Index: generic/include/clc/async/gentype.inc =================================================================== --- generic/include/clc/async/gentype.inc +++ generic/include/clc/async/gentype.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/async/gentype.inc -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_GENTYPE char #include __CLC_BODY Index: generic/include/clc/async/prefetch.h =================================================================== --- generic/include/clc/async/prefetch.h +++ generic/include/clc/async/prefetch.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/async/prefetch.h ------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include #undef __CLC_BODY Index: generic/include/clc/async/prefetch.inc =================================================================== --- generic/include/clc/async/prefetch.inc +++ generic/include/clc/async/prefetch.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/async/prefetch.inc ----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL void prefetch(const global __CLC_GENTYPE *p, size_t num_gentypes); Index: generic/include/clc/async/wait_group_events.h =================================================================== --- generic/include/clc/async/wait_group_events.h +++ generic/include/clc/async/wait_group_events.h @@ -1 +1,10 @@ +//===-- generic/include/clc/async/wait_group_events.h ---------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// void wait_group_events(int num_events, event_t *event_list); Index: generic/include/clc/atomic/atomic_add.h =================================================================== --- generic/include/clc/atomic/atomic_add.h +++ generic/include/clc/atomic/atomic_add.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/atomic/atomic_add.h ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_FUNCTION atomic_add #include #undef __CLC_FUNCTION Index: generic/include/clc/atomic/atomic_and.h =================================================================== --- generic/include/clc/atomic/atomic_and.h +++ generic/include/clc/atomic/atomic_and.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/atomic/atomic_and.h ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_FUNCTION atomic_and #include #undef __CLC_FUNCTION Index: generic/include/clc/atomic/atomic_cmpxchg.h =================================================================== --- generic/include/clc/atomic/atomic_cmpxchg.h +++ generic/include/clc/atomic/atomic_cmpxchg.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/atomic/atomic_cmpxchg.h -----------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_FUNCTION atomic_cmpxchg #define __CLC_DECLARE_ATOMIC_3_ARG(ADDRSPACE, TYPE) \ Index: generic/include/clc/atomic/atomic_dec.h =================================================================== --- generic/include/clc/atomic/atomic_dec.h +++ generic/include/clc/atomic/atomic_dec.h @@ -1 +1,10 @@ +//===-- generic/include/clc/atomic/atomic_dec.h ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define atomic_dec(p) atomic_sub(p, 1) Index: generic/include/clc/atomic/atomic_decl.inc =================================================================== --- generic/include/clc/atomic/atomic_decl.inc +++ generic/include/clc/atomic/atomic_decl.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/atomic/atomic_decl.inc ------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_DECLARE_ATOMIC(ADDRSPACE, TYPE) \ _CLC_OVERLOAD _CLC_DECL TYPE __CLC_FUNCTION (volatile ADDRSPACE TYPE *, TYPE); Index: generic/include/clc/atomic/atomic_inc.h =================================================================== --- generic/include/clc/atomic/atomic_inc.h +++ generic/include/clc/atomic/atomic_inc.h @@ -1 +1,10 @@ +//===-- generic/include/clc/atomic/atomic_inc.h ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define atomic_inc(p) atomic_add(p, 1) Index: generic/include/clc/atomic/atomic_max.h =================================================================== --- generic/include/clc/atomic/atomic_max.h +++ generic/include/clc/atomic/atomic_max.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/atomic/atomic_max.h ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_FUNCTION atomic_max #include #undef __CLC_FUNCTION Index: generic/include/clc/atomic/atomic_min.h =================================================================== --- generic/include/clc/atomic/atomic_min.h +++ generic/include/clc/atomic/atomic_min.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/atomic/atomic_min.h ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_FUNCTION atomic_min #include #undef __CLC_FUNCTION Index: generic/include/clc/atomic/atomic_or.h =================================================================== --- generic/include/clc/atomic/atomic_or.h +++ generic/include/clc/atomic/atomic_or.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/atomic/atomic_or.h ----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_FUNCTION atomic_or #include #undef __CLC_FUNCTION Index: generic/include/clc/atomic/atomic_sub.h =================================================================== --- generic/include/clc/atomic/atomic_sub.h +++ generic/include/clc/atomic/atomic_sub.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/atomic/atomic_sub.h ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_FUNCTION atomic_sub #include #undef __CLC_FUNCTION Index: generic/include/clc/atomic/atomic_xchg.h =================================================================== --- generic/include/clc/atomic/atomic_xchg.h +++ generic/include/clc/atomic/atomic_xchg.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/atomic/atomic_xchg.h --------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_FUNCTION atomic_xchg #include __CLC_DECLARE_ATOMIC_ADDRSPACE(float); Index: generic/include/clc/atomic/atomic_xor.h =================================================================== --- generic/include/clc/atomic/atomic_xor.h +++ generic/include/clc/atomic/atomic_xor.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/atomic/atomic_xor.h ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_FUNCTION atomic_xor #include #undef __CLC_FUNCTION Index: generic/include/clc/cl_khr_global_int32_base_atomics/atom_add.h =================================================================== --- generic/include/clc/cl_khr_global_int32_base_atomics/atom_add.h +++ generic/include/clc/cl_khr_global_int32_base_atomics/atom_add.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_global_int32_base_atomics/atom_add.h ---===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_add(global int *p, int val); _CLC_OVERLOAD _CLC_DECL unsigned int atom_add(global unsigned int *p, unsigned int val); Index: generic/include/clc/cl_khr_global_int32_base_atomics/atom_cmpxchg.h =================================================================== --- generic/include/clc/cl_khr_global_int32_base_atomics/atom_cmpxchg.h +++ generic/include/clc/cl_khr_global_int32_base_atomics/atom_cmpxchg.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_global_int32_base_atomics/atom_cmpxchg.h ===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_cmpxchg(global int *p, int cmp, int val); _CLC_OVERLOAD _CLC_DECL unsigned int atom_cmpxchg(global unsigned int *p, unsigned int cmp, unsigned int val); Index: generic/include/clc/cl_khr_global_int32_base_atomics/atom_dec.h =================================================================== --- generic/include/clc/cl_khr_global_int32_base_atomics/atom_dec.h +++ generic/include/clc/cl_khr_global_int32_base_atomics/atom_dec.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_global_int32_base_atomics/atom_dec.h ---===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_dec(global int *p); _CLC_OVERLOAD _CLC_DECL unsigned int atom_dec(global unsigned int *p); Index: generic/include/clc/cl_khr_global_int32_base_atomics/atom_inc.h =================================================================== --- generic/include/clc/cl_khr_global_int32_base_atomics/atom_inc.h +++ generic/include/clc/cl_khr_global_int32_base_atomics/atom_inc.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_global_int32_base_atomics/atom_inc.h ---===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_inc(global int *p); _CLC_OVERLOAD _CLC_DECL unsigned int atom_inc(global unsigned int *p); Index: generic/include/clc/cl_khr_global_int32_base_atomics/atom_sub.h =================================================================== --- generic/include/clc/cl_khr_global_int32_base_atomics/atom_sub.h +++ generic/include/clc/cl_khr_global_int32_base_atomics/atom_sub.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_global_int32_base_atomics/atom_sub.h ---===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_sub(global int *p, int val); _CLC_OVERLOAD _CLC_DECL unsigned int atom_sub(global unsigned int *p, unsigned int val); Index: generic/include/clc/cl_khr_global_int32_base_atomics/atom_xchg.h =================================================================== --- generic/include/clc/cl_khr_global_int32_base_atomics/atom_xchg.h +++ generic/include/clc/cl_khr_global_int32_base_atomics/atom_xchg.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_global_int32_base_atomics/atom_xchg.h --===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_xchg(global int *p, int val); _CLC_OVERLOAD _CLC_DECL unsigned int atom_xchg(global unsigned int *p, unsigned int val); Index: generic/include/clc/cl_khr_global_int32_extended_atomics/atom_and.h =================================================================== --- generic/include/clc/cl_khr_global_int32_extended_atomics/atom_and.h +++ generic/include/clc/cl_khr_global_int32_extended_atomics/atom_and.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_global_int32_extended_atomics/atom_and.h ===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_and(global int *p, int val); _CLC_OVERLOAD _CLC_DECL unsigned int atom_and(global unsigned int *p, unsigned int val); Index: generic/include/clc/cl_khr_global_int32_extended_atomics/atom_max.h =================================================================== --- generic/include/clc/cl_khr_global_int32_extended_atomics/atom_max.h +++ generic/include/clc/cl_khr_global_int32_extended_atomics/atom_max.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_global_int32_extended_atomics/atom_max.h ===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_max(global int *p, int val); _CLC_OVERLOAD _CLC_DECL unsigned int atom_max(global unsigned int *p, unsigned int val); Index: generic/include/clc/cl_khr_global_int32_extended_atomics/atom_min.h =================================================================== --- generic/include/clc/cl_khr_global_int32_extended_atomics/atom_min.h +++ generic/include/clc/cl_khr_global_int32_extended_atomics/atom_min.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_global_int32_extended_atomics/atom_min.h ===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_min(global int *p, int val); _CLC_OVERLOAD _CLC_DECL unsigned int atom_min(global unsigned int *p, unsigned int val); Index: generic/include/clc/cl_khr_global_int32_extended_atomics/atom_or.h =================================================================== --- generic/include/clc/cl_khr_global_int32_extended_atomics/atom_or.h +++ generic/include/clc/cl_khr_global_int32_extended_atomics/atom_or.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_global_int32_extended_atomics/atom_or.h ===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_or(global int *p, int val); _CLC_OVERLOAD _CLC_DECL unsigned int atom_or(global unsigned int *p, unsigned int val); Index: generic/include/clc/cl_khr_global_int32_extended_atomics/atom_xor.h =================================================================== --- generic/include/clc/cl_khr_global_int32_extended_atomics/atom_xor.h +++ generic/include/clc/cl_khr_global_int32_extended_atomics/atom_xor.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_global_int32_extended_atomics/atom_xor.h ===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_xor(global int *p, int val); _CLC_OVERLOAD _CLC_DECL unsigned int atom_xor(global unsigned int *p, unsigned int val); Index: generic/include/clc/cl_khr_local_int32_base_atomics/atom_add.h =================================================================== --- generic/include/clc/cl_khr_local_int32_base_atomics/atom_add.h +++ generic/include/clc/cl_khr_local_int32_base_atomics/atom_add.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_local_int32_base_atomics/atom_add.h ----===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_add(local int *p, int val); _CLC_OVERLOAD _CLC_DECL unsigned int atom_add(local unsigned int *p, unsigned int val); Index: generic/include/clc/cl_khr_local_int32_base_atomics/atom_cmpxchg.h =================================================================== --- generic/include/clc/cl_khr_local_int32_base_atomics/atom_cmpxchg.h +++ generic/include/clc/cl_khr_local_int32_base_atomics/atom_cmpxchg.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_local_int32_base_atomics/atom_cmpxchg.h ===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_cmpxchg(local int *p, int cmp, int val); _CLC_OVERLOAD _CLC_DECL unsigned int atom_cmpxchg(local unsigned int *p, unsigned int cmp, unsigned int val); Index: generic/include/clc/cl_khr_local_int32_base_atomics/atom_dec.h =================================================================== --- generic/include/clc/cl_khr_local_int32_base_atomics/atom_dec.h +++ generic/include/clc/cl_khr_local_int32_base_atomics/atom_dec.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_local_int32_base_atomics/atom_dec.h ----===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_dec(local int *p); _CLC_OVERLOAD _CLC_DECL unsigned int atom_dec(local unsigned int *p); Index: generic/include/clc/cl_khr_local_int32_base_atomics/atom_inc.h =================================================================== --- generic/include/clc/cl_khr_local_int32_base_atomics/atom_inc.h +++ generic/include/clc/cl_khr_local_int32_base_atomics/atom_inc.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_local_int32_base_atomics/atom_inc.h ----===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_inc(local int *p); _CLC_OVERLOAD _CLC_DECL unsigned int atom_inc(local unsigned int *p); Index: generic/include/clc/cl_khr_local_int32_base_atomics/atom_sub.h =================================================================== --- generic/include/clc/cl_khr_local_int32_base_atomics/atom_sub.h +++ generic/include/clc/cl_khr_local_int32_base_atomics/atom_sub.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_local_int32_base_atomics/atom_sub.h ----===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_sub(local int *p, int val); _CLC_OVERLOAD _CLC_DECL unsigned int atom_sub(local unsigned int *p, unsigned int val); Index: generic/include/clc/cl_khr_local_int32_base_atomics/atom_xchg.h =================================================================== --- generic/include/clc/cl_khr_local_int32_base_atomics/atom_xchg.h +++ generic/include/clc/cl_khr_local_int32_base_atomics/atom_xchg.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_local_int32_base_atomics/atom_xchg.h ---===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_xchg(local int *p, int val); _CLC_OVERLOAD _CLC_DECL unsigned int atom_xchg(local unsigned int *p, unsigned int val); Index: generic/include/clc/cl_khr_local_int32_extended_atomics/atom_and.h =================================================================== --- generic/include/clc/cl_khr_local_int32_extended_atomics/atom_and.h +++ generic/include/clc/cl_khr_local_int32_extended_atomics/atom_and.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_local_int32_extended_atomics/atom_and.h ===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_and(local int *p, int val); _CLC_OVERLOAD _CLC_DECL unsigned int atom_and(local unsigned int *p, unsigned int val); Index: generic/include/clc/cl_khr_local_int32_extended_atomics/atom_max.h =================================================================== --- generic/include/clc/cl_khr_local_int32_extended_atomics/atom_max.h +++ generic/include/clc/cl_khr_local_int32_extended_atomics/atom_max.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_local_int32_extended_atomics/atom_max.h ===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_max(local int *p, int val); _CLC_OVERLOAD _CLC_DECL unsigned int atom_max(local unsigned int *p, unsigned int val); Index: generic/include/clc/cl_khr_local_int32_extended_atomics/atom_min.h =================================================================== --- generic/include/clc/cl_khr_local_int32_extended_atomics/atom_min.h +++ generic/include/clc/cl_khr_local_int32_extended_atomics/atom_min.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_local_int32_extended_atomics/atom_min.h ===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_min(local int *p, int val); _CLC_OVERLOAD _CLC_DECL unsigned int atom_min(local unsigned int *p, unsigned int val); Index: generic/include/clc/cl_khr_local_int32_extended_atomics/atom_or.h =================================================================== --- generic/include/clc/cl_khr_local_int32_extended_atomics/atom_or.h +++ generic/include/clc/cl_khr_local_int32_extended_atomics/atom_or.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_local_int32_extended_atomics/atom_or.h -===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_or(local int *p, int val); _CLC_OVERLOAD _CLC_DECL unsigned int atom_or(local unsigned int *p, unsigned int val); Index: generic/include/clc/cl_khr_local_int32_extended_atomics/atom_xor.h =================================================================== --- generic/include/clc/cl_khr_local_int32_extended_atomics/atom_xor.h +++ generic/include/clc/cl_khr_local_int32_extended_atomics/atom_xor.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/cl_khr_local_int32_extended_atomics/atom_xor.h ===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int atom_xor(local int *p, int val); _CLC_OVERLOAD _CLC_DECL unsigned int atom_xor(local unsigned int *p, unsigned int val); Index: generic/include/clc/clc.h =================================================================== --- generic/include/clc/clc.h +++ generic/include/clc/clc.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/clc.h -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef cl_clang_storage_class_specifiers #error Implementation requires cl_clang_storage_class_specifiers extension! #endif Index: generic/include/clc/clcfunc.h =================================================================== --- generic/include/clc/clcfunc.h +++ generic/include/clc/clcfunc.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/clcfunc.h -------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define _CLC_OVERLOAD __attribute__((overloadable)) #define _CLC_DECL #define _CLC_DEF __attribute__((always_inline)) Index: generic/include/clc/clctypes.h =================================================================== --- generic/include/clc/clctypes.h +++ generic/include/clc/clctypes.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/clctypes.h ------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /* 6.1.1 Built-in Scalar Data Types */ typedef unsigned char uchar; Index: generic/include/clc/clcversion.h =================================================================== --- generic/include/clc/clcversion.h +++ generic/include/clc/clcversion.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/clcversion.h ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #if __OPENCL_VERSION__ >= 110 #define CLC_VERSION_1_0 100 #define CLC_VERSION_1_1 110 Index: generic/include/clc/common/degrees.h =================================================================== --- generic/include/clc/common/degrees.h +++ generic/include/clc/common/degrees.h @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/include/clc/common/degrees.h ------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include #undef __CLC_BODY Index: generic/include/clc/common/degrees.inc =================================================================== --- generic/include/clc/common/degrees.inc +++ generic/include/clc/common/degrees.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/include/clc/common/degrees.inc ----------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE degrees(__CLC_GENTYPE x); Index: generic/include/clc/common/mix.h =================================================================== --- generic/include/clc/common/mix.h +++ generic/include/clc/common/mix.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/common/mix.h ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/common/mix.inc =================================================================== --- generic/include/clc/common/mix.inc +++ generic/include/clc/common/mix.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/common/mix.inc --------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE mix(__CLC_GENTYPE a, __CLC_GENTYPE b, __CLC_GENTYPE c); #ifndef __CLC_SCALAR Index: generic/include/clc/common/radians.h =================================================================== --- generic/include/clc/common/radians.h +++ generic/include/clc/common/radians.h @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/include/clc/common/radians.h ------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include #undef __CLC_BODY Index: generic/include/clc/common/radians.inc =================================================================== --- generic/include/clc/common/radians.inc +++ generic/include/clc/common/radians.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/include/clc/common/radians.inc ----------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE radians(__CLC_GENTYPE x); Index: generic/include/clc/common/sign.h =================================================================== --- generic/include/clc/common/sign.h +++ generic/include/clc/common/sign.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/common/sign.h ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_FUNCTION sign #define __CLC_BODY #include Index: generic/include/clc/common/smoothstep.h =================================================================== --- generic/include/clc/common/smoothstep.h +++ generic/include/clc/common/smoothstep.h @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/include/clc/common/smoothstep.h ---------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include #undef __CLC_BODY Index: generic/include/clc/common/smoothstep.inc =================================================================== --- generic/include/clc/common/smoothstep.inc +++ generic/include/clc/common/smoothstep.inc @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/include/clc/common/smoothstep.inc -------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE smoothstep(__CLC_GENTYPE edge0, __CLC_GENTYPE edge1, __CLC_GENTYPE x); _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE smoothstep(float edge0, float edge1, __CLC_GENTYPE x); Index: generic/include/clc/common/step.h =================================================================== --- generic/include/clc/common/step.h +++ generic/include/clc/common/step.h @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/include/clc/common/step.h ---------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include #undef __CLC_BODY Index: generic/include/clc/common/step.inc =================================================================== --- generic/include/clc/common/step.inc +++ generic/include/clc/common/step.inc @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/include/clc/common/step.inc -------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE step(__CLC_GENTYPE edge, __CLC_GENTYPE x); _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE step(float edge, __CLC_GENTYPE x); Index: generic/include/clc/convert.h =================================================================== --- generic/include/clc/convert.h +++ generic/include/clc/convert.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/convert.h -------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define _CLC_CONVERT_DECL(FROM_TYPE, TO_TYPE, SUFFIX) \ _CLC_OVERLOAD _CLC_DECL TO_TYPE convert_##TO_TYPE##SUFFIX(FROM_TYPE x); Index: generic/include/clc/float/definitions.h =================================================================== --- generic/include/clc/float/definitions.h +++ generic/include/clc/float/definitions.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/float/definitions.h ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define MAXFLOAT 0x1.fffffep127f #define HUGE_VALF __builtin_huge_valf() #define INFINITY __builtin_inff() Index: generic/include/clc/geometric/cross.h =================================================================== --- generic/include/clc/geometric/cross.h +++ generic/include/clc/geometric/cross.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/geometric/cross.h -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL float3 cross(float3 p0, float3 p1); _CLC_OVERLOAD _CLC_DECL float4 cross(float4 p0, float4 p1); Index: generic/include/clc/geometric/distance.h =================================================================== --- generic/include/clc/geometric/distance.h +++ generic/include/clc/geometric/distance.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/geometric/distance.h --------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/geometric/distance.inc =================================================================== --- generic/include/clc/geometric/distance.inc +++ generic/include/clc/geometric/distance.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/include/clc/geometric/distance.inc ------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_FLOAT distance(__CLC_FLOATN p0, __CLC_FLOATN p1); Index: generic/include/clc/geometric/dot.h =================================================================== --- generic/include/clc/geometric/dot.h +++ generic/include/clc/geometric/dot.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/geometric/dot.h -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/geometric/dot.inc =================================================================== --- generic/include/clc/geometric/dot.inc +++ generic/include/clc/geometric/dot.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/geometric/dot.inc -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_FLOAT dot(__CLC_FLOATN p0, __CLC_FLOATN p1); Index: generic/include/clc/geometric/fast_distance.h =================================================================== --- generic/include/clc/geometric/fast_distance.h +++ generic/include/clc/geometric/fast_distance.h @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/include/clc/geometric/fast_distance.h ---------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #define __FLOAT_ONLY #include Index: generic/include/clc/geometric/fast_distance.inc =================================================================== --- generic/include/clc/geometric/fast_distance.inc +++ generic/include/clc/geometric/fast_distance.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/include/clc/geometric/fast_distance.inc -------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_FLOAT fast_distance(__CLC_FLOATN p0, __CLC_FLOATN p1); Index: generic/include/clc/geometric/fast_length.h =================================================================== --- generic/include/clc/geometric/fast_length.h +++ generic/include/clc/geometric/fast_length.h @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/include/clc/geometric/fast_length.h -----------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #define __FLOAT_ONLY #include Index: generic/include/clc/geometric/fast_length.inc =================================================================== --- generic/include/clc/geometric/fast_length.inc +++ generic/include/clc/geometric/fast_length.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/include/clc/geometric/fast_length.inc ---------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_FLOAT fast_length(__CLC_FLOATN p0); Index: generic/include/clc/geometric/fast_normalize.h =================================================================== --- generic/include/clc/geometric/fast_normalize.h +++ generic/include/clc/geometric/fast_normalize.h @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/include/clc/geometric/fast_normalize.h --------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #define __FLOAT_ONLY #include Index: generic/include/clc/geometric/fast_normalize.inc =================================================================== --- generic/include/clc/geometric/fast_normalize.inc +++ generic/include/clc/geometric/fast_normalize.inc @@ -1,24 +1,10 @@ -/* - * Copyright (c) 2014,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. - */ - +//===-- generic/include/clc/geometric/fast_normalize.inc ------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_FLOATN fast_normalize(__CLC_FLOATN p); Index: generic/include/clc/geometric/floatn.inc =================================================================== --- generic/include/clc/geometric/floatn.inc +++ generic/include/clc/geometric/floatn.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/geometric/floatn.inc --------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_FLOAT float #define __CLC_FPSIZE 32 Index: generic/include/clc/geometric/length.h =================================================================== --- generic/include/clc/geometric/length.h +++ generic/include/clc/geometric/length.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/geometric/length.h ----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/geometric/length.inc =================================================================== --- generic/include/clc/geometric/length.inc +++ generic/include/clc/geometric/length.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/geometric/length.inc --------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_FLOAT length(__CLC_FLOATN p0); Index: generic/include/clc/geometric/normalize.h =================================================================== --- generic/include/clc/geometric/normalize.h +++ generic/include/clc/geometric/normalize.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/geometric/normalize.h -------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/geometric/normalize.inc =================================================================== --- generic/include/clc/geometric/normalize.inc +++ generic/include/clc/geometric/normalize.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/geometric/normalize.inc -----------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_FLOATN normalize(__CLC_FLOATN p); Index: generic/include/clc/image/image.h =================================================================== --- generic/include/clc/image/image.h +++ generic/include/clc/image/image.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/image/image.h ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL int get_image_width (image2d_t image); _CLC_OVERLOAD _CLC_DECL int get_image_width (image3d_t image); Index: generic/include/clc/image/image_defines.h =================================================================== --- generic/include/clc/image/image_defines.h +++ generic/include/clc/image/image_defines.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/image/image_defines.h -------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /* get_image_channel_data_type flags */ #define CLK_SNORM_INT8 0x10D0 #define CLK_SNORM_INT16 0x10D1 Index: generic/include/clc/integer/abs.h =================================================================== --- generic/include/clc/integer/abs.h +++ generic/include/clc/integer/abs.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/integer/abs.h ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/integer/abs.inc =================================================================== --- generic/include/clc/integer/abs.inc +++ generic/include/clc/integer/abs.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/integer/abs.inc -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_U_GENTYPE abs(__CLC_GENTYPE x); Index: generic/include/clc/integer/abs_diff.h =================================================================== --- generic/include/clc/integer/abs_diff.h +++ generic/include/clc/integer/abs_diff.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/integer/abs_diff.h ----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/integer/abs_diff.inc =================================================================== --- generic/include/clc/integer/abs_diff.inc +++ generic/include/clc/integer/abs_diff.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/integer/abs_diff.inc --------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_U_GENTYPE abs_diff(__CLC_GENTYPE x, __CLC_GENTYPE y); Index: generic/include/clc/integer/add_sat.h =================================================================== --- generic/include/clc/integer/add_sat.h +++ generic/include/clc/integer/add_sat.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/integer/add_sat.h -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/integer/add_sat.inc =================================================================== --- generic/include/clc/integer/add_sat.inc +++ generic/include/clc/integer/add_sat.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/integer/add_sat.inc ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE add_sat(__CLC_GENTYPE x, __CLC_GENTYPE y); Index: generic/include/clc/integer/clz.h =================================================================== --- generic/include/clc/integer/clz.h +++ generic/include/clc/integer/clz.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/integer/clz.h ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/integer/clz.inc =================================================================== --- generic/include/clc/integer/clz.inc +++ generic/include/clc/integer/clz.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/integer/clz.inc -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE clz(__CLC_GENTYPE x); Index: generic/include/clc/integer/definitions.h =================================================================== --- generic/include/clc/integer/definitions.h +++ generic/include/clc/integer/definitions.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/integer/definitions.h -------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define CHAR_BIT 8 #define INT_MAX 2147483647 #define INT_MIN (-2147483647 - 1) Index: generic/include/clc/integer/gentype.inc =================================================================== --- generic/include/clc/integer/gentype.inc +++ generic/include/clc/integer/gentype.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/integer/gentype.inc ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// //These 2 defines only change when switching between data sizes or base types to //keep this file manageable. #define __CLC_GENSIZE 8 Index: generic/include/clc/integer/hadd.h =================================================================== --- generic/include/clc/integer/hadd.h +++ generic/include/clc/integer/hadd.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/integer/hadd.h --------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/integer/hadd.inc =================================================================== --- generic/include/clc/integer/hadd.inc +++ generic/include/clc/integer/hadd.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/integer/hadd.inc ------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE hadd(__CLC_GENTYPE x, __CLC_GENTYPE y); Index: generic/include/clc/integer/integer-gentype.inc =================================================================== --- generic/include/clc/integer/integer-gentype.inc +++ generic/include/clc/integer/integer-gentype.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/integer/integer-gentype.inc -------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_GENTYPE int #include __CLC_BODY #undef __CLC_GENTYPE Index: generic/include/clc/integer/mad24.h =================================================================== --- generic/include/clc/integer/mad24.h +++ generic/include/clc/integer/mad24.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/integer/mad24.h -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include #undef __CLC_BODY Index: generic/include/clc/integer/mad24.inc =================================================================== --- generic/include/clc/integer/mad24.inc +++ generic/include/clc/integer/mad24.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/integer/mad24.inc -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE mad24(__CLC_GENTYPE x, __CLC_GENTYPE y, __CLC_GENTYPE z); Index: generic/include/clc/integer/mad_hi.h =================================================================== --- generic/include/clc/integer/mad_hi.h +++ generic/include/clc/integer/mad_hi.h @@ -1 +1,10 @@ +//===-- generic/include/clc/integer/mad_hi.h ------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define mad_hi(a, b, c) (mul_hi((a),(b))+(c)) Index: generic/include/clc/integer/mad_sat.h =================================================================== --- generic/include/clc/integer/mad_sat.h +++ generic/include/clc/integer/mad_sat.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/integer/mad_sat.h -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include #undef __CLC_BODY Index: generic/include/clc/integer/mad_sat.inc =================================================================== --- generic/include/clc/integer/mad_sat.inc +++ generic/include/clc/integer/mad_sat.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/integer/mad_sat.inc ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE mad_sat(__CLC_GENTYPE x, __CLC_GENTYPE y, __CLC_GENTYPE z); Index: generic/include/clc/integer/mul24.h =================================================================== --- generic/include/clc/integer/mul24.h +++ generic/include/clc/integer/mul24.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/integer/mul24.h -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include #undef __CLC_BODY Index: generic/include/clc/integer/mul24.inc =================================================================== --- generic/include/clc/integer/mul24.inc +++ generic/include/clc/integer/mul24.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/integer/mul24.inc -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE mul24(__CLC_GENTYPE x, __CLC_GENTYPE y); Index: generic/include/clc/integer/mul_hi.h =================================================================== --- generic/include/clc/integer/mul_hi.h +++ generic/include/clc/integer/mul_hi.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/integer/mul_hi.h ------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/integer/mul_hi.inc =================================================================== --- generic/include/clc/integer/mul_hi.inc +++ generic/include/clc/integer/mul_hi.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/integer/mul_hi.inc ----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE mul_hi(__CLC_GENTYPE x, __CLC_GENTYPE y); Index: generic/include/clc/integer/rhadd.h =================================================================== --- generic/include/clc/integer/rhadd.h +++ generic/include/clc/integer/rhadd.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/integer/rhadd.h -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/integer/rhadd.inc =================================================================== --- generic/include/clc/integer/rhadd.inc +++ generic/include/clc/integer/rhadd.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/integer/rhadd.inc -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE rhadd(__CLC_GENTYPE x, __CLC_GENTYPE y); Index: generic/include/clc/integer/rotate.h =================================================================== --- generic/include/clc/integer/rotate.h +++ generic/include/clc/integer/rotate.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/integer/rotate.h ------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/integer/rotate.inc =================================================================== --- generic/include/clc/integer/rotate.inc +++ generic/include/clc/integer/rotate.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/integer/rotate.inc ----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE rotate(__CLC_GENTYPE x, __CLC_GENTYPE y); Index: generic/include/clc/integer/sub_sat.h =================================================================== --- generic/include/clc/integer/sub_sat.h +++ generic/include/clc/integer/sub_sat.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/integer/sub_sat.h -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/integer/sub_sat.inc =================================================================== --- generic/include/clc/integer/sub_sat.inc +++ generic/include/clc/integer/sub_sat.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/integer/sub_sat.inc ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE sub_sat(__CLC_GENTYPE x, __CLC_GENTYPE y); Index: generic/include/clc/integer/upsample.h =================================================================== --- generic/include/clc/integer/upsample.h +++ generic/include/clc/integer/upsample.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/integer/upsample.h ----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_UPSAMPLE_DECL(BGENTYPE, GENTYPE, UGENTYPE) \ _CLC_OVERLOAD _CLC_DECL BGENTYPE upsample(GENTYPE hi, UGENTYPE lo); Index: generic/include/clc/math/acos.h =================================================================== --- generic/include/clc/math/acos.h +++ generic/include/clc/math/acos.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/math/acos.h -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/acos.inc =================================================================== --- generic/include/clc/math/acos.inc +++ generic/include/clc/math/acos.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/math/acos.inc ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE acos(__CLC_GENTYPE x); Index: generic/include/clc/math/acosh.h =================================================================== --- generic/include/clc/math/acosh.h +++ generic/include/clc/math/acosh.h @@ -1,24 +1,11 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/acosh.h ----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/acosh.inc =================================================================== --- generic/include/clc/math/acosh.inc +++ generic/include/clc/math/acosh.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/acosh.inc --------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE acosh(__CLC_GENTYPE x); Index: generic/include/clc/math/acospi.h =================================================================== --- generic/include/clc/math/acospi.h +++ generic/include/clc/math/acospi.h @@ -1,24 +1,11 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/acospi.h ---------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/acospi.inc =================================================================== --- generic/include/clc/math/acospi.inc +++ generic/include/clc/math/acospi.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/acospi.inc -------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE acospi(__CLC_GENTYPE x); Index: generic/include/clc/math/asin.h =================================================================== --- generic/include/clc/math/asin.h +++ generic/include/clc/math/asin.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/math/asin.h -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/asin.inc =================================================================== --- generic/include/clc/math/asin.inc +++ generic/include/clc/math/asin.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/math/asin.inc ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE asin(__CLC_GENTYPE x); Index: generic/include/clc/math/asinh.h =================================================================== --- generic/include/clc/math/asinh.h +++ generic/include/clc/math/asinh.h @@ -1,24 +1,11 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/asinh.h ----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/asinh.inc =================================================================== --- generic/include/clc/math/asinh.inc +++ generic/include/clc/math/asinh.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/asinh.inc --------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE asinh(__CLC_GENTYPE x); Index: generic/include/clc/math/asinpi.h =================================================================== --- generic/include/clc/math/asinpi.h +++ generic/include/clc/math/asinpi.h @@ -1,24 +1,11 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/asinpi.h ---------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/asinpi.inc =================================================================== --- generic/include/clc/math/asinpi.inc +++ generic/include/clc/math/asinpi.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/asinpi.inc -------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE asinpi(__CLC_GENTYPE x); Index: generic/include/clc/math/atan.h =================================================================== --- generic/include/clc/math/atan.h +++ generic/include/clc/math/atan.h @@ -1,24 +1,11 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/include/clc/math/atan.h -----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/atan.inc =================================================================== --- generic/include/clc/math/atan.inc +++ generic/include/clc/math/atan.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/include/clc/math/atan.inc ---------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE atan(__CLC_GENTYPE a); Index: generic/include/clc/math/atan2.h =================================================================== --- generic/include/clc/math/atan2.h +++ generic/include/clc/math/atan2.h @@ -1,24 +1,11 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/include/clc/math/atan2.h ----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/atan2.inc =================================================================== --- generic/include/clc/math/atan2.inc +++ generic/include/clc/math/atan2.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/include/clc/math/atan2.inc --------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE atan2(__CLC_GENTYPE a, __CLC_GENTYPE b); Index: generic/include/clc/math/atan2pi.h =================================================================== --- generic/include/clc/math/atan2pi.h +++ generic/include/clc/math/atan2pi.h @@ -1,24 +1,11 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/atan2pi.h --------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/atan2pi.inc =================================================================== --- generic/include/clc/math/atan2pi.inc +++ generic/include/clc/math/atan2pi.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/atan2pi.inc ------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE atan2pi(__CLC_GENTYPE x, __CLC_GENTYPE y); Index: generic/include/clc/math/atanh.h =================================================================== --- generic/include/clc/math/atanh.h +++ generic/include/clc/math/atanh.h @@ -1,24 +1,11 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/atanh.h ----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/atanh.inc =================================================================== --- generic/include/clc/math/atanh.inc +++ generic/include/clc/math/atanh.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/atanh.inc --------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE atanh(__CLC_GENTYPE x); Index: generic/include/clc/math/atanpi.h =================================================================== --- generic/include/clc/math/atanpi.h +++ generic/include/clc/math/atanpi.h @@ -1,24 +1,11 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/atanpi.h ---------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/atanpi.inc =================================================================== --- generic/include/clc/math/atanpi.inc +++ generic/include/clc/math/atanpi.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/atanpi.inc -------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE atanpi(__CLC_GENTYPE x); Index: generic/include/clc/math/binary_decl.inc =================================================================== --- generic/include/clc/math/binary_decl.inc +++ generic/include/clc/math/binary_decl.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/binary_decl.inc --------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION(__CLC_GENTYPE a, __CLC_GENTYPE b); _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION(__CLC_GENTYPE a, float b); Index: generic/include/clc/math/binary_intrin.inc =================================================================== --- generic/include/clc/math/binary_intrin.inc +++ generic/include/clc/math/binary_intrin.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/binary_intrin.inc ------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD float __CLC_FUNCTION(float, float) __asm(__CLC_INTRINSIC ".f32"); _CLC_OVERLOAD float2 __CLC_FUNCTION(float2, float2) __asm(__CLC_INTRINSIC ".v2f32"); _CLC_OVERLOAD float3 __CLC_FUNCTION(float3, float3) __asm(__CLC_INTRINSIC ".v3f32"); Index: generic/include/clc/math/cbrt.h =================================================================== --- generic/include/clc/math/cbrt.h +++ generic/include/clc/math/cbrt.h @@ -1,24 +1,11 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/cbrt.h -----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/cbrt.inc =================================================================== --- generic/include/clc/math/cbrt.inc +++ generic/include/clc/math/cbrt.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/cbrt.inc ---------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE cbrt(__CLC_GENTYPE x); Index: generic/include/clc/math/ceil.h =================================================================== --- generic/include/clc/math/ceil.h +++ generic/include/clc/math/ceil.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/ceil.h -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef ceil #define ceil __clc_ceil Index: generic/include/clc/math/clc_nextafter.h =================================================================== --- generic/include/clc/math/clc_nextafter.h +++ generic/include/clc/math/clc_nextafter.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/clc_nextafter.h --------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #define __CLC_FUNCTION nextafter Index: generic/include/clc/math/copysign.h =================================================================== --- generic/include/clc/math/copysign.h +++ generic/include/clc/math/copysign.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/math/copysign.h -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/copysign.inc =================================================================== --- generic/include/clc/math/copysign.inc +++ generic/include/clc/math/copysign.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/math/copysign.inc -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE copysign(__CLC_GENTYPE a, __CLC_GENTYPE b); Index: generic/include/clc/math/cos.h =================================================================== --- generic/include/clc/math/cos.h +++ generic/include/clc/math/cos.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/cos.h ------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include #undef __CLC_BODY Index: generic/include/clc/math/cos.inc =================================================================== --- generic/include/clc/math/cos.inc +++ generic/include/clc/math/cos.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/math/cos.inc ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE cos(__CLC_GENTYPE a); Index: generic/include/clc/math/cosh.h =================================================================== --- generic/include/clc/math/cosh.h +++ generic/include/clc/math/cosh.h @@ -1,24 +1,11 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/cosh.h -----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/cosh.inc =================================================================== --- generic/include/clc/math/cosh.inc +++ generic/include/clc/math/cosh.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/cosh.inc ---------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE cosh(__CLC_GENTYPE x); Index: generic/include/clc/math/cospi.h =================================================================== --- generic/include/clc/math/cospi.h +++ generic/include/clc/math/cospi.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/cospi.h ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include #undef __CLC_BODY Index: generic/include/clc/math/cospi.inc =================================================================== --- generic/include/clc/math/cospi.inc +++ generic/include/clc/math/cospi.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/math/cospi.inc --------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE cospi(__CLC_GENTYPE a); Index: generic/include/clc/math/exp.h =================================================================== --- generic/include/clc/math/exp.h +++ generic/include/clc/math/exp.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/exp.h ------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef exp #define __CLC_BODY Index: generic/include/clc/math/exp10.h =================================================================== --- generic/include/clc/math/exp10.h +++ generic/include/clc/math/exp10.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/exp10.h ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef exp10 #define __CLC_BODY Index: generic/include/clc/math/exp2.h =================================================================== --- generic/include/clc/math/exp2.h +++ generic/include/clc/math/exp2.h @@ -1,24 +1,11 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/exp2.h -----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/exp2.inc =================================================================== --- generic/include/clc/math/exp2.inc +++ generic/include/clc/math/exp2.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/exp2.inc ---------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE exp2(__CLC_GENTYPE x); Index: generic/include/clc/math/expm1.h =================================================================== --- generic/include/clc/math/expm1.h +++ generic/include/clc/math/expm1.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/expm1.h ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef exp #define __CLC_BODY Index: generic/include/clc/math/fabs.h =================================================================== --- generic/include/clc/math/fabs.h +++ generic/include/clc/math/fabs.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/fabs.h -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef fabs #define fabs __clc_fabs Index: generic/include/clc/math/fdim.h =================================================================== --- generic/include/clc/math/fdim.h +++ generic/include/clc/math/fdim.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/math/fdim.h -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/fdim.inc =================================================================== --- generic/include/clc/math/fdim.inc +++ generic/include/clc/math/fdim.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/math/fdim.inc ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE fdim(__CLC_GENTYPE a, __CLC_GENTYPE b); Index: generic/include/clc/math/floor.h =================================================================== --- generic/include/clc/math/floor.h +++ generic/include/clc/math/floor.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/floor.h ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef floor #define floor __clc_floor Index: generic/include/clc/math/fma.h =================================================================== --- generic/include/clc/math/fma.h +++ generic/include/clc/math/fma.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/fma.h ------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef fma #define fma __clc_fma Index: generic/include/clc/math/fmax.h =================================================================== --- generic/include/clc/math/fmax.h +++ generic/include/clc/math/fmax.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/fmax.h -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #define __CLC_FUNCTION fmax Index: generic/include/clc/math/fmin.h =================================================================== --- generic/include/clc/math/fmin.h +++ generic/include/clc/math/fmin.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/fmin.h -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #define __CLC_FUNCTION fmin Index: generic/include/clc/math/fmod.h =================================================================== --- generic/include/clc/math/fmod.h +++ generic/include/clc/math/fmod.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/math/fmod.h -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/fmod.inc =================================================================== --- generic/include/clc/math/fmod.inc +++ generic/include/clc/math/fmod.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/math/fmod.inc ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE fmod(__CLC_GENTYPE a, __CLC_GENTYPE b); Index: generic/include/clc/math/fract.h =================================================================== --- generic/include/clc/math/fract.h +++ generic/include/clc/math/fract.h @@ -1,24 +1,11 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/fract.h ----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/fract.inc =================================================================== --- generic/include/clc/math/fract.inc +++ generic/include/clc/math/fract.inc @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/fract.inc --------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE fract(__CLC_GENTYPE x, global __CLC_GENTYPE *iptr); _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE fract(__CLC_GENTYPE x, local __CLC_GENTYPE *iptr); _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE fract(__CLC_GENTYPE x, private __CLC_GENTYPE *iptr); Index: generic/include/clc/math/frexp.h =================================================================== --- generic/include/clc/math/frexp.h +++ generic/include/clc/math/frexp.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/math/frexp.h ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/frexp.inc =================================================================== --- generic/include/clc/math/frexp.inc +++ generic/include/clc/math/frexp.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/frexp.inc --------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE frexp(__CLC_GENTYPE x, global __CLC_INTN *iptr); _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE frexp(__CLC_GENTYPE x, local __CLC_INTN *iptr); _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE frexp(__CLC_GENTYPE x, private __CLC_INTN *iptr); Index: generic/include/clc/math/gentype.inc =================================================================== --- generic/include/clc/math/gentype.inc +++ generic/include/clc/math/gentype.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/gentype.inc ------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_SCALAR_GENTYPE float #define __CLC_FPSIZE 32 Index: generic/include/clc/math/half_rsqrt.h =================================================================== --- generic/include/clc/math/half_rsqrt.h +++ generic/include/clc/math/half_rsqrt.h @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/include/clc/math/half_rsqrt.h -----------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef half_rsqrt #define __CLC_BODY Index: generic/include/clc/math/half_sqrt.h =================================================================== --- generic/include/clc/math/half_sqrt.h +++ generic/include/clc/math/half_sqrt.h @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/include/clc/math/half_sqrt.h ------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef half_sqrt #define __CLC_BODY Index: generic/include/clc/math/hypot.h =================================================================== --- generic/include/clc/math/hypot.h +++ generic/include/clc/math/hypot.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/math/hypot.h ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/hypot.inc =================================================================== --- generic/include/clc/math/hypot.inc +++ generic/include/clc/math/hypot.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/math/hypot.inc --------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE hypot(__CLC_GENTYPE x, __CLC_GENTYPE y); Index: generic/include/clc/math/ilogb.h =================================================================== --- generic/include/clc/math/ilogb.h +++ generic/include/clc/math/ilogb.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/ilogb.h ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/ilogb.inc =================================================================== --- generic/include/clc/math/ilogb.inc +++ generic/include/clc/math/ilogb.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/math/ilogb.inc --------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_INTN ilogb(__CLC_GENTYPE x); Index: generic/include/clc/math/ldexp.h =================================================================== --- generic/include/clc/math/ldexp.h +++ generic/include/clc/math/ldexp.h @@ -1,24 +1,11 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/include/clc/math/ldexp.h ----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/ldexp.inc =================================================================== --- generic/include/clc/math/ldexp.inc +++ generic/include/clc/math/ldexp.inc @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/include/clc/math/ldexp.inc --------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE ldexp(__CLC_GENTYPE x, int n); #ifndef __CLC_SCALAR Index: generic/include/clc/math/log.h =================================================================== --- generic/include/clc/math/log.h +++ generic/include/clc/math/log.h @@ -1,24 +1,11 @@ -/* - * 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. - */ +//===-- generic/include/clc/math/log.h ------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/log.inc =================================================================== --- generic/include/clc/math/log.inc +++ generic/include/clc/math/log.inc @@ -1,23 +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. - */ +//===-- generic/include/clc/math/log.inc ----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE log(__CLC_GENTYPE a); Index: generic/include/clc/math/log10.h =================================================================== --- generic/include/clc/math/log10.h +++ generic/include/clc/math/log10.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/log10.h ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef log10 #define __CLC_BODY Index: generic/include/clc/math/log1p.h =================================================================== --- generic/include/clc/math/log1p.h +++ generic/include/clc/math/log1p.h @@ -1,24 +1,11 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/include/clc/math/log1p.h ----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/log1p.inc =================================================================== --- generic/include/clc/math/log1p.inc +++ generic/include/clc/math/log1p.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/include/clc/math/log1p.inc --------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE log1p(__CLC_GENTYPE a); Index: generic/include/clc/math/log2.h =================================================================== --- generic/include/clc/math/log2.h +++ generic/include/clc/math/log2.h @@ -1,24 +1,11 @@ -/* - * 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. - */ +//===-- generic/include/clc/math/log2.h -----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/log2.inc =================================================================== --- generic/include/clc/math/log2.inc +++ generic/include/clc/math/log2.inc @@ -1,23 +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. - */ +//===-- generic/include/clc/math/log2.inc ---------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE log2(__CLC_GENTYPE a); Index: generic/include/clc/math/logb.h =================================================================== --- generic/include/clc/math/logb.h +++ generic/include/clc/math/logb.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/math/logb.h -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/logb.inc =================================================================== --- generic/include/clc/math/logb.inc +++ generic/include/clc/math/logb.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/math/logb.inc ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE logb(__CLC_GENTYPE a); Index: generic/include/clc/math/mad.h =================================================================== --- generic/include/clc/math/mad.h +++ generic/include/clc/math/mad.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/math/mad.h ------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/mad.inc =================================================================== --- generic/include/clc/math/mad.inc +++ generic/include/clc/math/mad.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/math/mad.inc ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE mad(__CLC_GENTYPE a, __CLC_GENTYPE b, __CLC_GENTYPE c); Index: generic/include/clc/math/modf.h =================================================================== --- generic/include/clc/math/modf.h +++ generic/include/clc/math/modf.h @@ -1,24 +1,11 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/include/clc/math/modf.h -----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/modf.inc =================================================================== --- generic/include/clc/math/modf.inc +++ generic/include/clc/math/modf.inc @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014, 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. - */ +//===-- generic/include/clc/math/modf.inc ---------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE modf(__CLC_GENTYPE x, global __CLC_GENTYPE *iptr); _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE modf(__CLC_GENTYPE x, local __CLC_GENTYPE *iptr); _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE modf(__CLC_GENTYPE x, private __CLC_GENTYPE *iptr); Index: generic/include/clc/math/native_cos.h =================================================================== --- generic/include/clc/math/native_cos.h +++ generic/include/clc/math/native_cos.h @@ -1 +1,10 @@ +//===-- generic/include/clc/math/native_cos.h -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define native_cos cos Index: generic/include/clc/math/native_divide.h =================================================================== --- generic/include/clc/math/native_divide.h +++ generic/include/clc/math/native_divide.h @@ -1 +1,10 @@ +//===-- generic/include/clc/math/native_divide.h --------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define native_divide(x, y) ((x) / (y)) Index: generic/include/clc/math/native_exp.h =================================================================== --- generic/include/clc/math/native_exp.h +++ generic/include/clc/math/native_exp.h @@ -1 +1,10 @@ +//===-- generic/include/clc/math/native_exp.h -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define native_exp exp Index: generic/include/clc/math/native_exp10.h =================================================================== --- generic/include/clc/math/native_exp10.h +++ generic/include/clc/math/native_exp10.h @@ -1 +1,10 @@ +//===-- generic/include/clc/math/native_exp10.h ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define native_exp10 exp10 Index: generic/include/clc/math/native_exp2.h =================================================================== --- generic/include/clc/math/native_exp2.h +++ generic/include/clc/math/native_exp2.h @@ -1 +1,10 @@ +//===-- generic/include/clc/math/native_exp2.h ----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define native_exp2 exp2 Index: generic/include/clc/math/native_log.h =================================================================== --- generic/include/clc/math/native_log.h +++ generic/include/clc/math/native_log.h @@ -1,25 +1,12 @@ -/* - * 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. - */ +//===-- generic/include/clc/math/native_log.h -----------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #define __FLOAT_ONLY #include Index: generic/include/clc/math/native_log.inc =================================================================== --- generic/include/clc/math/native_log.inc +++ generic/include/clc/math/native_log.inc @@ -1,23 +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. - */ +//===-- generic/include/clc/math/native_log.inc ---------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE native_log(__CLC_GENTYPE a); Index: generic/include/clc/math/native_log2.h =================================================================== --- generic/include/clc/math/native_log2.h +++ generic/include/clc/math/native_log2.h @@ -1,25 +1,12 @@ -/* - * 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. - */ +//===-- generic/include/clc/math/native_log2.h ----------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #define __FLOAT_ONLY #include Index: generic/include/clc/math/native_log2.inc =================================================================== --- generic/include/clc/math/native_log2.inc +++ generic/include/clc/math/native_log2.inc @@ -1,23 +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. - */ +//===-- generic/include/clc/math/native_log2.inc --------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE native_log2(__CLC_GENTYPE a); Index: generic/include/clc/math/native_powr.h =================================================================== --- generic/include/clc/math/native_powr.h +++ generic/include/clc/math/native_powr.h @@ -1 +1,10 @@ +//===-- generic/include/clc/math/native_powr.h ----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define native_powr pow Index: generic/include/clc/math/native_sin.h =================================================================== --- generic/include/clc/math/native_sin.h +++ generic/include/clc/math/native_sin.h @@ -1 +1,10 @@ +//===-- generic/include/clc/math/native_sin.h -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define native_sin sin Index: generic/include/clc/math/native_sqrt.h =================================================================== --- generic/include/clc/math/native_sqrt.h +++ generic/include/clc/math/native_sqrt.h @@ -1 +1,10 @@ +//===-- generic/include/clc/math/native_sqrt.h ----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define native_sqrt sqrt Index: generic/include/clc/math/nextafter.h =================================================================== --- generic/include/clc/math/nextafter.h +++ generic/include/clc/math/nextafter.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/nextafter.h ------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #define __CLC_FUNCTION nextafter #include Index: generic/include/clc/math/pow.h =================================================================== --- generic/include/clc/math/pow.h +++ generic/include/clc/math/pow.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/pow.h ------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef pow #define pow __clc_pow Index: generic/include/clc/math/pown.h =================================================================== --- generic/include/clc/math/pown.h +++ generic/include/clc/math/pown.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/pown.h -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define _CLC_POWN_INTRINSIC "llvm.powi" #define _CLC_POWN_DECL(GENTYPE, INTTYPE) \ Index: generic/include/clc/math/rint.h =================================================================== --- generic/include/clc/math/rint.h +++ generic/include/clc/math/rint.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/rint.h -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef rint #define rint __clc_rint Index: generic/include/clc/math/round.h =================================================================== --- generic/include/clc/math/round.h +++ generic/include/clc/math/round.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/round.h ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef round #define round __clc_round Index: generic/include/clc/math/rsqrt.h =================================================================== --- generic/include/clc/math/rsqrt.h +++ generic/include/clc/math/rsqrt.h @@ -1 +1,10 @@ +//===-- generic/include/clc/math/rsqrt.h ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define rsqrt(x) (1.f/sqrt(x)) Index: generic/include/clc/math/sin.h =================================================================== --- generic/include/clc/math/sin.h +++ generic/include/clc/math/sin.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/sin.h ------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include #undef __CLC_BODY Index: generic/include/clc/math/sin.inc =================================================================== --- generic/include/clc/math/sin.inc +++ generic/include/clc/math/sin.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/math/sin.inc ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE sin(__CLC_GENTYPE a); Index: generic/include/clc/math/sincos.h =================================================================== --- generic/include/clc/math/sincos.h +++ generic/include/clc/math/sincos.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/math/sincos.h ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/sincos.inc =================================================================== --- generic/include/clc/math/sincos.inc +++ generic/include/clc/math/sincos.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/sincos.inc -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_DECLARE_SINCOS(ADDRSPACE, TYPE) \ _CLC_OVERLOAD _CLC_DECL TYPE sincos (TYPE x, ADDRSPACE TYPE * cosval); Index: generic/include/clc/math/sinpi.h =================================================================== --- generic/include/clc/math/sinpi.h +++ generic/include/clc/math/sinpi.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/sinpi.h ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include #undef __CLC_BODY Index: generic/include/clc/math/sinpi.inc =================================================================== --- generic/include/clc/math/sinpi.inc +++ generic/include/clc/math/sinpi.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/math/sinpi.inc --------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE sinpi(__CLC_GENTYPE a); Index: generic/include/clc/math/sqrt.h =================================================================== --- generic/include/clc/math/sqrt.h +++ generic/include/clc/math/sqrt.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/sqrt.h -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include #undef __CLC_BODY Index: generic/include/clc/math/sqrt.inc =================================================================== --- generic/include/clc/math/sqrt.inc +++ generic/include/clc/math/sqrt.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/math/sqrt.inc ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE sqrt(__CLC_GENTYPE a); Index: generic/include/clc/math/tan.h =================================================================== --- generic/include/clc/math/tan.h +++ generic/include/clc/math/tan.h @@ -1,2 +1,11 @@ +//===-- generic/include/clc/math/tan.h ------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/tan.inc =================================================================== --- generic/include/clc/math/tan.inc +++ generic/include/clc/math/tan.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/math/tan.inc ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE tan(__CLC_GENTYPE x); Index: generic/include/clc/math/tanh.h =================================================================== --- generic/include/clc/math/tanh.h +++ generic/include/clc/math/tanh.h @@ -1,24 +1,11 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/include/clc/math/tanh.h -----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/math/tanh.inc =================================================================== --- generic/include/clc/math/tanh.inc +++ generic/include/clc/math/tanh.inc @@ -1,23 +1,10 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/include/clc/math/tanh.inc ---------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE tanh(__CLC_GENTYPE a); Index: generic/include/clc/math/ternary_intrin.inc =================================================================== --- generic/include/clc/math/ternary_intrin.inc +++ generic/include/clc/math/ternary_intrin.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/ternary_intrin.inc -----------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD float __CLC_FUNCTION(float, float, float) __asm(__CLC_INTRINSIC ".f32"); _CLC_OVERLOAD float2 __CLC_FUNCTION(float2, float2, float2) __asm(__CLC_INTRINSIC ".v2f32"); _CLC_OVERLOAD float3 __CLC_FUNCTION(float3, float3, float3) __asm(__CLC_INTRINSIC ".v3f32"); Index: generic/include/clc/math/tgamma.h =================================================================== --- generic/include/clc/math/tgamma.h +++ generic/include/clc/math/tgamma.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/tgamma.h ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include #undef __CLC_BODY Index: generic/include/clc/math/tgamma.inc =================================================================== --- generic/include/clc/math/tgamma.inc +++ generic/include/clc/math/tgamma.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/math/tgamma.inc -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE tgamma(__CLC_GENTYPE a); Index: generic/include/clc/math/trunc.h =================================================================== --- generic/include/clc/math/trunc.h +++ generic/include/clc/math/trunc.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/trunc.h ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef trunc #define trunc __clc_trunc Index: generic/include/clc/math/unary_decl.inc =================================================================== --- generic/include/clc/math/unary_decl.inc +++ generic/include/clc/math/unary_decl.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/math/unary_decl.inc ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION(__CLC_GENTYPE x); Index: generic/include/clc/math/unary_intrin.inc =================================================================== --- generic/include/clc/math/unary_intrin.inc +++ generic/include/clc/math/unary_intrin.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/math/unary_intrin.inc -------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD float __CLC_FUNCTION(float f) __asm(__CLC_INTRINSIC ".f32"); _CLC_OVERLOAD float2 __CLC_FUNCTION(float2 f) __asm(__CLC_INTRINSIC ".v2f32"); _CLC_OVERLOAD float3 __CLC_FUNCTION(float3 f) __asm(__CLC_INTRINSIC ".v3f32"); Index: generic/include/clc/relational/all.h =================================================================== --- generic/include/clc/relational/all.h +++ generic/include/clc/relational/all.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/relational/all.h ------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define _CLC_ALL_DECL(TYPE) \ _CLC_OVERLOAD _CLC_DECL int all(TYPE v); Index: generic/include/clc/relational/any.h =================================================================== --- generic/include/clc/relational/any.h +++ generic/include/clc/relational/any.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/relational/any.h ------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define _CLC_ANY_DECL(TYPE) \ _CLC_OVERLOAD _CLC_DECL int any(TYPE v); Index: generic/include/clc/relational/binary_decl.inc =================================================================== --- generic/include/clc/relational/binary_decl.inc +++ generic/include/clc/relational/binary_decl.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/relational/binary_decl.inc --------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_INTN __CLC_FUNCTION(__CLC_FLOATN a, __CLC_FLOATN b); Index: generic/include/clc/relational/bitselect.h =================================================================== --- generic/include/clc/relational/bitselect.h +++ generic/include/clc/relational/bitselect.h @@ -1,25 +1,12 @@ -/* - * 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. - */ +//===-- generic/include/clc/relational/bitselect.h ------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include #define __CLC_BODY Index: generic/include/clc/relational/bitselect.inc =================================================================== --- generic/include/clc/relational/bitselect.inc +++ generic/include/clc/relational/bitselect.inc @@ -1,23 +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. - */ +//===-- generic/include/clc/relational/bitselect.inc ----------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE bitselect(__CLC_GENTYPE x, __CLC_GENTYPE y, __CLC_GENTYPE z); Index: generic/include/clc/relational/floatn.inc =================================================================== --- generic/include/clc/relational/floatn.inc +++ generic/include/clc/relational/floatn.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/relational/floatn.inc -------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_FLOATN float #define __CLC_INTN int Index: generic/include/clc/relational/isequal.h =================================================================== --- generic/include/clc/relational/isequal.h +++ generic/include/clc/relational/isequal.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/relational/isequal.h --------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define _CLC_ISEQUAL_DECL(TYPE, RETTYPE) \ _CLC_OVERLOAD _CLC_DECL RETTYPE isequal(TYPE x, TYPE y); Index: generic/include/clc/relational/isfinite.h =================================================================== --- generic/include/clc/relational/isfinite.h +++ generic/include/clc/relational/isfinite.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/relational/isfinite.h -------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef isfinite #define __CLC_FUNCTION isfinite Index: generic/include/clc/relational/isgreater.h =================================================================== --- generic/include/clc/relational/isgreater.h +++ generic/include/clc/relational/isgreater.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/relational/isgreater.h ------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef isgreater #define __CLC_FUNCTION isgreater Index: generic/include/clc/relational/isgreaterequal.h =================================================================== --- generic/include/clc/relational/isgreaterequal.h +++ generic/include/clc/relational/isgreaterequal.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/relational/isgreaterequal.h -------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef isgreaterequal #define __CLC_FUNCTION isgreaterequal Index: generic/include/clc/relational/isinf.h =================================================================== --- generic/include/clc/relational/isinf.h +++ generic/include/clc/relational/isinf.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/relational/isinf.h ----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define _CLC_ISINF_DECL(RET_TYPE, ARG_TYPE) \ _CLC_OVERLOAD _CLC_DECL RET_TYPE isinf(ARG_TYPE); Index: generic/include/clc/relational/isless.h =================================================================== --- generic/include/clc/relational/isless.h +++ generic/include/clc/relational/isless.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/relational/isless.h ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_FUNCTION isless #define __CLC_BODY Index: generic/include/clc/relational/islessequal.h =================================================================== --- generic/include/clc/relational/islessequal.h +++ generic/include/clc/relational/islessequal.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/relational/islessequal.h ----------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_FUNCTION islessequal #define __CLC_BODY Index: generic/include/clc/relational/islessgreater.h =================================================================== --- generic/include/clc/relational/islessgreater.h +++ generic/include/clc/relational/islessgreater.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/relational/islessgreater.h --------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_FUNCTION islessgreater #define __CLC_BODY Index: generic/include/clc/relational/isnan.h =================================================================== --- generic/include/clc/relational/isnan.h +++ generic/include/clc/relational/isnan.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/relational/isnan.h ----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define _CLC_ISNAN_DECL(RET_TYPE, ARG_TYPE) \ _CLC_OVERLOAD _CLC_DECL RET_TYPE isnan(ARG_TYPE); Index: generic/include/clc/relational/isnormal.h =================================================================== --- generic/include/clc/relational/isnormal.h +++ generic/include/clc/relational/isnormal.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/relational/isnormal.h -------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef isnormal #define __CLC_FUNCTION isnormal Index: generic/include/clc/relational/isnotequal.h =================================================================== --- generic/include/clc/relational/isnotequal.h +++ generic/include/clc/relational/isnotequal.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/relational/isnotequal.h -----------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef isnotequal #define __CLC_FUNCTION isnotequal Index: generic/include/clc/relational/isordered.h =================================================================== --- generic/include/clc/relational/isordered.h +++ generic/include/clc/relational/isordered.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/relational/isordered.h ------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef isordered #define __CLC_FUNCTION isordered Index: generic/include/clc/relational/isunordered.h =================================================================== --- generic/include/clc/relational/isunordered.h +++ generic/include/clc/relational/isunordered.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/relational/isunordered.h ----------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef isunordered #define __CLC_FUNCTION isunordered Index: generic/include/clc/relational/select.h =================================================================== --- generic/include/clc/relational/select.h +++ generic/include/clc/relational/select.h @@ -1 +1,10 @@ +//===-- generic/include/clc/relational/select.h ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define select(a, b, c) ((c) ? (b) : (a)) Index: generic/include/clc/relational/signbit.h =================================================================== --- generic/include/clc/relational/signbit.h +++ generic/include/clc/relational/signbit.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/relational/signbit.h --------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #undef signbit #define __CLC_FUNCTION signbit Index: generic/include/clc/relational/unary_decl.inc =================================================================== --- generic/include/clc/relational/unary_decl.inc +++ generic/include/clc/relational/unary_decl.inc @@ -1 +1,10 @@ +//===-- generic/include/clc/relational/unary_decl.inc ---------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_INTN __CLC_FUNCTION(__CLC_FLOATN x); Index: generic/include/clc/shared/clamp.h =================================================================== --- generic/include/clc/shared/clamp.h +++ generic/include/clc/shared/clamp.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/shared/clamp.h --------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/shared/clamp.inc =================================================================== --- generic/include/clc/shared/clamp.inc +++ generic/include/clc/shared/clamp.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/shared/clamp.inc ------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE clamp(__CLC_GENTYPE x, __CLC_GENTYPE y, __CLC_GENTYPE z); #ifndef __CLC_SCALAR Index: generic/include/clc/shared/max.h =================================================================== --- generic/include/clc/shared/max.h +++ generic/include/clc/shared/max.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/shared/max.h ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/shared/max.inc =================================================================== --- generic/include/clc/shared/max.inc +++ generic/include/clc/shared/max.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/shared/max.inc --------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE max(__CLC_GENTYPE a, __CLC_GENTYPE b); #ifndef __CLC_SCALAR Index: generic/include/clc/shared/min.h =================================================================== --- generic/include/clc/shared/min.h +++ generic/include/clc/shared/min.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/shared/min.h ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #include Index: generic/include/clc/shared/min.inc =================================================================== --- generic/include/clc/shared/min.inc +++ generic/include/clc/shared/min.inc @@ -1,3 +1,12 @@ +//===-- generic/include/clc/shared/min.inc --------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE min(__CLC_GENTYPE a, __CLC_GENTYPE b); #ifndef __CLC_SCALAR Index: generic/include/clc/shared/vload.h =================================================================== --- generic/include/clc/shared/vload.h +++ generic/include/clc/shared/vload.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/shared/vload.h --------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define _CLC_VLOAD_DECL(PRIM_TYPE, VEC_TYPE, WIDTH, ADDR_SPACE) \ _CLC_OVERLOAD _CLC_DECL VEC_TYPE vload##WIDTH(size_t offset, const ADDR_SPACE PRIM_TYPE *x); Index: generic/include/clc/shared/vstore.h =================================================================== --- generic/include/clc/shared/vstore.h +++ generic/include/clc/shared/vstore.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/shared/vstore.h -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define _CLC_VSTORE_DECL(SUFFIX, PRIM_TYPE, VEC_TYPE, WIDTH, ADDR_SPACE) \ _CLC_OVERLOAD _CLC_DECL void vstore##SUFFIX##WIDTH(VEC_TYPE vec, size_t offset, ADDR_SPACE PRIM_TYPE *out); Index: generic/include/clc/synchronization/barrier.h =================================================================== --- generic/include/clc/synchronization/barrier.h +++ generic/include/clc/synchronization/barrier.h @@ -1 +1,10 @@ +//===-- generic/include/clc/synchronization/barrier.h ---------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_DECL void barrier(cl_mem_fence_flags flags); Index: generic/include/clc/synchronization/cl_mem_fence_flags.h =================================================================== --- generic/include/clc/synchronization/cl_mem_fence_flags.h +++ generic/include/clc/synchronization/cl_mem_fence_flags.h @@ -1,3 +1,12 @@ +//===-- generic/include/clc/synchronization/cl_mem_fence_flags.h ----------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// typedef uint cl_mem_fence_flags; #define CLK_LOCAL_MEM_FENCE 1 Index: generic/include/clc/workitem/get_global_id.h =================================================================== --- generic/include/clc/workitem/get_global_id.h +++ generic/include/clc/workitem/get_global_id.h @@ -1 +1,10 @@ +//===-- generic/include/clc/workitem/get_global_id.h ----------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_DECL size_t get_global_id(uint dim); Index: generic/include/clc/workitem/get_global_offset.h =================================================================== --- generic/include/clc/workitem/get_global_offset.h +++ generic/include/clc/workitem/get_global_offset.h @@ -1 +1,10 @@ +//===-- generic/include/clc/workitem/get_global_offset.h ------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_DECL size_t get_global_offset(uint dim); Index: generic/include/clc/workitem/get_global_size.h =================================================================== --- generic/include/clc/workitem/get_global_size.h +++ generic/include/clc/workitem/get_global_size.h @@ -1 +1,10 @@ +//===-- generic/include/clc/workitem/get_global_size.h --------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_DECL size_t get_global_size(uint dim); Index: generic/include/clc/workitem/get_group_id.h =================================================================== --- generic/include/clc/workitem/get_group_id.h +++ generic/include/clc/workitem/get_group_id.h @@ -1 +1,10 @@ +//===-- generic/include/clc/workitem/get_group_id.h -----------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_DECL size_t get_group_id(uint dim); Index: generic/include/clc/workitem/get_local_id.h =================================================================== --- generic/include/clc/workitem/get_local_id.h +++ generic/include/clc/workitem/get_local_id.h @@ -1 +1,10 @@ +//===-- generic/include/clc/workitem/get_local_id.h -----------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_DECL size_t get_local_id(uint dim); Index: generic/include/clc/workitem/get_local_size.h =================================================================== --- generic/include/clc/workitem/get_local_size.h +++ generic/include/clc/workitem/get_local_size.h @@ -1 +1,10 @@ +//===-- generic/include/clc/workitem/get_local_size.h ---------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_DECL size_t get_local_size(uint dim); Index: generic/include/clc/workitem/get_num_groups.h =================================================================== --- generic/include/clc/workitem/get_num_groups.h +++ generic/include/clc/workitem/get_num_groups.h @@ -1 +1,10 @@ +//===-- generic/include/clc/workitem/get_num_groups.h ---------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_DECL size_t get_num_groups(uint dim); Index: generic/include/clc/workitem/get_work_dim.h =================================================================== --- generic/include/clc/workitem/get_work_dim.h +++ generic/include/clc/workitem/get_work_dim.h @@ -1 +1,10 @@ +//===-- generic/include/clc/workitem/get_work_dim.h -----------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_DECL uint get_work_dim(); Index: generic/include/config.h =================================================================== --- generic/include/config.h +++ generic/include/config.h @@ -1,25 +1,12 @@ -/* - * 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. - */ +//===-- generic/include/config.h ------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_DECL bool __clc_subnormals_disabled(); _CLC_DECL bool __clc_fp16_subnormals_supported(); _CLC_DECL bool __clc_fp32_subnormals_supported(); Index: generic/include/math/clc_ldexp.h =================================================================== --- generic/include/math/clc_ldexp.h +++ generic/include/math/clc_ldexp.h @@ -1,3 +1,12 @@ +//===-- generic/include/math/clc_ldexp.h ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_DEF _CLC_OVERLOAD float __clc_ldexp(float, int); #ifdef cl_khr_fp64 Index: generic/include/math/clc_nextafter.h =================================================================== --- generic/include/math/clc_nextafter.h +++ generic/include/math/clc_nextafter.h @@ -1,3 +1,12 @@ +//===-- generic/include/math/clc_nextafter.h ------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_BODY #define __CLC_FUNCTION __clc_nextafter Index: generic/include/math/clc_sqrt.h =================================================================== --- generic/include/math/clc_sqrt.h +++ generic/include/math/clc_sqrt.h @@ -1,25 +1,12 @@ -/* - * 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. - */ +//===-- generic/include/math/clc_sqrt.h -----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifdef cl_khr_fp64 #pragma OPENCL EXTENSION cl_khr_fp64 : enable #endif Index: generic/include/math/clc_sqrt.inc =================================================================== --- generic/include/math/clc_sqrt.inc +++ generic/include/math/clc_sqrt.inc @@ -1,23 +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. - */ +//===-- generic/include/math/clc_sqrt.inc ---------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __clc_sqrt(__CLC_GENTYPE a); Index: generic/lib/SOURCES =================================================================== --- generic/lib/SOURCES +++ generic/lib/SOURCES @@ -1,3 +1,12 @@ +//===-- generic/lib/SOURCES -----------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// subnormal_config.cl subnormal_helper_func.ll async/async_work_group_copy.cl Index: generic/lib/async/async_work_group_copy.cl =================================================================== --- generic/lib/async/async_work_group_copy.cl +++ generic/lib/async/async_work_group_copy.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/async/async_work_group_copy.cl ------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #ifdef cl_khr_fp64 Index: generic/lib/async/async_work_group_copy.inc =================================================================== --- generic/lib/async/async_work_group_copy.inc +++ generic/lib/async/async_work_group_copy.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/async/async_work_group_copy.inc -----------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF event_t async_work_group_copy( local __CLC_GENTYPE *dst, const global __CLC_GENTYPE *src, Index: generic/lib/async/async_work_group_strided_copy.cl =================================================================== --- generic/lib/async/async_work_group_strided_copy.cl +++ generic/lib/async/async_work_group_strided_copy.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/async/async_work_group_strided_copy.cl ----------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #ifdef cl_khr_fp64 Index: generic/lib/async/async_work_group_strided_copy.inc =================================================================== --- generic/lib/async/async_work_group_strided_copy.inc +++ generic/lib/async/async_work_group_strided_copy.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/async/async_work_group_strided_copy.inc ---------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define STRIDED_COPY(dst, src, num_gentypes, dst_stride, src_stride) \ size_t size = get_local_size(0) * get_local_size(1) * get_local_size(2); \ Index: generic/lib/async/prefetch.cl =================================================================== --- generic/lib/async/prefetch.cl +++ generic/lib/async/prefetch.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/async/prefetch.cl -------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #ifdef cl_khr_fp64 Index: generic/lib/async/prefetch.inc =================================================================== --- generic/lib/async/prefetch.inc +++ generic/lib/async/prefetch.inc @@ -1 +1,10 @@ +//===-- generic/lib/async/prefetch.inc ------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF void prefetch(const global __CLC_GENTYPE *p, size_t num_gentypes) { } Index: generic/lib/async/wait_group_events.cl =================================================================== --- generic/lib/async/wait_group_events.cl +++ generic/lib/async/wait_group_events.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/async/wait_group_events.cl ----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DEF void wait_group_events(int num_events, event_t *event_list) { Index: generic/lib/atomic/atomic_impl.ll =================================================================== --- generic/lib/atomic/atomic_impl.ll +++ generic/lib/atomic/atomic_impl.ll @@ -1,3 +1,12 @@ +//===-- generic/lib/atomic/atomic_impl.ll ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// define i32 @__clc_atomic_add_addr1(i32 addrspace(1)* nocapture %ptr, i32 %value) nounwind alwaysinline { entry: %0 = atomicrmw volatile add i32 addrspace(1)* %ptr, i32 %value seq_cst Index: generic/lib/atomic/atomic_xchg.cl =================================================================== --- generic/lib/atomic/atomic_xchg.cl +++ generic/lib/atomic/atomic_xchg.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/atomic/atomic_xchg.cl ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_OVERLOAD _CLC_DEF float atomic_xchg(volatile global float *p, float val) { Index: generic/lib/cl_khr_global_int32_base_atomics/atom_add.cl =================================================================== --- generic/lib/cl_khr_global_int32_base_atomics/atom_add.cl +++ generic/lib/cl_khr_global_int32_base_atomics/atom_add.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_global_int32_base_atomics/atom_add.cl ----------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_global_int32_base_atomics/atom_cmpxchg.cl =================================================================== --- generic/lib/cl_khr_global_int32_base_atomics/atom_cmpxchg.cl +++ generic/lib/cl_khr_global_int32_base_atomics/atom_cmpxchg.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_global_int32_base_atomics/atom_cmpxchg.cl ------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_global_int32_base_atomics/atom_dec.cl =================================================================== --- generic/lib/cl_khr_global_int32_base_atomics/atom_dec.cl +++ generic/lib/cl_khr_global_int32_base_atomics/atom_dec.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_global_int32_base_atomics/atom_dec.cl ----------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_global_int32_base_atomics/atom_inc.cl =================================================================== --- generic/lib/cl_khr_global_int32_base_atomics/atom_inc.cl +++ generic/lib/cl_khr_global_int32_base_atomics/atom_inc.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_global_int32_base_atomics/atom_inc.cl ----------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_global_int32_base_atomics/atom_sub.cl =================================================================== --- generic/lib/cl_khr_global_int32_base_atomics/atom_sub.cl +++ generic/lib/cl_khr_global_int32_base_atomics/atom_sub.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_global_int32_base_atomics/atom_sub.cl ----------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_global_int32_base_atomics/atom_xchg.cl =================================================================== --- generic/lib/cl_khr_global_int32_base_atomics/atom_xchg.cl +++ generic/lib/cl_khr_global_int32_base_atomics/atom_xchg.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_global_int32_base_atomics/atom_xchg.cl ---------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_global_int32_extended_atomics/atom_and.cl =================================================================== --- generic/lib/cl_khr_global_int32_extended_atomics/atom_and.cl +++ generic/lib/cl_khr_global_int32_extended_atomics/atom_and.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_global_int32_extended_atomics/atom_and.cl ------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_global_int32_extended_atomics/atom_max.cl =================================================================== --- generic/lib/cl_khr_global_int32_extended_atomics/atom_max.cl +++ generic/lib/cl_khr_global_int32_extended_atomics/atom_max.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_global_int32_extended_atomics/atom_max.cl ------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_global_int32_extended_atomics/atom_min.cl =================================================================== --- generic/lib/cl_khr_global_int32_extended_atomics/atom_min.cl +++ generic/lib/cl_khr_global_int32_extended_atomics/atom_min.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_global_int32_extended_atomics/atom_min.cl ------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_global_int32_extended_atomics/atom_or.cl =================================================================== --- generic/lib/cl_khr_global_int32_extended_atomics/atom_or.cl +++ generic/lib/cl_khr_global_int32_extended_atomics/atom_or.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_global_int32_extended_atomics/atom_or.cl -------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_global_int32_extended_atomics/atom_xor.cl =================================================================== --- generic/lib/cl_khr_global_int32_extended_atomics/atom_xor.cl +++ generic/lib/cl_khr_global_int32_extended_atomics/atom_xor.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_global_int32_extended_atomics/atom_xor.cl ------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_local_int32_base_atomics/atom_add.cl =================================================================== --- generic/lib/cl_khr_local_int32_base_atomics/atom_add.cl +++ generic/lib/cl_khr_local_int32_base_atomics/atom_add.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_local_int32_base_atomics/atom_add.cl -----------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_local_int32_base_atomics/atom_cmpxchg.cl =================================================================== --- generic/lib/cl_khr_local_int32_base_atomics/atom_cmpxchg.cl +++ generic/lib/cl_khr_local_int32_base_atomics/atom_cmpxchg.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_local_int32_base_atomics/atom_cmpxchg.cl -------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_local_int32_base_atomics/atom_dec.cl =================================================================== --- generic/lib/cl_khr_local_int32_base_atomics/atom_dec.cl +++ generic/lib/cl_khr_local_int32_base_atomics/atom_dec.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_local_int32_base_atomics/atom_dec.cl -----------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_local_int32_base_atomics/atom_inc.cl =================================================================== --- generic/lib/cl_khr_local_int32_base_atomics/atom_inc.cl +++ generic/lib/cl_khr_local_int32_base_atomics/atom_inc.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_local_int32_base_atomics/atom_inc.cl -----------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_local_int32_base_atomics/atom_sub.cl =================================================================== --- generic/lib/cl_khr_local_int32_base_atomics/atom_sub.cl +++ generic/lib/cl_khr_local_int32_base_atomics/atom_sub.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_local_int32_base_atomics/atom_sub.cl -----------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_local_int32_base_atomics/atom_xchg.cl =================================================================== --- generic/lib/cl_khr_local_int32_base_atomics/atom_xchg.cl +++ generic/lib/cl_khr_local_int32_base_atomics/atom_xchg.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_local_int32_base_atomics/atom_xchg.cl ----------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_local_int32_extended_atomics/atom_and.cl =================================================================== --- generic/lib/cl_khr_local_int32_extended_atomics/atom_and.cl +++ generic/lib/cl_khr_local_int32_extended_atomics/atom_and.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_local_int32_extended_atomics/atom_and.cl -------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_local_int32_extended_atomics/atom_max.cl =================================================================== --- generic/lib/cl_khr_local_int32_extended_atomics/atom_max.cl +++ generic/lib/cl_khr_local_int32_extended_atomics/atom_max.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_local_int32_extended_atomics/atom_max.cl -------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_local_int32_extended_atomics/atom_min.cl =================================================================== --- generic/lib/cl_khr_local_int32_extended_atomics/atom_min.cl +++ generic/lib/cl_khr_local_int32_extended_atomics/atom_min.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_local_int32_extended_atomics/atom_min.cl -------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_local_int32_extended_atomics/atom_or.cl =================================================================== --- generic/lib/cl_khr_local_int32_extended_atomics/atom_or.cl +++ generic/lib/cl_khr_local_int32_extended_atomics/atom_or.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_local_int32_extended_atomics/atom_or.cl --------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/cl_khr_local_int32_extended_atomics/atom_xor.cl =================================================================== --- generic/lib/cl_khr_local_int32_extended_atomics/atom_xor.cl +++ generic/lib/cl_khr_local_int32_extended_atomics/atom_xor.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/cl_khr_local_int32_extended_atomics/atom_xor.cl -------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define IMPL(TYPE) \ Index: generic/lib/clcmacro.h =================================================================== --- generic/lib/clcmacro.h +++ generic/lib/clcmacro.h @@ -1,3 +1,12 @@ +//===-- generic/lib/clcmacro.h --------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define _CLC_UNARY_VECTORIZE(DECLSPEC, RET_TYPE, FUNCTION, ARG1_TYPE) \ DECLSPEC RET_TYPE##2 FUNCTION(ARG1_TYPE##2 x) { \ return (RET_TYPE##2)(FUNCTION(x.x), FUNCTION(x.y)); \ Index: generic/lib/common/degrees.cl =================================================================== --- generic/lib/common/degrees.cl +++ generic/lib/common/degrees.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ - +//===-- generic/lib/common/degrees.cl -------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" Index: generic/lib/common/mix.cl =================================================================== --- generic/lib/common/mix.cl +++ generic/lib/common/mix.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/common/mix.cl -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #ifdef cl_khr_fp64 Index: generic/lib/common/mix.inc =================================================================== --- generic/lib/common/mix.inc +++ generic/lib/common/mix.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/common/mix.inc ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE mix(__CLC_GENTYPE x, __CLC_GENTYPE y, __CLC_GENTYPE a) { return mad( y - x, a, x ); } Index: generic/lib/common/radians.cl =================================================================== --- generic/lib/common/radians.cl +++ generic/lib/common/radians.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ - +//===-- generic/lib/common/radians.cl -------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" Index: generic/lib/common/sign.cl =================================================================== --- generic/lib/common/sign.cl +++ generic/lib/common/sign.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/common/sign.cl ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" Index: generic/lib/common/smoothstep.cl =================================================================== --- generic/lib/common/smoothstep.cl +++ generic/lib/common/smoothstep.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ - +//===-- generic/lib/common/smoothstep.cl ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" Index: generic/lib/common/step.cl =================================================================== --- generic/lib/common/step.cl +++ generic/lib/common/step.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ - +//===-- generic/lib/common/step.cl ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" Index: generic/lib/gen_convert.py =================================================================== --- generic/lib/gen_convert.py +++ generic/lib/gen_convert.py @@ -1,28 +1,16 @@ +//===-- generic/lib/gen_convert.py ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #!/usr/bin/env python3 # OpenCL built-in library: type conversion functions # -# Copyright (c) 2013 Victor Oliveira -# Copyright (c) 2013 Jesse Towner -# -# 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. - # This script generates the file convert_type.cl, which contains all of the # OpenCL functions in the form: # @@ -114,26 +102,6 @@ OpenCL type conversion functions - Copyright (c) 2013 Victor Oliveira - Copyright (c) 2013 Jesse Towner - - 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. */ #include Index: generic/lib/geometric/cross.cl =================================================================== --- generic/lib/geometric/cross.cl +++ generic/lib/geometric/cross.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/geometric/cross.cl ------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_OVERLOAD _CLC_DEF float3 cross(float3 p0, float3 p1) { Index: generic/lib/geometric/distance.cl =================================================================== --- generic/lib/geometric/distance.cl +++ generic/lib/geometric/distance.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/lib/geometric/distance.cl ---------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #ifdef cl_khr_fp64 Index: generic/lib/geometric/distance.inc =================================================================== --- generic/lib/geometric/distance.inc +++ generic/lib/geometric/distance.inc @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/lib/geometric/distance.inc --------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_FLOAT distance(__CLC_FLOATN p0, __CLC_FLOATN p1) { return length(p0 - p1); } Index: generic/lib/geometric/dot.cl =================================================================== --- generic/lib/geometric/dot.cl +++ generic/lib/geometric/dot.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/geometric/dot.cl --------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_OVERLOAD _CLC_DEF float dot(float p0, float p1) { Index: generic/lib/geometric/fast_distance.cl =================================================================== --- generic/lib/geometric/fast_distance.cl +++ generic/lib/geometric/fast_distance.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/lib/geometric/fast_distance.cl ----------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define __CLC_BODY Index: generic/lib/geometric/fast_distance.inc =================================================================== --- generic/lib/geometric/fast_distance.inc +++ generic/lib/geometric/fast_distance.inc @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/lib/geometric/fast_distance.inc ---------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_FLOAT fast_distance(__CLC_FLOATN p0, __CLC_FLOATN p1) { return fast_length(p0 - p1); } Index: generic/lib/geometric/fast_length.cl =================================================================== --- generic/lib/geometric/fast_length.cl +++ generic/lib/geometric/fast_length.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/lib/geometric/fast_length.cl ------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_OVERLOAD _CLC_DEF float fast_length(float p) { Index: generic/lib/geometric/fast_normalize.cl =================================================================== --- generic/lib/geometric/fast_normalize.cl +++ generic/lib/geometric/fast_normalize.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/lib/geometric/fast_normalize.cl ---------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_OVERLOAD _CLC_DEF float fast_normalize(float p) { Index: generic/lib/geometric/fast_normalize.inc =================================================================== --- generic/lib/geometric/fast_normalize.inc +++ generic/lib/geometric/fast_normalize.inc @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/lib/geometric/fast_normalize.inc --------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef __CLC_SCALAR // Only handle vector implementations Index: generic/lib/geometric/length.cl =================================================================== --- generic/lib/geometric/length.cl +++ generic/lib/geometric/length.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/lib/geometric/length.cl -----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_OVERLOAD _CLC_DEF float length(float p) { Index: generic/lib/geometric/normalize.cl =================================================================== --- generic/lib/geometric/normalize.cl +++ generic/lib/geometric/normalize.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ - +//===-- generic/lib/geometric/normalize.cl --------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_OVERLOAD _CLC_DEF float normalize(float p) { Index: generic/lib/image/get_image_dim.cl =================================================================== --- generic/lib/image/get_image_dim.cl +++ generic/lib/image/get_image_dim.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/image/get_image_dim.cl --------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_OVERLOAD _CLC_DEF int2 get_image_dim (image2d_t image) { Index: generic/lib/integer/abs.cl =================================================================== --- generic/lib/integer/abs.cl +++ generic/lib/integer/abs.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/abs.cl ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define __CLC_BODY Index: generic/lib/integer/abs.inc =================================================================== --- generic/lib/integer/abs.inc +++ generic/lib/integer/abs.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/abs.inc ---------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_U_GENTYPE abs(__CLC_GENTYPE x) { return __builtin_astype((__CLC_GENTYPE)(x > (__CLC_GENTYPE)(0) ? x : -x), __CLC_U_GENTYPE); } Index: generic/lib/integer/abs_diff.cl =================================================================== --- generic/lib/integer/abs_diff.cl +++ generic/lib/integer/abs_diff.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/abs_diff.cl -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define __CLC_BODY Index: generic/lib/integer/abs_diff.inc =================================================================== --- generic/lib/integer/abs_diff.inc +++ generic/lib/integer/abs_diff.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/abs_diff.inc ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_U_GENTYPE abs_diff(__CLC_GENTYPE x, __CLC_GENTYPE y) { return __builtin_astype((__CLC_GENTYPE)(x > y ? x-y : y-x), __CLC_U_GENTYPE); } Index: generic/lib/integer/add_sat.cl =================================================================== --- generic/lib/integer/add_sat.cl +++ generic/lib/integer/add_sat.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/add_sat.cl ------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" Index: generic/lib/integer/add_sat_if.ll =================================================================== --- generic/lib/integer/add_sat_if.ll +++ generic/lib/integer/add_sat_if.ll @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/add_sat_if.ll ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// declare i8 @__clc_add_sat_impl_s8(i8 %x, i8 %y) define i8 @__clc_add_sat_s8(i8 %x, i8 %y) nounwind readnone alwaysinline { Index: generic/lib/integer/add_sat_impl.ll =================================================================== --- generic/lib/integer/add_sat_impl.ll +++ generic/lib/integer/add_sat_impl.ll @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/add_sat_impl.ll -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// declare {i8, i1} @llvm.sadd.with.overflow.i8(i8, i8) declare {i8, i1} @llvm.uadd.with.overflow.i8(i8, i8) Index: generic/lib/integer/clz.cl =================================================================== --- generic/lib/integer/clz.cl +++ generic/lib/integer/clz.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/clz.cl ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" Index: generic/lib/integer/clz_if.ll =================================================================== --- generic/lib/integer/clz_if.ll +++ generic/lib/integer/clz_if.ll @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/clz_if.ll -------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// declare i8 @__clc_clz_impl_s8(i8 %x) define i8 @__clc_clz_s8(i8 %x) nounwind readnone alwaysinline { Index: generic/lib/integer/clz_impl.ll =================================================================== --- generic/lib/integer/clz_impl.ll +++ generic/lib/integer/clz_impl.ll @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/clz_impl.ll -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// declare i8 @llvm.ctlz.i8(i8, i1) declare i16 @llvm.ctlz.i16(i16, i1) declare i32 @llvm.ctlz.i32(i32, i1) Index: generic/lib/integer/hadd.cl =================================================================== --- generic/lib/integer/hadd.cl +++ generic/lib/integer/hadd.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/hadd.cl ---------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define __CLC_BODY Index: generic/lib/integer/hadd.inc =================================================================== --- generic/lib/integer/hadd.inc +++ generic/lib/integer/hadd.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/hadd.inc --------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// //hadd = (x+y)>>1 //This can be simplified to x>>1 + y>>1 + (1 if both x and y have the 1s bit set) //This saves us having to do any checks for overflow in the addition sum Index: generic/lib/integer/mad24.cl =================================================================== --- generic/lib/integer/mad24.cl +++ generic/lib/integer/mad24.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/mad24.cl --------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define __CLC_BODY Index: generic/lib/integer/mad24.inc =================================================================== --- generic/lib/integer/mad24.inc +++ generic/lib/integer/mad24.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/mad24.inc -------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE mad24(__CLC_GENTYPE x, __CLC_GENTYPE y, __CLC_GENTYPE z){ return mul24(x, y) + z; } Index: generic/lib/integer/mad_sat.cl =================================================================== --- generic/lib/integer/mad_sat.cl +++ generic/lib/integer/mad_sat.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/mad_sat.cl ------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" Index: generic/lib/integer/mul24.cl =================================================================== --- generic/lib/integer/mul24.cl +++ generic/lib/integer/mul24.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/mul24.cl --------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define __CLC_BODY Index: generic/lib/integer/mul24.inc =================================================================== --- generic/lib/integer/mul24.inc +++ generic/lib/integer/mul24.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/mul24.inc -------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// // We need to use shifts here in order to mantain the sign bit for signed // integers. The compiler should optimize this to (x & 0x00FFFFFF) for Index: generic/lib/integer/mul_hi.cl =================================================================== --- generic/lib/integer/mul_hi.cl +++ generic/lib/integer/mul_hi.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/mul_hi.cl -------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include //For all types EXCEPT long, which is implemented separately Index: generic/lib/integer/rhadd.cl =================================================================== --- generic/lib/integer/rhadd.cl +++ generic/lib/integer/rhadd.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/rhadd.cl --------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define __CLC_BODY Index: generic/lib/integer/rhadd.inc =================================================================== --- generic/lib/integer/rhadd.inc +++ generic/lib/integer/rhadd.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/rhadd.inc -------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// //rhadd = (x+y+1)>>1 //This can be simplified to x>>1 + y>>1 + (1 if either x or y have the 1s bit set) //This saves us having to do any checks for overflow in the addition sums Index: generic/lib/integer/rotate.cl =================================================================== --- generic/lib/integer/rotate.cl +++ generic/lib/integer/rotate.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/rotate.cl -------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define __CLC_BODY Index: generic/lib/integer/rotate.inc =================================================================== --- generic/lib/integer/rotate.inc +++ generic/lib/integer/rotate.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/rotate.inc ------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /** * Not necessarily optimal... but it produces correct results (at least for int) * If we're lucky, LLVM will recognize the pattern and produce rotate Index: generic/lib/integer/sub_sat.cl =================================================================== --- generic/lib/integer/sub_sat.cl +++ generic/lib/integer/sub_sat.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/sub_sat.cl ------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" Index: generic/lib/integer/sub_sat_if.ll =================================================================== --- generic/lib/integer/sub_sat_if.ll +++ generic/lib/integer/sub_sat_if.ll @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/sub_sat_if.ll ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// declare i8 @__clc_sub_sat_impl_s8(i8 %x, i8 %y) define i8 @__clc_sub_sat_s8(i8 %x, i8 %y) nounwind readnone alwaysinline { Index: generic/lib/integer/sub_sat_impl.ll =================================================================== --- generic/lib/integer/sub_sat_impl.ll +++ generic/lib/integer/sub_sat_impl.ll @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/sub_sat_impl.ll -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// declare {i8, i1} @llvm.ssub.with.overflow.i8(i8, i8) declare {i8, i1} @llvm.usub.with.overflow.i8(i8, i8) Index: generic/lib/integer/upsample.cl =================================================================== --- generic/lib/integer/upsample.cl +++ generic/lib/integer/upsample.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/integer/upsample.cl -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define __CLC_UPSAMPLE_IMPL(BGENTYPE, GENTYPE, UGENTYPE, GENSIZE) \ Index: generic/lib/math/acos.cl =================================================================== --- generic/lib/math/acos.cl +++ generic/lib/math/acos.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/acos.cl ------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #ifdef cl_khr_fp64 Index: generic/lib/math/acos.inc =================================================================== --- generic/lib/math/acos.inc +++ generic/lib/math/acos.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/math/acos.inc -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /* * There are multiple formulas for calculating arccosine of x: * 1) acos(x) = (1/2*pi) + i * ln(i*x + sqrt(1-x^2)) (notice the 'i'...) Index: generic/lib/math/acosh.cl =================================================================== --- generic/lib/math/acosh.cl +++ generic/lib/math/acosh.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ - +//===-- generic/lib/math/acosh.cl -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "ep_log.h" Index: generic/lib/math/acospi.cl =================================================================== --- generic/lib/math/acospi.cl +++ generic/lib/math/acospi.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ - +//===-- generic/lib/math/acospi.cl ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/asin.cl =================================================================== --- generic/lib/math/asin.cl +++ generic/lib/math/asin.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/asin.cl ------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #ifdef cl_khr_fp64 Index: generic/lib/math/asin.inc =================================================================== --- generic/lib/math/asin.inc +++ generic/lib/math/asin.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/math/asin.inc -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #if __CLC_FPSIZE == 32 #define __CLC_CONST(x) x ## f Index: generic/lib/math/asinh.cl =================================================================== --- generic/lib/math/asinh.cl +++ generic/lib/math/asinh.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ - +//===-- generic/lib/math/asinh.cl -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/asinpi.cl =================================================================== --- generic/lib/math/asinpi.cl +++ generic/lib/math/asinpi.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ - +//===-- generic/lib/math/asinpi.cl ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/atan.cl =================================================================== --- generic/lib/math/atan.cl +++ generic/lib/math/atan.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ - +//===-- generic/lib/math/atan.cl ------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "math.h" #include "../clcmacro.h" Index: generic/lib/math/atan2.cl =================================================================== --- generic/lib/math/atan2.cl +++ generic/lib/math/atan2.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ - +//===-- generic/lib/math/atan2.cl -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/atan2pi.cl =================================================================== --- generic/lib/math/atan2pi.cl +++ generic/lib/math/atan2pi.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ - +//===-- generic/lib/math/atan2pi.cl ---------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/atanh.cl =================================================================== --- generic/lib/math/atanh.cl +++ generic/lib/math/atanh.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ - +//===-- generic/lib/math/atanh.cl -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/atanpi.cl =================================================================== --- generic/lib/math/atanpi.cl +++ generic/lib/math/atanpi.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ - +//===-- generic/lib/math/atanpi.cl ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/binary_impl.inc =================================================================== --- generic/lib/math/binary_impl.inc +++ generic/lib/math/binary_impl.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/math/binary_impl.inc ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef __CLC_SCALAR Index: generic/lib/math/cbrt.cl =================================================================== --- generic/lib/math/cbrt.cl +++ generic/lib/math/cbrt.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ - +//===-- generic/lib/math/cbrt.cl ------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/clc_ldexp.cl =================================================================== --- generic/lib/math/clc_ldexp.cl +++ generic/lib/math/clc_ldexp.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ - +//===-- generic/lib/math/clc_ldexp.cl -------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "config.h" #include "../clcmacro.h" Index: generic/lib/math/clc_nextafter.cl =================================================================== --- generic/lib/math/clc_nextafter.cl +++ generic/lib/math/clc_nextafter.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/clc_nextafter.cl ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" Index: generic/lib/math/clc_sqrt.cl =================================================================== --- generic/lib/math/clc_sqrt.cl +++ generic/lib/math/clc_sqrt.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/lib/math/clc_sqrt.cl --------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #ifdef cl_khr_fp64 Index: generic/lib/math/clc_sqrt_impl.inc =================================================================== --- generic/lib/math/clc_sqrt_impl.inc +++ generic/lib/math/clc_sqrt_impl.inc @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/lib/math/clc_sqrt_impl.inc --------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #if __CLC_FPSIZE == 32 #define __CLC_NAN NAN #define ZERO 0.0f Index: generic/lib/math/copysign.cl =================================================================== --- generic/lib/math/copysign.cl +++ generic/lib/math/copysign.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/copysign.cl --------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" Index: generic/lib/math/cos.cl =================================================================== --- generic/lib/math/cos.cl +++ generic/lib/math/cos.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ - +//===-- generic/lib/math/cos.cl -------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/cosh.cl =================================================================== --- generic/lib/math/cosh.cl +++ generic/lib/math/cosh.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ - +//===-- generic/lib/math/cosh.cl ------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/cospi.cl =================================================================== --- generic/lib/math/cospi.cl +++ generic/lib/math/cospi.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ - +//===-- generic/lib/math/cospi.cl -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/ep_log.h =================================================================== --- generic/lib/math/ep_log.h +++ generic/lib/math/ep_log.h @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/lib/math/ep_log.h -----------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifdef cl_khr_fp64 #pragma OPENCL EXTENSION cl_khr_fp64 : enable Index: generic/lib/math/ep_log.cl =================================================================== --- generic/lib/math/ep_log.cl +++ generic/lib/math/ep_log.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ - +//===-- generic/lib/math/ep_log.cl ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifdef cl_khr_fp64 #include Index: generic/lib/math/erf.cl =================================================================== --- generic/lib/math/erf.cl +++ generic/lib/math/erf.cl @@ -1,25 +1,3 @@ -/* - * Copyright (c) 2014 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. - */ - #include #include "math.h" Index: generic/lib/math/erfc.cl =================================================================== --- generic/lib/math/erfc.cl +++ generic/lib/math/erfc.cl @@ -1,25 +1,3 @@ -/* - * Copyright (c) 2014 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. - */ - #include #include "math.h" Index: generic/lib/math/exp.cl =================================================================== --- generic/lib/math/exp.cl +++ generic/lib/math/exp.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ - +//===-- generic/lib/math/exp.cl -------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/exp10.cl =================================================================== --- generic/lib/math/exp10.cl +++ generic/lib/math/exp10.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/exp10.cl -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #ifdef cl_khr_fp64 Index: generic/lib/math/exp10.inc =================================================================== --- generic/lib/math/exp10.inc +++ generic/lib/math/exp10.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/math/exp10.inc ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE exp10(__CLC_GENTYPE val) { // exp10(x) = exp2(x * log2(10)) #if __CLC_FPSIZE == 32 Index: generic/lib/math/exp2.cl =================================================================== --- generic/lib/math/exp2.cl +++ generic/lib/math/exp2.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ - +//===-- generic/lib/math/exp2.cl ------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/exp_helper.h =================================================================== --- generic/lib/math/exp_helper.h +++ generic/lib/math/exp_helper.h @@ -1,26 +1,12 @@ -/* - * Copyright (c) 2014, 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. - */ - - +//===-- generic/lib/math/exp_helper.h -------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifdef cl_khr_fp64 #pragma OPENCL EXTENSION cl_khr_fp64 : enable Index: generic/lib/math/exp_helper.cl =================================================================== --- generic/lib/math/exp_helper.cl +++ generic/lib/math/exp_helper.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014, 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. - */ - +//===-- generic/lib/math/exp_helper.cl ------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/expm1.cl =================================================================== --- generic/lib/math/expm1.cl +++ generic/lib/math/expm1.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/expm1.cl -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/fdim.cl =================================================================== --- generic/lib/math/fdim.cl +++ generic/lib/math/fdim.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/fdim.cl ------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/fdim.inc =================================================================== --- generic/lib/math/fdim.inc +++ generic/lib/math/fdim.inc @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 Advanced Micro Devices, Inc. - * Copyright (c) 2016 Aaron Watry - * - * 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. - */ +//===-- generic/lib/math/fdim.inc -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #if __CLC_FPSIZE == 32 #ifdef __CLC_SCALAR _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE fdim(__CLC_GENTYPE x, __CLC_GENTYPE y) { Index: generic/lib/math/fmax.cl =================================================================== --- generic/lib/math/fmax.cl +++ generic/lib/math/fmax.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/fmax.cl ------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" Index: generic/lib/math/fmax.inc =================================================================== --- generic/lib/math/fmax.inc +++ generic/lib/math/fmax.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/math/fmax.inc -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #if !defined(__CLC_SCALAR) Index: generic/lib/math/fmin.cl =================================================================== --- generic/lib/math/fmin.cl +++ generic/lib/math/fmin.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/fmin.cl ------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" Index: generic/lib/math/fmin.inc =================================================================== --- generic/lib/math/fmin.inc +++ generic/lib/math/fmin.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/math/fmin.inc -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #if !defined(__CLC_SCALAR) Index: generic/lib/math/fmod.cl =================================================================== --- generic/lib/math/fmod.cl +++ generic/lib/math/fmod.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/fmod.cl ------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" Index: generic/lib/math/fract.cl =================================================================== --- generic/lib/math/fract.cl +++ generic/lib/math/fract.cl @@ -1,25 +1,12 @@ -/* - * 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. - */ +//===-- generic/lib/math/fract.cl -----------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #ifdef cl_khr_fp64 Index: generic/lib/math/fract.inc =================================================================== --- generic/lib/math/fract.inc +++ generic/lib/math/fract.inc @@ -1,25 +1,12 @@ -/* - * 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. - */ +//===-- generic/lib/math/fract.inc ----------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #if __CLC_FPSIZE == 32 #define MIN_CONSTANT 0x1.fffffep-1f #else Index: generic/lib/math/frexp.cl =================================================================== --- generic/lib/math/frexp.cl +++ generic/lib/math/frexp.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/frexp.cl -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/frexp.inc =================================================================== --- generic/lib/math/frexp.inc +++ generic/lib/math/frexp.inc @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 Advanced Micro Devices, Inc. - * Copyright (c) 2016 Aaron Watry - * - * 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. - */ +//===-- generic/lib/math/frexp.inc ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #if __CLC_FPSIZE == 32 #ifdef __CLC_SCALAR _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE frexp(float x, private int *ep) { Index: generic/lib/math/half_rsqrt.cl =================================================================== --- generic/lib/math/half_rsqrt.cl +++ generic/lib/math/half_rsqrt.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/lib/math/half_rsqrt.cl ------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define __CLC_BODY Index: generic/lib/math/half_rsqrt.inc =================================================================== --- generic/lib/math/half_rsqrt.inc +++ generic/lib/math/half_rsqrt.inc @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/lib/math/half_rsqrt.inc -----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE half_rsqrt(__CLC_GENTYPE val) { return rsqrt(val); } Index: generic/lib/math/half_sqrt.cl =================================================================== --- generic/lib/math/half_sqrt.cl +++ generic/lib/math/half_sqrt.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/lib/math/half_sqrt.cl -------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define __CLC_BODY Index: generic/lib/math/half_sqrt.inc =================================================================== --- generic/lib/math/half_sqrt.inc +++ generic/lib/math/half_sqrt.inc @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/lib/math/half_sqrt.inc ------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE half_sqrt(__CLC_GENTYPE val) { return sqrt(val); } Index: generic/lib/math/hypot.cl =================================================================== --- generic/lib/math/hypot.cl +++ generic/lib/math/hypot.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/hypot.cl -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #ifdef cl_khr_fp64 Index: generic/lib/math/hypot.inc =================================================================== --- generic/lib/math/hypot.inc +++ generic/lib/math/hypot.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/math/hypot.inc ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE hypot(__CLC_GENTYPE x, __CLC_GENTYPE y) { return sqrt(x*x + y*y); } Index: generic/lib/math/ilogb.cl =================================================================== --- generic/lib/math/ilogb.cl +++ generic/lib/math/ilogb.cl @@ -1,26 +1,12 @@ -/* - * Copyright (c) 2015 Advanced Micro Devices, Inc. - * Copyright (c) 2016 Aaron Watry - * - * 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. - */ +//===-- generic/lib/math/ilogb.cl -----------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" #include "math.h" Index: generic/lib/math/ldexp.cl =================================================================== --- generic/lib/math/ldexp.cl +++ generic/lib/math/ldexp.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/lib/math/ldexp.cl -----------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "config.h" #include "../clcmacro.h" Index: generic/lib/math/ldexp.inc =================================================================== --- generic/lib/math/ldexp.inc +++ generic/lib/math/ldexp.inc @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/lib/math/ldexp.inc ----------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef __CLC_SCALAR _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE ldexp(__CLC_GENTYPE x, int n) { Index: generic/lib/math/log.cl =================================================================== --- generic/lib/math/log.cl +++ generic/lib/math/log.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/log.cl -------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" Index: generic/lib/math/log10.cl =================================================================== --- generic/lib/math/log10.cl +++ generic/lib/math/log10.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/log10.cl -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #ifdef cl_khr_fp64 Index: generic/lib/math/log10.inc =================================================================== --- generic/lib/math/log10.inc +++ generic/lib/math/log10.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/math/log10.inc ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE log10(__CLC_GENTYPE val) { // log10(x) = log2(x) / log2(10) // 1 / log2(10) = 0.30102999566 = log10(2) Index: generic/lib/math/log1p.cl =================================================================== --- generic/lib/math/log1p.cl +++ generic/lib/math/log1p.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ - +//===-- generic/lib/math/log1p.cl -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/log2.cl =================================================================== --- generic/lib/math/log2.cl +++ generic/lib/math/log2.cl @@ -1,25 +1,12 @@ -/* - * 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. - */ +//===-- generic/lib/math/log2.cl ------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" #include "tables.h" Index: generic/lib/math/log_base.h =================================================================== --- generic/lib/math/log_base.h +++ generic/lib/math/log_base.h @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ - +//===-- generic/lib/math/log_base.h ---------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "math.h" /* Index: generic/lib/math/logb.cl =================================================================== --- generic/lib/math/logb.cl +++ generic/lib/math/logb.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/logb.cl ------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" #include "../clcmacro.h" Index: generic/lib/math/mad.cl =================================================================== --- generic/lib/math/mad.cl +++ generic/lib/math/mad.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/mad.cl -------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #ifdef cl_khr_fp64 Index: generic/lib/math/mad.inc =================================================================== --- generic/lib/math/mad.inc +++ generic/lib/math/mad.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/math/mad.inc ------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE mad(__CLC_GENTYPE a, __CLC_GENTYPE b, __CLC_GENTYPE c) { return a * b + c; } Index: generic/lib/math/math.h =================================================================== --- generic/lib/math/math.h +++ generic/lib/math/math.h @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/lib/math/math.h -------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define SNAN 0x001 #define QNAN 0x002 #define NINF 0x004 Index: generic/lib/math/modf.cl =================================================================== --- generic/lib/math/modf.cl +++ generic/lib/math/modf.cl @@ -1,25 +1,12 @@ -/* - * 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. - */ +//===-- generic/lib/math/modf.cl ------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/modf.inc =================================================================== --- generic/lib/math/modf.inc +++ generic/lib/math/modf.inc @@ -1,25 +1,12 @@ -/* - * 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. - */ +//===-- generic/lib/math/modf.inc -----------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE modf(__CLC_GENTYPE x, __CLC_GENTYPE *iptr) { *iptr = trunc(x); return copysign(isinf(x) ? 0.0f : x - *iptr, x); Index: generic/lib/math/native_log.cl =================================================================== --- generic/lib/math/native_log.cl +++ generic/lib/math/native_log.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/lib/math/native_log.cl ------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define __CLC_FUNCTION __clc_native_log Index: generic/lib/math/native_log.inc =================================================================== --- generic/lib/math/native_log.inc +++ generic/lib/math/native_log.inc @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/lib/math/native_log.inc -----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE native_log(__CLC_GENTYPE val) { return __clc_native_log(val); } Index: generic/lib/math/native_log2.cl =================================================================== --- generic/lib/math/native_log2.cl +++ generic/lib/math/native_log2.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/lib/math/native_log2.cl -----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define __CLC_FUNCTION __clc_native_log2 Index: generic/lib/math/native_log2.inc =================================================================== --- generic/lib/math/native_log2.inc +++ generic/lib/math/native_log2.inc @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/lib/math/native_log2.inc ----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE native_log2(__CLC_GENTYPE val) { return __clc_native_log2(val); } Index: generic/lib/math/nextafter.cl =================================================================== --- generic/lib/math/nextafter.cl +++ generic/lib/math/nextafter.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/nextafter.cl -------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" Index: generic/lib/math/pown.cl =================================================================== --- generic/lib/math/pown.cl +++ generic/lib/math/pown.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/pown.cl ------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" Index: generic/lib/math/sin.cl =================================================================== --- generic/lib/math/sin.cl +++ generic/lib/math/sin.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ - +//===-- generic/lib/math/sin.cl -------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/sincos.cl =================================================================== --- generic/lib/math/sincos.cl +++ generic/lib/math/sincos.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/sincos.cl ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #ifdef cl_khr_fp64 Index: generic/lib/math/sincos.inc =================================================================== --- generic/lib/math/sincos.inc +++ generic/lib/math/sincos.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/math/sincos.inc ---------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define __CLC_DECLARE_SINCOS(ADDRSPACE, TYPE) \ _CLC_OVERLOAD _CLC_DEF TYPE sincos (TYPE x, ADDRSPACE TYPE * cosval) { \ *cosval = cos(x); \ Index: generic/lib/math/sincosD_piby4.h =================================================================== --- generic/lib/math/sincosD_piby4.h +++ generic/lib/math/sincosD_piby4.h @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/lib/math/sincosD_piby4.h ----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #pragma OPENCL EXTENSION cl_khr_fp64 : enable _CLC_INLINE double2 Index: generic/lib/math/sincos_helpers.h =================================================================== --- generic/lib/math/sincos_helpers.h +++ generic/lib/math/sincos_helpers.h @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/lib/math/sincos_helpers.h ---------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_DECL float __clc_sinf_piby4(float x, float y); _CLC_DECL float __clc_cosf_piby4(float x, float y); _CLC_DECL int __clc_argReductionS(float *r, float *rr, float x); Index: generic/lib/math/sincos_helpers.cl =================================================================== --- generic/lib/math/sincos_helpers.cl +++ generic/lib/math/sincos_helpers.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ - +//===-- generic/lib/math/sincos_helpers.cl --------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/sincospiF_piby4.h =================================================================== --- generic/lib/math/sincospiF_piby4.h +++ generic/lib/math/sincospiF_piby4.h @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/lib/math/sincospiF_piby4.h --------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// // Evaluate single precisions in and cos of value in interval [-pi/4, pi/4] _CLC_INLINE float2 __libclc__sincosf_piby4(float x) Index: generic/lib/math/sinpi.cl =================================================================== --- generic/lib/math/sinpi.cl +++ generic/lib/math/sinpi.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ - +//===-- generic/lib/math/sinpi.cl -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/sqrt.cl =================================================================== --- generic/lib/math/sqrt.cl +++ generic/lib/math/sqrt.cl @@ -1,25 +1,12 @@ -/* - * 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. - */ +//===-- generic/lib/math/sqrt.cl ------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" #include "math/clc_sqrt.h" Index: generic/lib/math/tables.h =================================================================== --- generic/lib/math/tables.h +++ generic/lib/math/tables.h @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ - +//===-- generic/lib/math/tables.h -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #define TABLE_SPACE __constant #define TABLE_MANGLE(NAME) __clc_##NAME Index: generic/lib/math/tables.cl =================================================================== --- generic/lib/math/tables.cl +++ generic/lib/math/tables.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ +//===-- generic/lib/math/tables.cl ----------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "tables.h" Index: generic/lib/math/tan.cl =================================================================== --- generic/lib/math/tan.cl +++ generic/lib/math/tan.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/tan.cl -------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #ifdef cl_khr_fp64 Index: generic/lib/math/tan.inc =================================================================== --- generic/lib/math/tan.inc +++ generic/lib/math/tan.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/math/tan.inc ------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /* * Note: tan(x) = sin(x)/cos(x) also, but the final assembly ends up being * twice as long for R600 (maybe for others as well). Index: generic/lib/math/tanh.cl =================================================================== --- generic/lib/math/tanh.cl +++ generic/lib/math/tanh.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014 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. - */ - +//===-- generic/lib/math/tanh.cl ------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "math.h" Index: generic/lib/math/tgamma.cl =================================================================== --- generic/lib/math/tgamma.cl +++ generic/lib/math/tgamma.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/math/tgamma.cl ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /* * Copyright (c) 2016 Aaron Watry * Copyright (c) 2014 Advanced Micro Devices, Inc. Index: generic/lib/relational/all.cl =================================================================== --- generic/lib/relational/all.cl +++ generic/lib/relational/all.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/relational/all.cl -------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define _CLC_ALL(v) (((v) >> ((sizeof(v) * 8) - 1)) & 0x1) Index: generic/lib/relational/any.cl =================================================================== --- generic/lib/relational/any.cl +++ generic/lib/relational/any.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/relational/any.cl -------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define _CLC_ANY(v) (((v) >> ((sizeof(v) * 8) - 1)) & 0x1) Index: generic/lib/relational/bitselect.cl =================================================================== --- generic/lib/relational/bitselect.cl +++ generic/lib/relational/bitselect.cl @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ - +//===-- generic/lib/relational/bitselect.cl -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "../clcmacro.h" Index: generic/lib/relational/bitselect.inc =================================================================== --- generic/lib/relational/bitselect.inc +++ generic/lib/relational/bitselect.inc @@ -1,25 +1,12 @@ -/* - * Copyright (c) 2014,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. - */ +//===-- generic/lib/relational/bitselect.inc ------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE bitselect(__CLC_GENTYPE x, __CLC_GENTYPE y, __CLC_GENTYPE z) { return ((x) ^ ((z) & ((y) ^ (x)))); } Index: generic/lib/relational/isequal.cl =================================================================== --- generic/lib/relational/isequal.cl +++ generic/lib/relational/isequal.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/relational/isequal.cl ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define _CLC_DEFINE_ISEQUAL(RET_TYPE, FUNCTION, ARG1_TYPE, ARG2_TYPE) \ Index: generic/lib/relational/isfinite.cl =================================================================== --- generic/lib/relational/isfinite.cl +++ generic/lib/relational/isfinite.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/relational/isfinite.cl --------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "relational.h" Index: generic/lib/relational/isgreater.cl =================================================================== --- generic/lib/relational/isgreater.cl +++ generic/lib/relational/isgreater.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/relational/isgreater.cl -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "relational.h" Index: generic/lib/relational/isgreaterequal.cl =================================================================== --- generic/lib/relational/isgreaterequal.cl +++ generic/lib/relational/isgreaterequal.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/relational/isgreaterequal.cl --------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "relational.h" Index: generic/lib/relational/isinf.cl =================================================================== --- generic/lib/relational/isinf.cl +++ generic/lib/relational/isinf.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/relational/isinf.cl -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "relational.h" Index: generic/lib/relational/isless.cl =================================================================== --- generic/lib/relational/isless.cl +++ generic/lib/relational/isless.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/relational/isless.cl ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "relational.h" Index: generic/lib/relational/islessequal.cl =================================================================== --- generic/lib/relational/islessequal.cl +++ generic/lib/relational/islessequal.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/relational/islessequal.cl -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "relational.h" Index: generic/lib/relational/islessgreater.cl =================================================================== --- generic/lib/relational/islessgreater.cl +++ generic/lib/relational/islessgreater.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/relational/islessgreater.cl ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "relational.h" Index: generic/lib/relational/isnan.cl =================================================================== --- generic/lib/relational/isnan.cl +++ generic/lib/relational/isnan.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/relational/isnan.cl -----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "relational.h" Index: generic/lib/relational/isnormal.cl =================================================================== --- generic/lib/relational/isnormal.cl +++ generic/lib/relational/isnormal.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/relational/isnormal.cl --------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "relational.h" Index: generic/lib/relational/isnotequal.cl =================================================================== --- generic/lib/relational/isnotequal.cl +++ generic/lib/relational/isnotequal.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/relational/isnotequal.cl ------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "relational.h" Index: generic/lib/relational/isordered.cl =================================================================== --- generic/lib/relational/isordered.cl +++ generic/lib/relational/isordered.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/relational/isordered.cl -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "relational.h" Index: generic/lib/relational/isunordered.cl =================================================================== --- generic/lib/relational/isunordered.cl +++ generic/lib/relational/isunordered.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/relational/isunordered.cl -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "relational.h" Index: generic/lib/relational/relational.h =================================================================== --- generic/lib/relational/relational.h +++ generic/lib/relational/relational.h @@ -1,3 +1,12 @@ +//===-- generic/lib/relational/relational.h -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /* * Contains relational macros that have to return 1 for scalar and -1 for vector * when the result is true. Index: generic/lib/relational/signbit.cl =================================================================== --- generic/lib/relational/signbit.cl +++ generic/lib/relational/signbit.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/relational/signbit.cl ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "relational.h" Index: generic/lib/shared/clamp.cl =================================================================== --- generic/lib/shared/clamp.cl +++ generic/lib/shared/clamp.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/shared/clamp.cl ---------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define __CLC_BODY Index: generic/lib/shared/clamp.inc =================================================================== --- generic/lib/shared/clamp.inc +++ generic/lib/shared/clamp.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/shared/clamp.inc --------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE clamp(__CLC_GENTYPE x, __CLC_GENTYPE y, __CLC_GENTYPE z) { return (x > z ? z : (x < y ? y : x)); } Index: generic/lib/shared/max.cl =================================================================== --- generic/lib/shared/max.cl +++ generic/lib/shared/max.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/shared/max.cl -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define __CLC_BODY Index: generic/lib/shared/max.inc =================================================================== --- generic/lib/shared/max.inc +++ generic/lib/shared/max.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/shared/max.inc ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE max(__CLC_GENTYPE a, __CLC_GENTYPE b) { return (a > b ? a : b); } Index: generic/lib/shared/min.cl =================================================================== --- generic/lib/shared/min.cl +++ generic/lib/shared/min.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/shared/min.cl -----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define __CLC_BODY Index: generic/lib/shared/min.inc =================================================================== --- generic/lib/shared/min.inc +++ generic/lib/shared/min.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/shared/min.inc ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE min(__CLC_GENTYPE a, __CLC_GENTYPE b) { return (b < a ? b : a); } Index: generic/lib/shared/vload.cl =================================================================== --- generic/lib/shared/vload.cl +++ generic/lib/shared/vload.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/shared/vload.cl ---------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #define VLOAD_VECTORIZE(PRIM_TYPE, ADDR_SPACE) \ Index: generic/lib/shared/vstore.cl =================================================================== --- generic/lib/shared/vstore.cl +++ generic/lib/shared/vstore.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/shared/vstore.cl --------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #pragma OPENCL EXTENSION cl_khr_byte_addressable_store : enable Index: generic/lib/shared/vstore_half.inc =================================================================== --- generic/lib/shared/vstore_half.inc +++ generic/lib/shared/vstore_half.inc @@ -1,3 +1,12 @@ +//===-- generic/lib/shared/vstore_half.inc --------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifdef __CLC_VECSIZE FUNC(__CLC_VECSIZE, __CLC_VECSIZE, __CLC_GENTYPE, __CLC_SCALAR_GENTYPE, __private); Index: generic/lib/shared/vstore_half_helpers.ll =================================================================== --- generic/lib/shared/vstore_half_helpers.ll +++ generic/lib/shared/vstore_half_helpers.ll @@ -1,3 +1,12 @@ +//===-- generic/lib/shared/vstore_half_helpers.ll -------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// 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 Index: generic/lib/subnormal_config.cl =================================================================== --- generic/lib/subnormal_config.cl +++ generic/lib/subnormal_config.cl @@ -1,25 +1,12 @@ -/* - * 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. - */ +//===-- generic/lib/subnormal_config.cl -----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include #include "config.h" Index: generic/lib/subnormal_disable.ll =================================================================== --- generic/lib/subnormal_disable.ll +++ generic/lib/subnormal_disable.ll @@ -1 +1,10 @@ +//===-- generic/lib/subnormal_disable.ll ----------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// @__CLC_SUBNORMAL_DISABLE = unnamed_addr constant i1 true Index: generic/lib/subnormal_helper_func.ll =================================================================== --- generic/lib/subnormal_helper_func.ll +++ generic/lib/subnormal_helper_func.ll @@ -1,3 +1,12 @@ +//===-- generic/lib/subnormal_helper_func.ll ------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// @__CLC_SUBNORMAL_DISABLE = external global i1 define i1 @__clc_subnormals_disabled() #0 { Index: generic/lib/subnormal_use_default.ll =================================================================== --- generic/lib/subnormal_use_default.ll +++ generic/lib/subnormal_use_default.ll @@ -1 +1,10 @@ +//===-- generic/lib/subnormal_use_default.ll ------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// @__CLC_SUBNORMAL_DISABLE = unnamed_addr constant i1 false Index: generic/lib/workitem/get_global_id.cl =================================================================== --- generic/lib/workitem/get_global_id.cl +++ generic/lib/workitem/get_global_id.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/workitem/get_global_id.cl -----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DEF size_t get_global_id(uint dim) { Index: generic/lib/workitem/get_global_size.cl =================================================================== --- generic/lib/workitem/get_global_size.cl +++ generic/lib/workitem/get_global_size.cl @@ -1,3 +1,12 @@ +//===-- generic/lib/workitem/get_global_size.cl ---------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DEF size_t get_global_size(uint dim) { Index: ptx-nvidiacl/lib/SOURCES =================================================================== --- ptx-nvidiacl/lib/SOURCES +++ ptx-nvidiacl/lib/SOURCES @@ -1,3 +1,12 @@ +//===-- ptx-nvidiacl/lib/SOURCES ------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// synchronization/barrier.cl workitem/get_global_id.cl workitem/get_group_id.cl Index: ptx-nvidiacl/lib/synchronization/barrier.cl =================================================================== --- ptx-nvidiacl/lib/synchronization/barrier.cl +++ ptx-nvidiacl/lib/synchronization/barrier.cl @@ -1,3 +1,12 @@ +//===-- ptx-nvidiacl/lib/synchronization/barrier.cl -----------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DEF void barrier(cl_mem_fence_flags flags) { Index: ptx-nvidiacl/lib/workitem/get_global_id.cl =================================================================== --- ptx-nvidiacl/lib/workitem/get_global_id.cl +++ ptx-nvidiacl/lib/workitem/get_global_id.cl @@ -1,3 +1,12 @@ +//===-- ptx-nvidiacl/lib/workitem/get_global_id.cl ------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DEF size_t get_global_id(uint dim) { Index: ptx-nvidiacl/lib/workitem/get_group_id.cl =================================================================== --- ptx-nvidiacl/lib/workitem/get_group_id.cl +++ ptx-nvidiacl/lib/workitem/get_group_id.cl @@ -1,3 +1,12 @@ +//===-- ptx-nvidiacl/lib/workitem/get_group_id.cl -------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DEF size_t get_group_id(uint dim) { Index: ptx-nvidiacl/lib/workitem/get_local_id.cl =================================================================== --- ptx-nvidiacl/lib/workitem/get_local_id.cl +++ ptx-nvidiacl/lib/workitem/get_local_id.cl @@ -1,3 +1,12 @@ +//===-- ptx-nvidiacl/lib/workitem/get_local_id.cl -------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DEF size_t get_local_id(uint dim) { Index: ptx-nvidiacl/lib/workitem/get_local_size.cl =================================================================== --- ptx-nvidiacl/lib/workitem/get_local_size.cl +++ ptx-nvidiacl/lib/workitem/get_local_size.cl @@ -1,3 +1,12 @@ +//===-- ptx-nvidiacl/lib/workitem/get_local_size.cl -----------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DEF size_t get_local_size(uint dim) { Index: ptx-nvidiacl/lib/workitem/get_num_groups.cl =================================================================== --- ptx-nvidiacl/lib/workitem/get_num_groups.cl +++ ptx-nvidiacl/lib/workitem/get_num_groups.cl @@ -1,3 +1,12 @@ +//===-- ptx-nvidiacl/lib/workitem/get_num_groups.cl -----------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DEF size_t get_num_groups(uint dim) { Index: ptx/lib/OVERRIDES =================================================================== --- ptx/lib/OVERRIDES +++ ptx/lib/OVERRIDES @@ -1,2 +1,11 @@ +//===-- ptx/lib/OVERRIDES -------------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// integer/add_sat_if.ll integer/sub_sat_if.ll Index: ptx/lib/SOURCES =================================================================== --- ptx/lib/SOURCES +++ ptx/lib/SOURCES @@ -1,2 +1,11 @@ +//===-- ptx/lib/SOURCES ---------------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// integer/add_sat.ll integer/sub_sat.ll \ No newline at end of file Index: ptx/lib/integer/add_sat.ll =================================================================== --- ptx/lib/integer/add_sat.ll +++ ptx/lib/integer/add_sat.ll @@ -1,3 +1,12 @@ +//===-- ptx/lib/integer/add_sat.ll ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// declare i8 @__clc_add_sat_impl_s8(i8 %x, i8 %y) define ptx_device i8 @__clc_add_sat_s8(i8 %x, i8 %y) nounwind readnone alwaysinline { Index: ptx/lib/integer/sub_sat.ll =================================================================== --- ptx/lib/integer/sub_sat.ll +++ ptx/lib/integer/sub_sat.ll @@ -1,3 +1,12 @@ +//===-- ptx/lib/integer/sub_sat.ll ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// declare i8 @__clc_sub_sat_impl_s8(i8 %x, i8 %y) define ptx_device i8 @__clc_sub_sat_s8(i8 %x, i8 %y) nounwind readnone alwaysinline { Index: r600/lib/OVERRIDES =================================================================== --- r600/lib/OVERRIDES +++ r600/lib/OVERRIDES @@ -0,0 +1,9 @@ +//===-- r600/lib/OVERRIDES ------------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// Index: r600/lib/SOURCES =================================================================== --- r600/lib/SOURCES +++ r600/lib/SOURCES @@ -1,3 +1,12 @@ +//===-- r600/lib/SOURCES --------------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// synchronization/barrier_impl.ll workitem/get_global_offset.cl workitem/get_group_id.cl Index: r600/lib/synchronization/barrier_impl.ll =================================================================== --- r600/lib/synchronization/barrier_impl.ll +++ r600/lib/synchronization/barrier_impl.ll @@ -1,3 +1,12 @@ +//===-- r600/lib/synchronization/barrier_impl.ll --------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// declare i32 @__clc_clk_local_mem_fence() #1 declare i32 @__clc_clk_global_mem_fence() #1 declare void @llvm.r600.group.barrier() #0 Index: r600/lib/workitem/get_global_offset.cl =================================================================== --- r600/lib/workitem/get_global_offset.cl +++ r600/lib/workitem/get_global_offset.cl @@ -1,3 +1,12 @@ +//===-- r600/lib/workitem/get_global_offset.cl ----------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DEF uint get_global_offset(uint dim) Index: r600/lib/workitem/get_global_size.ll =================================================================== --- r600/lib/workitem/get_global_size.ll +++ r600/lib/workitem/get_global_size.ll @@ -1,3 +1,12 @@ +//===-- r600/lib/workitem/get_global_size.ll ------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// declare i32 @llvm.r600.read.global.size.x() nounwind readnone declare i32 @llvm.r600.read.global.size.y() nounwind readnone declare i32 @llvm.r600.read.global.size.z() nounwind readnone Index: r600/lib/workitem/get_group_id.cl =================================================================== --- r600/lib/workitem/get_group_id.cl +++ r600/lib/workitem/get_group_id.cl @@ -1,3 +1,12 @@ +//===-- r600/lib/workitem/get_group_id.cl ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DEF uint get_group_id(uint dim) Index: r600/lib/workitem/get_local_id.cl =================================================================== --- r600/lib/workitem/get_local_id.cl +++ r600/lib/workitem/get_local_id.cl @@ -1,3 +1,12 @@ +//===-- r600/lib/workitem/get_local_id.cl ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DEF uint get_local_id(uint dim) Index: r600/lib/workitem/get_local_size.ll =================================================================== --- r600/lib/workitem/get_local_size.ll +++ r600/lib/workitem/get_local_size.ll @@ -1,3 +1,12 @@ +//===-- r600/lib/workitem/get_local_size.ll -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// declare i32 @llvm.r600.read.local.size.x() nounwind readnone declare i32 @llvm.r600.read.local.size.y() nounwind readnone declare i32 @llvm.r600.read.local.size.z() nounwind readnone Index: r600/lib/workitem/get_num_groups.ll =================================================================== --- r600/lib/workitem/get_num_groups.ll +++ r600/lib/workitem/get_num_groups.ll @@ -1,3 +1,12 @@ +//===-- r600/lib/workitem/get_num_groups.ll -------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// declare i32 @llvm.r600.read.ngroups.x() nounwind readnone declare i32 @llvm.r600.read.ngroups.y() nounwind readnone declare i32 @llvm.r600.read.ngroups.z() nounwind readnone Index: r600/lib/workitem/get_work_dim.cl =================================================================== --- r600/lib/workitem/get_work_dim.cl +++ r600/lib/workitem/get_work_dim.cl @@ -1,3 +1,12 @@ +//===-- r600/lib/workitem/get_work_dim.cl ---------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include _CLC_DEF uint get_work_dim() Index: test/add_sat.cl =================================================================== --- test/add_sat.cl +++ test/add_sat.cl @@ -1,3 +1,12 @@ +//===-- test/add_sat.cl ---------------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// __kernel void foo(__global char *a, __global char *b, __global char *c) { *a = add_sat(*b, *c); } Index: test/as_type.cl =================================================================== --- test/as_type.cl +++ test/as_type.cl @@ -1,3 +1,12 @@ +//===-- test/as_type.cl ---------------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// __kernel void foo(int4 *x, float4 *y) { *x = as_int4(*y); } Index: test/convert.cl =================================================================== --- test/convert.cl +++ test/convert.cl @@ -1,3 +1,12 @@ +//===-- test/convert.cl ---------------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// __kernel void foo(int4 *x, float4 *y) { *x = convert_int4(*y); } Index: test/cos.cl =================================================================== --- test/cos.cl +++ test/cos.cl @@ -1,3 +1,12 @@ +//===-- test/cos.cl -------------------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// __kernel void foo(float4 *f) { *f = cos(*f); } Index: test/cross.cl =================================================================== --- test/cross.cl +++ test/cross.cl @@ -1,3 +1,12 @@ +//===-- test/cross.cl -----------------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// __kernel void foo(float4 *f) { *f = cross(f[0], f[1]); } Index: test/fabs.cl =================================================================== --- test/fabs.cl +++ test/fabs.cl @@ -1,3 +1,12 @@ +//===-- test/fabs.cl ------------------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// __kernel void foo(float *f) { *f = fabs(*f); } Index: test/get_group_id.cl =================================================================== --- test/get_group_id.cl +++ test/get_group_id.cl @@ -1,3 +1,12 @@ +//===-- test/get_group_id.cl ----------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// __kernel void foo(int *i) { i[get_group_id(0)] = 1; } Index: test/rsqrt.cl =================================================================== --- test/rsqrt.cl +++ test/rsqrt.cl @@ -1,3 +1,12 @@ +//===-- test/rsqrt.cl -----------------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #pragma OPENCL EXTENSION cl_khr_fp64 : enable __kernel void foo(float4 *x, double4 *y) { Index: test/subsat.cl =================================================================== --- test/subsat.cl +++ test/subsat.cl @@ -1,3 +1,12 @@ +//===-- test/subsat.cl ----------------------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// __kernel void test_subsat_char(char *a, char x, char y) { *a = sub_sat(x, y); return; Index: utils/prepare-builtins.cpp =================================================================== --- utils/prepare-builtins.cpp +++ utils/prepare-builtins.cpp @@ -1,3 +1,12 @@ +//===-- utils/prepare-builtins.cpp ----------------------------------------===// + +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under both the University of Illinois Open Source +// License and the MIT license. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Bitcode/BitcodeReader.h" #include "llvm/Bitcode/BitcodeWriter.h" #include "llvm/IR/Function.h"