[flang][NFC] Remove out of date IO helper

Functionality in IO.h and IO.cpp have been upstreamed together with the frontend
when flang landed upstream. Those files are out of date compared with fir-dev.
These functionality will be upstreamed again when needed in the lowering process
with an up to date code and a proper review.

These files (and the functions it contains) are not currently used. Hence
removing it is NFC.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D118593
This commit is contained in:
Valentin Clement 2022-01-31 16:32:54 +01:00
parent 236458ef02
commit 6d892987bc
No known key found for this signature in database
GPG Key ID: 086D54783C928776
3 changed files with 0 additions and 1577 deletions

View File

@ -1,98 +0,0 @@
//===-- Lower/IO.h -- lower I/O statements ----------------------*- 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_LOWER_IO_H
#define FORTRAN_LOWER_IO_H
#include "flang/Common/reference.h"
#include "flang/Semantics/symbol.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallSet.h"
namespace mlir {
class Value;
} // namespace mlir
namespace Fortran {
namespace parser {
using Label = std::uint64_t;
struct BackspaceStmt;
struct CloseStmt;
struct EndfileStmt;
struct FlushStmt;
struct InquireStmt;
struct OpenStmt;
struct PrintStmt;
struct ReadStmt;
struct RewindStmt;
struct WaitStmt;
struct WriteStmt;
} // namespace parser
namespace lower {
class AbstractConverter;
class BridgeImpl;
namespace pft {
struct Evaluation;
using LabelEvalMap = llvm::DenseMap<Fortran::parser::Label, Evaluation *>;
using SymbolRef = Fortran::common::Reference<const Fortran::semantics::Symbol>;
using LabelSet = llvm::SmallSet<Fortran::parser::Label, 4>;
using SymbolLabelMap = llvm::DenseMap<SymbolRef, LabelSet>;
} // namespace pft
/// Generate IO call(s) for BACKSPACE; return the IOSTAT code
mlir::Value genBackspaceStatement(AbstractConverter &,
const parser::BackspaceStmt &);
/// Generate IO call(s) for CLOSE; return the IOSTAT code
mlir::Value genCloseStatement(AbstractConverter &, const parser::CloseStmt &);
/// Generate IO call(s) for ENDFILE; return the IOSTAT code
mlir::Value genEndfileStatement(AbstractConverter &,
const parser::EndfileStmt &);
/// Generate IO call(s) for FLUSH; return the IOSTAT code
mlir::Value genFlushStatement(AbstractConverter &, const parser::FlushStmt &);
/// Generate IO call(s) for INQUIRE; return the IOSTAT code
mlir::Value genInquireStatement(AbstractConverter &,
const parser::InquireStmt &);
/// Generate IO call(s) for OPEN; return the IOSTAT code
mlir::Value genOpenStatement(AbstractConverter &, const parser::OpenStmt &);
/// Generate IO call(s) for PRINT
void genPrintStatement(AbstractConverter &converter,
const parser::PrintStmt &stmt,
pft::LabelEvalMap &labelMap,
pft::SymbolLabelMap &assignMap);
/// Generate IO call(s) for READ; return the IOSTAT code
mlir::Value genReadStatement(AbstractConverter &converter,
const parser::ReadStmt &stmt,
pft::LabelEvalMap &labelMap,
pft::SymbolLabelMap &assignMap);
/// Generate IO call(s) for REWIND; return the IOSTAT code
mlir::Value genRewindStatement(AbstractConverter &, const parser::RewindStmt &);
/// Generate IO call(s) for WAIT; return the IOSTAT code
mlir::Value genWaitStatement(AbstractConverter &, const parser::WaitStmt &);
/// Generate IO call(s) for WRITE; return the IOSTAT code
mlir::Value genWriteStatement(AbstractConverter &converter,
const parser::WriteStmt &stmt,
pft::LabelEvalMap &labelMap,
pft::SymbolLabelMap &assignMap);
} // namespace lower
} // namespace Fortran
#endif // FORTRAN_LOWER_IO_H

View File

@ -7,7 +7,6 @@ add_flang_library(FortranLower
CharacterRuntime.cpp
Coarray.cpp
ConvertType.cpp
IO.cpp
Mangler.cpp
OpenACC.cpp
OpenMP.cpp

File diff suppressed because it is too large Load Diff