[flang-commits] [PATCH] D118776: [flang] Add runtime interface for GET_COMMAND

Diana Picus via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Feb 2 04:22:25 PST 2022


rovka created this revision.
rovka added reviewers: klausler, jeanPerier.
rovka added a project: Flang.
Herald added a subscriber: jdoerfert.
rovka requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

As with GET_COMMAND_ARGUMENT, we split this up into 2 entry points: one
for getting the value and one for getting the length of the command.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118776

Files:
  flang/include/flang/Runtime/command.h


Index: flang/include/flang/Runtime/command.h
===================================================================
--- flang/include/flang/Runtime/command.h
+++ flang/include/flang/Runtime/command.h
@@ -23,6 +23,19 @@
 // integer kind.
 std::int32_t RTNAME(ArgumentCount)();
 
+// 16.9.82 GET_COMMAND
+// We're breaking up the interface into several different functions, since most
+// of the parameters are optional.
+
+// Try to get the value of the whole command.
+// Return a STATUS as described in the standard.
+std::int32_t RTNAME(CommandValue)(
+    const Descriptor *value = nullptr, const Descriptor *errmsg = nullptr);
+
+// Try to get the significant length of the whole command.
+// Returns 0 if it doesn't manage.
+std::int64_t RTNAME(CommandLength)();
+
 // 16.9.83 GET_COMMAND_ARGUMENT
 // We're breaking up the interface into several different functions, since most
 // of the parameters are optional.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118776.405214.patch
Type: text/x-patch
Size: 917 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220202/afae841b/attachment.bin>


More information about the flang-commits mailing list