Skip to content

Commit

Permalink
[flang] Moved public headers to include/flang (flang-compiler/f18#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidTruby authored and sscalpone committed Jan 27, 2020
1 parent 0c880e4 commit 65b62f9
Show file tree
Hide file tree
Showing 203 changed files with 713 additions and 709 deletions.
2 changes: 1 addition & 1 deletion flang/.clang-format
Expand Up @@ -18,7 +18,7 @@ IncludeCategories:
Priority: 4
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 3
- Regex: '^"\.\./'
- Regex: '^"(flang|\.\.)/'
Priority: 2
- Regex: '.*'
Priority: 1
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/common/Fortran-features.h ---------------------------*- C++ -*-===//
//===-- include/flang/common/Fortran-features.h -----------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand All @@ -9,9 +9,9 @@
#ifndef FORTRAN_COMMON_FORTRAN_FEATURES_H_
#define FORTRAN_COMMON_FORTRAN_FEATURES_H_

#include "Fortran.h"
#include "enum-set.h"
#include "idioms.h"
#include "flang/common/Fortran.h"
#include "flang/common/enum-set.h"
#include "flang/common/idioms.h"

namespace Fortran::common {

Expand Down
@@ -1,4 +1,4 @@
//===-- lib/common/Fortran.h ------------------------------------*- C++ -*-===//
//===-- include/flang/common/Fortran.h --------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/common/bit-population-count.h -----------------------*- C++ -*-===//
//===-- include/flang/common/bit-population-count.h -------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/common/constexpr-bitset.h ---------------------------*- C++ -*-===//
//===-- include/flang/common/constexpr-bitset.h -----------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/common/default-kinds.h ------------------------------*- C++ -*-===//
//===-- include/flang/common/default-kinds.h --------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand All @@ -9,7 +9,7 @@
#ifndef FORTRAN_COMMON_DEFAULT_KINDS_H_
#define FORTRAN_COMMON_DEFAULT_KINDS_H_

#include "Fortran.h"
#include "flang/common/Fortran.h"
#include <cstdint>

namespace Fortran::common {
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/common/enum-set.h -----------------------------------*- C++ -*-===//
//===-- include/flang/common/enum-set.h -------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/common/format.h -------------------------------------*- C++ -*-===//
//===-- include/flang/common/format.h ---------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand All @@ -9,8 +9,8 @@
#ifndef FORTRAN_COMMON_FORMAT_H_
#define FORTRAN_COMMON_FORMAT_H_

#include "Fortran.h"
#include "enum-set.h"
#include "flang/common/Fortran.h"
#include <cstring>

// Define a FormatValidator class template to validate a format expression
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/common/idioms.h -------------------------------------*- C++ -*-===//
//===-- include/flang/common/idioms.h ---------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/common/indirection.h --------------------------------*- C++ -*-===//
//===-- include/flang/common/indirection.h ----------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/common/interval.h -----------------------------------*- C++ -*-===//
//===-- include/flang/common/interval.h -------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/common/leading-zero-bit-count.h ---------------------*- C++ -*-===//
//===-- include/flang/common/leading-zero-bit-count.h -----------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/common/reference-counted.h --------------------------*- C++ -*-===//
//===-- include/flang/common/reference-counted.h ----------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/common/reference.h ----------------------------------*- C++ -*-===//
//===-- include/flang/common/reference.h ------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/common/restorer.h -----------------------------------*- C++ -*-===//
//===-- include/flang/common/restorer.h -------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/common/template.h -----------------------------------*- C++ -*-===//
//===-- include/flang/common/template.h -------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand All @@ -9,6 +9,7 @@
#ifndef FORTRAN_COMMON_TEMPLATE_H_
#define FORTRAN_COMMON_TEMPLATE_H_

#include "flang/common/idioms.h"
#include <functional>
#include <optional>
#include <tuple>
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/common/uint128.h ------------------------------------*- C++ -*-===//
//===-- include/flang/common/uint128.h --------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/common/unsigned-const-division.h --------------------*- C++ -*-===//
//===-- include/flang/common/unsigned-const-division.h ----------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/common/unwrap.h -------------------------------------*- C++ -*-===//
//===-- include/flang/common/unwrap.h ---------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/decimal/binary-floating-point.h ---------------------*- C++ -*-===//
//===-- include/flang/decimal/binary-floating-point.h -----------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand All @@ -12,7 +12,7 @@
// Access and manipulate the fields of an IEEE-754 binary
// floating-point value via a generalized template.

#include "../common/uint128.h"
#include "flang/common/uint128.h"
#include <cinttypes>
#include <climits>
#include <cstring>
Expand Down
@@ -1,4 +1,4 @@
/*===-- lib/decimal/decimal.h -------------------------------------*- C++ -*-===
/*===-- include/flang/decimal/decimal.h ---------------------------*- C++ -*-===
*
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
* See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/evaluate/call.h -------------------------------------*- C++ -*-===//
//===-- include/flang/evaluate/call.h ---------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand All @@ -13,10 +13,10 @@
#include "constant.h"
#include "formatting.h"
#include "type.h"
#include "../common/indirection.h"
#include "../common/reference.h"
#include "../parser/char-block.h"
#include "../semantics/attr.h"
#include "flang/common/indirection.h"
#include "flang/common/reference.h"
#include "flang/parser/char-block.h"
#include "flang/semantics/attr.h"
#include <optional>
#include <ostream>
#include <vector>
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/evaluate/characteristics.h --------------------------*- C++ -*-===//
//===-- include/flang/evaluate/characteristics.h ----------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand All @@ -17,12 +17,12 @@
#include "expression.h"
#include "shape.h"
#include "type.h"
#include "../common/Fortran.h"
#include "../common/enum-set.h"
#include "../common/idioms.h"
#include "../common/indirection.h"
#include "../parser/char-block.h"
#include "../semantics/symbol.h"
#include "flang/common/Fortran.h"
#include "flang/common/enum-set.h"
#include "flang/common/idioms.h"
#include "flang/common/indirection.h"
#include "flang/parser/char-block.h"
#include "flang/semantics/symbol.h"
#include <optional>
#include <ostream>
#include <string>
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/evaluate/check-expression.h -------------------------*- C++ -*-===//
//===-- include/flang/evaluate/check-expression.h ---------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/evaluate/common.h -----------------------------------*- C++ -*-===//
//===-- include/flang/evaluate/common.h -------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand All @@ -10,14 +10,14 @@
#define FORTRAN_EVALUATE_COMMON_H_

#include "intrinsics-library.h"
#include "../common/Fortran.h"
#include "../common/default-kinds.h"
#include "../common/enum-set.h"
#include "../common/idioms.h"
#include "../common/indirection.h"
#include "../common/restorer.h"
#include "../parser/char-block.h"
#include "../parser/message.h"
#include "flang/common/Fortran.h"
#include "flang/common/default-kinds.h"
#include "flang/common/enum-set.h"
#include "flang/common/idioms.h"
#include "flang/common/indirection.h"
#include "flang/common/restorer.h"
#include "flang/parser/char-block.h"
#include "flang/parser/message.h"
#include <cinttypes>
#include <map>

Expand Down
@@ -1,4 +1,4 @@
//===-- lib/evaluate/complex.h ----------------------------------*- C++ -*-===//
//===-- include/flang/evaluate/complex.h ------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/evaluate/constant.h ---------------------------------*- C++ -*-===//
//===-- include/flang/evaluate/constant.h -----------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand All @@ -11,8 +11,8 @@

#include "formatting.h"
#include "type.h"
#include "../common/default-kinds.h"
#include "../common/reference.h"
#include "flang/common/default-kinds.h"
#include "flang/common/reference.h"
#include <map>
#include <ostream>
#include <vector>
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/evaluate/expression.h -------------------------------*- C++ -*-===//
//===-- include/flang/evaluate/expression.h ---------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand All @@ -21,11 +21,11 @@
#include "formatting.h"
#include "type.h"
#include "variable.h"
#include "../common/Fortran.h"
#include "../common/idioms.h"
#include "../common/indirection.h"
#include "../common/template.h"
#include "../parser/char-block.h"
#include "flang/common/Fortran.h"
#include "flang/common/idioms.h"
#include "flang/common/indirection.h"
#include "flang/common/template.h"
#include "flang/parser/char-block.h"
#include <algorithm>
#include <list>
#include <ostream>
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/evaluate/fold.h -------------------------------------*- C++ -*-===//
//===-- include/flang/evaluate/fold.h ---------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/evaluate/formatting.h -------------------------------*- C++ -*-===//
//===-- include/flang/evaluate/formatting.h ---------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand All @@ -19,7 +19,7 @@
// This header is meant to be included by the headers that define the several
// representational class templates that need it, not by external clients.

#include "../common/indirection.h"
#include "flang/common/indirection.h"
#include <optional>
#include <ostream>
#include <type_traits>
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/evaluate/integer.h ----------------------------------*- C++ -*-===//
//===-- include/flang/evaluate/integer.h ------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand All @@ -17,9 +17,9 @@
// (*"Signed" here means two's-complement, just to be clear. Ones'-complement
// and signed-magnitude encodings appear to be extinct in 2018.)

#include "common.h"
#include "../common/bit-population-count.h"
#include "../common/leading-zero-bit-count.h"
#include "flang/common/bit-population-count.h"
#include "flang/common/leading-zero-bit-count.h"
#include "flang/evaluate/common.h"
#include <cinttypes>
#include <climits>
#include <cstddef>
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/evaluate/intrinsics-library.h -----------------------*- C++ -*-===//
//===-- include/flang/evaluate/intrinsics-library.h -------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/evaluate/intrinsics.h -------------------------------*- C++ -*-===//
//===-- include/flang/evaluate/intrinsics.h ---------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand All @@ -12,9 +12,9 @@
#include "call.h"
#include "characteristics.h"
#include "type.h"
#include "../common/default-kinds.h"
#include "../parser/char-block.h"
#include "../parser/message.h"
#include "flang/common/default-kinds.h"
#include "flang/parser/char-block.h"
#include "flang/parser/message.h"
#include <optional>
#include <ostream>
#include <string>
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/evaluate/logical.h ----------------------------------*- C++ -*-===//
//===-- include/flang/evaluate/logical.h ------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/evaluate/real.h -------------------------------------*- C++ -*-===//
//===-- include/flang/evaluate/real.h ---------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand All @@ -9,10 +9,10 @@
#ifndef FORTRAN_EVALUATE_REAL_H_
#define FORTRAN_EVALUATE_REAL_H_

#include "common.h"
#include "formatting.h"
#include "integer.h"
#include "rounding-bits.h"
#include "flang/evaluate/common.h"
#include <cinttypes>
#include <limits>
#include <ostream>
Expand Down
@@ -1,4 +1,4 @@
//===-- lib/evaluate/rounding-bits.h ----------------------------*- C++ -*-===//
//===-- include/flang/evaluate/rounding-bits.h ------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down

0 comments on commit 65b62f9

Please sign in to comment.