[flang] Upstream runtime changes for inquiry intrinsics
authorPeter Steinfeld <psteinfeld@nvidia.com>
Wed, 9 Feb 2022 19:17:18 +0000 (11:17 -0800)
committerPeter Steinfeld <psteinfeld@nvidia.com>
Wed, 9 Feb 2022 20:42:36 +0000 (12:42 -0800)
commit6cd417bfd886ffe4e0cf4b48055aa7bfc352b789
tree14d6bd5d30eed8dfbee1d61f854fc92a25d22cfc
parent9582f0969041d79a386171dbf95ef83e4566c530
[flang] Upstream runtime changes for inquiry intrinsics

This change adds runtime routines and tests for LBOUND when passed a DIM argument, SIZE, and UBOUND when not passed a DIM argument.

Associated changes for lowering have already been merged into fir-dev.

Differential Revision: https://reviews.llvm.org/D119360
flang/include/flang/Runtime/inquiry.h [new file with mode: 0644]
flang/runtime/CMakeLists.txt
flang/runtime/inquiry.cpp [new file with mode: 0644]
flang/runtime/time-intrinsic.cpp
flang/runtime/tools.h
flang/unittests/Runtime/CMakeLists.txt
flang/unittests/Runtime/Inquiry.cpp [new file with mode: 0644]