Skip to content

Commit

Permalink
[flang] Flang relicensing changes for LLVM Apache 2.0 license
Browse files Browse the repository at this point in the history
This changes the license information in many of the flang source files.
- Renamed LICENSE to LICENSE.txt.
- NVIDIA Copyright lines have been removed.
- Initial lines for files follow the LLVM coding convention (file name on the first line; Emacs mode information on the first line).
- License references have been replaced with the abridged LLVM text.
- License information was removed from the test files.
- No file header was placed on test files (these weren't in most LLVM test files).
- License information was added to documentation files where it was missing.

We did not add brief file summaries to the initial line.

See http://llvm.org/docs/DeveloperPolicy.html#new-llvm-project-license-framework
for a description of the new license.

See http://llvm.org/docs/CodingStandards.html#file-headers
for a description of the new LLVM standard file header.

Original-commit: flang-compiler/f18@add6cde
Reviewed-on: flang-compiler/f18#887
  • Loading branch information
gklimowicz committed Dec 23, 2019
1 parent 317c3fa commit 9e7548a
Show file tree
Hide file tree
Showing 645 changed files with 1,333 additions and 8,026 deletions.
16 changes: 5 additions & 11 deletions flang/CMakeLists.txt
@@ -1,16 +1,10 @@
# Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
#===-- CMakeLists.txt ------------------------------------------------------===#
#
# 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
# 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
#
# 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.
#------------------------------------------------------------------------------#

cmake_minimum_required(VERSION 3.9.0)

Expand Down
File renamed without changes.
8 changes: 6 additions & 2 deletions flang/README.md
@@ -1,5 +1,9 @@
<!--
Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
<!--===- README.md
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
-->

# F18
Expand Down
8 changes: 6 additions & 2 deletions flang/documentation/ArrayComposition.md
@@ -1,5 +1,9 @@
<!--
Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
<!--===- documentation/ArrayComposition.md
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
-->

This note attempts to describe the motivation for and design of an
Expand Down
8 changes: 6 additions & 2 deletions flang/documentation/C++17.md
@@ -1,5 +1,9 @@
<!--
Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
<!--===- documentation/C++17.md
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
-->

## C++14/17 features used in f18
Expand Down
8 changes: 6 additions & 2 deletions flang/documentation/C++style.md
@@ -1,5 +1,9 @@
<!--
Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
<!--===- documentation/C++style.md
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
-->

## In brief:
Expand Down
8 changes: 6 additions & 2 deletions flang/documentation/Calls.md
@@ -1,5 +1,9 @@
<!--
Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
<!--===- documentation/Calls.md
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
-->

## Procedure reference implementation protocol
Expand Down
8 changes: 6 additions & 2 deletions flang/documentation/ControlFlowGraph.md
@@ -1,5 +1,9 @@
<!--
Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
<!--===- documentation/ControlFlowGraph.md
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
-->

## Concept
Expand Down
8 changes: 6 additions & 2 deletions flang/documentation/Directives.md
@@ -1,5 +1,9 @@
<!--
Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
<!--===- documentation/Directives.md
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
-->

Compiler directives supported by F18
Expand Down
8 changes: 6 additions & 2 deletions flang/documentation/Extensions.md
@@ -1,5 +1,9 @@
<!--
Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
<!--===- documentation/Extensions.md
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
-->

As a general principle, this compiler will accept by default and
Expand Down
8 changes: 6 additions & 2 deletions flang/documentation/FortranForCProgrammers.md
@@ -1,5 +1,9 @@
<!--
Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
<!--===- documentation/FortranForCProgrammers.md
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
-->

Fortran For C Programmers
Expand Down
8 changes: 8 additions & 0 deletions flang/documentation/FortranIR.md
@@ -1,3 +1,11 @@
<!--===- documentation/FortranIR.md
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
-->

# Design: Fortran IR

## Introduction
Expand Down
8 changes: 6 additions & 2 deletions flang/documentation/Intrinsics.md
@@ -1,5 +1,9 @@
<!--
Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
<!--===- documentation/Intrinsics.md
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
-->

# A categorization of standard (2018) and extended Fortran intrinsic procedures
Expand Down
8 changes: 8 additions & 0 deletions flang/documentation/Investigating-FIR-as-an-MLIR-dialect.md
@@ -1,3 +1,11 @@
<!--===- documentation/Investigating-FIR-as-an-MLIR-dialect.md
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
-->

# Investigating FIR as an MLIR Dialect

## Introduction
Expand Down
8 changes: 8 additions & 0 deletions flang/documentation/LabelResolution.md
@@ -1,3 +1,11 @@
<!--===- documentation/LabelResolution.md
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
-->

# Semantics: Resolving Labels and Construct Names

## Overview
Expand Down
8 changes: 8 additions & 0 deletions flang/documentation/ModFiles.md
@@ -1,3 +1,11 @@
<!--===- documentation/ModFiles.md
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
-->

# Module Files

Module files hold information from a module that is necessary to compile
Expand Down
9 changes: 8 additions & 1 deletion flang/documentation/OpenMP-4.5-grammar.txt
@@ -1,4 +1,11 @@
# Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
#===-- documentation/OpenMP-4.5-grammar.txt --------------------------------===#
#
# 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
#
#------------------------------------------------------------------------------#

# OpenMP 4.5 Specifications

2 omp-directive -> sentinel directive-name [clause[ [,] clause]...]
Expand Down
8 changes: 8 additions & 0 deletions flang/documentation/OpenMP-semantics.md
@@ -1,3 +1,11 @@
<!--===- documentation/OpenMP-semantics.md
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
-->

# OpenMP Semantic Analysis

## OpenMP for F18
Expand Down
8 changes: 6 additions & 2 deletions flang/documentation/OptionComparison.md
@@ -1,5 +1,9 @@
<!--
Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
<!--===- documentation/OptionComparison.md
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
-->

# Compiler options
Expand Down
8 changes: 6 additions & 2 deletions flang/documentation/Overview.md
@@ -1,5 +1,9 @@
<!--
Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
<!--===- documentation/Overview.md
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
-->

# Overview of Compiler Phases
Expand Down
8 changes: 6 additions & 2 deletions flang/documentation/ParserCombinators.md
@@ -1,5 +1,9 @@
<!--
Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
<!--===- documentation/ParserCombinators.md
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
-->

## Concept
Expand Down
8 changes: 6 additions & 2 deletions flang/documentation/Parsing.md
@@ -1,5 +1,9 @@
<!--
Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
<!--===- documentation/Parsing.md
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
-->

The F18 Parser
Expand Down
8 changes: 6 additions & 2 deletions flang/documentation/Preprocessing.md
@@ -1,5 +1,9 @@
<!--
Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
<!--===- documentation/Preprocessing.md
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
-->

Fortran Preprocessing
Expand Down
8 changes: 6 additions & 2 deletions flang/documentation/RuntimeDescriptor.md
@@ -1,5 +1,9 @@
<!--
Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
<!--===- documentation/RuntimeDescriptor.md
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
-->

## Concept
Expand Down
8 changes: 6 additions & 2 deletions flang/documentation/Semantics.md
@@ -1,5 +1,9 @@
<!--
Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
<!--===- documentation/Semantics.md
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
-->

# Semantic Analysis
Expand Down
8 changes: 7 additions & 1 deletion flang/documentation/f2018-grammar.txt
@@ -1,4 +1,10 @@
# Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
#===-- documentation/f2018-grammar.txt -------------------------------------===#
#
# 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
#
#------------------------------------------------------------------------------#

R0001 digit -> 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
R0002 letter ->
Expand Down
7 changes: 7 additions & 0 deletions flang/documentation/flang-c-style.el
@@ -1,3 +1,10 @@
;;===-- documentation/flang-c-style.el ------------------------------------===;;
;;
;; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
;; See https://llvm.org/LICENSE.txt for license information.
;; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
;;
;;----------------------------------------------------------------------------;;

;; Define a cc-mode style for editing C++ codes in Flang.
;;
Expand Down
16 changes: 5 additions & 11 deletions flang/include/flang/CMakeLists.txt
@@ -1,14 +1,8 @@
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#===-- include/flang/CMakeLists.txt ----------------------------------------===#
#
# 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
# 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
#
# 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.
#------------------------------------------------------------------------------#

8 changes: 8 additions & 0 deletions flang/include/flang/Config/config.h.cmake
@@ -1,3 +1,11 @@
#===-- include/flang/Config/config.h.cmake ---------------------------------===#
#
# 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
#
#------------------------------------------------------------------------------#

/* This generated file is for internal use. Do not include it from headers. */

#ifdef FLANG_CONFIG_H
Expand Down
16 changes: 5 additions & 11 deletions flang/include/flang/ISO_Fortran_binding.h
@@ -1,16 +1,10 @@
/* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
/*===-- include/flang/ISO_Fortran_binding.h -----------------------*- C++ -*-===
*
* 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
* 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
*
* 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.
* -----------------------------------------------------------------------------
*/

#ifndef CFI_ISO_FORTRAN_BINDING_H_
Expand Down
16 changes: 5 additions & 11 deletions flang/lib/CMakeLists.txt
@@ -1,16 +1,10 @@
# Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
#===-- lib/CMakeLists.txt --------------------------------------------------===#
#
# 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
# 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
#
# 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.
#------------------------------------------------------------------------------#

add_subdirectory(common)
add_subdirectory(evaluate)
Expand Down

0 comments on commit 9e7548a

Please sign in to comment.