16#ifndef FORTRAN_LOWER_RUNTIME_H
17#define FORTRAN_LOWER_RUNTIME_H
33mlir::Value genAssociated(fir::FirOpBuilder &, mlir::Location,
34 mlir::Value pointer, mlir::Value target);
36void genPointerAssociate(fir::FirOpBuilder &, mlir::Location,
37 mlir::Value pointer, mlir::Value target);
38void genPointerAssociateRemapping(fir::FirOpBuilder &, mlir::Location,
39 mlir::Value pointer, mlir::Value target,
40 mlir::Value bounds,
bool isMonomorphic);
42mlir::Value genCpuTime(fir::FirOpBuilder &, mlir::Location);
43void genDateAndTime(fir::FirOpBuilder &, mlir::Location,
44 std::optional<fir::CharBoxValue> date,
45 std::optional<fir::CharBoxValue> time,
46 std::optional<fir::CharBoxValue> zone, mlir::Value values);
48mlir::Value genDsecnds(fir::FirOpBuilder &builder, mlir::Location loc,
51void genEtime(fir::FirOpBuilder &builder, mlir::Location loc,
52 mlir::Value values, mlir::Value time);
54void genFlush(fir::FirOpBuilder &builder, mlir::Location loc, mlir::Value unit);
56void genFree(fir::FirOpBuilder &builder, mlir::Location loc, mlir::Value ptr);
58mlir::Value genFseek(fir::FirOpBuilder &builder, mlir::Location loc,
59 mlir::Value unit, mlir::Value offset, mlir::Value whence);
60mlir::Value genFtell(fir::FirOpBuilder &builder, mlir::Location loc,
63mlir::Value genGetUID(fir::FirOpBuilder &, mlir::Location);
64mlir::Value genGetGID(fir::FirOpBuilder &, mlir::Location);
66mlir::Value genMalloc(fir::FirOpBuilder &builder, mlir::Location loc,
69void genRandomInit(fir::FirOpBuilder &, mlir::Location, mlir::Value repeatable,
70 mlir::Value imageDistinct);
71void genRandomNumber(fir::FirOpBuilder &, mlir::Location, mlir::Value harvest);
72void genRandomSeed(fir::FirOpBuilder &, mlir::Location, mlir::Value size,
73 mlir::Value put, mlir::Value get);
76void genRename(fir::FirOpBuilder &builder, mlir::Location loc,
77 mlir::Value path1, mlir::Value path2, mlir::Value status);
79mlir::Value genSecnds(fir::FirOpBuilder &builder, mlir::Location loc,
83mlir::Value genTime(fir::FirOpBuilder &builder, mlir::Location loc);
86mlir::Value genTimef(fir::FirOpBuilder &builder, mlir::Location loc);
89void genTransfer(fir::FirOpBuilder &builder, mlir::Location loc,
90 mlir::Value resultBox, mlir::Value sourceBox,
94void genTransferSize(fir::FirOpBuilder &builder, mlir::Location loc,
95 mlir::Value resultBox, mlir::Value sourceBox,
96 mlir::Value moldBox, mlir::Value size);
100void genSystemClock(fir::FirOpBuilder &, mlir::Location, mlir::Value count,
101 mlir::Value rate, mlir::Value max);
106void genSignal(fir::FirOpBuilder &builder, mlir::Location loc,
107 mlir::Value number, mlir::Value handler, mlir::Value status);
110void genSleep(fir::FirOpBuilder &builder, mlir::Location loc,
111 mlir::Value seconds);
114mlir::Value genChdir(fir::FirOpBuilder &builder, mlir::Location loc,
117mlir::Value genIrand(fir::FirOpBuilder &builder, mlir::Location loc,
119mlir::Value genRand(fir::FirOpBuilder &builder, mlir::Location loc,
123void genShowDescriptor(fir::FirOpBuilder &builder, mlir::Location loc,
124 mlir::Value descriptor);
Definition FIRBuilder.h:56
Definition AbstractConverter.h:37
Definition AbstractConverter.h:32