-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7123f2c
commit cc21ca9
Showing
222 changed files
with
823 additions
and
554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
FortranRuntime/include/FortranRuntime/Runtime/array-constructor.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
//===-- include/FortranRuntime/Runtime/array-constructor.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 | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
// External APIs to create temporary storage for array constructors when their | ||
// final extents or length parameters cannot be pre-computed. | ||
|
||
#ifndef FORTRAN_RUNTIME_ARRAY_CONSTRUCTOR_H_ | ||
#define FORTRAN_RUNTIME_ARRAY_CONSTRUCTOR_H_ | ||
|
||
#include "FortranRuntime/Runtime/descriptor.h" | ||
#include "flang/Runtime/array-constructor-consts.h" | ||
#include "flang/Runtime/entry-names.h" | ||
#include <cstdint> | ||
|
||
namespace Fortran::runtime { | ||
|
||
// Runtime data structure to hold information about the storage of | ||
// an array constructor being constructed. | ||
struct ArrayConstructorVector { | ||
RT_API_ATTRS ArrayConstructorVector(class Descriptor &to, | ||
SubscriptValue nextValuePosition, SubscriptValue actualAllocationSize, | ||
const char *sourceFile, int sourceLine, bool useValueLengthParameters) | ||
: to{to}, nextValuePosition{nextValuePosition}, | ||
actualAllocationSize{actualAllocationSize}, sourceFile{sourceFile}, | ||
sourceLine{sourceLine}, | ||
useValueLengthParameters_{useValueLengthParameters} {} | ||
|
||
RT_API_ATTRS bool useValueLengthParameters() const { | ||
return useValueLengthParameters_; | ||
} | ||
|
||
class Descriptor &to; | ||
SubscriptValue nextValuePosition; | ||
SubscriptValue actualAllocationSize; | ||
const char *sourceFile; | ||
int sourceLine; | ||
|
||
private: | ||
unsigned char useValueLengthParameters_ : 1; | ||
}; | ||
|
||
} // namespace Fortran::runtime | ||
#endif /* FORTRAN_RUNTIME_ARRAY_CONSTRUCTOR_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
FortranRuntime/include/FortranRuntime/Runtime/io-api-funcs.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//===-- include/FortranRuntime/Runtime/io-api-funcs.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 | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
// Defines API between compiled code and I/O runtime library. | ||
|
||
#ifndef FORTRAN_RUNTIME_IO_API_FUNCS_H_ | ||
#define FORTRAN_RUNTIME_IO_API_FUNCS_H_ | ||
|
||
#include "flang/Common/uint128.h" | ||
#include "flang/Runtime/entry-names.h" | ||
#include "flang/Runtime/io-api.h" | ||
#include "flang/Runtime/iostat.h" | ||
#include "flang/Runtime/magic-numbers.h" | ||
#include <cinttypes> | ||
#include <cstddef> | ||
|
||
namespace Fortran::runtime { | ||
class Descriptor; | ||
} // namespace Fortran::runtime | ||
|
||
namespace Fortran::runtime::io { | ||
|
||
struct NonTbpDefinedIoTable; | ||
class NamelistGroup; | ||
class IoStatementState; | ||
using Cookie = IoStatementState *; | ||
using ExternalUnit = int; | ||
using AsynchronousId = int; | ||
|
||
RT_API_ATTRS const char *InquiryKeywordHashDecode( | ||
char *buffer, std::size_t, InquiryKeywordHash); | ||
|
||
} // namespace Fortran::runtime::io | ||
#endif /* FORTRAN_RUNTIME_IO_API_FUNCS_H_ */ |
23 changes: 23 additions & 0 deletions
23
FortranRuntime/include/FortranRuntime/Runtime/iostat-funcs.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//===-- include/FortranRuntime/Runtime/iostat-funcs.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 | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
// Defines the values returned by the runtime for IOSTAT= specifiers | ||
// on I/O statements. | ||
|
||
#ifndef FORTRAN_RUNTIME_IOSTAT_FUNCS_H_ | ||
#define FORTRAN_RUNTIME_IOSTAT_FUNCS_H_ | ||
|
||
#include "flang/Common/api-attrs.h" | ||
#include "flang/Runtime/iostat.h" | ||
|
||
namespace Fortran::runtime::io { | ||
|
||
RT_API_ATTRS const char *IostatErrorString(int); | ||
|
||
} // namespace Fortran::runtime::io | ||
#endif /* FORTRAN_RUNTIME_IOSTAT_FUNCS_H_ */ |
2 changes: 1 addition & 1 deletion
2
...ranRuntime/include/flang/Runtime/memory.h → ...e/include/FortranRuntime/Runtime/memory.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Runtime/include/flang/Runtime/type-code.h → ...nclude/FortranRuntime/Runtime/type-code.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
118 changes: 0 additions & 118 deletions
118
FortranRuntime/include/flang/Runtime/array-constructor.h
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.