Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
flang/include/flang/Optimizer/Builder/Runtime/Command.h
Show All 17 Lines | |||||
class FirOpBuilder; | class FirOpBuilder; | ||||
} // namespace fir | } // namespace fir | ||||
namespace fir::runtime { | namespace fir::runtime { | ||||
/// Generate call to COMMAND_ARGUMENT_COUNT intrinsic runtime routine. | /// Generate call to COMMAND_ARGUMENT_COUNT intrinsic runtime routine. | ||||
mlir::Value genCommandArgumentCount(fir::FirOpBuilder &, mlir::Location); | mlir::Value genCommandArgumentCount(fir::FirOpBuilder &, mlir::Location); | ||||
/// Generate a call to ArgumentValue runtime function which implements | /// Generate a call to the GetArgumentValue runtime function which implements | ||||
/// the part of GET_COMMAND_ARGUMENT related to VALUE, ERRMSG, and STATUS. | /// the GET_COMMAND_ARGUMENT intrinsic. | ||||
/// \p value and \p errmsg must be fir.box that can be absent (but not null | /// \p value, \p length and \p errmsg must be fir.box that can be absent (but | ||||
/// mlir values). The status value is returned. | /// not null mlir values). The status value is returned. | ||||
mlir::Value genArgumentValue(fir::FirOpBuilder &, mlir::Location, | mlir::Value genGetCommandArgument(fir::FirOpBuilder &, mlir::Location, | ||||
mlir::Value number, mlir::Value value, | mlir::Value number, mlir::Value value, | ||||
mlir::Value errmsg); | mlir::Value length, mlir::Value errmsg); | ||||
/// Generate a call to ArgumentLength runtime function which implements | |||||
/// the part of GET_COMMAND_ARGUMENT related to LENGTH. | |||||
/// It returns the length of the \p number command arguments. | |||||
mlir::Value genArgumentLength(fir::FirOpBuilder &, mlir::Location, | |||||
mlir::Value number); | |||||
/// Generate a call to EnvVariableValue runtime function which implements | /// Generate a call to EnvVariableValue runtime function which implements | ||||
/// the part of GET_ENVIRONMENT_ARGUMENT related to VALUE, ERRMSG, and STATUS. | /// the part of GET_ENVIRONMENT_ARGUMENT related to VALUE, ERRMSG, and STATUS. | ||||
/// \p value and \p errmsg must be fir.box that can be absent (but not null | /// \p value and \p errmsg must be fir.box that can be absent (but not null | ||||
/// mlir values). The status value is returned. \p name must be a fir.box. | /// mlir values). The status value is returned. \p name must be a fir.box. | ||||
/// and \p trimName a boolean value. | /// and \p trimName a boolean value. | ||||
mlir::Value genEnvVariableValue(fir::FirOpBuilder &, mlir::Location, | mlir::Value genEnvVariableValue(fir::FirOpBuilder &, mlir::Location, | ||||
mlir::Value name, mlir::Value value, | mlir::Value name, mlir::Value value, | ||||
Show All 11 Lines |