[flang] Semantics for ISO_C_BINDING's C_LOC()
authorPeter Klausler <pklausler@nvidia.com>
Fri, 21 Apr 2023 17:03:17 +0000 (10:03 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Mon, 8 May 2023 22:58:09 +0000 (15:58 -0700)
commita88cee1fd06dd633fc6551d242c55f4235d4862d
treeaa5d3dce880ab5fc28ab3f1e3eec7fe651c467df
parent5da7f30f24c4620c4f4425206fbdd0921d333dc0
[flang] Semantics for ISO_C_BINDING's C_LOC()

Make __builtin_c_loc() into an intrinsic function and verify the
special semantic requirements on its actual arguments.

Differential Revision: https://reviews.llvm.org/D149988
flang/include/flang/Evaluate/type.h
flang/lib/Evaluate/characteristics.cpp
flang/lib/Evaluate/check-expression.cpp
flang/lib/Evaluate/intrinsics.cpp
flang/lib/Evaluate/tools.cpp
flang/lib/Evaluate/type.cpp
flang/lib/Semantics/expression.cpp
flang/module/__fortran_builtins.f90
flang/test/Lower/HLFIR/intrinsic-module-procedures.f90
flang/test/Semantics/c_loc01.f90 [new file with mode: 0644]