aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump
diff options
context:
space:
mode:
authorjeanPerier <jperier@nvidia.com>2024-07-08 16:30:27 +0200
committerGitHub <noreply@github.com>2024-07-08 16:30:27 +0200
commit727ecaf7d16d44ecf434284c60ad65b22d814092 (patch)
treed3713d5ec685d4511860e38ba010cbbc9c64806d /llvm/tools/llvm-objdump
parent12d6832d86156904aecc10e8612bd77b66aeef51 (diff)
downloadllvm-727ecaf7d16d44ecf434284c60ad65b22d814092.zip
llvm-727ecaf7d16d44ecf434284c60ad65b22d814092.tar.gz
llvm-727ecaf7d16d44ecf434284c60ad65b22d814092.tar.bz2
[flang] allow intrinsic module procedures to be implemented in Fortran (#97743)
Currently, all procedures from intrinsic modules that are not BIND(C) are expected to be intercepted by the compiler in lowering and to have a handler in IntrinsicCall.cpp. As more "intrinsic" modules are being added (OpenMP, OpenACC, CUF, ...), this requirement is preventing seamless implementation of intrinsic modules in Fortran. Procedures from intrinsic modules are different from generic intrinsics defined in section 16 of the standard. They are declared in Fortran file seating in the intrinsic module directory and inside the compiler they look like regular user call except for the INTRINSIC attribute set on their module. So an easy implementation is just to have the implementation done in Fortran and linked to the runtime without any need for the compiler to necessarily understand and handle these calls in special ways. This patch splits the lookup and generation part of IntrinsicCall.cpp so that it can be allowed to only intercept calls to procedure from intrinsic module if they have a handler. Otherwise, the assumption is that they should be implemented in Fortran. Add explicit TODOs handler for the IEEE procedure that are known to not yet been implemented and won't be implemented via Fortran code so that this patch is an NFC for what is currently supported. This patch also prevents doing two lookups in the intrinsic table (There was one to get argument lowering rules, and another one to generate the code).
Diffstat (limited to 'llvm/tools/llvm-objdump')
0 files changed, 0 insertions, 0 deletions