Searched refs:ExternalFileUnit (Results 1 – 8 of 8) sorted by relevance
/external/llvm-project/flang/runtime/ |
D | unit.cpp | 23 static ExternalFileUnit *defaultInput{nullptr}; 24 static ExternalFileUnit *defaultOutput{nullptr}; 38 ExternalFileUnit *ExternalFileUnit::LookUp(int unit) { in LookUp() 42 ExternalFileUnit &ExternalFileUnit::LookUpOrCrash( in LookUpOrCrash() 44 ExternalFileUnit *file{LookUp(unit)}; in LookUpOrCrash() 51 ExternalFileUnit &ExternalFileUnit::LookUpOrCreate( in LookUpOrCreate() 56 ExternalFileUnit &ExternalFileUnit::LookUpOrCreateAnonymous( in LookUpOrCreateAnonymous() 59 ExternalFileUnit &result{ in LookUpOrCreateAnonymous() 71 ExternalFileUnit *ExternalFileUnit::LookUp(const char *path) { in LookUp() 75 ExternalFileUnit &ExternalFileUnit::CreateNew( in CreateNew() [all …]
|
D | unit-map.h | 24 ExternalFileUnit *LookUp(int n) { in LookUp() 29 ExternalFileUnit &LookUpOrCreate( in LookUpOrCreate() 38 ExternalFileUnit *LookUp(const char *path) { in LookUp() 43 ExternalFileUnit &NewUnit(const Terminator &terminator) { in NewUnit() 50 ExternalFileUnit *LookUpForClose(int); 52 void DestroyClosed(ExternalFileUnit &); 59 ExternalFileUnit unit; 66 ExternalFileUnit *Find(int n) { in Find() 81 ExternalFileUnit *Find(const char *path); 83 ExternalFileUnit &Create(int, const Terminator &);
|
D | unit.h | 32 class ExternalFileUnit : public ConnectionState, 34 public FileFrame<ExternalFileUnit> { 36 explicit ExternalFileUnit(int unitNumber) : unitNumber_{unitNumber} {} in ExternalFileUnit() function 40 static ExternalFileUnit *LookUp(int unit); 41 static ExternalFileUnit &LookUpOrCrash(int unit, const Terminator &); 42 static ExternalFileUnit &LookUpOrCreate( 44 static ExternalFileUnit &LookUpOrCreateAnonymous( 46 static ExternalFileUnit *LookUp(const char *path); 47 static ExternalFileUnit &CreateNew(int unit, const Terminator &); 48 static ExternalFileUnit *LookUpForClose(int unit);
|
D | unit-map.cpp | 13 ExternalFileUnit *UnitMap::LookUpForClose(int n) { in LookUpForClose() 32 void UnitMap::DestroyClosed(ExternalFileUnit &unit) { in DestroyClosed() 49 p->unit.~ExternalFileUnit(); in DestroyClosed() 60 p->unit.~ExternalFileUnit(); in CloseAll() 75 ExternalFileUnit *UnitMap::Find(const char *path) { in Find() 89 ExternalFileUnit &UnitMap::Create(int n, const Terminator &terminator) { in Create()
|
D | io-api.cpp | 157 ExternalFileUnit &unit{ExternalFileUnit::LookUpOrCreateAnonymous( in BeginExternalListIO() 193 ExternalFileUnit &unit{ExternalFileUnit::LookUpOrCreateAnonymous( in BeginExternalFormattedIO() 225 ExternalFileUnit &unit{ExternalFileUnit::LookUpOrCreateAnonymous( in BeginUnformattedIO() 261 ExternalFileUnit &unit{ in IONAME() 262 ExternalFileUnit::LookUpOrCreate(unitNumber, terminator, wasExtant)}; in IONAME() 271 ExternalFileUnit &unit{ExternalFileUnit::LookUpOrCreate( in IONAME() 272 ExternalFileUnit::NewUnit(terminator), terminator, ignored)}; in IONAME() 279 if (ExternalFileUnit * unit{ExternalFileUnit::LookUpForClose(unitNumber)}) { in IONAME() 294 ExternalFileUnit &unit{ in IONAME() 295 ExternalFileUnit::LookUpOrCrash(unitNumber, terminator)}; in IONAME() [all …]
|
D | io-stmt.h | 27 class ExternalFileUnit; variable 72 ExternalFileUnit *GetExternalFileUnit() const; // null if internal unit 141 ExternalFileUnit *GetExternalFileUnit() const { return nullptr; } in GetExternalFileUnit() 260 ExternalFileUnit &, const char *sourceFile = nullptr, int sourceLine = 0); 261 ExternalFileUnit &unit() { return unit_; } in unit() 265 ExternalFileUnit *GetExternalFileUnit() { return &unit_; } in GetExternalFileUnit() 268 ExternalFileUnit &unit_; 294 ExternalFormattedIoStatementState(ExternalFileUnit &, const CharType *format, 330 OpenStatementState(ExternalFileUnit &unit, bool wasExtant, 358 CloseStatementState(ExternalFileUnit &unit, const char *sourceFile = nullptr, [all …]
|
D | stop.cpp | 49 Fortran::runtime::io::ExternalFileUnit::CloseAll(handler); in CloseAllExternalUnits() 80 Fortran::runtime::io::ExternalFileUnit::FlushAll(handler); in StartPause()
|
D | io-stmt.cpp | 166 ExternalFileUnit &unit, const char *sourceFile, int sourceLine) in ExternalIoStatementBase() 339 ExternalFileUnit &unit, const CHAR *format, std::size_t formatLength, in ExternalFormattedIoStatementState() 404 ExternalFileUnit *IoStatementState::GetExternalFileUnit() const { in GetExternalFileUnit() 717 ExternalFileUnit &ext{unit()}; in EndIoStatement() 737 ExternalFileUnit &unit, const char *sourceFile, int sourceLine) in InquireUnitState()
|