mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-21 17:37:18 +00:00
[Flang] Move non-common headers to FortranSupport (#124416)
Move non-common files from FortranCommon to FortranSupport (analogous to LLVMSupport) such that * declarations and definitions that are only used by the Flang compiler, but not by the runtime, are moved to FortranSupport * declarations and definitions that are used by both ("common"), the compiler and the runtime, remain in FortranCommon * generic STL-like/ADT/utility classes and algorithms remain in FortranCommon This allows a for cleaner separation between compiler and runtime components, which are compiled differently. For instance, runtime sources must not use STL's `<optional>` which causes problems with CUDA support. Instead, the surrogate header `flang/Common/optional.h` must be used. This PR fixes this for `fast-int-sel.h`. Declarations in include/Runtime are also used by both, but are header-only. `ISO_Fortran_binding_wrapper.h`, a header used by compiler and runtime, is also moved into FortranCommon.
This commit is contained in:
parent
f48d9e95d4
commit
b815a3942a
flang
include/flang
Common
ISO_Fortran_binding_wrapper.herfc-scaled.hfast-int-set.hformat.hoptional.hreal.hreference-wrapper.hrestorer.htarget-rounding.htemplate.huint128.hvisit.h
Evaluate
Frontend
ISO_Fortran_binding.hLower
Optimizer
Builder
CodeGen
Dialect/CUF/Attributes
Support
Parser
Runtime
Semantics
Support
Fortran-features.hFortran.hLangOptions.defLangOptions.hMathOptionsBase.defMathOptionsBase.hOpenMP-features.hOpenMP-utils.hVersion.hdefault-kinds.h
Tools
lib
CMakeLists.txt
Common
Decimal
Evaluate
Frontend
Lower
Optimizer
CodeGen
Dialect
OpenMP
Passes
Transforms
Parser
Semantics
@ -1,14 +1,13 @@
|
||||
/*===-- include/flang/ISO_Fortran_binding_wrapper.h ---------------*- C++ -*-===
|
||||
/*===-- include/flang/Common/ISO_Fortran_binding_wrapper.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.
|
||||
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
*
|
||||
* ===-----------------------------------------------------------------------===
|
||||
*/
|
||||
*===----------------------------------------------------------------------===*/
|
||||
|
||||
#ifndef FORTRAN_ISO_FORTRAN_BINDING_WRAPPER_H_
|
||||
#define FORTRAN_ISO_FORTRAN_BINDING_WRAPPER_H_
|
||||
#ifndef FORTRAN_COMMON_ISO_FORTRAN_BINDING_WRAPPER_H_
|
||||
#define FORTRAN_COMMON_ISO_FORTRAN_BINDING_WRAPPER_H_
|
||||
|
||||
/* A thin wrapper around flang/include/ISO_Fortran_binding.h
|
||||
* This header file must be included when ISO_Fortran_binding.h
|
||||
@ -23,17 +22,17 @@
|
||||
|
||||
/* clang-format off */
|
||||
#include <stddef.h>
|
||||
#include "Common/api-attrs.h"
|
||||
#include "api-attrs.h"
|
||||
#ifdef __cplusplus
|
||||
namespace Fortran {
|
||||
namespace ISO {
|
||||
#define FORTRAN_ISO_NAMESPACE_ ::Fortran::ISO
|
||||
#endif /* __cplusplus */
|
||||
#include "ISO_Fortran_binding.h"
|
||||
#include "flang/ISO_Fortran_binding.h"
|
||||
#ifdef __cplusplus
|
||||
} // namespace ISO
|
||||
} // namespace Fortran
|
||||
#endif /* __cplusplus */
|
||||
/* clang-format on */
|
||||
|
||||
#endif /* FORTRAN_ISO_FORTRAN_BINDING_WRAPPER_H_ */
|
||||
#endif /* FORTRAN_COMMON_ISO_FORTRAN_BINDING_WRAPPER_H_ */
|
@ -9,6 +9,9 @@
|
||||
#ifndef FORTRAN_COMMON_ERFC_SCALED_H_
|
||||
#define FORTRAN_COMMON_ERFC_SCALED_H_
|
||||
|
||||
#include <cmath>
|
||||
#include <limits>
|
||||
|
||||
namespace Fortran::common {
|
||||
template <typename T> inline T ErfcScaled(T arg) {
|
||||
// Coefficients for approximation to erfc in the first interval.
|
||||
|
@ -24,7 +24,7 @@
|
||||
#ifndef FORTRAN_COMMON_FAST_INT_SET_H_
|
||||
#define FORTRAN_COMMON_FAST_INT_SET_H_
|
||||
|
||||
#include <optional>
|
||||
#include "optional.h"
|
||||
|
||||
namespace Fortran::common {
|
||||
|
||||
@ -83,9 +83,9 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
std::optional<int> PopValue() {
|
||||
optional<int> PopValue() {
|
||||
if (IsEmpty()) {
|
||||
return std::nullopt;
|
||||
return nullopt;
|
||||
} else {
|
||||
return value_[--size_];
|
||||
}
|
||||
|
@ -9,8 +9,8 @@
|
||||
#ifndef FORTRAN_COMMON_FORMAT_H_
|
||||
#define FORTRAN_COMMON_FORMAT_H_
|
||||
|
||||
#include "Fortran-consts.h"
|
||||
#include "enum-set.h"
|
||||
#include "flang/Common/Fortran-consts.h"
|
||||
#include <cstring>
|
||||
|
||||
// Define a FormatValidator class template to validate a format expression
|
||||
|
@ -26,7 +26,7 @@
|
||||
#ifndef FORTRAN_COMMON_OPTIONAL_H
|
||||
#define FORTRAN_COMMON_OPTIONAL_H
|
||||
|
||||
#include "flang/Common/api-attrs.h"
|
||||
#include "api-attrs.h"
|
||||
#include <optional>
|
||||
#include <type_traits>
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
// The various representations are distinguished by their binary precisions
|
||||
// (number of explicit significand bits and any implicit MSB in the fraction).
|
||||
|
||||
#include "flang/Common/api-attrs.h"
|
||||
#include "api-attrs.h"
|
||||
#include <cinttypes>
|
||||
|
||||
namespace Fortran::common {
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifndef FORTRAN_COMMON_REFERENCE_WRAPPER_H
|
||||
#define FORTRAN_COMMON_REFERENCE_WRAPPER_H
|
||||
|
||||
#include "flang/Common/api-attrs.h"
|
||||
#include "api-attrs.h"
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
|
||||
|
@ -18,8 +18,8 @@
|
||||
|
||||
#ifndef FORTRAN_COMMON_RESTORER_H_
|
||||
#define FORTRAN_COMMON_RESTORER_H_
|
||||
#include "api-attrs.h"
|
||||
#include "idioms.h"
|
||||
#include "flang/Common/api-attrs.h"
|
||||
namespace Fortran::common {
|
||||
template <typename A> class Restorer {
|
||||
public:
|
||||
|
@ -9,8 +9,8 @@
|
||||
#ifndef FORTRAN_COMMON_TARGET_ROUNDING_H_
|
||||
#define FORTRAN_COMMON_TARGET_ROUNDING_H_
|
||||
|
||||
#include "flang/Common/Fortran-consts.h"
|
||||
#include "flang/Common/enum-set.h"
|
||||
#include "Fortran-consts.h"
|
||||
#include "enum-set.h"
|
||||
|
||||
namespace Fortran::common {
|
||||
|
||||
|
@ -9,8 +9,8 @@
|
||||
#ifndef FORTRAN_COMMON_TEMPLATE_H_
|
||||
#define FORTRAN_COMMON_TEMPLATE_H_
|
||||
|
||||
#include "idioms.h"
|
||||
#include "variant.h"
|
||||
#include "flang/Common/idioms.h"
|
||||
#include <functional>
|
||||
#include <optional>
|
||||
#include <tuple>
|
||||
|
@ -19,8 +19,8 @@
|
||||
#define AVOID_NATIVE_UINT128_T 0
|
||||
#endif
|
||||
|
||||
#include "api-attrs.h"
|
||||
#include "leading-zero-bit-count.h"
|
||||
#include "flang/Common/api-attrs.h"
|
||||
#include <cstdint>
|
||||
#include <type_traits>
|
||||
|
||||
|
@ -21,8 +21,8 @@
|
||||
#ifndef FORTRAN_COMMON_VISIT_H_
|
||||
#define FORTRAN_COMMON_VISIT_H_
|
||||
|
||||
#include "api-attrs.h"
|
||||
#include "variant.h"
|
||||
#include "flang/Common/api-attrs.h"
|
||||
#include <type_traits>
|
||||
|
||||
namespace Fortran::common {
|
||||
|
@ -13,11 +13,11 @@
|
||||
#include "constant.h"
|
||||
#include "formatting.h"
|
||||
#include "type.h"
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Common/indirection.h"
|
||||
#include "flang/Common/reference.h"
|
||||
#include "flang/Parser/char-block.h"
|
||||
#include "flang/Semantics/attr.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include <optional>
|
||||
#include <vector>
|
||||
|
||||
|
@ -18,13 +18,13 @@
|
||||
#include "shape.h"
|
||||
#include "tools.h"
|
||||
#include "type.h"
|
||||
#include "flang/Common/Fortran-features.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 "flang/Support/Fortran-features.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <variant>
|
||||
|
@ -9,9 +9,6 @@
|
||||
#ifndef FORTRAN_EVALUATE_COMMON_H_
|
||||
#define FORTRAN_EVALUATE_COMMON_H_
|
||||
|
||||
#include "flang/Common/Fortran-features.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"
|
||||
@ -19,6 +16,9 @@
|
||||
#include "flang/Common/target-rounding.h"
|
||||
#include "flang/Parser/char-block.h"
|
||||
#include "flang/Parser/message.h"
|
||||
#include "flang/Support/Fortran-features.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "flang/Support/default-kinds.h"
|
||||
#include <cinttypes>
|
||||
#include <map>
|
||||
#include <set>
|
||||
|
@ -11,8 +11,8 @@
|
||||
|
||||
#include "formatting.h"
|
||||
#include "type.h"
|
||||
#include "flang/Common/default-kinds.h"
|
||||
#include "flang/Common/reference.h"
|
||||
#include "flang/Support/default-kinds.h"
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
|
@ -21,11 +21,11 @@
|
||||
#include "formatting.h"
|
||||
#include "type.h"
|
||||
#include "variable.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 "flang/Support/Fortran.h"
|
||||
#include <algorithm>
|
||||
#include <list>
|
||||
#include <tuple>
|
||||
|
@ -12,9 +12,9 @@
|
||||
#include "call.h"
|
||||
#include "characteristics.h"
|
||||
#include "type.h"
|
||||
#include "flang/Common/default-kinds.h"
|
||||
#include "flang/Parser/char-block.h"
|
||||
#include "flang/Parser/message.h"
|
||||
#include "flang/Support/default-kinds.h"
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
@ -12,11 +12,11 @@
|
||||
#ifndef FORTRAN_EVALUATE_TARGET_H_
|
||||
#define FORTRAN_EVALUATE_TARGET_H_
|
||||
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Common/enum-class.h"
|
||||
#include "flang/Common/enum-set.h"
|
||||
#include "flang/Common/target-rounding.h"
|
||||
#include "flang/Evaluate/common.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include <cstdint>
|
||||
|
||||
namespace Fortran::evaluate {
|
||||
|
@ -22,11 +22,11 @@
|
||||
#include "integer.h"
|
||||
#include "logical.h"
|
||||
#include "real.h"
|
||||
#include "flang/Common/Fortran-features.h"
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Common/idioms.h"
|
||||
#include "flang/Common/real.h"
|
||||
#include "flang/Common/template.h"
|
||||
#include "flang/Support/Fortran-features.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include <cinttypes>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
@ -13,7 +13,6 @@
|
||||
#ifndef FORTRAN_FRONTEND_COMPILERINVOCATION_H
|
||||
#define FORTRAN_FRONTEND_COMPILERINVOCATION_H
|
||||
|
||||
#include "flang/Common/LangOptions.h"
|
||||
#include "flang/Frontend/CodeGenOptions.h"
|
||||
#include "flang/Frontend/FrontendOptions.h"
|
||||
#include "flang/Frontend/PreprocessorOptions.h"
|
||||
@ -21,6 +20,7 @@
|
||||
#include "flang/Lower/LoweringOptions.h"
|
||||
#include "flang/Parser/parsing.h"
|
||||
#include "flang/Semantics/semantics.h"
|
||||
#include "flang/Support/LangOptions.h"
|
||||
#include "mlir/Support/Timing.h"
|
||||
#include "clang/Basic/Diagnostic.h"
|
||||
#include "clang/Basic/DiagnosticOptions.h"
|
||||
|
@ -13,10 +13,10 @@
|
||||
#ifndef FORTRAN_FRONTEND_FRONTENDOPTIONS_H
|
||||
#define FORTRAN_FRONTEND_FRONTENDOPTIONS_H
|
||||
|
||||
#include "flang/Common/Fortran-features.h"
|
||||
#include "flang/Lower/EnvironmentDefault.h"
|
||||
#include "flang/Parser/characters.h"
|
||||
#include "flang/Parser/unparse.h"
|
||||
#include "flang/Support/Fortran-features.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/Support/MemoryBuffer.h"
|
||||
#include <cstdint>
|
||||
|
@ -14,7 +14,7 @@
|
||||
* it does so by means of a wrapper header that establishes namespaces and
|
||||
* a macro for extra function attributes (RT_API_ATTRS).
|
||||
*/
|
||||
#ifndef FORTRAN_ISO_FORTRAN_BINDING_WRAPPER_H_
|
||||
#ifndef FORTRAN_COMMON_ISO_FORTRAN_BINDING_WRAPPER_H_
|
||||
#include <stddef.h>
|
||||
#define FORTRAN_ISO_NAMESPACE_
|
||||
#endif
|
||||
|
@ -13,12 +13,12 @@
|
||||
#ifndef FORTRAN_LOWER_ABSTRACTCONVERTER_H
|
||||
#define FORTRAN_LOWER_ABSTRACTCONVERTER_H
|
||||
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Lower/LoweringOptions.h"
|
||||
#include "flang/Lower/PFTDefs.h"
|
||||
#include "flang/Optimizer/Builder/BoxValue.h"
|
||||
#include "flang/Optimizer/Dialect/FIRAttr.h"
|
||||
#include "flang/Semantics/symbol.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/BuiltinOps.h"
|
||||
#include "mlir/IR/Operation.h"
|
||||
|
@ -13,7 +13,6 @@
|
||||
#ifndef FORTRAN_LOWER_BRIDGE_H
|
||||
#define FORTRAN_LOWER_BRIDGE_H
|
||||
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Frontend/CodeGenOptions.h"
|
||||
#include "flang/Frontend/TargetOptions.h"
|
||||
#include "flang/Lower/AbstractConverter.h"
|
||||
@ -22,6 +21,7 @@
|
||||
#include "flang/Lower/StatementContext.h"
|
||||
#include "flang/Optimizer/Builder/FIRBuilder.h"
|
||||
#include "flang/Optimizer/Dialect/Support/KindMapping.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "mlir/IR/BuiltinOps.h"
|
||||
#include "mlir/IR/OwningOpRef.h"
|
||||
#include <set>
|
||||
|
@ -21,8 +21,8 @@
|
||||
#ifndef FORTRAN_LOWER_CONVERT_TYPE_H
|
||||
#define FORTRAN_LOWER_CONVERT_TYPE_H
|
||||
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Evaluate/type.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "mlir/IR/BuiltinTypes.h"
|
||||
|
||||
namespace mlir {
|
||||
|
@ -15,7 +15,7 @@
|
||||
#ifndef FLANG_LOWER_LOWERINGOPTIONS_H
|
||||
#define FLANG_LOWER_LOWERINGOPTIONS_H
|
||||
|
||||
#include "flang/Common/MathOptionsBase.h"
|
||||
#include "flang/Support/MathOptionsBase.h"
|
||||
|
||||
namespace Fortran::lower {
|
||||
|
||||
|
@ -16,12 +16,12 @@
|
||||
#ifndef FORTRAN_OPTIMIZER_BUILDER_FIRBUILDER_H
|
||||
#define FORTRAN_OPTIMIZER_BUILDER_FIRBUILDER_H
|
||||
|
||||
#include "flang/Common/MathOptionsBase.h"
|
||||
#include "flang/Optimizer/Dialect/FIROps.h"
|
||||
#include "flang/Optimizer/Dialect/FIROpsSupport.h"
|
||||
#include "flang/Optimizer/Dialect/FIRType.h"
|
||||
#include "flang/Optimizer/Dialect/Support/FIRContext.h"
|
||||
#include "flang/Optimizer/Dialect/Support/KindMapping.h"
|
||||
#include "flang/Support/MathOptionsBase.h"
|
||||
#include "mlir/IR/Builders.h"
|
||||
#include "mlir/IR/BuiltinOps.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
|
@ -17,12 +17,12 @@
|
||||
#ifndef FORTRAN_OPTIMIZER_BUILDER_RUNTIME_RTBUILDER_H
|
||||
#define FORTRAN_OPTIMIZER_BUILDER_RUNTIME_RTBUILDER_H
|
||||
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Common/uint128.h"
|
||||
#include "flang/Optimizer/Builder/FIRBuilder.h"
|
||||
#include "flang/Optimizer/Dialect/FIRDialect.h"
|
||||
#include "flang/Optimizer/Dialect/FIRType.h"
|
||||
#include "flang/Runtime/reduce.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "mlir/IR/BuiltinTypes.h"
|
||||
#include "mlir/IR/MLIRContext.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
|
@ -22,7 +22,7 @@
|
||||
#ifndef OPTIMIZER_DESCRIPTOR_MODEL_H
|
||||
#define OPTIMIZER_DESCRIPTOR_MODEL_H
|
||||
|
||||
#include "flang/ISO_Fortran_binding_wrapper.h"
|
||||
#include "flang/Common/ISO_Fortran_binding_wrapper.h"
|
||||
#include "flang/Runtime/descriptor-consts.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMTypes.h"
|
||||
#include "mlir/IR/BuiltinTypes.h"
|
||||
|
@ -13,7 +13,7 @@
|
||||
#ifndef FORTRAN_OPTIMIZER_DIALECT_CUF_CUFATTR_H
|
||||
#define FORTRAN_OPTIMIZER_DIALECT_CUF_CUFATTR_H
|
||||
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "mlir/IR/BuiltinAttributes.h"
|
||||
|
||||
namespace llvm {
|
||||
|
@ -13,7 +13,7 @@
|
||||
#ifndef FORTRAN_OPTIMIZER_SUPPORT_TYPECODE_H
|
||||
#define FORTRAN_OPTIMIZER_SUPPORT_TYPECODE_H
|
||||
|
||||
#include "flang/ISO_Fortran_binding_wrapper.h"
|
||||
#include "flang/Common/ISO_Fortran_binding_wrapper.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
|
||||
namespace fir {
|
||||
|
@ -13,13 +13,13 @@
|
||||
#ifndef FORTRAN_OPTIMIZER_SUPPORT_UTILS_H
|
||||
#define FORTRAN_OPTIMIZER_SUPPORT_UTILS_H
|
||||
|
||||
#include "flang/Common/default-kinds.h"
|
||||
#include "flang/Optimizer/Builder/FIRBuilder.h"
|
||||
#include "flang/Optimizer/Builder/Todo.h"
|
||||
#include "flang/Optimizer/Dialect/CUF/Attributes/CUFAttr.h"
|
||||
#include "flang/Optimizer/Dialect/FIROps.h"
|
||||
#include "flang/Optimizer/Dialect/FIRType.h"
|
||||
#include "flang/Optimizer/Support/FatalError.h"
|
||||
#include "flang/Support/default-kinds.h"
|
||||
#include "mlir/Dialect/Arith/IR/Arith.h"
|
||||
#include "mlir/Dialect/Func/IR/FuncOps.h"
|
||||
#include "mlir/IR/BuiltinAttributes.h"
|
||||
|
@ -14,9 +14,9 @@
|
||||
#include "parse-tree.h"
|
||||
#include "tools.h"
|
||||
#include "unparse.h"
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Common/idioms.h"
|
||||
#include "flang/Common/indirection.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
|
@ -15,10 +15,10 @@
|
||||
#include "char-block.h"
|
||||
#include "char-set.h"
|
||||
#include "provenance.h"
|
||||
#include "flang/Common/Fortran-features.h"
|
||||
#include "flang/Common/idioms.h"
|
||||
#include "flang/Common/reference-counted.h"
|
||||
#include "flang/Common/restorer.h"
|
||||
#include "flang/Support/Fortran-features.h"
|
||||
#include <cstddef>
|
||||
#include <cstring>
|
||||
#include <forward_list>
|
||||
|
@ -16,11 +16,11 @@
|
||||
// and recovery during parsing!
|
||||
|
||||
#include "user-state.h"
|
||||
#include "flang/Common/Fortran-features.h"
|
||||
#include "flang/Common/idioms.h"
|
||||
#include "flang/Parser/characters.h"
|
||||
#include "flang/Parser/message.h"
|
||||
#include "flang/Parser/provenance.h"
|
||||
#include "flang/Support/Fortran-features.h"
|
||||
#include <cstddef>
|
||||
#include <cstring>
|
||||
#include <list>
|
||||
|
@ -22,9 +22,9 @@
|
||||
#include "format-specification.h"
|
||||
#include "message.h"
|
||||
#include "provenance.h"
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Common/idioms.h"
|
||||
#include "flang/Common/indirection.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "llvm/Frontend/OpenACC/ACC.h.inc"
|
||||
#include "llvm/Frontend/OpenMP/OMP.h"
|
||||
#include "llvm/Frontend/OpenMP/OMPConstants.h"
|
||||
|
@ -14,8 +14,8 @@
|
||||
#include "message.h"
|
||||
#include "parse-tree.h"
|
||||
#include "provenance.h"
|
||||
#include "flang/Common/Fortran-features.h"
|
||||
#include "flang/Parser/preprocessor.h"
|
||||
#include "flang/Support/Fortran-features.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
@ -14,10 +14,10 @@
|
||||
// parse tree construction so as to avoid any need for representing
|
||||
// state in static data.
|
||||
|
||||
#include "flang/Common/Fortran-features.h"
|
||||
#include "flang/Common/idioms.h"
|
||||
#include "flang/Parser/char-block.h"
|
||||
#include "flang/Parser/parse-tree.h"
|
||||
#include "flang/Support/Fortran-features.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <cinttypes>
|
||||
#include <optional>
|
||||
|
@ -9,8 +9,8 @@
|
||||
#ifndef FORTRAN_RUNTIME_DESCRIPTOR_CONSTS_H_
|
||||
#define FORTRAN_RUNTIME_DESCRIPTOR_CONSTS_H_
|
||||
|
||||
#include "flang/Common/ISO_Fortran_binding_wrapper.h"
|
||||
#include "flang/Common/api-attrs.h"
|
||||
#include "flang/ISO_Fortran_binding_wrapper.h"
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
// User C code is welcome to depend on that ISO_Fortran_binding.h file,
|
||||
// but should never reference this internal header.
|
||||
|
||||
#include "flang/ISO_Fortran_binding_wrapper.h"
|
||||
#include "flang/Common/ISO_Fortran_binding_wrapper.h"
|
||||
#include "flang/Runtime/descriptor-consts.h"
|
||||
#include "flang/Runtime/memory.h"
|
||||
#include "flang/Runtime/type-code.h"
|
||||
|
@ -8,6 +8,9 @@
|
||||
|
||||
// Intrinsic subroutines RANDOM_INIT, RANDOM_NUMBER, and RANDOM_SEED.
|
||||
|
||||
#ifndef FORTRAN_RUNTIME_RANDOM_H_
|
||||
#define FORTRAN_RUNTIME_RANDOM_H_
|
||||
|
||||
#include "flang/Runtime/entry-names.h"
|
||||
#include <cstdint>
|
||||
|
||||
@ -35,3 +38,5 @@ void RTNAME(RandomSeed)(const Descriptor *size, const Descriptor *put,
|
||||
|
||||
} // extern "C"
|
||||
} // namespace Fortran::runtime
|
||||
|
||||
#endif // FORTRAN_RUNTIME_RANDOM_H_
|
||||
|
@ -10,7 +10,7 @@
|
||||
#ifndef FORTRAN_RUNTIME_SUPPORT_H_
|
||||
#define FORTRAN_RUNTIME_SUPPORT_H_
|
||||
|
||||
#include "flang/ISO_Fortran_binding_wrapper.h"
|
||||
#include "flang/Common/ISO_Fortran_binding_wrapper.h"
|
||||
#include "flang/Runtime/entry-names.h"
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
@ -10,8 +10,8 @@
|
||||
#define FORTRAN_RUNTIME_TYPE_CODE_H_
|
||||
|
||||
#include "flang/Common/Fortran-consts.h"
|
||||
#include "flang/Common/ISO_Fortran_binding_wrapper.h"
|
||||
#include "flang/Common/optional.h"
|
||||
#include "flang/ISO_Fortran_binding_wrapper.h"
|
||||
#include <utility>
|
||||
|
||||
namespace Fortran::runtime {
|
||||
|
@ -10,7 +10,6 @@
|
||||
#define FORTRAN_SEMANTICS_EXPRESSION_H_
|
||||
|
||||
#include "semantics.h"
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Common/indirection.h"
|
||||
#include "flang/Common/restorer.h"
|
||||
#include "flang/Common/visit.h"
|
||||
@ -24,6 +23,7 @@
|
||||
#include "flang/Parser/parse-tree-visitor.h"
|
||||
#include "flang/Parser/parse-tree.h"
|
||||
#include "flang/Parser/tools.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include <map>
|
||||
#include <optional>
|
||||
#include <type_traits>
|
||||
|
@ -11,11 +11,11 @@
|
||||
|
||||
#include "attr.h"
|
||||
#include "symbol.h"
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Common/idioms.h"
|
||||
#include "flang/Common/reference.h"
|
||||
#include "flang/Parser/message.h"
|
||||
#include "flang/Parser/provenance.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <optional>
|
||||
|
@ -13,12 +13,12 @@
|
||||
#include "program-tree.h"
|
||||
#include "scope.h"
|
||||
#include "symbol.h"
|
||||
#include "flang/Common/Fortran-features.h"
|
||||
#include "flang/Common/LangOptions.h"
|
||||
#include "flang/Evaluate/common.h"
|
||||
#include "flang/Evaluate/intrinsics.h"
|
||||
#include "flang/Evaluate/target.h"
|
||||
#include "flang/Parser/message.h"
|
||||
#include "flang/Support/Fortran-features.h"
|
||||
#include "flang/Support/LangOptions.h"
|
||||
#include <iosfwd>
|
||||
#include <set>
|
||||
#include <string>
|
||||
|
@ -10,11 +10,11 @@
|
||||
#define FORTRAN_SEMANTICS_SYMBOL_H_
|
||||
|
||||
#include "type.h"
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Common/enum-set.h"
|
||||
#include "flang/Common/reference.h"
|
||||
#include "flang/Common/visit.h"
|
||||
#include "flang/Semantics/module-dependences.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "llvm/ADT/DenseMapInfo.h"
|
||||
|
||||
#include <array>
|
||||
|
@ -12,7 +12,6 @@
|
||||
// Simple predicates and look-up functions that are best defined
|
||||
// canonically for use in semantic checking.
|
||||
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Common/visit.h"
|
||||
#include "flang/Evaluate/expression.h"
|
||||
#include "flang/Evaluate/shape.h"
|
||||
@ -23,6 +22,7 @@
|
||||
#include "flang/Semantics/attr.h"
|
||||
#include "flang/Semantics/expression.h"
|
||||
#include "flang/Semantics/semantics.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include <functional>
|
||||
|
||||
namespace Fortran::semantics {
|
||||
|
@ -9,10 +9,10 @@
|
||||
#ifndef FORTRAN_SEMANTICS_TYPE_H_
|
||||
#define FORTRAN_SEMANTICS_TYPE_H_
|
||||
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Common/idioms.h"
|
||||
#include "flang/Evaluate/expression.h"
|
||||
#include "flang/Parser/char-block.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include <algorithm>
|
||||
#include <iosfwd>
|
||||
#include <map>
|
||||
|
@ -1,4 +1,4 @@
|
||||
//===-- include/flang/Common/Fortran-features.h -----------------*- C++ -*-===//
|
||||
//===-- include/flang/Support/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.
|
||||
@ -6,10 +6,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef FORTRAN_COMMON_FORTRAN_FEATURES_H_
|
||||
#define FORTRAN_COMMON_FORTRAN_FEATURES_H_
|
||||
#ifndef FORTRAN_SUPPORT_FORTRAN_FEATURES_H_
|
||||
#define FORTRAN_SUPPORT_FORTRAN_FEATURES_H_
|
||||
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "Fortran.h"
|
||||
#include "flang/Common/enum-set.h"
|
||||
#include "flang/Common/idioms.h"
|
||||
#include <optional>
|
||||
@ -126,4 +126,4 @@ private:
|
||||
bool warnAllUsage_{false};
|
||||
};
|
||||
} // namespace Fortran::common
|
||||
#endif // FORTRAN_COMMON_FORTRAN_FEATURES_H_
|
||||
#endif // FORTRAN_SUPPORT_FORTRAN_FEATURES_H_
|
@ -1,4 +1,4 @@
|
||||
//===-- include/flang/Common/Fortran.h --------------------------*- C++ -*-===//
|
||||
//===-- include/flang/Support/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.
|
||||
@ -6,15 +6,15 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef FORTRAN_COMMON_FORTRAN_H_
|
||||
#define FORTRAN_COMMON_FORTRAN_H_
|
||||
#ifndef FORTRAN_SUPPORT_FORTRAN_H_
|
||||
#define FORTRAN_SUPPORT_FORTRAN_H_
|
||||
|
||||
// Fortran language concepts that are used in many phases are defined
|
||||
// once here to avoid redundancy and needless translation.
|
||||
|
||||
#include "enum-set.h"
|
||||
#include "idioms.h"
|
||||
#include "flang/Common/Fortran-consts.h"
|
||||
#include "flang/Common/enum-set.h"
|
||||
#include "flang/Common/idioms.h"
|
||||
#include <cinttypes>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
@ -109,4 +109,4 @@ inline std::string GetExternalAssemblyName(
|
||||
}
|
||||
|
||||
} // namespace Fortran::common
|
||||
#endif // FORTRAN_COMMON_FORTRAN_H_
|
||||
#endif // FORTRAN_SUPPORT_FORTRAN_H_
|
@ -1,4 +1,4 @@
|
||||
//===------ LangOptions.h ---------------------------------------*- C++ -*-===//
|
||||
//===-- include/flang/Support/LangOptions.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.
|
||||
@ -12,8 +12,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef FORTRAN_COMMON_LANGOPTIONS_H
|
||||
#define FORTRAN_COMMON_LANGOPTIONS_H
|
||||
#ifndef FORTRAN_SUPPORT_LANGOPTIONS_H_
|
||||
#define FORTRAN_SUPPORT_LANGOPTIONS_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@ -45,12 +45,12 @@ public:
|
||||
|
||||
#define LANGOPT(Name, Bits, Default) unsigned Name : Bits;
|
||||
#define ENUM_LANGOPT(Name, Type, Bits, Default)
|
||||
#include "flang/Common/LangOptions.def"
|
||||
#include "LangOptions.def"
|
||||
|
||||
protected:
|
||||
#define LANGOPT(Name, Bits, Default)
|
||||
#define ENUM_LANGOPT(Name, Type, Bits, Default) unsigned Name : Bits;
|
||||
#include "flang/Common/LangOptions.def"
|
||||
#include "LangOptions.def"
|
||||
};
|
||||
|
||||
/// Tracks various options which control the dialect of Fortran that is
|
||||
@ -63,7 +63,7 @@ public:
|
||||
#define ENUM_LANGOPT(Name, Type, Bits, Default) \
|
||||
Type get##Name() const { return static_cast<Type>(Name); } \
|
||||
void set##Name(Type Value) { Name = static_cast<unsigned>(Value); }
|
||||
#include "flang/Common/LangOptions.def"
|
||||
#include "LangOptions.def"
|
||||
|
||||
/// Name of the IR file that contains the result of the OpenMP target
|
||||
/// host code generation.
|
||||
@ -77,4 +77,4 @@ public:
|
||||
|
||||
} // end namespace Fortran::common
|
||||
|
||||
#endif // FORTRAN_COMMON_LANGOPTIONS_H
|
||||
#endif // FORTRAN_SUPPORT_LANGOPTIONS_H_
|
@ -1,4 +1,4 @@
|
||||
//===- MathOptionsBase.h - Math options config ------------------*- C++ -*-===//
|
||||
//===-- include/flang/Support/MathOptionsBase.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.
|
||||
@ -14,8 +14,8 @@
|
||||
///
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef FORTRAN_COMMON_MATHOPTIONSBASE_H
|
||||
#define FORTRAN_COMMON_MATHOPTIONSBASE_H
|
||||
#ifndef FORTRAN_SUPPORT_MATHOPTIONSBASE_H_
|
||||
#define FORTRAN_SUPPORT_MATHOPTIONSBASE_H_
|
||||
|
||||
namespace Fortran::common {
|
||||
|
||||
@ -27,18 +27,18 @@ public:
|
||||
Name = static_cast<unsigned>(Value); \
|
||||
return *this; \
|
||||
}
|
||||
#include "flang/Common/MathOptionsBase.def"
|
||||
#include "MathOptionsBase.def"
|
||||
|
||||
MathOptionsBase() {
|
||||
#define ENUM_MATHOPT(Name, Type, Bits, Default) set##Name(Default);
|
||||
#include "flang/Common/MathOptionsBase.def"
|
||||
#include "MathOptionsBase.def"
|
||||
}
|
||||
|
||||
private:
|
||||
#define ENUM_MATHOPT(Name, Type, Bits, Default) unsigned Name : Bits;
|
||||
#include "flang/Common/MathOptionsBase.def"
|
||||
#include "MathOptionsBase.def"
|
||||
};
|
||||
|
||||
} // namespace Fortran::common
|
||||
|
||||
#endif // FORTRAN_COMMON_MATHOPTIONSBASE_H
|
||||
#endif // FORTRAN_SUPPORT_MATHOPTIONSBASE_H_
|
@ -1,4 +1,4 @@
|
||||
//===-- include/flang/Common/OpenMP-features.h -----------------*- C++ -*-====//
|
||||
//===-- include/flang/Support/OpenMP-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.
|
||||
@ -6,8 +6,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef FORTRAN_COMMON_OPENMP_FEATURES_H_
|
||||
#define FORTRAN_COMMON_OPENMP_FEATURES_H_
|
||||
#ifndef FORTRAN_SUPPORT_OPENMP_FEATURES_H_
|
||||
#define FORTRAN_SUPPORT_OPENMP_FEATURES_H_
|
||||
|
||||
namespace Fortran::common {
|
||||
|
||||
@ -49,4 +49,4 @@ void setOpenMPMacro(int version, FortranPredefinitions &predefinitions) {
|
||||
}
|
||||
}
|
||||
} // namespace Fortran::common
|
||||
#endif // FORTRAN_COMMON_OPENMP_FEATURES_H_
|
||||
#endif // FORTRAN_SUPPORT_OPENMP_FEATURES_H_
|
@ -1,4 +1,4 @@
|
||||
//===-- include/flang/Common/OpenMP-utils.h --------------------*- C++ -*-====//
|
||||
//===-- include/flang/Support/OpenMP-utils.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.
|
||||
@ -6,8 +6,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef FORTRAN_COMMON_OPENMP_UTILS_H_
|
||||
#define FORTRAN_COMMON_OPENMP_UTILS_H_
|
||||
#ifndef FORTRAN_SUPPORT_OPENMP_UTILS_H_
|
||||
#define FORTRAN_SUPPORT_OPENMP_UTILS_H_
|
||||
|
||||
#include "flang/Semantics/symbol.h"
|
||||
|
||||
@ -73,4 +73,4 @@ mlir::Block *genEntryBlock(
|
||||
mlir::OpBuilder &builder, const EntryBlockArgs &args, mlir::Region ®ion);
|
||||
} // namespace Fortran::common::openmp
|
||||
|
||||
#endif // FORTRAN_COMMON_OPENMP_UTILS_H_
|
||||
#endif // FORTRAN_SUPPORT_OPENMP_UTILS_H_
|
@ -1,4 +1,4 @@
|
||||
//===- Version.h - Flang Version Number ---------------------*- Fortran -*-===//
|
||||
//===-- include/flang/Support/Version.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.
|
||||
@ -12,8 +12,8 @@
|
||||
///
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef FORTRAN_COMMON_VERSION_H
|
||||
#define FORTRAN_COMMON_VERSION_H
|
||||
#ifndef FORTRAN_SUPPORT_VERSION_H_
|
||||
#define FORTRAN_SUPPORT_VERSION_H_
|
||||
|
||||
#include "flang/Version.inc"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
@ -53,4 +53,4 @@ std::string getFlangFullVersion();
|
||||
std::string getFlangToolFullVersion(llvm::StringRef ToolName);
|
||||
} // namespace Fortran::common
|
||||
|
||||
#endif // FORTRAN_COMMON_VERSION_H
|
||||
#endif // FORTRAN_SUPPORT_VERSION_H_
|
@ -1,4 +1,4 @@
|
||||
//===-- include/flang/Common/default-kinds.h --------------------*- C++ -*-===//
|
||||
//===-- include/flang/Support/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.
|
||||
@ -6,10 +6,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef FORTRAN_COMMON_DEFAULT_KINDS_H_
|
||||
#define FORTRAN_COMMON_DEFAULT_KINDS_H_
|
||||
#ifndef FORTRAN_SUPPORT_DEFAULT_KINDS_H_
|
||||
#define FORTRAN_SUPPORT_DEFAULT_KINDS_H_
|
||||
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "Fortran.h"
|
||||
#include <cstdint>
|
||||
|
||||
namespace Fortran::common {
|
||||
@ -58,4 +58,4 @@ private:
|
||||
int defaultLogicalKind_{defaultIntegerKind_};
|
||||
};
|
||||
} // namespace Fortran::common
|
||||
#endif // FORTRAN_COMMON_DEFAULT_KINDS_H_
|
||||
#endif // FORTRAN_SUPPORT_DEFAULT_KINDS_H_
|
@ -13,9 +13,9 @@
|
||||
#ifndef FORTRAN_TOOLS_CROSS_TOOL_HELPERS_H
|
||||
#define FORTRAN_TOOLS_CROSS_TOOL_HELPERS_H
|
||||
|
||||
#include "flang/Common/LangOptions.h"
|
||||
#include "flang/Common/MathOptionsBase.h"
|
||||
#include "flang/Frontend/CodeGenOptions.h"
|
||||
#include "flang/Support/LangOptions.h"
|
||||
#include "flang/Support/MathOptionsBase.h"
|
||||
#include <cstdint>
|
||||
|
||||
#include "mlir/Dialect/OpenMP/OpenMPDialect.h"
|
||||
|
@ -1,4 +1,3 @@
|
||||
add_subdirectory(Common)
|
||||
add_subdirectory(Evaluate)
|
||||
add_subdirectory(Decimal)
|
||||
add_subdirectory(Lower)
|
||||
|
@ -1,52 +0,0 @@
|
||||
find_first_existing_vc_file("${LLVM_MAIN_SRC_DIR}" llvm_vc)
|
||||
find_first_existing_vc_file("${FLANG_SOURCE_DIR}" flang_vc)
|
||||
|
||||
# The VC revision include that we want to generate.
|
||||
set(version_inc "${CMAKE_CURRENT_BINARY_DIR}/VCSVersion.inc")
|
||||
|
||||
set(generate_vcs_version_script "${LLVM_CMAKE_DIR}/GenerateVersionFromVCS.cmake")
|
||||
|
||||
if(llvm_vc AND LLVM_APPEND_VC_REV)
|
||||
set(llvm_source_dir ${LLVM_MAIN_SRC_DIR})
|
||||
endif()
|
||||
if(flang_vc AND LLVM_APPEND_VC_REV)
|
||||
set(flang_source_dir ${FLANG_SOURCE_DIR})
|
||||
endif()
|
||||
|
||||
# Create custom target to generate the VC revision include.
|
||||
add_custom_command(OUTPUT "${version_inc}"
|
||||
DEPENDS "${llvm_vc}" "${flang_vc}" "${generate_vcs_version_script}"
|
||||
COMMAND ${CMAKE_COMMAND} "-DNAMES=\"LLVM;FLANG\""
|
||||
"-DLLVM_SOURCE_DIR=${llvm_source_dir}"
|
||||
"-DFLANG_SOURCE_DIR=${flang_source_dir}"
|
||||
"-DHEADER_FILE=${version_inc}"
|
||||
"-DLLVM_FORCE_VC_REVISION=${LLVM_FORCE_VC_REVISION}"
|
||||
"-DLLVM_FORCE_VC_REPOSITORY=${LLVM_FORCE_VC_REPOSITORY}"
|
||||
-P "${generate_vcs_version_script}")
|
||||
|
||||
# Mark the generated header as being generated.
|
||||
set_source_files_properties("${version_inc}"
|
||||
PROPERTIES GENERATED TRUE
|
||||
HEADER_FILE_ONLY TRUE)
|
||||
|
||||
if(FLANG_VENDOR)
|
||||
set_source_files_properties(Version.cpp
|
||||
PROPERTIES COMPILE_DEFINITIONS "FLANG_VENDOR=\"${FLANG_VENDOR} \"")
|
||||
endif()
|
||||
|
||||
add_flang_library(FortranCommon
|
||||
Fortran.cpp
|
||||
Fortran-features.cpp
|
||||
default-kinds.cpp
|
||||
idioms.cpp
|
||||
LangOptions.cpp
|
||||
OpenMP-utils.cpp
|
||||
Version.cpp
|
||||
${version_inc}
|
||||
|
||||
LINK_COMPONENTS
|
||||
Support
|
||||
|
||||
MLIR_LIBS
|
||||
MLIRIR
|
||||
)
|
@ -1,3 +1,11 @@
|
||||
#===-- lib/Decimal/CMakeLists.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
|
||||
#
|
||||
#===------------------------------------------------------------------------===#
|
||||
|
||||
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||
cmake_minimum_required(VERSION 3.20.0)
|
||||
|
||||
|
@ -60,7 +60,7 @@ add_flang_library(FortranEvaluate
|
||||
variable.cpp
|
||||
|
||||
LINK_LIBS
|
||||
FortranCommon
|
||||
FortranSupport
|
||||
FortranDecimal
|
||||
FortranParser
|
||||
${LIBPGMATH}
|
||||
|
@ -7,13 +7,13 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/Evaluate/call.h"
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Common/idioms.h"
|
||||
#include "flang/Evaluate/characteristics.h"
|
||||
#include "flang/Evaluate/check-expression.h"
|
||||
#include "flang/Evaluate/expression.h"
|
||||
#include "flang/Evaluate/tools.h"
|
||||
#include "flang/Semantics/symbol.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
|
||||
namespace Fortran::evaluate {
|
||||
|
||||
|
@ -7,7 +7,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/Evaluate/formatting.h"
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Evaluate/call.h"
|
||||
#include "flang/Evaluate/constant.h"
|
||||
#include "flang/Evaluate/expression.h"
|
||||
@ -16,6 +15,7 @@
|
||||
#include "flang/Parser/characters.h"
|
||||
#include "flang/Semantics/semantics.h"
|
||||
#include "flang/Semantics/symbol.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
namespace Fortran::evaluate {
|
||||
|
@ -7,7 +7,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/Evaluate/intrinsics.h"
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Common/enum-set.h"
|
||||
#include "flang/Common/idioms.h"
|
||||
#include "flang/Evaluate/check-expression.h"
|
||||
@ -19,6 +18,7 @@
|
||||
#include "flang/Evaluate/type.h"
|
||||
#include "flang/Semantics/scope.h"
|
||||
#include "flang/Semantics/tools.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
|
@ -27,7 +27,7 @@ add_flang_library(flangFrontend
|
||||
FortranParser
|
||||
FortranSemantics
|
||||
FortranEvaluate
|
||||
FortranCommon
|
||||
FortranSupport
|
||||
FortranLower
|
||||
FortranSupport
|
||||
FIRDialect
|
||||
|
@ -11,12 +11,12 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/Frontend/CompilerInstance.h"
|
||||
#include "flang/Common/Fortran-features.h"
|
||||
#include "flang/Frontend/CompilerInvocation.h"
|
||||
#include "flang/Frontend/TextDiagnosticPrinter.h"
|
||||
#include "flang/Parser/parsing.h"
|
||||
#include "flang/Parser/provenance.h"
|
||||
#include "flang/Semantics/semantics.h"
|
||||
#include "flang/Support/Fortran-features.h"
|
||||
#include "flang/Support/Timing.h"
|
||||
#include "mlir/Support/RawOstreamExtras.h"
|
||||
#include "clang/Basic/DiagnosticFrontend.h"
|
||||
|
@ -11,13 +11,13 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/Frontend/CompilerInvocation.h"
|
||||
#include "flang/Common/Fortran-features.h"
|
||||
#include "flang/Common/OpenMP-features.h"
|
||||
#include "flang/Common/Version.h"
|
||||
#include "flang/Frontend/CodeGenOptions.h"
|
||||
#include "flang/Frontend/PreprocessorOptions.h"
|
||||
#include "flang/Frontend/TargetOptions.h"
|
||||
#include "flang/Semantics/semantics.h"
|
||||
#include "flang/Support/Fortran-features.h"
|
||||
#include "flang/Support/OpenMP-features.h"
|
||||
#include "flang/Support/Version.h"
|
||||
#include "flang/Tools/TargetSetup.h"
|
||||
#include "flang/Version.inc"
|
||||
#include "clang/Basic/AllDiagnostics.h"
|
||||
|
@ -11,7 +11,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/Frontend/FrontendActions.h"
|
||||
#include "flang/Common/default-kinds.h"
|
||||
#include "flang/Frontend/CompilerInstance.h"
|
||||
#include "flang/Frontend/CompilerInvocation.h"
|
||||
#include "flang/Frontend/FrontendOptions.h"
|
||||
@ -34,6 +33,7 @@
|
||||
#include "flang/Semantics/runtime-type-info.h"
|
||||
#include "flang/Semantics/semantics.h"
|
||||
#include "flang/Semantics/unparse-with-symbols.h"
|
||||
#include "flang/Support/default-kinds.h"
|
||||
#include "flang/Tools/CrossToolHelpers.h"
|
||||
|
||||
#include "mlir/IR/Dialect.h"
|
||||
|
@ -12,7 +12,6 @@
|
||||
|
||||
#include "flang/Lower/Bridge.h"
|
||||
|
||||
#include "flang/Common/Version.h"
|
||||
#include "flang/Lower/Allocatable.h"
|
||||
#include "flang/Lower/CallInterface.h"
|
||||
#include "flang/Lower/Coarray.h"
|
||||
@ -62,6 +61,7 @@
|
||||
#include "flang/Semantics/runtime-type-info.h"
|
||||
#include "flang/Semantics/symbol.h"
|
||||
#include "flang/Semantics/tools.h"
|
||||
#include "flang/Support/Version.h"
|
||||
#include "mlir/Dialect/ControlFlow/IR/ControlFlowOps.h"
|
||||
#include "mlir/IR/Matchers.h"
|
||||
#include "mlir/IR/PatternMatch.h"
|
||||
|
@ -56,7 +56,7 @@ add_flang_library(FortranLower
|
||||
FIRSupport
|
||||
FIRTransforms
|
||||
HLFIRDialect
|
||||
FortranCommon
|
||||
FortranSupport
|
||||
FortranParser
|
||||
FortranEvaluate
|
||||
FortranSemantics
|
||||
|
@ -7,7 +7,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/Lower/CallInterface.h"
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Evaluate/fold.h"
|
||||
#include "flang/Lower/Bridge.h"
|
||||
#include "flang/Lower/Mangler.h"
|
||||
@ -23,6 +22,7 @@
|
||||
#include "flang/Optimizer/Support/Utils.h"
|
||||
#include "flang/Semantics/symbol.h"
|
||||
#include "flang/Semantics/tools.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include <optional>
|
||||
|
||||
static mlir::FunctionType
|
||||
|
@ -11,7 +11,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/Lower/ConvertExpr.h"
|
||||
#include "flang/Common/default-kinds.h"
|
||||
#include "flang/Common/unwrap.h"
|
||||
#include "flang/Evaluate/fold.h"
|
||||
#include "flang/Evaluate/real.h"
|
||||
@ -52,6 +51,7 @@
|
||||
#include "flang/Semantics/symbol.h"
|
||||
#include "flang/Semantics/tools.h"
|
||||
#include "flang/Semantics/type.h"
|
||||
#include "flang/Support/default-kinds.h"
|
||||
#include "mlir/Dialect/Func/IR/FuncOps.h"
|
||||
#include "llvm/ADT/TypeSwitch.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
|
@ -18,7 +18,6 @@
|
||||
#include "Decomposer.h"
|
||||
#include "ReductionProcessor.h"
|
||||
#include "Utils.h"
|
||||
#include "flang/Common/OpenMP-utils.h"
|
||||
#include "flang/Common/idioms.h"
|
||||
#include "flang/Lower/Bridge.h"
|
||||
#include "flang/Lower/ConvertExpr.h"
|
||||
@ -35,6 +34,7 @@
|
||||
#include "flang/Parser/parse-tree.h"
|
||||
#include "flang/Semantics/openmp-directive-sets.h"
|
||||
#include "flang/Semantics/tools.h"
|
||||
#include "flang/Support/OpenMP-utils.h"
|
||||
#include "mlir/Dialect/ControlFlow/IR/ControlFlowOps.h"
|
||||
#include "mlir/Dialect/OpenMP/OpenMPDialect.h"
|
||||
#include "mlir/Transforms/RegionUtils.h"
|
||||
|
@ -13,7 +13,6 @@
|
||||
#define DEBUG_TYPE "flang-type-conversion"
|
||||
|
||||
#include "flang/Optimizer/CodeGen/TypeConverter.h"
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Optimizer/Builder/Todo.h" // remove when TODO's are done
|
||||
#include "flang/Optimizer/CodeGen/DescriptorModel.h"
|
||||
#include "flang/Optimizer/CodeGen/TBAABuilder.h"
|
||||
@ -22,6 +21,7 @@
|
||||
#include "flang/Optimizer/Dialect/Support/FIRContext.h"
|
||||
#include "flang/Optimizer/Dialect/Support/KindMapping.h"
|
||||
#include "flang/Optimizer/Support/InternalNames.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "mlir/Conversion/LLVMCommon/TypeConverter.h"
|
||||
#include "llvm/ADT/ScopeExit.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
|
@ -11,7 +11,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/Optimizer/Dialect/FIRType.h"
|
||||
#include "flang/ISO_Fortran_binding_wrapper.h"
|
||||
#include "flang/Common/ISO_Fortran_binding_wrapper.h"
|
||||
#include "flang/Optimizer/Builder/Todo.h"
|
||||
#include "flang/Optimizer/Dialect/FIRDialect.h"
|
||||
#include "flang/Optimizer/Dialect/Support/KindMapping.h"
|
||||
|
@ -21,7 +21,7 @@ add_flang_library(FlangOpenMPTransforms
|
||||
FIRDialect
|
||||
FIRDialectSupport
|
||||
FIRSupport
|
||||
FortranCommon
|
||||
FortranSupport
|
||||
HLFIRDialect
|
||||
|
||||
MLIR_LIBS
|
||||
|
@ -6,7 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/Common/OpenMP-utils.h"
|
||||
#include "flang/Support/OpenMP-utils.h"
|
||||
|
||||
#include "mlir/Dialect/Func/IR/FuncOps.h"
|
||||
#include "mlir/Dialect/OpenMP/OpenMPDialect.h"
|
||||
|
@ -5,14 +5,11 @@ add_flang_library(flangPasses
|
||||
CommandLineOpts.cpp
|
||||
Pipelines.cpp
|
||||
|
||||
DEPENDS
|
||||
FortranCommon
|
||||
|
||||
LINK_LIBS
|
||||
FIRCodeGen
|
||||
FIRTransforms
|
||||
FlangOpenMPTransforms
|
||||
FortranCommon
|
||||
FortranSupport
|
||||
HLFIRTransforms
|
||||
|
||||
LINK_COMPONENTS
|
||||
|
@ -12,7 +12,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "DebugTypeGenerator.h"
|
||||
#include "flang/Common/Version.h"
|
||||
#include "flang/Optimizer/Builder/FIRBuilder.h"
|
||||
#include "flang/Optimizer/Builder/Todo.h"
|
||||
#include "flang/Optimizer/CodeGen/CGOps.h"
|
||||
@ -23,6 +22,7 @@
|
||||
#include "flang/Optimizer/Dialect/Support/FIRContext.h"
|
||||
#include "flang/Optimizer/Support/InternalNames.h"
|
||||
#include "flang/Optimizer/Transforms/Passes.h"
|
||||
#include "flang/Support/Version.h"
|
||||
#include "mlir/Dialect/Func/IR/FuncOps.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/IR/Matchers.h"
|
||||
|
@ -6,7 +6,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Lower/BuiltinModules.h"
|
||||
#include "flang/Optimizer/Builder/FIRBuilder.h"
|
||||
#include "flang/Optimizer/Builder/Runtime/Support.h"
|
||||
@ -17,6 +16,7 @@
|
||||
#include "flang/Optimizer/Support/Utils.h"
|
||||
#include "flang/Optimizer/Transforms/Passes.h"
|
||||
#include "flang/Runtime/support.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "mlir/Dialect/Func/IR/FuncOps.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
#include "mlir/Transforms/DialectConversion.h"
|
||||
|
@ -46,7 +46,7 @@ add_flang_library(FIRTransforms
|
||||
FIRDialect
|
||||
FIRDialectSupport
|
||||
FIRSupport
|
||||
FortranCommon
|
||||
FortranSupport
|
||||
HLFIRDialect
|
||||
|
||||
MLIR_LIBS
|
||||
|
@ -6,7 +6,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Optimizer/Builder/CUFCommon.h"
|
||||
#include "flang/Optimizer/Dialect/CUF/CUFOps.h"
|
||||
#include "flang/Optimizer/Dialect/FIRDialect.h"
|
||||
@ -15,6 +14,7 @@
|
||||
#include "flang/Optimizer/Support/InternalNames.h"
|
||||
#include "flang/Runtime/CUDA/common.h"
|
||||
#include "flang/Runtime/allocatable.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "mlir/Dialect/LLVMIR/NVVMDialect.h"
|
||||
#include "mlir/IR/SymbolTable.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
|
@ -7,10 +7,10 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/Optimizer/Transforms/CUFGPUToLLVMConversion.h"
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Optimizer/CodeGen/TypeConverter.h"
|
||||
#include "flang/Optimizer/Support/DataLayout.h"
|
||||
#include "flang/Runtime/CUDA/common.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "mlir/Conversion/LLVMCommon/Pattern.h"
|
||||
#include "mlir/Dialect/GPU/IR/GPUDialect.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
|
@ -7,7 +7,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/Optimizer/Transforms/CUFOpConversion.h"
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Optimizer/Builder/CUFCommon.h"
|
||||
#include "flang/Optimizer/Builder/Runtime/RTBuilder.h"
|
||||
#include "flang/Optimizer/CodeGen/TypeConverter.h"
|
||||
@ -22,6 +21,7 @@
|
||||
#include "flang/Runtime/CUDA/memory.h"
|
||||
#include "flang/Runtime/CUDA/pointer.h"
|
||||
#include "flang/Runtime/allocatable.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "mlir/Conversion/LLVMCommon/Pattern.h"
|
||||
#include "mlir/Dialect/GPU/IR/GPUDialect.h"
|
||||
#include "mlir/IR/Matchers.h"
|
||||
|
@ -6,12 +6,12 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Optimizer/Dialect/FIRDialect.h"
|
||||
#include "flang/Optimizer/Dialect/FIROps.h"
|
||||
#include "flang/Optimizer/Dialect/FIROpsSupport.h"
|
||||
#include "flang/Optimizer/Support/InternalNames.h"
|
||||
#include "flang/Optimizer/Transforms/Passes.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "mlir/Dialect/GPU/IR/GPUDialect.h"
|
||||
#include "mlir/IR/Attributes.h"
|
||||
#include "mlir/IR/SymbolTable.h"
|
||||
|
@ -40,7 +40,7 @@
|
||||
/// could be part of the cost analysis above.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/ISO_Fortran_binding_wrapper.h"
|
||||
#include "flang/Common/ISO_Fortran_binding_wrapper.h"
|
||||
#include "flang/Optimizer/Builder/BoxValue.h"
|
||||
#include "flang/Optimizer/Builder/FIRBuilder.h"
|
||||
#include "flang/Optimizer/Builder/Runtime/Inquiry.h"
|
||||
|
@ -22,7 +22,6 @@
|
||||
/// and small in size.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Optimizer/Builder/BoxValue.h"
|
||||
#include "flang/Optimizer/Builder/CUFCommon.h"
|
||||
#include "flang/Optimizer/Builder/FIRBuilder.h"
|
||||
@ -35,6 +34,7 @@
|
||||
#include "flang/Optimizer/Transforms/Passes.h"
|
||||
#include "flang/Optimizer/Transforms/Utils.h"
|
||||
#include "flang/Runtime/entry-names.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/IR/Matchers.h"
|
||||
#include "mlir/IR/Operation.h"
|
||||
|
@ -6,11 +6,11 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Optimizer/Builder/FIRBuilder.h"
|
||||
#include "flang/Optimizer/Dialect/FIRDialect.h"
|
||||
#include "flang/Optimizer/Dialect/FIROps.h"
|
||||
#include "flang/Optimizer/Transforms/Passes.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
#include "mlir/IR/Matchers.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
|
@ -14,7 +14,7 @@
|
||||
/// likely harmless to run it on something else, but it is also not valuable].
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "flang/ISO_Fortran_binding_wrapper.h"
|
||||
#include "flang/Common/ISO_Fortran_binding_wrapper.h"
|
||||
#include "flang/Optimizer/Builder/BoxValue.h"
|
||||
#include "flang/Optimizer/Builder/FIRBuilder.h"
|
||||
#include "flang/Optimizer/Builder/Runtime/Inquiry.h"
|
||||
|
@ -25,7 +25,7 @@ add_flang_library(FortranParser
|
||||
user-state.cpp
|
||||
|
||||
LINK_LIBS
|
||||
FortranCommon
|
||||
FortranSupport
|
||||
|
||||
LINK_COMPONENTS
|
||||
Support
|
||||
|
@ -22,7 +22,6 @@
|
||||
// This header defines the fundamental parser class templates and helper
|
||||
// template functions. See parser-combinators.txt for documentation.
|
||||
|
||||
#include "flang/Common/Fortran-features.h"
|
||||
#include "flang/Common/idioms.h"
|
||||
#include "flang/Common/indirection.h"
|
||||
#include "flang/Parser/char-block.h"
|
||||
@ -30,6 +29,7 @@
|
||||
#include "flang/Parser/parse-state.h"
|
||||
#include "flang/Parser/provenance.h"
|
||||
#include "flang/Parser/user-state.h"
|
||||
#include "flang/Support/Fortran-features.h"
|
||||
#include <cstring>
|
||||
#include <functional>
|
||||
#include <list>
|
||||
|
@ -16,11 +16,11 @@
|
||||
// fixed form character literals on truncated card images, file
|
||||
// inclusion, and driving the Fortran source preprocessor.
|
||||
|
||||
#include "flang/Common/Fortran-features.h"
|
||||
#include "flang/Parser/characters.h"
|
||||
#include "flang/Parser/message.h"
|
||||
#include "flang/Parser/provenance.h"
|
||||
#include "flang/Parser/token-sequence.h"
|
||||
#include "flang/Support/Fortran-features.h"
|
||||
#include <bitset>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
@ -10,13 +10,13 @@
|
||||
// traversal templates in parse-tree-visitor.h.
|
||||
|
||||
#include "flang/Parser/unparse.h"
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Common/idioms.h"
|
||||
#include "flang/Common/indirection.h"
|
||||
#include "flang/Parser/characters.h"
|
||||
#include "flang/Parser/parse-tree-visitor.h"
|
||||
#include "flang/Parser/parse-tree.h"
|
||||
#include "flang/Parser/tools.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <algorithm>
|
||||
#include <cinttypes>
|
||||
|
@ -53,7 +53,7 @@ add_flang_library(FortranSemantics
|
||||
omp_gen
|
||||
|
||||
LINK_LIBS
|
||||
FortranCommon
|
||||
FortranSupport
|
||||
FortranParser
|
||||
FortranEvaluate
|
||||
|
||||
|
@ -7,11 +7,11 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "check-return.h"
|
||||
#include "flang/Common/Fortran-features.h"
|
||||
#include "flang/Parser/message.h"
|
||||
#include "flang/Parser/parse-tree.h"
|
||||
#include "flang/Semantics/semantics.h"
|
||||
#include "flang/Semantics/tools.h"
|
||||
#include "flang/Support/Fortran-features.h"
|
||||
|
||||
namespace Fortran::semantics {
|
||||
|
||||
|
@ -7,11 +7,11 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "check-select-rank.h"
|
||||
#include "flang/Common/Fortran.h"
|
||||
#include "flang/Common/idioms.h"
|
||||
#include "flang/Parser/message.h"
|
||||
#include "flang/Parser/tools.h"
|
||||
#include "flang/Semantics/tools.h"
|
||||
#include "flang/Support/Fortran.h"
|
||||
#include <list>
|
||||
#include <optional>
|
||||
#include <set>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user