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

Diana Picus via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 8 05:38:52 PST 2022


rovka updated this revision to Diff 406788.
rovka added a comment.

Ok, I updated it to use a descriptor instead, for brevity mostly.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118776/new/

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,13 @@
 // integer kind.
 std::int32_t RTNAME(ArgumentCount)();
 
+// 16.9.82 GET_COMMAND
+// Try to get the value of the whole command. All of the parameters are
+// optional.
+// Return a STATUS as described in the standard.
+std::int32_t RTNAME(GetCommand)(const Descriptor *command = nullptr,
+    const Descriptor *length = nullptr, const Descriptor *errmsg = nullptr);
+
 // 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.406788.patch
Type: text/x-patch
Size: 736 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220208/0b96112f/attachment.bin>


More information about the llvm-commits mailing list