Hello community, here is the log from the commit of package libclc for openSUSE:Factory checked in at 2019-03-24 14:56:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libclc (Old) and /work/SRC/openSUSE:Factory/.libclc.new.25356 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libclc" Sun Mar 24 14:56:41 2019 rev:11 rq:686433 version:0.2.0+git.20190313 Changes: -------- --- /work/SRC/openSUSE:Factory/libclc/libclc.changes 2019-01-08 12:16:03.557061929 +0100 +++ /work/SRC/openSUSE:Factory/.libclc.new.25356/libclc.changes 2019-03-24 14:56:42.571203912 +0100 @@ -1,0 +2,37 @@ +Tue Mar 19 08:23:57 UTC 2019 - Dominique Leuenberger <[email protected]> + +- Update License tag to (BSD-3-Clause or MIT) and Apache-2.0 WITH + LLVM-exception after legal review. + +------------------------------------------------------------------- +Wed Mar 13 19:52:59 UTC 2019 - [email protected] + +- Update to version 0.2.0+git.20190313: + * sincos: Simplify declaration headers. + * fdim: Use binary_decl_tt.inc instead of custom inc file. + * nextafter: Use binary_decl_tt.inc instead of custom inc file. + * copysign: Use binary_decl_tt.inc instead of custom inc file. + * atan2pi: Use binary_decl_tt.inc instead of custom inc file. + * atan2: Use binary_decl_tt.inc instead of custom inc file. + * hypot: Use binary_decl_tt.inc instead of custom inc file + * Move unary_instrinsic.inc to private headers. + * Move binary_intrinsic.h to private headers. + * Move ternary_intrinsic.h to private headers. + * trunc: Remove llvm intrinsic from the header. + * round: Remove llvm intrinsic from the header + * rint: Remove llvm intrinsic from the header. + * floor: Remove llvm isntrinsic from the header. + * fabs: Remove llvm intrinsic from the header. + * ceil: Remove llvm intrinsic from the header. + * sqrt: Split function generation to a shared inc file. + * mad: Convert to standard ternary header + * travis: Deduplicate LLVM_CONFIG variable + * travis: Use gcc-6 for llvm-7 build + * Adjust documentation for git migration. + * Fix typos throughout the license files that somehow I and my reviewers all missed! + * Update the file headers across all of the LLVM projects in the monorepo to reflect the new license. + * Install new LLVM license structure and new developer policy. + * Update year in license files + * cmake: Install libraries to DATADIR from GNUInstallDirs + +------------------------------------------------------------------- Old: ---- libclc-0.2.0+git.20181127.tar.xz New: ---- libclc-0.2.0+git.20190313.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libclc.spec ++++++ --- /var/tmp/diff_new_pack.K5f8UW/_old 2019-03-24 14:56:43.019203865 +0100 +++ /var/tmp/diff_new_pack.K5f8UW/_new 2019-03-24 14:56:43.023203865 +0100 @@ -17,10 +17,10 @@ Name: libclc -Version: 0.2.0+git.20181127 +Version: 0.2.0+git.20190313 Release: 0 Summary: OpenCL C programming language library -License: BSD-3-Clause OR MIT +License: (BSD-3-Clause or MIT) and Apache-2.0 WITH LLVM-exception Group: Development/Libraries/C and C++ Url: http://libclc.llvm.org/ Source0: %{name}-%{version}.tar.xz ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.K5f8UW/_old 2019-03-24 14:56:43.051203862 +0100 +++ /var/tmp/diff_new_pack.K5f8UW/_new 2019-03-24 14:56:43.051203862 +0100 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/llvm-mirror/libclc.git</param> - <param name="changesrevision">1ecb16dd7d8b8e9151027faab996f27b2ac508e3</param> + <param name="changesrevision">45017385361603d6328997a2272d140e50786686</param> </service> </servicedata> ++++++ libclc-0.2.0+git.20181127.tar.xz -> libclc-0.2.0+git.20190313.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/.travis.yml new/libclc-0.2.0+git.20190313/.travis.yml --- old/libclc-0.2.0+git.20181127/.travis.yml 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/.travis.yml 2019-03-13 08:13:34.000000000 +0100 @@ -12,7 +12,6 @@ - env: - LABEL="make gcc LLVM-3.9" - LLVM_VERSION=3.9 - - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" - CHECK_FILES="barts-r600--.bc cayman-r600--.bc cedar-r600--.bc cypress-r600--.bc tahiti-amdgcn--.bc amdgcn--amdhsa.bc nvptx--nvidiacl.bc nvptx64--nvidiacl.bc" addons: apt: @@ -27,7 +26,6 @@ - env: - LABEL="make gcc LLVM-4.0" - LLVM_VERSION=4.0 - - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" - CHECK_FILES="barts-r600--.bc cayman-r600--.bc cedar-r600--.bc cypress-r600--.bc tahiti-amdgcn--.bc amdgcn--amdhsa.bc tahiti-amdgcn-mesa-mesa3d.bc nvptx--nvidiacl.bc nvptx64--nvidiacl.bc" addons: apt: @@ -42,7 +40,6 @@ - env: - LABEL="make gcc LLVM-5.0" - LLVM_VERSION=5.0 - - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" - CHECK_FILES="barts-r600--.bc cayman-r600--.bc cedar-r600--.bc cypress-r600--.bc tahiti-amdgcn--.bc amdgcn--amdhsa.bc tahiti-amdgcn-mesa-mesa3d.bc nvptx--nvidiacl.bc nvptx64--nvidiacl.bc" addons: apt: @@ -57,7 +54,6 @@ - env: - LABEL="make gcc LLVM-6.0" - LLVM_VERSION=6.0 - - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" - CHECK_FILES="barts-r600--.bc cayman-r600--.bc cedar-r600--.bc cypress-r600--.bc tahiti-amdgcn--.bc amdgcn--amdhsa.bc tahiti-amdgcn-mesa-mesa3d.bc nvptx--nvidiacl.bc nvptx64--nvidiacl.bc" # llvm passes -Werror=date-time which is only supported in gcc-4.9+ - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" @@ -76,10 +72,8 @@ - env: - LABEL="make gcc LLVM-7" - LLVM_VERSION=7 - - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" - CHECK_FILES="barts-r600--.bc cayman-r600--.bc cedar-r600--.bc cypress-r600--.bc tahiti-amdgcn--.bc amdgcn--amdhsa.bc tahiti-amdgcn-mesa-mesa3d.bc nvptx--nvidiacl.bc nvptx64--nvidiacl.bc" - # llvm passes -Werror=date-time which is only supported in gcc-4.9+ - - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" + - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6" addons: apt: sources: @@ -88,15 +82,13 @@ - ubuntu-toolchain-r-test packages: - libedit-dev - # LLVM-7 needs libstdc++4.9 - - g++-4.9 + - g++-6 # From sources above - llvm-7-dev - clang-7 - env: - LABEL="cmake gcc LLVM-3.9" - LLVM_VERSION=3.9 - - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" - CHECK_FILES="barts-r600--.bc cayman-r600--.bc cedar-r600--.bc cypress-r600--.bc tahiti-amdgcn--.bc amdgcn--amdhsa.bc nvptx--nvidiacl.bc nvptx64--nvidiacl.bc" addons: apt: @@ -111,7 +103,6 @@ - env: - LABEL="cmake gcc LLVM-4.0" - LLVM_VERSION=4.0 - - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" - CHECK_FILES="barts-r600--.bc cayman-r600--.bc cedar-r600--.bc cypress-r600--.bc tahiti-amdgcn--.bc amdgcn--amdhsa.bc tahiti-amdgcn-mesa-mesa3d.bc nvptx--nvidiacl.bc nvptx64--nvidiacl.bc" addons: apt: @@ -126,7 +117,6 @@ - env: - LABEL="cmake gcc LLVM-5.0" - LLVM_VERSION=5.0 - - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" - CHECK_FILES="barts-r600--.bc cayman-r600--.bc cedar-r600--.bc cypress-r600--.bc tahiti-amdgcn--.bc amdgcn--amdhsa.bc tahiti-amdgcn-mesa-mesa3d.bc nvptx--nvidiacl.bc nvptx64--nvidiacl.bc" addons: apt: @@ -141,7 +131,6 @@ - env: - LABEL="cmake gcc LLVM-6.0" - LLVM_VERSION=6.0 - - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" - CHECK_FILES="barts-r600--.bc cayman-r600--.bc cedar-r600--.bc cypress-r600--.bc tahiti-amdgcn--.bc amdgcn--amdhsa.bc tahiti-amdgcn-mesa-mesa3d.bc nvptx--nvidiacl.bc nvptx64--nvidiacl.bc" # llvm passes -Werror=date-time which is only supported in gcc-4.9+ - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" @@ -160,10 +149,8 @@ - env: - LABEL="cmake gcc LLVM-7" - LLVM_VERSION=7 - - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" - CHECK_FILES="barts-r600--.bc cayman-r600--.bc cedar-r600--.bc cypress-r600--.bc tahiti-amdgcn--.bc amdgcn--amdhsa.bc tahiti-amdgcn-mesa-mesa3d.bc nvptx--nvidiacl.bc nvptx64--nvidiacl.bc" - # llvm passes -Werror=date-time which is only supported in gcc-4.9+ - - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" + - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6" addons: apt: sources: @@ -172,14 +159,14 @@ - ubuntu-toolchain-r-test packages: - libedit-dev - # LLVM-7 needs libstdc++4.9 - - g++-4.9 + - g++-6 # From sources above - llvm-7-dev - clang-7 before_install: - eval "${MATRIX_EVAL}" + - export LLVM_CONFIG="llvm-config-${LLVM_VERSION}" script: - if $(echo $LABEL | grep cmake > /dev/null) ; then diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/CMakeLists.txt new/libclc-0.2.0+git.20190313/CMakeLists.txt --- old/libclc-0.2.0+git.20181127/CMakeLists.txt 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/CMakeLists.txt 2019-03-13 08:13:34.000000000 +0100 @@ -1,6 +1,7 @@ cmake_minimum_required( VERSION 3.9.2 ) project( libclc VERSION 0.2.0 LANGUAGES CXX ) +include( GNUInstallDirs ) # List of all targets set( LIBCLC_TARGETS_ALL @@ -145,8 +146,8 @@ # pkg-config file configure_file( libclc.pc.in libclc.pc @ONLY ) -install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libclc.pc DESTINATION share/pkgconfig ) -install( DIRECTORY generic/include/clc DESTINATION include ) +install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libclc.pc DESTINATION ${CMAKE_INSTALL_DATADIR}/pkgconfig ) +install( DIRECTORY generic/include/clc DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ) if( ENABLE_RUNTIME_SUBNORMAL ) add_library( subnormal_use_default STATIC @@ -154,7 +155,7 @@ add_library( subnormal_disable STATIC generic/lib/subnormal_disable.ll ) install( TARGETS subnormal_use_default subnormal_disable ARCHIVE - DESTINATION lib/clc ) + DESTINATION ${CMAKE_INSTALL_DATADIR}/clc ) endif() find_program( PYTHON python ) @@ -274,7 +275,7 @@ prepare_builtins ) add_custom_target( "prepare-${obj_suffix}" ALL DEPENDS "${obj_suffix}" ) - install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${obj_suffix} DESTINATION lib/clc ) + install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${obj_suffix} DESTINATION ${CMAKE_INSTALL_DATADIR}/clc ) # nvptx-- targets don't include workitem builtins if( NOT ${t} MATCHES ".*ptx.*--$" ) add_test( NAME external-calls-${obj_suffix} @@ -292,7 +293,7 @@ create_symlink ${obj_suffix} ${alias_suffix} DEPENDS "prepare-${obj_suffix}" ) - install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${alias_suffix} DESTINATION lib/clc ) + install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${alias_suffix} DESTINATION ${CMAKE_INSTALL_DATADIR}/clc ) endforeach( a ) endforeach( d ) endforeach( t ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/LICENSE.TXT new/libclc-0.2.0+git.20190313/LICENSE.TXT --- old/libclc-0.2.0+git.20181127/LICENSE.TXT 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/LICENSE.TXT 2019-03-13 08:13:34.000000000 +0100 @@ -1,5 +1,240 @@ ============================================================================== -libclc License +The LLVM Project is under the Apache License v2.0 with LLVM Exceptions: +============================================================================== + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +---- LLVM Exceptions to the Apache 2.0 License ---- + +As an exception, if, as a result of your compiling your source code, portions +of this Software are embedded into an Object form of such source code, you +may redistribute such embedded portions in such Object form without complying +with the conditions of Sections 4(a), 4(b) and 4(d) of the License. + +In addition, if you combine or link compiled forms of this Software with +software that is licensed under the GPLv2 ("Combined Software") and if a +court of competent jurisdiction determines that the patent provision (Section +3), the indemnity provision (Section 9) or other Section of the License +conflicts with the conditions of the GPLv2, you may retroactively and +prospectively choose to deem waived or otherwise exclude such Section(s) of +the License, but only in their entirety and only with respect to the Combined +Software. + +============================================================================== +Software from third parties included in the LLVM Project: +============================================================================== +The LLVM Project contains third party software which is under different license +terms. All such code will be identified clearly using at least one of two +mechanisms: +1) It will be in a separate directory tree with its own `LICENSE.txt` or + `LICENSE` file at the top containing the specific license and restrictions + which apply to that software, or +2) It will contain specific license and restriction terms at the top of every + file. + +============================================================================== +Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy): ============================================================================== The libclc library is dual licensed under both the University of Illinois @@ -11,7 +246,7 @@ ============================================================================== -Copyright (c) 2011-2018 by the contributors listed in CREDITS.TXT +Copyright (c) 2011-2019 by the contributors listed in CREDITS.TXT All rights reserved. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/atan2.h new/libclc-0.2.0+git.20190313/generic/include/clc/math/atan2.h --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/atan2.h 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/atan2.h 2019-03-13 08:13:34.000000000 +0100 @@ -20,5 +20,10 @@ * THE SOFTWARE. */ -#define __CLC_BODY <clc/math/atan2.inc> +#define __CLC_FUNCTION atan2 +#define __CLC_BODY <clc/math/binary_decl_tt.inc> + #include <clc/math/gentype.inc> + +#undef __CLC_BODY +#undef __CLC_FUNCTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/atan2.inc new/libclc-0.2.0+git.20190313/generic/include/clc/math/atan2.inc --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/atan2.inc 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/atan2.inc 1970-01-01 01:00:00.000000000 +0100 @@ -1,23 +0,0 @@ -/* - * 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. - */ - -_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE atan2(__CLC_GENTYPE a, __CLC_GENTYPE b); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/atan2pi.h new/libclc-0.2.0+git.20190313/generic/include/clc/math/atan2pi.h --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/atan2pi.h 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/atan2pi.h 2019-03-13 08:13:34.000000000 +0100 @@ -20,5 +20,10 @@ * THE SOFTWARE. */ -#define __CLC_BODY <clc/math/atan2pi.inc> +#define __CLC_FUNCTION atan2pi +#define __CLC_BODY <clc/math/binary_decl_tt.inc> + #include <clc/math/gentype.inc> + +#undef __CLC_BODY +#undef __CLC_FUNCTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/atan2pi.inc new/libclc-0.2.0+git.20190313/generic/include/clc/math/atan2pi.inc --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/atan2pi.inc 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/atan2pi.inc 1970-01-01 01:00:00.000000000 +0100 @@ -1,23 +0,0 @@ -/* - * 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. - */ - -_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE atan2pi(__CLC_GENTYPE x, __CLC_GENTYPE y); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/binary_intrin.inc new/libclc-0.2.0+git.20190313/generic/include/clc/math/binary_intrin.inc --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/binary_intrin.inc 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/binary_intrin.inc 1970-01-01 01:00:00.000000000 +0100 @@ -1,29 +0,0 @@ -_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"); -_CLC_OVERLOAD float4 __CLC_FUNCTION(float4, float4) __asm(__CLC_INTRINSIC ".v4f32"); -_CLC_OVERLOAD float8 __CLC_FUNCTION(float8, float8) __asm(__CLC_INTRINSIC ".v8f32"); -_CLC_OVERLOAD float16 __CLC_FUNCTION(float16, float16) __asm(__CLC_INTRINSIC ".v16f32"); - -#ifdef cl_khr_fp64 -#pragma OPENCL EXTENSION cl_khr_fp64 : enable -_CLC_OVERLOAD double __CLC_FUNCTION(double, double) __asm(__CLC_INTRINSIC ".f64"); -_CLC_OVERLOAD double2 __CLC_FUNCTION(double2, double2) __asm(__CLC_INTRINSIC ".v2f64"); -_CLC_OVERLOAD double3 __CLC_FUNCTION(double3, double3) __asm(__CLC_INTRINSIC ".v3f64"); -_CLC_OVERLOAD double4 __CLC_FUNCTION(double4, double4) __asm(__CLC_INTRINSIC ".v4f64"); -_CLC_OVERLOAD double8 __CLC_FUNCTION(double8, double8) __asm(__CLC_INTRINSIC ".v8f64"); -_CLC_OVERLOAD double16 __CLC_FUNCTION(double16, double16) __asm(__CLC_INTRINSIC ".v16f64"); -#endif - -#ifdef cl_khr_fp16 -#pragma OPENCL EXTENSION cl_khr_fp16 : enable -_CLC_OVERLOAD half __CLC_FUNCTION(half, half) __asm(__CLC_INTRINSIC ".f16"); -_CLC_OVERLOAD half2 __CLC_FUNCTION(half2, half2) __asm(__CLC_INTRINSIC ".v2f16"); -_CLC_OVERLOAD half3 __CLC_FUNCTION(half3, half3) __asm(__CLC_INTRINSIC ".v3f16"); -_CLC_OVERLOAD half4 __CLC_FUNCTION(half4, half4) __asm(__CLC_INTRINSIC ".v4f16"); -_CLC_OVERLOAD half8 __CLC_FUNCTION(half8, half8) __asm(__CLC_INTRINSIC ".v8f16"); -_CLC_OVERLOAD half16 __CLC_FUNCTION(half16, half16) __asm(__CLC_INTRINSIC ".v16f16"); -#endif - -#undef __CLC_FUNCTION -#undef __CLC_INTRINSIC diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/ceil.h new/libclc-0.2.0+git.20190313/generic/include/clc/math/ceil.h --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/ceil.h 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/ceil.h 2019-03-13 08:13:34.000000000 +0100 @@ -1,6 +1,7 @@ -#undef ceil -#define ceil __clc_ceil +#define __CLC_BODY <clc/math/unary_decl.inc> +#define __CLC_FUNCTION ceil -#define __CLC_FUNCTION __clc_ceil -#define __CLC_INTRINSIC "llvm.ceil" -#include <clc/math/unary_intrin.inc> +#include <clc/math/gentype.inc> + +#undef __CLC_BODY +#undef __CLC_FUNCTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/copysign.h new/libclc-0.2.0+git.20190313/generic/include/clc/math/copysign.h --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/copysign.h 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/copysign.h 2019-03-13 08:13:34.000000000 +0100 @@ -1,2 +1,7 @@ -#define __CLC_BODY <clc/math/copysign.inc> +#define __CLC_FUNCTION copysign +#define __CLC_BODY <clc/math/binary_decl_tt.inc> + #include <clc/math/gentype.inc> + +#undef __CLC_BODY +#undef __CLC_FUNCTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/copysign.inc new/libclc-0.2.0+git.20190313/generic/include/clc/math/copysign.inc --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/copysign.inc 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/copysign.inc 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE copysign(__CLC_GENTYPE a, __CLC_GENTYPE b); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/fabs.h new/libclc-0.2.0+git.20190313/generic/include/clc/math/fabs.h --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/fabs.h 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/fabs.h 2019-03-13 08:13:34.000000000 +0100 @@ -1,6 +1,7 @@ -#undef fabs -#define fabs __clc_fabs +#define __CLC_BODY <clc/math/unary_decl.inc> +#define __CLC_FUNCTION fabs -#define __CLC_FUNCTION __clc_fabs -#define __CLC_INTRINSIC "llvm.fabs" -#include <clc/math/unary_intrin.inc> +#include <clc/math/gentype.inc> + +#undef __CLC_BODY +#undef __CLC_FUNCTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/fdim.h new/libclc-0.2.0+git.20190313/generic/include/clc/math/fdim.h --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/fdim.h 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/fdim.h 2019-03-13 08:13:34.000000000 +0100 @@ -1,2 +1,7 @@ -#define __CLC_BODY <clc/math/fdim.inc> +#define __CLC_FUNCTION fdim +#define __CLC_BODY <clc/math/binary_decl_tt.inc> + #include <clc/math/gentype.inc> + +#undef __CLC_BODY +#undef __CLC_FUNCTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/fdim.inc new/libclc-0.2.0+git.20190313/generic/include/clc/math/fdim.inc --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/fdim.inc 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/fdim.inc 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE fdim(__CLC_GENTYPE a, __CLC_GENTYPE b); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/floor.h new/libclc-0.2.0+git.20190313/generic/include/clc/math/floor.h --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/floor.h 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/floor.h 2019-03-13 08:13:34.000000000 +0100 @@ -1,6 +1,7 @@ -#undef floor -#define floor __clc_floor +#define __CLC_BODY <clc/math/unary_decl.inc> +#define __CLC_FUNCTION floor -#define __CLC_FUNCTION __clc_floor -#define __CLC_INTRINSIC "llvm.floor" -#include <clc/math/unary_intrin.inc> +#include <clc/math/gentype.inc> + +#undef __CLC_BODY +#undef __CLC_FUNCTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/hypot.h new/libclc-0.2.0+git.20190313/generic/include/clc/math/hypot.h --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/hypot.h 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/hypot.h 2019-03-13 08:13:34.000000000 +0100 @@ -1,2 +1,7 @@ -#define __CLC_BODY <clc/math/hypot.inc> +#define __CLC_FUNCTION hypot +#define __CLC_BODY <clc/math/binary_decl_tt.inc> + #include <clc/math/gentype.inc> + +#undef __CLC_BODY +#undef __CLC_FUNCTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/hypot.inc new/libclc-0.2.0+git.20190313/generic/include/clc/math/hypot.inc --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/hypot.inc 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/hypot.inc 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE hypot(__CLC_GENTYPE x, __CLC_GENTYPE y); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/mad.h new/libclc-0.2.0+git.20190313/generic/include/clc/math/mad.h --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/mad.h 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/mad.h 2019-03-13 08:13:34.000000000 +0100 @@ -1,2 +1,7 @@ -#define __CLC_BODY <clc/math/mad.inc> +#define __CLC_BODY <clc/math/ternary_decl.inc> +#define __CLC_FUNCTION mad + #include <clc/math/gentype.inc> + +#undef __CLC_BODY +#undef __CLC_FUNCTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/mad.inc new/libclc-0.2.0+git.20190313/generic/include/clc/math/mad.inc --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/mad.inc 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/mad.inc 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE mad(__CLC_GENTYPE a, __CLC_GENTYPE b, __CLC_GENTYPE c); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/nextafter.h new/libclc-0.2.0+git.20190313/generic/include/clc/math/nextafter.h --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/nextafter.h 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/nextafter.h 2019-03-13 08:13:34.000000000 +0100 @@ -1,2 +1,7 @@ -#define __CLC_BODY <clc/math/nextafter.inc> +#define __CLC_FUNCTION nextafter +#define __CLC_BODY <clc/math/binary_decl_tt.inc> + #include <clc/math/gentype.inc> + +#undef __CLC_BODY +#undef __CLC_FUNCTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/nextafter.inc new/libclc-0.2.0+git.20190313/generic/include/clc/math/nextafter.inc --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/nextafter.inc 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/nextafter.inc 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE nextafter(__CLC_GENTYPE a, __CLC_GENTYPE b); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/rint.h new/libclc-0.2.0+git.20190313/generic/include/clc/math/rint.h --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/rint.h 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/rint.h 2019-03-13 08:13:34.000000000 +0100 @@ -1,6 +1,7 @@ -#undef rint -#define rint __clc_rint +#define __CLC_BODY <clc/math/unary_decl.inc> +#define __CLC_FUNCTION rint -#define __CLC_FUNCTION __clc_rint -#define __CLC_INTRINSIC "llvm.rint" -#include <clc/math/unary_intrin.inc> +#include <clc/math/gentype.inc> + +#undef __CLC_BODY +#undef __CLC_FUNCTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/round.h new/libclc-0.2.0+git.20190313/generic/include/clc/math/round.h --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/round.h 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/round.h 2019-03-13 08:13:34.000000000 +0100 @@ -1,9 +1,7 @@ -#undef round -#define round __clc_round +#define __CLC_BODY <clc/math/unary_decl.inc> +#define __CLC_FUNCTION round -#define __CLC_FUNCTION __clc_round -#define __CLC_INTRINSIC "llvm.round" -#include <clc/math/unary_intrin.inc> +#include <clc/math/gentype.inc> +#undef __CLC_BODY #undef __CLC_FUNCTION -#undef __CLC_INTRINSIC diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/sincos.inc new/libclc-0.2.0+git.20190313/generic/include/clc/math/sincos.inc --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/sincos.inc 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/sincos.inc 2019-03-13 08:13:34.000000000 +0100 @@ -1,8 +1,3 @@ -#define __CLC_DECLARE_SINCOS(ADDRSPACE, TYPE) \ - _CLC_OVERLOAD _CLC_DECL TYPE sincos (TYPE x, ADDRSPACE TYPE * cosval); - -__CLC_DECLARE_SINCOS(global, __CLC_GENTYPE) -__CLC_DECLARE_SINCOS(local, __CLC_GENTYPE) -__CLC_DECLARE_SINCOS(private, __CLC_GENTYPE) - -#undef __CLC_DECLARE_SINCOS + _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE sincos (__CLC_GENTYPE x, global __CLC_GENTYPE * cosval); + _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE sincos (__CLC_GENTYPE x, local __CLC_GENTYPE * cosval); + _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE sincos (__CLC_GENTYPE x, private __CLC_GENTYPE * cosval); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/ternary_intrin.inc new/libclc-0.2.0+git.20190313/generic/include/clc/math/ternary_intrin.inc --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/ternary_intrin.inc 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/ternary_intrin.inc 1970-01-01 01:00:00.000000000 +0100 @@ -1,30 +0,0 @@ -_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"); -_CLC_OVERLOAD float4 __CLC_FUNCTION(float4, float4, float4) __asm(__CLC_INTRINSIC ".v4f32"); -_CLC_OVERLOAD float8 __CLC_FUNCTION(float8, float8, float8) __asm(__CLC_INTRINSIC ".v8f32"); -_CLC_OVERLOAD float16 __CLC_FUNCTION(float16, float16, float16) __asm(__CLC_INTRINSIC ".v16f32"); - -#ifdef cl_khr_fp64 -#pragma OPENCL EXTENSION cl_khr_fp64 : enable -_CLC_OVERLOAD double __CLC_FUNCTION(double, double, double) __asm(__CLC_INTRINSIC ".f64"); -_CLC_OVERLOAD double2 __CLC_FUNCTION(double2, double2, double2) __asm(__CLC_INTRINSIC ".v2f64"); -_CLC_OVERLOAD double3 __CLC_FUNCTION(double3, double3, double3) __asm(__CLC_INTRINSIC ".v3f64"); -_CLC_OVERLOAD double4 __CLC_FUNCTION(double4, double4, double4) __asm(__CLC_INTRINSIC ".v4f64"); -_CLC_OVERLOAD double8 __CLC_FUNCTION(double8, double8, double8) __asm(__CLC_INTRINSIC ".v8f64"); -_CLC_OVERLOAD double16 __CLC_FUNCTION(double16, double16, double16) __asm(__CLC_INTRINSIC ".v16f64"); -#endif - -#ifdef cl_khr_fp16 -#pragma OPENCL EXTENSION cl_khr_fp16: enable -_CLC_OVERLOAD half __CLC_FUNCTION(half, half, half) __asm(__CLC_INTRINSIC ".f16"); -_CLC_OVERLOAD half2 __CLC_FUNCTION(half2, half2, half2) __asm(__CLC_INTRINSIC ".v2f16"); -_CLC_OVERLOAD half3 __CLC_FUNCTION(half3, half3, half3) __asm(__CLC_INTRINSIC ".v3f16"); -_CLC_OVERLOAD half4 __CLC_FUNCTION(half4, half4, half4) __asm(__CLC_INTRINSIC ".v4f16"); -_CLC_OVERLOAD half8 __CLC_FUNCTION(half8, half8, half8) __asm(__CLC_INTRINSIC ".v8f16"); -_CLC_OVERLOAD half16 __CLC_FUNCTION(half16, half16, half16) __asm(__CLC_INTRINSIC ".v16f16"); -#endif - - -#undef __CLC_FUNCTION -#undef __CLC_INTRINSIC diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/trunc.h new/libclc-0.2.0+git.20190313/generic/include/clc/math/trunc.h --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/trunc.h 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/trunc.h 2019-03-13 08:13:34.000000000 +0100 @@ -1,9 +1,7 @@ -#undef trunc -#define trunc __clc_trunc +#define __CLC_BODY <clc/math/unary_decl.inc> +#define __CLC_FUNCTION trunc -#define __CLC_FUNCTION __clc_trunc -#define __CLC_INTRINSIC "llvm.trunc" -#include <clc/math/unary_intrin.inc> +#include <clc/math/gentype.inc> +#undef __CLC_BODY #undef __CLC_FUNCTION -#undef __CLC_INTRINSIC diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/math/unary_intrin.inc new/libclc-0.2.0+git.20190313/generic/include/clc/math/unary_intrin.inc --- old/libclc-0.2.0+git.20181127/generic/include/clc/math/unary_intrin.inc 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/math/unary_intrin.inc 1970-01-01 01:00:00.000000000 +0100 @@ -1,29 +0,0 @@ -_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"); -_CLC_OVERLOAD float4 __CLC_FUNCTION(float4 f) __asm(__CLC_INTRINSIC ".v4f32"); -_CLC_OVERLOAD float8 __CLC_FUNCTION(float8 f) __asm(__CLC_INTRINSIC ".v8f32"); -_CLC_OVERLOAD float16 __CLC_FUNCTION(float16 f) __asm(__CLC_INTRINSIC ".v16f32"); - -#ifdef cl_khr_fp64 -#pragma OPENCL EXTENSION cl_khr_fp64 : enable -_CLC_OVERLOAD double __CLC_FUNCTION(double d) __asm(__CLC_INTRINSIC ".f64"); -_CLC_OVERLOAD double2 __CLC_FUNCTION(double2 d) __asm(__CLC_INTRINSIC ".v2f64"); -_CLC_OVERLOAD double3 __CLC_FUNCTION(double3 d) __asm(__CLC_INTRINSIC ".v3f64"); -_CLC_OVERLOAD double4 __CLC_FUNCTION(double4 d) __asm(__CLC_INTRINSIC ".v4f64"); -_CLC_OVERLOAD double8 __CLC_FUNCTION(double8 d) __asm(__CLC_INTRINSIC ".v8f64"); -_CLC_OVERLOAD double16 __CLC_FUNCTION(double16 d) __asm(__CLC_INTRINSIC ".v16f64"); -#endif - -#ifdef cl_khr_fp16 -#pragma OPENCL EXTENSION cl_khr_fp16: enable -_CLC_OVERLOAD half __CLC_FUNCTION(half d) __asm(__CLC_INTRINSIC ".f16"); -_CLC_OVERLOAD half2 __CLC_FUNCTION(half2 d) __asm(__CLC_INTRINSIC ".v2f16"); -_CLC_OVERLOAD half3 __CLC_FUNCTION(half3 d) __asm(__CLC_INTRINSIC ".v3f16"); -_CLC_OVERLOAD half4 __CLC_FUNCTION(half4 d) __asm(__CLC_INTRINSIC ".v4f16"); -_CLC_OVERLOAD half8 __CLC_FUNCTION(half8 d) __asm(__CLC_INTRINSIC ".v8f16"); -_CLC_OVERLOAD half16 __CLC_FUNCTION(half16 d) __asm(__CLC_INTRINSIC ".v16f16"); -#endif - -#undef __CLC_FUNCTION -#undef __CLC_INTRINSIC diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/misc/shuffle.h new/libclc-0.2.0+git.20190313/generic/include/clc/misc/shuffle.h --- old/libclc-0.2.0+git.20181127/generic/include/clc/misc/shuffle.h 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/misc/shuffle.h 2019-03-13 08:13:34.000000000 +0100 @@ -1,9 +1,8 @@ //===-- generic/include/clc/misc/shuffle.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. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/clc/misc/shuffle2.h new/libclc-0.2.0+git.20190313/generic/include/clc/misc/shuffle2.h --- old/libclc-0.2.0+git.20181127/generic/include/clc/misc/shuffle2.h 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/clc/misc/shuffle2.h 2019-03-13 08:13:34.000000000 +0100 @@ -1,9 +1,8 @@ //===-- generic/include/clc/misc/shuffle2.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. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/math/binary_intrin.inc new/libclc-0.2.0+git.20190313/generic/include/math/binary_intrin.inc --- old/libclc-0.2.0+git.20181127/generic/include/math/binary_intrin.inc 1970-01-01 01:00:00.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/math/binary_intrin.inc 2019-03-13 08:13:34.000000000 +0100 @@ -0,0 +1,29 @@ +_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"); +_CLC_OVERLOAD float4 __CLC_FUNCTION(float4, float4) __asm(__CLC_INTRINSIC ".v4f32"); +_CLC_OVERLOAD float8 __CLC_FUNCTION(float8, float8) __asm(__CLC_INTRINSIC ".v8f32"); +_CLC_OVERLOAD float16 __CLC_FUNCTION(float16, float16) __asm(__CLC_INTRINSIC ".v16f32"); + +#ifdef cl_khr_fp64 +#pragma OPENCL EXTENSION cl_khr_fp64 : enable +_CLC_OVERLOAD double __CLC_FUNCTION(double, double) __asm(__CLC_INTRINSIC ".f64"); +_CLC_OVERLOAD double2 __CLC_FUNCTION(double2, double2) __asm(__CLC_INTRINSIC ".v2f64"); +_CLC_OVERLOAD double3 __CLC_FUNCTION(double3, double3) __asm(__CLC_INTRINSIC ".v3f64"); +_CLC_OVERLOAD double4 __CLC_FUNCTION(double4, double4) __asm(__CLC_INTRINSIC ".v4f64"); +_CLC_OVERLOAD double8 __CLC_FUNCTION(double8, double8) __asm(__CLC_INTRINSIC ".v8f64"); +_CLC_OVERLOAD double16 __CLC_FUNCTION(double16, double16) __asm(__CLC_INTRINSIC ".v16f64"); +#endif + +#ifdef cl_khr_fp16 +#pragma OPENCL EXTENSION cl_khr_fp16 : enable +_CLC_OVERLOAD half __CLC_FUNCTION(half, half) __asm(__CLC_INTRINSIC ".f16"); +_CLC_OVERLOAD half2 __CLC_FUNCTION(half2, half2) __asm(__CLC_INTRINSIC ".v2f16"); +_CLC_OVERLOAD half3 __CLC_FUNCTION(half3, half3) __asm(__CLC_INTRINSIC ".v3f16"); +_CLC_OVERLOAD half4 __CLC_FUNCTION(half4, half4) __asm(__CLC_INTRINSIC ".v4f16"); +_CLC_OVERLOAD half8 __CLC_FUNCTION(half8, half8) __asm(__CLC_INTRINSIC ".v8f16"); +_CLC_OVERLOAD half16 __CLC_FUNCTION(half16, half16) __asm(__CLC_INTRINSIC ".v16f16"); +#endif + +#undef __CLC_FUNCTION +#undef __CLC_INTRINSIC diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/math/clc_fma.h new/libclc-0.2.0+git.20190313/generic/include/math/clc_fma.h --- old/libclc-0.2.0+git.20181127/generic/include/math/clc_fma.h 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/math/clc_fma.h 2019-03-13 08:13:34.000000000 +0100 @@ -1,6 +1,6 @@ #define __CLC_FUNCTION __clc_fma #define __CLC_INTRINSIC "llvm.fma" -#include <clc/math/ternary_intrin.inc> +#include "math/ternary_intrin.inc" #define __FLOAT_ONLY #define __CLC_FUNCTION __clc_sw_fma diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/math/ternary_intrin.inc new/libclc-0.2.0+git.20190313/generic/include/math/ternary_intrin.inc --- old/libclc-0.2.0+git.20181127/generic/include/math/ternary_intrin.inc 1970-01-01 01:00:00.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/math/ternary_intrin.inc 2019-03-13 08:13:34.000000000 +0100 @@ -0,0 +1,30 @@ +_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"); +_CLC_OVERLOAD float4 __CLC_FUNCTION(float4, float4, float4) __asm(__CLC_INTRINSIC ".v4f32"); +_CLC_OVERLOAD float8 __CLC_FUNCTION(float8, float8, float8) __asm(__CLC_INTRINSIC ".v8f32"); +_CLC_OVERLOAD float16 __CLC_FUNCTION(float16, float16, float16) __asm(__CLC_INTRINSIC ".v16f32"); + +#ifdef cl_khr_fp64 +#pragma OPENCL EXTENSION cl_khr_fp64 : enable +_CLC_OVERLOAD double __CLC_FUNCTION(double, double, double) __asm(__CLC_INTRINSIC ".f64"); +_CLC_OVERLOAD double2 __CLC_FUNCTION(double2, double2, double2) __asm(__CLC_INTRINSIC ".v2f64"); +_CLC_OVERLOAD double3 __CLC_FUNCTION(double3, double3, double3) __asm(__CLC_INTRINSIC ".v3f64"); +_CLC_OVERLOAD double4 __CLC_FUNCTION(double4, double4, double4) __asm(__CLC_INTRINSIC ".v4f64"); +_CLC_OVERLOAD double8 __CLC_FUNCTION(double8, double8, double8) __asm(__CLC_INTRINSIC ".v8f64"); +_CLC_OVERLOAD double16 __CLC_FUNCTION(double16, double16, double16) __asm(__CLC_INTRINSIC ".v16f64"); +#endif + +#ifdef cl_khr_fp16 +#pragma OPENCL EXTENSION cl_khr_fp16: enable +_CLC_OVERLOAD half __CLC_FUNCTION(half, half, half) __asm(__CLC_INTRINSIC ".f16"); +_CLC_OVERLOAD half2 __CLC_FUNCTION(half2, half2, half2) __asm(__CLC_INTRINSIC ".v2f16"); +_CLC_OVERLOAD half3 __CLC_FUNCTION(half3, half3, half3) __asm(__CLC_INTRINSIC ".v3f16"); +_CLC_OVERLOAD half4 __CLC_FUNCTION(half4, half4, half4) __asm(__CLC_INTRINSIC ".v4f16"); +_CLC_OVERLOAD half8 __CLC_FUNCTION(half8, half8, half8) __asm(__CLC_INTRINSIC ".v8f16"); +_CLC_OVERLOAD half16 __CLC_FUNCTION(half16, half16, half16) __asm(__CLC_INTRINSIC ".v16f16"); +#endif + + +#undef __CLC_FUNCTION +#undef __CLC_INTRINSIC diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/include/math/unary_intrin.inc new/libclc-0.2.0+git.20190313/generic/include/math/unary_intrin.inc --- old/libclc-0.2.0+git.20181127/generic/include/math/unary_intrin.inc 1970-01-01 01:00:00.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/include/math/unary_intrin.inc 2019-03-13 08:13:34.000000000 +0100 @@ -0,0 +1,29 @@ +_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"); +_CLC_OVERLOAD float4 __CLC_FUNCTION(float4 f) __asm(__CLC_INTRINSIC ".v4f32"); +_CLC_OVERLOAD float8 __CLC_FUNCTION(float8 f) __asm(__CLC_INTRINSIC ".v8f32"); +_CLC_OVERLOAD float16 __CLC_FUNCTION(float16 f) __asm(__CLC_INTRINSIC ".v16f32"); + +#ifdef cl_khr_fp64 +#pragma OPENCL EXTENSION cl_khr_fp64 : enable +_CLC_OVERLOAD double __CLC_FUNCTION(double d) __asm(__CLC_INTRINSIC ".f64"); +_CLC_OVERLOAD double2 __CLC_FUNCTION(double2 d) __asm(__CLC_INTRINSIC ".v2f64"); +_CLC_OVERLOAD double3 __CLC_FUNCTION(double3 d) __asm(__CLC_INTRINSIC ".v3f64"); +_CLC_OVERLOAD double4 __CLC_FUNCTION(double4 d) __asm(__CLC_INTRINSIC ".v4f64"); +_CLC_OVERLOAD double8 __CLC_FUNCTION(double8 d) __asm(__CLC_INTRINSIC ".v8f64"); +_CLC_OVERLOAD double16 __CLC_FUNCTION(double16 d) __asm(__CLC_INTRINSIC ".v16f64"); +#endif + +#ifdef cl_khr_fp16 +#pragma OPENCL EXTENSION cl_khr_fp16: enable +_CLC_OVERLOAD half __CLC_FUNCTION(half d) __asm(__CLC_INTRINSIC ".f16"); +_CLC_OVERLOAD half2 __CLC_FUNCTION(half2 d) __asm(__CLC_INTRINSIC ".v2f16"); +_CLC_OVERLOAD half3 __CLC_FUNCTION(half3 d) __asm(__CLC_INTRINSIC ".v3f16"); +_CLC_OVERLOAD half4 __CLC_FUNCTION(half4 d) __asm(__CLC_INTRINSIC ".v4f16"); +_CLC_OVERLOAD half8 __CLC_FUNCTION(half8 d) __asm(__CLC_INTRINSIC ".v8f16"); +_CLC_OVERLOAD half16 __CLC_FUNCTION(half16 d) __asm(__CLC_INTRINSIC ".v16f16"); +#endif + +#undef __CLC_FUNCTION +#undef __CLC_INTRINSIC diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/lib/SOURCES new/libclc-0.2.0+git.20190313/generic/lib/SOURCES --- old/libclc-0.2.0+git.20181127/generic/lib/SOURCES 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/lib/SOURCES 2019-03-13 08:13:34.000000000 +0100 @@ -89,6 +89,7 @@ math/atanh.cl math/atanpi.cl math/cbrt.cl +math/ceil.cl math/copysign.cl math/cos.cl math/cosh.cl @@ -102,7 +103,9 @@ math/exp2.cl math/clc_exp10.cl math/exp10.cl +math/fabs.cl math/fdim.cl +math/floor.cl math/clc_fma.cl math/fma.cl math/fmax.cl @@ -169,8 +172,10 @@ math/remainder.cl math/clc_remquo.cl math/remquo.cl +math/rint.cl math/clc_rootn.cl math/rootn.cl +math/round.cl math/sin.cl math/sincos.cl math/sincos_helpers.cl @@ -184,6 +189,7 @@ math/clc_tanpi.cl math/tanpi.cl math/tgamma.cl +math/trunc.cl misc/shuffle.cl misc/shuffle2.cl relational/all.cl diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/lib/math/ceil.cl new/libclc-0.2.0+git.20190313/generic/lib/math/ceil.cl --- old/libclc-0.2.0+git.20181127/generic/lib/math/ceil.cl 1970-01-01 01:00:00.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/lib/math/ceil.cl 2019-03-13 08:13:34.000000000 +0100 @@ -0,0 +1,11 @@ +#include <clc/clc.h> +#include "../clcmacro.h" + +// Map the llvm intrinsic to an OpenCL function. +#define __CLC_FUNCTION __clc_ceil +#define __CLC_INTRINSIC "llvm.ceil" +#include "math/unary_intrin.inc" + +#undef __CLC_FUNCTION +#define __CLC_FUNCTION ceil +#include "unary_builtin.inc" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/lib/math/clc_sqrt.cl new/libclc-0.2.0+git.20190313/generic/lib/math/clc_sqrt.cl --- old/libclc-0.2.0+git.20181127/generic/lib/math/clc_sqrt.cl 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/lib/math/clc_sqrt.cl 2019-03-13 08:13:34.000000000 +0100 @@ -25,7 +25,7 @@ // Map the llvm sqrt intrinsic to an OpenCL function. #define __CLC_FUNCTION __clc_llvm_intr_sqrt #define __CLC_INTRINSIC "llvm.sqrt" -#include <clc/math/unary_intrin.inc> +#include <math/unary_intrin.inc> #undef __CLC_FUNCTION #undef __CLC_INTRINSIC diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/lib/math/fabs.cl new/libclc-0.2.0+git.20190313/generic/lib/math/fabs.cl --- old/libclc-0.2.0+git.20181127/generic/lib/math/fabs.cl 1970-01-01 01:00:00.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/lib/math/fabs.cl 2019-03-13 08:13:34.000000000 +0100 @@ -0,0 +1,11 @@ +#include <clc/clc.h> +#include "../clcmacro.h" + +// Map the llvm intrinsic to an OpenCL function. +#define __CLC_FUNCTION __clc_fabs +#define __CLC_INTRINSIC "llvm.fabs" +#include "math/unary_intrin.inc" + +#undef __CLC_FUNCTION +#define __CLC_FUNCTION fabs +#include "unary_builtin.inc" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/lib/math/floor.cl new/libclc-0.2.0+git.20190313/generic/lib/math/floor.cl --- old/libclc-0.2.0+git.20181127/generic/lib/math/floor.cl 1970-01-01 01:00:00.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/lib/math/floor.cl 2019-03-13 08:13:34.000000000 +0100 @@ -0,0 +1,11 @@ +#include <clc/clc.h> +#include "../clcmacro.h" + +// Map the llvm intrinsic to an OpenCL function. +#define __CLC_FUNCTION __clc_floor +#define __CLC_INTRINSIC "llvm.floor" +#include "math/unary_intrin.inc" + +#undef __CLC_FUNCTION +#define __CLC_FUNCTION floor +#include "unary_builtin.inc" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/lib/math/native_unary_intrinsic.inc new/libclc-0.2.0+git.20190313/generic/lib/math/native_unary_intrinsic.inc --- old/libclc-0.2.0+git.20181127/generic/lib/math/native_unary_intrinsic.inc 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/lib/math/native_unary_intrinsic.inc 2019-03-13 08:13:34.000000000 +0100 @@ -27,7 +27,7 @@ #define __CLC_INTRINSIC "llvm." __CLC_XSTR(__CLC_NATIVE_INTRINSIC) #undef cl_khr_fp64 -#include <clc/math/unary_intrin.inc> +#include <math/unary_intrin.inc> #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/lib/math/rint.cl new/libclc-0.2.0+git.20190313/generic/lib/math/rint.cl --- old/libclc-0.2.0+git.20181127/generic/lib/math/rint.cl 1970-01-01 01:00:00.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/lib/math/rint.cl 2019-03-13 08:13:34.000000000 +0100 @@ -0,0 +1,10 @@ +#include <clc/clc.h> + +// Map the llvm intrinsic to an OpenCL function. +#define __CLC_FUNCTION __clc_rint +#define __CLC_INTRINSIC "llvm.rint" +#include "math/unary_intrin.inc" + +#undef __CLC_FUNCTION +#define __CLC_FUNCTION rint +#include "unary_builtin.inc" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/lib/math/round.cl new/libclc-0.2.0+git.20190313/generic/lib/math/round.cl --- old/libclc-0.2.0+git.20181127/generic/lib/math/round.cl 1970-01-01 01:00:00.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/lib/math/round.cl 2019-03-13 08:13:34.000000000 +0100 @@ -0,0 +1,10 @@ +#include <clc/clc.h> + +// Map the llvm intrinsic to an OpenCL function. +#define __CLC_FUNCTION __clc_round +#define __CLC_INTRINSIC "llvm.round" +#include "math/unary_intrin.inc" + +#undef __CLC_FUNCTION +#define __CLC_FUNCTION round +#include "unary_builtin.inc" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/lib/math/sqrt.cl new/libclc-0.2.0+git.20190313/generic/lib/math/sqrt.cl --- old/libclc-0.2.0+git.20181127/generic/lib/math/sqrt.cl 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/lib/math/sqrt.cl 2019-03-13 08:13:34.000000000 +0100 @@ -21,23 +21,7 @@ */ #include <clc/clc.h> -#include "../clcmacro.h" #include "math/clc_sqrt.h" -_CLC_DEFINE_UNARY_BUILTIN(float, sqrt, __clc_sqrt, float) - -#ifdef cl_khr_fp64 - -#pragma OPENCL EXTENSION cl_khr_fp64 : enable - -_CLC_DEFINE_UNARY_BUILTIN(double, sqrt, __clc_sqrt, double) - -#endif - -#ifdef cl_khr_fp16 - -#pragma OPENCL EXTENSION cl_khr_fp16 : enable - -_CLC_DEFINE_UNARY_BUILTIN(half, sqrt, __clc_sqrt, half) - -#endif +#define __CLC_FUNCTION sqrt +#include "unary_builtin.inc" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/lib/math/trunc.cl new/libclc-0.2.0+git.20190313/generic/lib/math/trunc.cl --- old/libclc-0.2.0+git.20181127/generic/lib/math/trunc.cl 1970-01-01 01:00:00.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/lib/math/trunc.cl 2019-03-13 08:13:34.000000000 +0100 @@ -0,0 +1,10 @@ +#include <clc/clc.h> + +// Map the llvm intrinsic to an OpenCL function. +#define __CLC_FUNCTION __clc_trunc +#define __CLC_INTRINSIC "llvm.trunc" +#include "math/unary_intrin.inc" + +#undef __CLC_FUNCTION +#define __CLC_FUNCTION trunc +#include "unary_builtin.inc" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/lib/math/unary_builtin.inc new/libclc-0.2.0+git.20190313/generic/lib/math/unary_builtin.inc --- old/libclc-0.2.0+git.20181127/generic/lib/math/unary_builtin.inc 1970-01-01 01:00:00.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/lib/math/unary_builtin.inc 2019-03-13 08:13:34.000000000 +0100 @@ -0,0 +1,24 @@ +#include "../clcmacro.h" +#include "utils.h" + +#ifndef __CLC_BUILTIN +#define __CLC_BUILTIN __CLC_XCONCAT(__clc_, __CLC_FUNCTION) +#endif + +_CLC_DEFINE_UNARY_BUILTIN(float, __CLC_FUNCTION, __CLC_BUILTIN, float) + +#ifdef cl_khr_fp64 + +#pragma OPENCL EXTENSION cl_khr_fp64 : enable + +_CLC_DEFINE_UNARY_BUILTIN(double, __CLC_FUNCTION, __CLC_BUILTIN, double) + +#endif + +#ifdef cl_khr_fp16 + +#pragma OPENCL EXTENSION cl_khr_fp16 : enable + +_CLC_DEFINE_UNARY_BUILTIN(half, __CLC_FUNCTION, __CLC_BUILTIN, half) + +#endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/lib/misc/shuffle.cl new/libclc-0.2.0+git.20190313/generic/lib/misc/shuffle.cl --- old/libclc-0.2.0+git.20181127/generic/lib/misc/shuffle.cl 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/lib/misc/shuffle.cl 2019-03-13 08:13:34.000000000 +0100 @@ -1,9 +1,8 @@ //===-- generic/lib/misc/shuffle.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. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/generic/lib/misc/shuffle2.cl new/libclc-0.2.0+git.20190313/generic/lib/misc/shuffle2.cl --- old/libclc-0.2.0+git.20181127/generic/lib/misc/shuffle2.cl 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/generic/lib/misc/shuffle2.cl 2019-03-13 08:13:34.000000000 +0100 @@ -1,9 +1,8 @@ //===-- generic/lib/misc/shuffle2.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. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/libclc.pc.in new/libclc-0.2.0+git.20190313/libclc.pc.in --- old/libclc-0.2.0+git.20181127/libclc.pc.in 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/libclc.pc.in 2019-03-13 08:13:34.000000000 +0100 @@ -1,5 +1,5 @@ -includedir=@CMAKE_INSTALL_PREFIX@/include -libexecdir=@CMAKE_INSTALL_PREFIX@/lib/clc +includedir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@ +libexecdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_DATADIR@/clc Name: libclc Description: Library requirements of the OpenCL C programming language diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libclc-0.2.0+git.20181127/www/index.html new/libclc-0.2.0+git.20190313/www/index.html --- old/libclc-0.2.0+git.20181127/www/index.html 2018-11-27 17:07:21.000000000 +0100 +++ new/libclc-0.2.0+git.20190313/www/index.html 2019-03-13 08:13:34.000000000 +0100 @@ -43,9 +43,7 @@ <h2>Download</h2> -<tt>svn checkout http://llvm.org/svn/llvm-project/libclc/trunk libclc</tt> (<a href="http://llvm.org/viewvc/llvm-project/libclc/trunk/">ViewVC</a>) -<br>- or -<br> -<tt>git clone http://llvm.org/git/libclc.git</tt> +<tt>git clone https://github.com/llvm/llvm-project.git</tt> (<a href="https://github.com/llvm/llvm-project/tree/libclc">View sources</a>) <h2>Mailing List</h2>
