Skip to content

Commit

Permalink
Update remaining file headers of LLVM-project code to the new license.
Browse files Browse the repository at this point in the history
For details, see r351675 which intalled the new license for the test
suite, and r351676 which handled headers in the ABI test suite.

This also involved cleaning up some weirdly mis-formatted headers in the
glib compat stubs.

llvm-svn: 351677
  • Loading branch information
chandlerc committed Jan 20, 2019
1 parent 38461f7 commit 45e9fc8
Show file tree
Hide file tree
Showing 77 changed files with 252 additions and 225 deletions.
7 changes: 3 additions & 4 deletions External/CUDA/cmath.cu
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. 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
//
//===----------------------------------------------------------------------===//

Expand Down
7 changes: 3 additions & 4 deletions External/CUDA/complex.cu
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. 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
//
//===----------------------------------------------------------------------===//

Expand Down
7 changes: 3 additions & 4 deletions External/CUDA/math_h.cu
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. 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
//
//===----------------------------------------------------------------------===//

Expand Down
7 changes: 3 additions & 4 deletions External/CUDA/simd.cu
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. 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
//
//===----------------------------------------------------------------------===//

Expand Down
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
##===- projects/llvm-test/Makefile -------------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# 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
#
##===----------------------------------------------------------------------===##
#
Expand Down
7 changes: 3 additions & 4 deletions Makefile.FORTRAN
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
##===- Makefile.FORTRAN ------------------------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# 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
#
#===------------------------------------------------------------------------===#
#
Expand Down
7 changes: 3 additions & 4 deletions Makefile.common
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#===-- Makefile.common - Common make rules for LLVM --------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# 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
#
#===------------------------------------------------------------------------===#

Expand Down
7 changes: 3 additions & 4 deletions Makefile.f2c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
##===- Makefile.f2c ----------------------------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# 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
#
#===------------------------------------------------------------------------===#
#
Expand Down
7 changes: 3 additions & 4 deletions Makefile.nagfortran
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
##===- Makefile.nagfortran ---------------------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# 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
#
#===------------------------------------------------------------------------===#
#
Expand Down
7 changes: 3 additions & 4 deletions Makefile.rules
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#===-- Makefile.rules - Common make rules for LLVM ---------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# 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
#
#===------------------------------------------------------------------------===#
#
Expand Down
7 changes: 3 additions & 4 deletions MicroBenchmarks/ImageProcessing/utils/glibc_compat_rand.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/*===------------ glibc_compat_rand.c - glibc rand emulation --------------===*\
*
* The LLVM Compiler Infrastructure
*
* This file is distributed under the University of Illinois Open Source
* 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
*
\*===----------------------------------------------------------------------===*/

Expand Down
7 changes: 3 additions & 4 deletions MicroBenchmarks/ImageProcessing/utils/glibc_compat_rand.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/*===------------- glibc_compat_rand.h- glibc rand emulation --------------===*\
|*
|* The LLVM Compiler Infrastructure
|*
|* This file is distributed under the University of Illinois Open Source
|* 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
|*
\*===----------------------------------------------------------------------===*/

Expand Down
7 changes: 3 additions & 4 deletions MicroBenchmarks/XRay/FDRMode/fdrmode-bench.cc
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//===- fdrmode-bench.cc - XRay Instrumentation Benchmarks -----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// 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
//
//===----------------------------------------------------------------------===//
//
Expand Down
7 changes: 3 additions & 4 deletions MicroBenchmarks/XRay/ReturnReference/retref-bench.cc
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//===- retref-bench.cc - XRay Instrumentation Benchmarks ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// 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
//
//===----------------------------------------------------------------------===//
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/*===------------ glibc_compat_rand.c - glibc rand emulation --------------===*\
*
* The LLVM Compiler Infrastructure
*
* This file is distributed under the University of Illinois Open Source
* 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
*
\*===----------------------------------------------------------------------===*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/*===------------- glibc_compat_rand.h- glibc rand emulation --------------===*\
|*
|* The LLVM Compiler Infrastructure
|*
|* This file is distributed under the University of Illinois Open Source
|* 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
|*
\*===----------------------------------------------------------------------===*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/*===------------ glibc_compat_rand.c - glibc rand emulation --------------===*\
*
* The LLVM Compiler Infrastructure
*
* This file is distributed under the University of Illinois Open Source
* 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
*
\*===----------------------------------------------------------------------===*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/*===------------- glibc_compat_rand.h- glibc rand emulation --------------===*\
* |*
* |* The LLVM Compiler Infrastructure
* |*
* |* This file is distributed under the University of Illinois Open Source
* |* 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
|*
\*===----------------------------------------------------------------------===*/

#ifndef GLIBC_COMPAT_RAND_H
#define GLIBC_COMPAT_RAND_H
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/*===------------ glibc_compat_rand.c - glibc rand emulation --------------===*\
*
* The LLVM Compiler Infrastructure
*
* This file is distributed under the University of Illinois Open Source
* 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
*
\*===----------------------------------------------------------------------===*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/*===------------- glibc_compat_rand.h- glibc rand emulation --------------===*\
* |*
* |* The LLVM Compiler Infrastructure
* |*
* |* This file is distributed under the University of Illinois Open Source
* |* 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
|*
\*===----------------------------------------------------------------------===*/

#ifndef GLIBC_COMPAT_RAND_H
#define GLIBC_COMPAT_RAND_H
Expand Down
27 changes: 13 additions & 14 deletions MultiSource/Benchmarks/DOE-ProxyApps-C/miniAMR/glibc_compat_rand.c
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
/*===------------ glibc_compat_rand.c - glibc rand emulation --------------===*\
* *
* * The LLVM Compiler Infrastructure
* *
* * This file is distributed under the University of Illinois Open Source
* * 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
*
\*===----------------------------------------------------------------------===*/

#include "glibc_compat_rand.h"

/**
* * This rand implementation is designed to emulate the implementation of
* * rand/srand in recent versions of glibc. This is used for programs which
* * require this specific rand implementation in order to pass verification
* * tests.
* *
* * For more information, see: http://www.mathstat.dal.ca/~selinger/random/
* **/
* This rand implementation is designed to emulate the implementation of
* rand/srand in recent versions of glibc. This is used for programs which
* require this specific rand implementation in order to pass verification
* tests.
*
* For more information, see: http://www.mathstat.dal.ca/~selinger/random/
**/

#define TABLE_SIZE 344
static unsigned int table[TABLE_SIZE];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/*===------------- glibc_compat_rand.h- glibc rand emulation --------------===*\
* |*
* |* The LLVM Compiler Infrastructure
* |*
* |* This file is distributed under the University of Illinois Open Source
* |* 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
|*
\*===----------------------------------------------------------------------===*/

#ifndef GLIBC_COMPAT_RAND_H
#define GLIBC_COMPAT_RAND_H
Expand Down
7 changes: 3 additions & 4 deletions MultiSource/Benchmarks/Rodinia/Common/glibc_compat_rand.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/*===------------ glibc_compat_rand.c - glibc rand emulation --------------===*\
*
* The LLVM Compiler Infrastructure
*
* This file is distributed under the University of Illinois Open Source
* 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
*
\*===----------------------------------------------------------------------===*/

Expand Down
7 changes: 3 additions & 4 deletions MultiSource/Benchmarks/Rodinia/Common/glibc_compat_rand.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/*===------------- glibc_compat_rand.h- glibc rand emulation --------------===*\
|*
|* The LLVM Compiler Infrastructure
|*
|* This file is distributed under the University of Illinois Open Source
|* 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
|*
\*===----------------------------------------------------------------------===*/

Expand Down
5 changes: 3 additions & 2 deletions SingleSource/UnitTests/Integer/SSAtest.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
//===--- SSAtest.c --- Test Cases for Bit Accurate Types ------------------===//
//
// This file is distributed under the University of Illinois Open Source
// 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
//
//===----------------------------------------------------------------------===//
//
Expand Down
5 changes: 3 additions & 2 deletions SingleSource/UnitTests/Integer/arith.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
//===--- arith.c --- Test Cases for Bit Accurate Types --------------------===//
//
// This file is distributed under the University of Illinois Open Source
// 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
//
//===----------------------------------------------------------------------===//
//
Expand Down
5 changes: 3 additions & 2 deletions SingleSource/UnitTests/Integer/array.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
//===--- array.c --- Test Cases for Bit Accurate Types --------------------===//
//
// This file is distributed under the University of Illinois Open Source
// 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
//
//===----------------------------------------------------------------------===//
//
Expand Down
5 changes: 3 additions & 2 deletions SingleSource/UnitTests/Integer/big_bit_concat.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
//===--- bit_concat.c --- Test The bit_concat builtin --------------------===//
//
// This file is distributed under the University of Illinois Open Source
// 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
//
//===----------------------------------------------------------------------===//
//
Expand Down
Loading

0 comments on commit 45e9fc8

Please sign in to comment.